Julesnaps / Mbed 2 deprecated Linefollowproject

Dependencies:   m3pi mbed

Branch:
Andreas
Revision:
65:b6dad21c9e0d
Parent:
52:a2f53d9d2bdc
Child:
66:6403ec154b77
--- a/main.cpp	Wed Oct 12 09:27:00 2022 +0000
+++ b/main.cpp	Wed Oct 12 10:43:12 2022 +0000
@@ -19,7 +19,7 @@
 #define D_TERM 20
 
 //  loopcount before test
-#define CYCLEBEFORETEST 1500
+#define LOOPSBEFORETEST 9000
 
 // Textfile paths
 #define PITLOGPATH "/local/pitlog.txt"
@@ -66,7 +66,7 @@
 
     while (1) {
         /* If cycle count divided by 100 does not have a rest. test if pit */
-        if (loopcount % CYCLEBEFORETEST == 0 && gotoPit == 0)
+        if (loopcount % LOOPSBEFORETEST == 0 && gotoPit == 0)
         {
             TE_LogVoltage(loopcount);
             gotoPit = PitTest();