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:
19:a11ffc903774
Parent:
18:b65fbb795396
Child:
20:dbec34f0e76b
--- a/test.cpp	Mon Feb 24 02:32:59 2014 +0000
+++ b/test.cpp	Tue Feb 25 02:58:16 2014 +0000
@@ -58,9 +58,9 @@
         
         if (reportPacer.pace())
         {
-            pc.printf("%11d %11d %11d %11d | %8d %8d\r\n",
+            pc.printf("%11d %11d %11d %11d | %8d %8d %10f\r\n",
               reckoner.cos, reckoner.sin, reckoner.x, reckoner.y,
-              encoderLeft.getCount(), encoderRight.getCount());
+              encoderLeft.getCount(), encoderRight.getCount(), determinant());
         }
     }
 }