![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Code to run the microcontrollers on the R5 competition bot
Dependencies: LineSensors mbed
DriveController.cpp@1:fa6eb0c33b2f, 2014-09-24 (annotated)
- 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?
User | Revision | Line number | New 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 |