![](/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
CommonVariable.cpp@11:7f2414ecb7ee, 2014-05-06 (annotated)
- Committer:
- muaiyd
- Date:
- Tue May 06 09:11:01 2014 +0000
- Revision:
- 11:7f2414ecb7ee
- Parent:
- 7:a92da438d06c
- Child:
- 13:e5b22bfbe67b
Last change; Optemization
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
muaiyd | 0:68ce46607848 | 1 | #include "CommonVariable.h" |
muaiyd | 11:7f2414ecb7ee | 2 | // The maximam speed of this simulation is 140 MPH |
muaiyd | 11:7f2414ecb7ee | 3 | const uint8_t MaxSpeed = 140; |
muaiyd | 1:b409ad65466a | 4 | |
muaiyd | 1:b409ad65466a | 5 | bool EngineStat = 0; |
muaiyd | 1:b409ad65466a | 6 | bool IsOverSpeed = 0; |
muaiyd | 1:b409ad65466a | 7 | float Accelerometer_Value = 0; |
muaiyd | 1:b409ad65466a | 8 | float Brake_Value = 0; |
muaiyd | 1:b409ad65466a | 9 | uint8_t Speed[3] = {0,0,0}; |
muaiyd | 1:b409ad65466a | 10 | uint8_t Average_Speed = 0; |
muaiyd | 1:b409ad65466a | 11 | |
muaiyd | 1:b409ad65466a | 12 | float Odometer_Value = 0; |
muaiyd | 1:b409ad65466a | 13 | uint8_t Counter = 0; |