Julesnaps / Mbed 2 deprecated Linefollowproject

Dependencies:   m3pi mbed

Revision:
31:434a78739a59
Parent:
30:ccf5fa970bd2
Child:
32:570b94fe2c19
--- a/main.cpp	Tue Oct 11 12:38:39 2022 +0000
+++ b/main.cpp	Tue Oct 11 12:42:26 2022 +0000
@@ -16,6 +16,8 @@
 #define I_TERM 0
 #define D_TERM 20
 
+//  Ccount before test
+#define CYCLEBEFORETEST 1500
 
 // Textfile paths
 #define PITLOGPATH "/local/pitlog.txt"
@@ -66,7 +68,7 @@
 
     while (1) {
         /* If cycle count divided by 100 does not have a rest. test if pit */
-        if (ccount % 1500 == 0 && gotoPit == 0)
+        if (ccount % CYCLEBEFORETEST == 0 && gotoPit == 0)
         {
             TE_LogVoltage(ccount);
             gotoPit = PitTest();