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-04-07
Revision:
7:a92da438d06c
Parent:
1:b409ad65466a
Child:
11:7f2414ecb7ee

File content as of revision 7:a92da438d06c:

#include "CommonVariable.h"

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;