This is some awesome robot code
Dependencies: mbed-rtos mbed QEI
Fork of ICRSEurobot13 by
Diff: main.cpp
- Revision:
- 28:4e20b44251c6
- Parent:
- 25:b16f1045108f
- Child:
- 31:ada943ecaceb
diff -r 664e81033846 -r 4e20b44251c6 main.cpp --- a/main.cpp Wed Apr 10 03:48:42 2013 +0000 +++ b/main.cpp Wed Apr 10 04:20:40 2013 +0000 @@ -12,6 +12,7 @@ #include <algorithm> #include "motion.h" #include "MotorControl.h" +#include "system.h" void motortest(); void encodertest(); @@ -92,6 +93,7 @@ Thread::wait(3500); Thread printingThread(Printing::printingloop, NULL, osPriorityLow, 2048); + //measureCPUidle(); //repurpose thread for idle measurement Thread::wait(osWaitForever); }