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
CAR.h@7:a92da438d06c, 2014-04-07 (annotated)
- Committer:
- muaiyd
- Date:
- Mon Apr 07 17:15:50 2014 +0000
- Revision:
- 7:a92da438d06c
- Parent:
- 1:b409ad65466a
- Child:
- 8:6e55db96c11c
Finish flash indicator lights
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
muaiyd | 0:68ce46607848 | 1 | #ifndef CAR_H |
muaiyd | 0:68ce46607848 | 2 | #define CAR_H |
muaiyd | 0:68ce46607848 | 3 | #include "rtos.h" |
muaiyd | 0:68ce46607848 | 4 | #include "CommonVariable.h" |
muaiyd | 0:68ce46607848 | 5 | |
muaiyd | 0:68ce46607848 | 6 | class CAR { |
muaiyd | 0:68ce46607848 | 7 | public: |
muaiyd | 1:b409ad65466a | 8 | CAR(); |
muaiyd | 1:b409ad65466a | 9 | static void SAVE_ODO(float value); |
muaiyd | 1:b409ad65466a | 10 | static float GET_ODO(); |
muaiyd | 1:b409ad65466a | 11 | static void Accelero_Brake_Read(void const *args); |
muaiyd | 1:b409ad65466a | 12 | static void Average_Speed_Measure(void const *args); |
muaiyd | 1:b409ad65466a | 13 | static void Average_Speed_Show(void const *args); |
muaiyd | 1:b409ad65466a | 14 | static void OverSpeed(void const *args); |
muaiyd | 7:a92da438d06c | 15 | static void Odo_Show_Indicator_Switch_Read(void const *args); |
muaiyd | 1:b409ad65466a | 16 | static void SEND_CAR_VALUES (void const *args); |
muaiyd | 1:b409ad65466a | 17 | static void DUMP_CAR_VALUES_En (void const *args); |
muaiyd | 1:b409ad65466a | 18 | static void DUMP_CAR_VALUES(); |
muaiyd | 7:a92da438d06c | 19 | static void Side_Light_Flash(void const *args); |
muaiyd | 0:68ce46607848 | 20 | private: |
muaiyd | 0:68ce46607848 | 21 | |
muaiyd | 0:68ce46607848 | 22 | }; |
muaiyd | 0:68ce46607848 | 23 | |
muaiyd | 0:68ce46607848 | 24 | #endif |