Code to run the microcontrollers on the R5 competition bot

Dependencies:   LineSensors mbed

Committer:
Hypna
Date:
Wed Sep 24 21:03:56 2014 +0000
Revision:
1:fa6eb0c33b2f
Parent:
0:e60f22c1d573
Child:
2:d0ce8e26cbc4
a little more work. a couple adjustments

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Hypna 0:e60f22c1d573 1 #include "DriveController.h"
Hypna 0:e60f22c1d573 2
Hypna 0:e60f22c1d573 3 DriveController::void go()
Hypna 0:e60f22c1d573 4 {
Hypna 0:e60f22c1d573 5
Hypna 0:e60f22c1d573 6 }
Hypna 0:e60f22c1d573 7
Hypna 1:fa6eb0c33b2f 8 DriveController::void move(Direction direction)
Hypna 1:fa6eb0c33b2f 9 {
Hypna 1:fa6eb0c33b2f 10 if(orientation != direction)
Hypna 1:fa6eb0c33b2f 11 {
Hypna 1:fa6eb0c33b2f 12 bool divert;
Hypna 1:fa6eb0c33b2f 13 while(true)
Hypna 1:fa6eb0c33b2f 14 {
Hypna 1:fa6eb0c33b2f 15 readSensors();
Hypna 1:fa6eb0c33b2f 16