![](/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.h
- Revision:
- 7:a92da438d06c
- Parent:
- 1:b409ad65466a
- Child:
- 11:7f2414ecb7ee
diff -r 5037779f6a55 -r a92da438d06c CommonVariable.h --- a/CommonVariable.h Mon Apr 07 15:50:48 2014 +0000 +++ b/CommonVariable.h Mon Apr 07 17:15:50 2014 +0000 @@ -10,10 +10,14 @@ 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 DigitalOut R_Side_Light(p27); +static DigitalOut L_Side_Light(p28); +static DigitalOut R_Side_Indicator(p29); +static DigitalOut L_Side_Indicator(p30); +static DigitalIn LSide_Light_Switch(p6); +static DigitalIn RSide_Light_Switch(p7); +static DigitalIn LSide_Indicator_Switch(p15); +static DigitalIn RSide_Indicator_Switch(p16); static AnalogIn Accelerometer(p19); static AnalogIn Brake(p20); @@ -23,7 +27,6 @@ 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;