![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Code to run the microcontrollers on the R5 competition bot
Dependencies: LineSensors mbed
Diff: DriveController.cpp
- Revision:
- 11:5d20ce95e137
- Parent:
- 10:210c8f1e3a92
- Child:
- 12:edcae0f36e9c
diff -r 210c8f1e3a92 -r 5d20ce95e137 DriveController.cpp --- a/DriveController.cpp Mon Nov 03 16:51:27 2014 +0000 +++ b/DriveController.cpp Mon Nov 03 16:53:44 2014 +0000 @@ -60,13 +60,11 @@ if(direction == 'B') { - wheelDirection1 = wheelDirection3 = 1; - wheelDirection2 = wheelDirection4 = 0; + wheelDirection1 = wheelDirection2 = wheelDirection3 = wheelDirection4 = 0; } else { - wheelDirection1 = wheelDirection3 = 0; - wheelDirection2 = wheelDirection4 = 1; + wheelDirection1 = wheelDirection2 = wheelDirection3 = wheelDirection4 = 1; } do