![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
code for the speed robot
Dependencies: MPU6050-DMP mbed PololuQTRSensors vl53l0x
main.cpp@8:d7941bcd9981, 2019-10-01 (annotated)
- Committer:
- deepanaishtaweera174
- Date:
- Tue Oct 01 12:33:33 2019 +0000
- Revision:
- 8:d7941bcd9981
- Parent:
- 7:fd80a0d11658
hey
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
deepanaishtaweera174 | 0:c3a27228c31b | 1 | #include "mbed.h" |
deepanaishtaweera174 | 0:c3a27228c31b | 2 | #include <string> |
deepanaishtaweera174 | 7:fd80a0d11658 | 3 | #include <math.h> |
deepanaishtaweera174 | 0:c3a27228c31b | 4 | #include "_def.h" |
deepanaishtaweera174 | 0:c3a27228c31b | 5 | #include "_pins.h" |
deepanaishtaweera174 | 0:c3a27228c31b | 6 | #include "_var.h" |
deepanaishtaweera174 | 0:c3a27228c31b | 7 | #include "gyro.h" |
deepanaishtaweera174 | 1:b188e27eb7da | 8 | #include "tof.h" |
deepanaishtaweera174 | 7:fd80a0d11658 | 9 | #include "motor_control.h" |
deepanaishtaweera174 | 0:c3a27228c31b | 10 | |
deepanaishtaweera174 | 0:c3a27228c31b | 11 | int main() |
deepanaishtaweera174 | 0:c3a27228c31b | 12 | { |
deepanaishtaweera174 | 0:c3a27228c31b | 13 | PrintSerial("hello world"); |
deepanaishtaweera174 | 7:fd80a0d11658 | 14 | InitMotors(); |
deepanaishtaweera174 | 7:fd80a0d11658 | 15 | // InitTOFSensors(); |
deepanaishtaweera174 | 1:b188e27eb7da | 16 | // InitMPU(); |
deepanaishtaweera174 | 0:c3a27228c31b | 17 | while(1) { |
deepanaishtaweera174 | 7:fd80a0d11658 | 18 | RunBothMotors(500,500); |
deepanaishtaweera174 | 7:fd80a0d11658 | 19 | // PrintTOFDistances(); |
deepanaishtaweera174 | 1:b188e27eb7da | 20 | // GetAngles(false); |
deepanaishtaweera174 | 0:c3a27228c31b | 21 | } |
deepanaishtaweera174 | 0:c3a27228c31b | 22 | } |