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:
22:44c032e59ff5
Parent:
21:c279c6a83671
Child:
46:df2c2d25c070
--- a/line_tracker.h	Thu Feb 27 23:20:34 2014 +0000
+++ b/line_tracker.h	Fri Feb 28 00:16:49 2014 +0000
@@ -22,6 +22,10 @@
     void readRawValues();
     void updateCalibratedValues();
     void updateLineStatus();
+
+    uint8_t calibrationState;
+    uint16_t recentValuesMax[LINE_SENSOR_COUNT];
+    uint16_t recentValuesMin[LINE_SENSOR_COUNT];
     
     bool lineVisible;
     uint16_t linePosition;