David's line following code from the LVBots competition, 2015.
Dependencies: GeneralDebouncer Pacer PololuEncoder mbed
Fork of DeadReckoning by
Diff: test.cpp
- Revision:
- 21:c279c6a83671
- Parent:
- 20:dbec34f0e76b
- Child:
- 22:44c032e59ff5
--- a/test.cpp Thu Feb 27 19:46:35 2014 +0000 +++ b/test.cpp Thu Feb 27 23:20:34 2014 +0000 @@ -4,6 +4,7 @@ #include "motors.h" #include <Pacer.h> +#include "main.h" #include "test.h" #include "leds.h" #include "encoders.h" @@ -21,8 +22,9 @@ while(!button1DefinitelyPressed()) { updateReckonerFromEncoders(); - } - driveHome(); + } + driveHomeAlmost(); + finalSettleIn(); infiniteReckonerReportLoop(); }