Basic Line Following Program

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
DanArgust
Date:
Fri Jul 15 10:36:00 2016 +0000
Parent:
4:8f614e0b1cea
Commit message:
Line following robot; Current settings:; inputs = 2; lineToSpeedFactor = 10 / 3; speedModifier = -4

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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;
         }