Julesnaps / Mbed 2 deprecated Linefollowproject

Dependencies:   m3pi mbed

Revision:
27:8561eeb0bd1d
Parent:
26:e6d82a8ba556
Child:
28:2c93dff934b1
--- a/main.cpp	Tue Oct 11 11:59:43 2022 +0000
+++ b/main.cpp	Tue Oct 11 12:07:50 2022 +0000
@@ -40,7 +40,7 @@
 
 int main() {
     LocalFileSystem local("local"); 
-    m3pi.sensor_auto_calibrate();
+    
     
     /*Base program Variable initiation*/
     float right;
@@ -57,6 +57,8 @@
     
     /*Printing secret cat mission*/
     InitialMessages();
+    m3pi.sensor_auto_calibrate();
+    
     
     /*Create pitlog used to log the number of pitstop */
     PS_CreateLog();
@@ -71,7 +73,6 @@
         {
             TE_LogVoltage(ccount);
             gotoPit = PitTest();
-        
         }
         if (gotoPit == 1)
         {
@@ -130,9 +131,9 @@
     
     m3pi.cls();
     m3pi.locate(0,0);
-    m3pi.printf("eliminate");
+    m3pi.printf("DESTROY");
     m3pi.locate(0,1);
-    m3pi.printf("all cats");
+    m3pi.printf("**CATS**");
     wait(5.0);
     
     m3pi.cls();
@@ -141,9 +142,15 @@
     m3pi.locate(0,1);
     m3pi.printf("%4.4f ",m3pi.pot_voltage());
     wait(10.0);
+    m3pi.locate(0,0);
+    m3pi.printf("ROBOT PÅ");
+    m3pi.locate(0,1);
+    m3pi.printf("BANEN");
+    wait(4.0);
     LCDCountDown(3);
     m3pi.cls();
     m3pi.locate(0,0);
+    
     m3pi.printf("** GO **");
 }
     
@@ -172,7 +179,7 @@
         m3pi.locate(0,0);
         m3pi.printf("Going to");
         m3pi.locate(0,1);
-        m3pi.printf("PIT Party");
+        m3pi.printf("**PIT**");
     }
     return result;
 }
@@ -263,8 +270,7 @@
 
 /*
 void PS_DisplayNumberofPS(void){
-    //Display the number i the pitstop recorded in the logfile
-/*
+    // Display the number i the pitstop recorded in the logfile
     FILE *fptr;
     int x;
     if ((fptr = fopen(PITLOGPATH,"r")) == NULL){