ObjectFollower

Dependencies:   TPixy-Interface

Fork of PlayBack by ECE4333 - 2018 - Ahmed & Brandon

Committer:
asobhy
Date:
Fri Mar 02 23:37:31 2018 +0000
Revision:
10:8919b1b76243
Parent:
9:fe56b888985c
Child:
11:9135e5bc2fcf
vision + robot testing

Who changed what in which revision?

UserRevisionLine numberNew contents of line
asobhy 8:a0890fa79084 1 /******************************************************************************/
asobhy 0:a355e511bc5d 2 // ECE4333
asobhy 9:fe56b888985c 3 // LAB Partner 1: Ahmed Sobhy - ID: 3594449
asobhy 9:fe56b888985c 4 // LAB Partner 2: Brandon Kingman - ID: 3470444
asobhy 9:fe56b888985c 5 // Project: Autonomous Robot Design
asobhy 9:fe56b888985c 6 // Instructor: Prof. Chris Diduch
asobhy 8:a0890fa79084 7 /******************************************************************************/
asobhy 0:a355e511bc5d 8
asobhy 0:a355e511bc5d 9 #include "mbed.h"
asobhy 0:a355e511bc5d 10 #include "WatchdogThread.h"
asobhy 0:a355e511bc5d 11 #include "PiControlThread.h"
asobhy 0:a355e511bc5d 12 #include "ExternalInterruptThread.h"
asobhy 0:a355e511bc5d 13 #include "ui.h"
asobhy 10:8919b1b76243 14 #include "CameraThread.h"
asobhy 0:a355e511bc5d 15
asobhy 0:a355e511bc5d 16 /******************************************************************************/
asobhy 0:a355e511bc5d 17
asobhy 0:a355e511bc5d 18
asobhy 0:a355e511bc5d 19
asobhy 0:a355e511bc5d 20 /*******************************************************************************
asobhy 0:a355e511bc5d 21 * ******** Main Thread ********
asobhy 0:a355e511bc5d 22 *******************************************************************************/
asobhy 0:a355e511bc5d 23 int main() // This thread executes first upon reset or power-on.
asobhy 0:a355e511bc5d 24 {
asobhy 0:a355e511bc5d 25
asobhy 0:a355e511bc5d 26 // displays msg on terminal
asobhy 0:a355e511bc5d 27 displayStartupMsg();
asobhy 0:a355e511bc5d 28
asobhy 0:a355e511bc5d 29 // Initialize and run the threads below:
asobhy 0:a355e511bc5d 30 WatchdogThreadInit();
asobhy 10:8919b1b76243 31 CameraThreadInit();
asobhy 0:a355e511bc5d 32 PiControlThreadInit();
asobhy 0:a355e511bc5d 33 ExternalInterruptThreadInit();
asobhy 0:a355e511bc5d 34
asobhy 0:a355e511bc5d 35 while(1)
asobhy 0:a355e511bc5d 36 {
asobhy 10:8919b1b76243 37 //consoleUI();
asobhy 0:a355e511bc5d 38 Thread::wait(500); // Go to sleep for 500 ms
asobhy 0:a355e511bc5d 39 }
asobhy 0:a355e511bc5d 40 }