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

CommonVariable.cpp

Committer:
muaiyd
Date:
2014-05-06
Revision:
11:7f2414ecb7ee
Parent:
7:a92da438d06c
Child:
13:e5b22bfbe67b

File content as of revision 11:7f2414ecb7ee:

#include "CommonVariable.h"
// The maximam speed of this simulation is 140 MPH
const uint8_t MaxSpeed  = 140; 

bool EngineStat = 0;
bool IsOverSpeed = 0;
float Accelerometer_Value = 0;
float Brake_Value = 0;
uint8_t Speed[3] = {0,0,0};
uint8_t Average_Speed = 0;

float Odometer_Value = 0;
uint8_t Counter = 0;