This is car control simulation by using Mbed controller and real time operating system.
Dependencies: MCP23017 Servo WattBob_TextLCD mbed-rtos mbed
Fork of Ass3 by
Diff: CommonVariable.cpp
- Revision:
- 1:b409ad65466a
- Parent:
- 0:68ce46607848
- Child:
- 7:a92da438d06c
--- a/CommonVariable.cpp Wed Apr 02 09:13:57 2014 +0000 +++ b/CommonVariable.cpp Mon Apr 07 15:19:37 2014 +0000 @@ -1,1 +1,14 @@ #include "CommonVariable.h" + +const uint8_t MaxSpeed = 140; + +bool EngineStat = 0; +bool IsOverSpeed = 0; +float Accelerometer_Value = 0; +float Brake_Value = 0; +float SpeedShow = 0; +uint8_t Speed[3] = {0,0,0}; +uint8_t Average_Speed = 0; + +float Odometer_Value = 0; +uint8_t Counter = 0; \ No newline at end of file