code for the speed robot
Dependencies: MPU6050-DMP mbed PololuQTRSensors vl53l0x
_def.h
- Committer:
- deepanaishtaweera174
- Date:
- 2019-10-01
- Revision:
- 8:d7941bcd9981
- Parent:
- 6:a635edf31d8b
File content as of revision 8:d7941bcd9981:
#include "I2Cdev.h" #include "MPU6050_6Axis_MotionApps20.h" #include "VL53L0X.h" #ifndef M_PI #define M_PI 3.1415 #endif #define Sensor2_newAddress 0x02 #define Sensor3_newAddress 0x01 #define SignalRateLimit 0.9 //Higher the limit , higher the accuracy //0.8 #define MeasurementBudget 40000 //Higher the time , higher the accuracy //20000 #define Timeout 500 //200 #define ContInterval 40 //inter-measurement period in milliseconds determining how often the sensor takes a measurement. void PrintSerial(string message){ printf("%s\n",message); }