![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
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:
- 13:e5b22bfbe67b
- Parent:
- 11:7f2414ecb7ee
diff -r 8eb2c1cccee6 -r e5b22bfbe67b CommonVariable.cpp --- a/CommonVariable.cpp Tue May 06 09:49:08 2014 +0000 +++ b/CommonVariable.cpp Wed May 07 10:25:50 2014 +0000 @@ -1,13 +1,19 @@ +/*********************************** +* CommonVariable.cpp * +************************************/ #include "CommonVariable.h" // The maximam speed of this simulation is 140 MPH const uint8_t MaxSpeed = 140; - +//Initialize all the common varaible bool EngineStat = 0; bool IsOverSpeed = 0; +bool R_LightSide_SW = 0; +bool L_LightSide_SW = 0; +bool R_Indicator_SW = 0; +bool L_Indicator_SW = 0; float Accelerometer_Value = 0; float Brake_Value = 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