David's line following code from the LVBots competition, 2015.
Dependencies: GeneralDebouncer Pacer PololuEncoder mbed
Fork of DeadReckoning by
Diff: main.cpp
- Revision:
- 25:73c2eedb3b91
- Parent:
- 24:fc01d9125d3b
- Child:
- 26:7e7c376a7446
--- 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;