David's line following code from the LVBots competition, 2015.

Dependencies:   GeneralDebouncer Pacer PololuEncoder mbed

Fork of DeadReckoning by David Grayson

Revision:
54:1ca4e748e098
Parent:
53:73565a3ef5c5
Child:
56:55b1473f9e3b
--- 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;