GIU\ZF

Dependencies:   MCP23017 WattBob_TextLCD mbed-rtos mbed

Fork of rtos_basic by mbed official

Revision:
17:a29ce6fc667c
Parent:
16:0ada6cbd41e2
Child:
18:d48324fd3440
diff -r 0ada6cbd41e2 -r a29ce6fc667c main.cpp
--- a/main.cpp	Tue Mar 27 22:03:07 2018 +0000
+++ b/main.cpp	Wed Mar 28 00:26:55 2018 +0000
@@ -8,12 +8,16 @@
     Mutex liveAccess;
     float brakeForce = 0.0f;
     float accelForce = 0.0f;
-    float newSpeed = 0.0f;
+    float speed[3] = {0.0f};
     float avgSpeed = 0.0f;
     float odometer = 0.0f;
     
     #if DEBUG_MODE
-    string debugLog = "task,execution_time_ms,lastSleep,drift\n\r";
+    Mutex debugAccess;
+    
+    string debugLogBuffer1 = "task,execution_time_ms,lastSleep,drift\n\r";
+    string debugLogBuffer2 = "";
+    string * debugLog = &debugLogBuffer1;
     #endif
     }