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
CommonVariable.cpp
- Committer:
- muaiyd
- Date:
- 2014-05-07
- Revision:
- 13:e5b22bfbe67b
- Parent:
- 11:7f2414ecb7ee
File content as of revision 13:e5b22bfbe67b:
/*********************************** * 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;