Basic Line Following Program motors: p25, p10 inputs: p15, p16 Current settings: lineToSpeedFactor = 10 / 3 speedModifier = -4

Dependencies:   mbed

Fork of RenBuggyLineFollower by Dan Argust

This small program lets a buggy follow a line (black line on white background)

Revision:
5:569a11ffee94
Parent:
4:8f614e0b1cea
Child:
6:ffbaca2bd3da
--- a/main.cpp	Thu Jul 14 15:10:49 2016 +0000
+++ b/main.cpp	Fri Jul 15 10:36:00 2016 +0000
@@ -53,7 +53,7 @@
         else
             isSearching = false;
         counter++;
-        if (counter > 300) {
+        if (counter > 600) {
             newLine = 3.0 - oldLine;
             counter = 0;
         }