David's line following code from the LVBots competition, 2015.
Dependencies: GeneralDebouncer Pacer PololuEncoder mbed
Fork of DeadReckoning by
Diff: test.cpp
- Revision:
- 19:a11ffc903774
- Parent:
- 18:b65fbb795396
- Child:
- 20:dbec34f0e76b
--- a/test.cpp Mon Feb 24 02:32:59 2014 +0000 +++ b/test.cpp Tue Feb 25 02:58:16 2014 +0000 @@ -58,9 +58,9 @@ if (reportPacer.pace()) { - pc.printf("%11d %11d %11d %11d | %8d %8d\r\n", + pc.printf("%11d %11d %11d %11d | %8d %8d %10f\r\n", reckoner.cos, reckoner.sin, reckoner.x, reckoner.y, - encoderLeft.getCount(), encoderRight.getCount()); + encoderLeft.getCount(), encoderRight.getCount(), determinant()); } } }