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

Dependencies:   GeneralDebouncer Pacer PololuEncoder mbed

Fork of DeadReckoning by David Grayson

Files at this revision

API Documentation at this revision

Comitter:
DavidEGrayson
Date:
Fri Feb 28 01:26:18 2014 +0000
Parent:
24:fc01d9125d3b
Child:
26:7e7c376a7446
Commit message:
Some stuff. I am about to take away the foundLineTimer in an attempt to make it better at finding the line.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Feb 28 01:07:14 2014 +0000
+++ b/main.cpp	Fri Feb 28 01:26:18 2014 +0000
@@ -49,7 +49,10 @@
     setLeds(1, 0, 0, 0);
     waitForSignalToStart();
     setLeds(0, 1, 0, 0);
-    findLineAndCalibrate();
+    
+    loadCalibrationAndFindLine();
+    //findLineAndCalibrate();
+    
     setLeds(1, 1, 0, 0);
     turnRightToFindLine();
     setLeds(0, 0, 1, 0);
@@ -205,6 +208,7 @@
     }
 }
 
+// THIS IS DEPRECATED.  Instead we are using loadCalibrationAndFindLine.
 void findLineAndCalibrate()
 {
     Timer timer;