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

Dependencies:   GeneralDebouncer Pacer PololuEncoder mbed

Fork of DeadReckoning by David Grayson

Revision:
38:5e93a479c244
Parent:
37:23000a47ed2b
Child:
39:a5e25fd52ff8
--- a/main.cpp	Thu Mar 06 05:11:46 2014 +0000
+++ b/main.cpp	Thu Mar 13 17:49:43 2014 +0000
@@ -183,8 +183,13 @@
     while(!button1DefinitelyPressed())
     {
         updateReckonerFromEncoders();
-    }   
+    }
     reckoner.reset();
+    while(button1DefinitelyPressed())
+    {
+        updateReckonerFromEncoders();
+    }
+    wait(0.2);
 }
 
 // Keep the robot pointing the in the right direction (1, 0).