David's dead reckoning code for the LVBots competition on March 6th. Uses the mbed LPC1768, DRV8835, QTR-3RC, and two DC motors with encoders.
Dependencies: PololuEncoder Pacer mbed GeneralDebouncer
Revision 25:73c2eedb3b91, committed 2014-02-28
- Comitter:
- DavidEGrayson
- Date:
- Fri Feb 28 01:26:18 2014 +0000
- Parent:
- 24:fc01d9125d3b
- Child:
- 26:7e7c376a7446
- Commit message:
- Some stuff. I am about to take away the foundLineTimer in an attempt to make it better at finding the line.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Feb 28 01:07:14 2014 +0000 +++ b/main.cpp Fri Feb 28 01:26:18 2014 +0000 @@ -49,7 +49,10 @@ setLeds(1, 0, 0, 0); waitForSignalToStart(); setLeds(0, 1, 0, 0); - findLineAndCalibrate(); + + loadCalibrationAndFindLine(); + //findLineAndCalibrate(); + setLeds(1, 1, 0, 0); turnRightToFindLine(); setLeds(0, 0, 1, 0); @@ -205,6 +208,7 @@ } } +// THIS IS DEPRECATED. Instead we are using loadCalibrationAndFindLine. void findLineAndCalibrate() { Timer timer;