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
- Committer:
- muaiyd
- Date:
- 2014-04-07
- Revision:
- 4:952a2d814fb1
- Parent:
- 1:b409ad65466a
File content as of revision 4:952a2d814fb1:
#ifndef CAR_H #define CAR_H #include "rtos.h" #include "CommonVariable.h" class CAR { public: CAR(); static void SAVE_ODO(float value); static float GET_ODO(); static void Accelero_Brake_Read(void const *args); static void Average_Speed_Measure(void const *args); static void Average_Speed_Show(void const *args); static void OverSpeed(void const *args); static void Odometer_Measure(void const *args); static void Odometer_Show(void const *args); static void SEND_CAR_VALUES (void const *args); static void DUMP_CAR_VALUES_En (void const *args); static void DUMP_CAR_VALUES(); private: uint32_t Element_Counter_W ; uint32_t Element_Counter_R ; typedef struct { uint8_t Mail_Average_Speed; float Mail_Accelerometer_Value; float Mail_Brake_Value; uint32_t Counter; } CAR_MAIL; static Mail<CAR_MAIL, 100> mail_box; }; #endif