This is some awesome robot code
Dependencies: mbed-rtos mbed QEI
Fork of ICRSEurobot13 by
System/system.h@28:4e20b44251c6, 2013-04-10 (annotated)
- Committer:
- madcowswe
- Date:
- Wed Apr 10 04:20:40 2013 +0000
- Revision:
- 28:4e20b44251c6
Idle CPU measure implemented, not tested
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
madcowswe | 28:4e20b44251c6 | 1 | |
madcowswe | 28:4e20b44251c6 | 2 | extern Timer SystemTime; |
madcowswe | 28:4e20b44251c6 | 3 | extern float CpuUsage; //1.0f = completely busy, 0.0f = completely idle |
madcowswe | 28:4e20b44251c6 | 4 | |
madcowswe | 28:4e20b44251c6 | 5 | //run this on an "idle" priority thread to measure cpu usage |
madcowswe | 28:4e20b44251c6 | 6 | void measureCPUidle (void const* = NULL); |