David's line following code from the LVBots competition, 2015.
Dependencies: GeneralDebouncer Pacer PololuEncoder mbed
Fork of DeadReckoning by
Revision 54:1ca4e748e098, committed 2015-04-16
- Comitter:
- DavidEGrayson
- Date:
- Thu Apr 16 20:21:13 2015 +0000
- Parent:
- 53:73565a3ef5c5
- Child:
- 55:05c8f439497d
- Commit message:
- tinkering with the lookaheadamount parameter;
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Apr 16 00:07:27 2015 +0000 +++ b/main.cpp Thu Apr 16 20:21:13 2015 +0000 @@ -331,8 +331,8 @@ uint32_t angle1 = turnSensor.getAngleUnsigned(); - // 1000 encoder ticks - const uint32_t lookAheadAmount = 4000 / logSpacing; + // 2000 encoder ticks + const uint32_t lookAheadAmount = 3000 / logSpacing; // Figure out how far away the next turn is. uint32_t i = logIndex;