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

Revision:
1:b409ad65466a
Parent:
0:68ce46607848
Child:
7:a92da438d06c
--- a/CommonVariable.h	Wed Apr 02 09:13:57 2014 +0000
+++ b/CommonVariable.h	Mon Apr 07 15:19:37 2014 +0000
@@ -3,11 +3,31 @@
 #include "MCP23017.h"
 #include "WattBob_TextLCD.h"
 #include "mbed.h"
+#include "Servo.h"
 
+static Servo SpeedShow_Servo(p21);
 static MCP23017 Port(p9,p10,0x40) ;      // 16-bit object with I2C Chip MCP23017 
 static WattBob_TextLCD LCD(&Port);       // A 2*16 chacater LCD object
+static BusOut OverSpeedLED(LED1 , LED2 , LED3 , LED4);
+static DigitalIn EngineSwitch(p5);
+static DigitalOut L1(p27);
+static DigitalOut L2(p28);
+static DigitalOut L3(p29);
+static DigitalOut L4(p30);
+static AnalogIn Accelerometer(p19);
+static AnalogIn Brake(p20);
 
-static DigitalOut led2(LED2);
-static DigitalOut led1(LED1);
+extern const uint8_t MaxSpeed;
+
+extern bool EngineStat;
+extern bool IsOverSpeed;
+extern float Accelerometer_Value;
+extern float Brake_Value;
+extern float SpeedShow;
+extern uint8_t Speed[3];
+extern uint8_t Average_Speed;
+extern float Odometer_Value;
+extern uint8_t Counter;
+
 
 #endif
\ No newline at end of file