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

Dependencies:   GeneralDebouncer Pacer PololuEncoder mbed

Fork of DeadReckoning by David Grayson

Revision:
56:55b1473f9e3b
Parent:
54:1ca4e748e098
Child:
57:99bec7fab454
--- a/main.cpp	Thu Apr 16 20:59:35 2015 +0000
+++ b/main.cpp	Thu Apr 16 21:02:38 2015 +0000
@@ -308,7 +308,7 @@
 bool foundStart()
 {
     static int32_t lastX = 0;
-    bool result = lastX < 0 && reckoner.x >= 0 && abs(reckoner.y) < (85 << 16) &&
+    bool result = lastX < 0 && reckoner.x >= 0 && abs(reckoner.y) < (115 << 16) &&
       totalEncoderCounts > 10000 && abs(turnSensor.getAngle()) < turnAngle1 * 30;
     lastX = reckoner.x;
     return result;