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:
25:73c2eedb3b91
Parent:
24:fc01d9125d3b
Child:
26:7e7c376a7446
--- a/main.cpp	Fri Feb 28 01:07:14 2014 +0000
+++ b/main.cpp	Fri Feb 28 01:26:18 2014 +0000
@@ -49,7 +49,10 @@
     setLeds(1, 0, 0, 0);
     waitForSignalToStart();
     setLeds(0, 1, 0, 0);
-    findLineAndCalibrate();
+    
+    loadCalibrationAndFindLine();
+    //findLineAndCalibrate();
+    
     setLeds(1, 1, 0, 0);
     turnRightToFindLine();
     setLeds(0, 0, 1, 0);
@@ -205,6 +208,7 @@
     }
 }
 
+// THIS IS DEPRECATED.  Instead we are using loadCalibrationAndFindLine.
 void findLineAndCalibrate()
 {
     Timer timer;