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:
16:8eaa5bc2bdb1
Parent:
12:835a4d24ae3b
Child:
17:2df9861f53ee
--- a/main.cpp	Mon Feb 24 00:21:05 2014 +0000
+++ b/main.cpp	Mon Feb 24 01:26:00 2014 +0000
@@ -7,6 +7,7 @@
 #include "pc_serial.h"
 #include "test.h"
 #include "reckoner.h"
+#include "buttons.h"
 
 int __attribute__((noreturn)) main()
 {
@@ -15,12 +16,14 @@
     // Enable pull-ups on encoder pins and give them a chance to settle.
     encodersInit();
     motorsInit();
+    buttonsInit();
 
     // Test routines
     //testMotors();
     //testEncoders();
     //testLineSensors();
-    testReckoner();
+    //testReckoner();
+    testButtons();
 
     while(1)
     {