David's dead reckoning code for the LVBots competition on March 6th. Uses the mbed LPC1768, DRV8835, QTR-3RC, and two DC motors with encoders.

Dependencies:   PololuEncoder Pacer mbed GeneralDebouncer

Revision:
18:b65fbb795396
Parent:
17:2df9861f53ee
Child:
19:a11ffc903774
--- a/test.cpp	Mon Feb 24 01:38:55 2014 +0000
+++ b/test.cpp	Mon Feb 24 02:32:59 2014 +0000
@@ -18,7 +18,7 @@
 void testDriveHome()
 {
     led1 = 1;   
-    while(button1DefinitelyPressed())
+    while(!button1DefinitelyPressed())
     {
         updateReckonerFromEncoders();
     }