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

Dependencies:   GeneralDebouncer Pacer PololuEncoder mbed

Fork of DeadReckoning by David Grayson

Revision:
24:fc01d9125d3b
Parent:
22:44c032e59ff5
Child:
31:739b91331f31
--- a/line_tracker.cpp	Fri Feb 28 00:23:00 2014 +0000
+++ b/line_tracker.cpp	Fri Feb 28 01:07:14 2014 +0000
@@ -59,11 +59,12 @@
     uint32_t avg = 0;
     uint32_t sum = 0;
     
+    lineVisible = false;
     for(uint8_t s = 0; s < LINE_SENSOR_COUNT; s++)
     {
         // keep track of whether we see the line at all
         uint16_t value = calibratedValues[s];
-        if (value > 200)
+        if (value > 500)
         {
             lineVisible = true;
         }