GIU\ZF
Dependencies: MCP23017 WattBob_TextLCD mbed-rtos mbed
Fork of rtos_basic by
Diff: main.cpp
- Revision:
- 16:0ada6cbd41e2
- Parent:
- 15:524de2b2ef8e
- Child:
- 17:a29ce6fc667c
--- a/main.cpp Tue Mar 27 18:55:43 2018 +0000 +++ b/main.cpp Tue Mar 27 22:03:07 2018 +0000 @@ -1,7 +1,6 @@ #include "core.h" DigitalOut led1(LED3); -DigitalOut led2(LED2); Thread thread; //Merge tasks with same frequency @@ -9,9 +8,10 @@ Mutex liveAccess; float brakeForce = 0.0f; float accelForce = 0.0f; + float newSpeed = 0.0f; float avgSpeed = 0.0f; float odometer = 0.0f; - float newSpeed = 0.0f; + #if DEBUG_MODE string debugLog = "task,execution_time_ms,lastSleep,drift\n\r"; #endif