Julesnaps / Mbed 2 deprecated Linefollowproject

Dependencies:   m3pi mbed

Branch:
Andreas
Revision:
52:a2f53d9d2bdc
Parent:
50:e7b27b75ddd9
Child:
65:b6dad21c9e0d
diff -r d0eb50427e4b -r a2f53d9d2bdc main.cpp
--- a/main.cpp	Wed Oct 12 09:08:23 2022 +0000
+++ b/main.cpp	Wed Oct 12 09:27:00 2022 +0000
@@ -18,7 +18,7 @@
 #define I_TERM 0
 #define D_TERM 20
 
-//  Ccount before test
+//  loopcount before test
 #define CYCLEBEFORETEST 1500
 
 // Textfile paths
@@ -54,7 +54,7 @@
 
     /*Team 7 Variabels*/
     int gotoPit = 0; // wether or not the robot is heading to pit. Initialstate false. 
-    int ccount = 0; //used to count cycles
+    int loopcount = 0; //used to count loops
     
     /*Printing secret cat mission*/
     InitialMessages();
@@ -66,9 +66,9 @@
 
     while (1) {
         /* If cycle count divided by 100 does not have a rest. test if pit */
-        if (ccount % CYCLEBEFORETEST == 0 && gotoPit == 0)
+        if (loopcount % CYCLEBEFORETEST == 0 && gotoPit == 0)
         {
-            TE_LogVoltage(ccount);
+            TE_LogVoltage(loopcount);
             gotoPit = PitTest();
         }
         if (gotoPit == 1)
@@ -114,7 +114,7 @@
         m3pi.left_motor(left);
         m3pi.right_motor(right);
         
-    ccount++;
+    loopcount++;
     }
     // PS_DisplayNumberofPS();