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 Muaiyd Al-Zandi

Committer:
muaiyd
Date:
Wed May 07 10:25:50 2014 +0000
Revision:
13:e5b22bfbe67b
Parent:
11:7f2414ecb7ee
Final Version

Who changed what in which revision?

UserRevisionLine numberNew contents of line
muaiyd 13:e5b22bfbe67b 1 /***********************************
muaiyd 13:e5b22bfbe67b 2 * CommonVariable.cpp *
muaiyd 13:e5b22bfbe67b 3 ************************************/
muaiyd 0:68ce46607848 4 #include "CommonVariable.h"
muaiyd 11:7f2414ecb7ee 5 // The maximam speed of this simulation is 140 MPH
muaiyd 11:7f2414ecb7ee 6 const uint8_t MaxSpeed = 140;
muaiyd 13:e5b22bfbe67b 7 //Initialize all the common varaible
muaiyd 1:b409ad65466a 8 bool EngineStat = 0;
muaiyd 1:b409ad65466a 9 bool IsOverSpeed = 0;
muaiyd 13:e5b22bfbe67b 10 bool R_LightSide_SW = 0;
muaiyd 13:e5b22bfbe67b 11 bool L_LightSide_SW = 0;
muaiyd 13:e5b22bfbe67b 12 bool R_Indicator_SW = 0;
muaiyd 13:e5b22bfbe67b 13 bool L_Indicator_SW = 0;
muaiyd 1:b409ad65466a 14 float Accelerometer_Value = 0;
muaiyd 1:b409ad65466a 15 float Brake_Value = 0;
muaiyd 1:b409ad65466a 16 uint8_t Speed[3] = {0,0,0};
muaiyd 1:b409ad65466a 17 uint8_t Average_Speed = 0;
muaiyd 1:b409ad65466a 18 float Odometer_Value = 0;
muaiyd 1:b409ad65466a 19 uint8_t Counter = 0;