code for the speed robot

Dependencies:   MPU6050-DMP mbed PololuQTRSensors vl53l0x

main.cpp

Committer:
deepanaishtaweera174
Date:
2019-10-01
Revision:
8:d7941bcd9981
Parent:
7:fd80a0d11658

File content as of revision 8:d7941bcd9981:

#include "mbed.h"
#include <string>
#include <math.h>
#include "_def.h"
#include "_pins.h"
#include "_var.h"
#include "gyro.h"
#include "tof.h"
#include "motor_control.h"

int main()
{
    PrintSerial("hello world");
    InitMotors();
//    InitTOFSensors();
//    InitMPU();
    while(1) {
        RunBothMotors(500,500);
//        PrintTOFDistances();
//        GetAngles(false);
    }
}