single player mbedKart

Dependencies:   Motor

(notes)

Revision:
32:8a7a72c360ed
Parent:
31:0d925d69cbe2
Child:
33:820a1510cf2e
--- a/main.cpp	Thu Dec 13 00:33:45 2018 +0000
+++ b/main.cpp	Thu Dec 13 01:03:22 2018 +0000
@@ -112,8 +112,8 @@
         else if(C_value < t && R_value > t && G_value < t && B_value < t) {     //Check if cart reaches next checkpoint. cstate is set to 1 upon seeing first color of checkpoint
             victory = true;
         }
-        //pc.printf("[C: %d, R: %d, G: %d, B: %d]", C_value, R_value, G_value, B_value); 
-        ThisThread::sleep_for(50);
+        pc.printf("[C: %d, R: %d, G: %d, B: %d]", C_value, R_value, G_value, B_value); 
+        ThisThread::sleep_for(500);
     }
 }