This is some awesome robot code
Dependencies: mbed-rtos mbed QEI
Fork of ICRSEurobot13 by
Diff: main.cpp
- Revision:
- 71:eb1956c2d316
- Parent:
- 67:be3ea5450cc7
- Child:
- 84:00c799fd10a7
--- a/main.cpp Sun Apr 14 22:02:21 2013 +0000 +++ b/main.cpp Mon Apr 15 10:52:36 2013 +0000 @@ -81,7 +81,13 @@ motion_timer.start(50); Thread printingThread(Printing::printingloop, NULL, osPriorityLow, 2048); - + + DigitalIn startcord(P_START_CORD); + startcord.mode(PullUp); + while(!startcord) + Thread::wait(50); + aithread.signal_set(0x2); //Tell AI thread that its time to go + measureCPUidle(); //repurpose thread for idle measurement /* MotorControl::set_omegacmd(0);