Lol smth

Dependencies:   LocalPositionSystem MMA8451Q Motor_Driver Sensors mbed

Fork of TDP_main_BartFork by Yelfie

Committer:
Reckstyle
Date:
Fri Feb 13 16:04:07 2015 +0000
Revision:
2:e2adb7ab2947
Parent:
1:eace997e9a93
Child:
3:0274e082582e
Comments in main program added

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Reckstyle 2:e2adb7ab2947 1 /*
Reckstyle 2:e2adb7ab2947 2 ****** MAIN PROGRAM ******
Reckstyle 2:e2adb7ab2947 3
Reckstyle 2:e2adb7ab2947 4 TODO : organisational routine still to be decided.
Reckstyle 2:e2adb7ab2947 5 3 main approaches:
Reckstyle 2:e2adb7ab2947 6 -sequential prirority based tasks
Reckstyle 2:e2adb7ab2947 7 -Timer/Ticker driven with sequential prirority based tasks
Reckstyle 2:e2adb7ab2947 8 - interrupt driven from sensor inputs
Reckstyle 2:e2adb7ab2947 9
Reckstyle 2:e2adb7ab2947 10 Please consider that although it is an embedded envrionment we are NOT creating a HARD-TIME real time system - delays can be dealt with
Reckstyle 2:e2adb7ab2947 11 */
Reckstyle 2:e2adb7ab2947 12
Reckstyle 2:e2adb7ab2947 13
Reckstyle 2:e2adb7ab2947 14
Reckstyle 0:5ca0450111f3 15 #include "mbed.h"
Reckstyle 0:5ca0450111f3 16 #include "sensor_measure.h"
Reckstyle 0:5ca0450111f3 17
Reckstyle 0:5ca0450111f3 18
Reckstyle 0:5ca0450111f3 19 int main() {
Reckstyle 0:5ca0450111f3 20
Reckstyle 2:e2adb7ab2947 21 sensor_initialise(); // initialise sensor values
Reckstyle 0:5ca0450111f3 22 wait(1); //give time to set up the system
Reckstyle 0:5ca0450111f3 23
Reckstyle 0:5ca0450111f3 24 }