Code for autonomous rover for Sparkfun AVC. DataBus won 3rd in 2012 and the same code was used on Troubled Child, a 1986 Jeep Grand Wagoneer to win 1st in 2014.
Dependencies: mbed Watchdog SDFileSystem DigoleSerialDisp
Diff: Schedule/Schedule.cpp
- Revision:
- 23:a34af501ea89
- Parent:
- 0:a6a169de725f
--- a/Schedule/Schedule.cpp Thu Nov 29 19:45:49 2018 +0000 +++ b/Schedule/Schedule.cpp Fri Nov 30 15:41:05 2018 +0000 @@ -38,7 +38,7 @@ _max = max; _mode = m; float slope = ((float) stop - (float) start) / (float) max; - for (int i=0; i <= max; i++) { + for (tick i=0; i <= max; i++) { _schedule[i] = ((int) (slope*(float)i)) + start; } }