ObjectFollower
Dependencies: TPixy-Interface
Fork of PlayBack by
main.cpp
- Committer:
- asobhy
- Date:
- 2018-02-23
- Revision:
- 9:fe56b888985c
- Parent:
- 8:a0890fa79084
- Child:
- 10:8919b1b76243
File content as of revision 9:fe56b888985c:
/******************************************************************************/ // ECE4333 // LAB Partner 1: Ahmed Sobhy - ID: 3594449 // LAB Partner 2: Brandon Kingman - ID: 3470444 // Project: Autonomous Robot Design // Instructor: Prof. Chris Diduch /******************************************************************************/ #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 } }