ObjectFollower
Dependencies: TPixy-Interface
Fork of PlayBack by
main.cpp
- Committer:
- asobhy
- Date:
- 2018-02-03
- Revision:
- 1:3e9684e81312
- Parent:
- 0:a355e511bc5d
- Child:
- 4:417e475239c7
File content as of revision 1:3e9684e81312:
// 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) { consoleUI2(); Thread::wait(500); // Go to sleep for 500 ms } }