David's line following code from the LVBots competition, 2015.
Dependencies: GeneralDebouncer Pacer PololuEncoder mbed
Fork of DeadReckoning by
Revision 57:99bec7fab454, committed 2015-04-16
- Comitter:
- DavidEGrayson
- Date:
- Thu Apr 16 22:00:15 2015 +0000
- Parent:
- 56:55b1473f9e3b
- Commit message:
- Doubled the encoder counts for indicating the end of the course because we might have to start a little bit back from the finish line.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 55b1473f9e3b -r 99bec7fab454 main.cpp --- a/main.cpp Thu Apr 16 21:02:38 2015 +0000 +++ b/main.cpp Thu Apr 16 22:00:15 2015 +0000 @@ -408,7 +408,7 @@ nextLogEncoderCount = 0; } - if (lapsCompleted == 3 && totalEncoderCounts > 2000) + if (lapsCompleted == 3 && totalEncoderCounts > 4000) { // Classy move: know when you are done with the competition and stop automatically. // (Of course, there is a risk that this will backfire!)