David's line following code from the LVBots competition, 2015.

Dependencies:   GeneralDebouncer Pacer PololuEncoder mbed

Fork of DeadReckoning by David Grayson

Revision:
50:517c0f0e621f
Parent:
46:f11cb4f93aac
Child:
55:05c8f439497d
--- a/turn_sensor.cpp	Wed Apr 15 21:58:21 2015 +0000
+++ b/turn_sensor.cpp	Wed Apr 15 22:53:33 2015 +0000
@@ -1,6 +1,11 @@
 #include "turn_sensor.h"
 #include "l3g.h"
 
+void TurnSensor::reset()
+{
+    angleUnsigned = 0;
+}
+
 void TurnSensor::start()
 {
     timer.start();