code for the speed robot

Dependencies:   MPU6050-DMP mbed PololuQTRSensors vl53l0x

main.cpp

Committer:
deepanaishtaweera174
Date:
2019-09-30
Revision:
7:fd80a0d11658
Parent:
3:9b2f15b0d47b

File content as of revision 7:fd80a0d11658:

#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);
    }
}