
Lol smth
Dependencies: LocalPositionSystem MMA8451Q Motor_Driver Sensors mbed
Fork of TDP_main_BartFork by
Diff: main.cpp
- Revision:
- 2:e2adb7ab2947
- Parent:
- 1:eace997e9a93
- Child:
- 3:0274e082582e
--- a/main.cpp Fri Feb 13 15:51:24 2015 +0000 +++ b/main.cpp Fri Feb 13 16:04:07 2015 +0000 @@ -1,12 +1,24 @@ +/* +****** MAIN PROGRAM ****** + +TODO : organisational routine still to be decided. +3 main approaches: +-sequential prirority based tasks +-Timer/Ticker driven with sequential prirority based tasks +- interrupt driven from sensor inputs + +Please consider that although it is an embedded envrionment we are NOT creating a HARD-TIME real time system - delays can be dealt with +*/ + + + #include "mbed.h" #include "sensor_measure.h" -DigitalOut myled(LED1); - int main() { -sensor_initialise(); +sensor_initialise(); // initialise sensor values wait(1); //give time to set up the system }