ObjectFollower
Dependencies: TPixy-Interface
Fork of PlayBack by
Diff: main.cpp
- Revision:
- 0:a355e511bc5d
- Child:
- 1:3e9684e81312
diff -r 000000000000 -r a355e511bc5d main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Feb 01 03:58:00 2018 +0000 @@ -0,0 +1,34 @@ +// ECE4333 +// Authors: Ahmed Sobhy & Brandon Kingman +// Project: Robot + +#include "mbed.h" +#include "WatchdogThread.h" +#include "PiControlThread.h" +#include "ExternalInterruptThread.h" +#include "ui.h" + +/******************************************************************************/ + + + +/******************************************************************************* +* ******** Main Thread ******** +*******************************************************************************/ +int main() // This thread executes first upon reset or power-on. +{ + + // displays msg on terminal + displayStartupMsg(); + + // Initialize and run the threads below: + WatchdogThreadInit(); + PiControlThreadInit(); + ExternalInterruptThreadInit(); + + while(1) + { + consoleUI(); + Thread::wait(500); // Go to sleep for 500 ms + } +}