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:
21:c279c6a83671
Parent:
20:dbec34f0e76b
Child:
22:44c032e59ff5
--- a/test.cpp	Thu Feb 27 19:46:35 2014 +0000
+++ b/test.cpp	Thu Feb 27 23:20:34 2014 +0000
@@ -4,6 +4,7 @@
 #include "motors.h"
 #include <Pacer.h>
 
+#include "main.h"
 #include "test.h"
 #include "leds.h"
 #include "encoders.h"
@@ -21,8 +22,9 @@
     while(!button1DefinitelyPressed())
     {
         updateReckonerFromEncoders();
-    }   
-    driveHome();
+    }
+    driveHomeAlmost();
+    finalSettleIn();
     infiniteReckonerReportLoop();     
 }