A program which uses twin DC motors and a lidar to drive a robot controlled by a gamepad through an mbed.
Test
This is a test of the repository
Diff: main.cpp
- Revision:
- 15:e012856b3a61
- Parent:
- 14:6f3985a23eeb
- Child:
- 16:73a8f1db6f76
--- a/main.cpp Sat Nov 23 19:45:07 2019 +0000 +++ b/main.cpp Sat Nov 23 20:08:46 2019 +0000 @@ -76,9 +76,12 @@ btMotorUpdate(&rm); } if(LRABYX == 'A') { - turbo = !turbo; + turbo = true; } - + if(LRABYX == 'B') { + turbo = false; + } + } @@ -115,6 +118,7 @@ } else{ stopMotor = false; + led.write(0); }