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:
12:835a4d24ae3b
Parent:
10:e4dd36148539
Child:
13:bba5b3abd13f
--- a/test.cpp	Sat Feb 22 04:53:35 2014 +0000
+++ b/test.cpp	Sun Feb 23 22:23:34 2014 +0000
@@ -9,9 +9,23 @@
 #include "encoders.h"
 #include "pc_serial.h"
 #include "line_sensors.h"
+#include "reckoner.h"
 
 void printBar(const char * name, uint16_t adcResult);
 
+void testReckoner()
+{
+    while(1)
+    {
+        updateReckonerFromEncoders();
+        led1 = (reckoner.x > 0);
+        led2 = (reckoner.y > 0);
+        led3 = (reckoner.cos > 0);
+        led4 = (reckoner.sin > 0);
+        
+    }
+}
+
 void testLineSensors()
 {
     led1 = 1;