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: Config/Config.cpp
- Revision:
- 3:42f3821c4e54
- Parent:
- 1:cb84b477886c
- Child:
- 9:39c0ff43332b
diff -r fbc6e3cf3ed8 -r 42f3821c4e54 Config/Config.cpp --- a/Config/Config.cpp Thu Jun 06 13:40:23 2013 +0000 +++ b/Config/Config.cpp Fri Jun 07 14:45:46 2013 +0000 @@ -10,7 +10,8 @@ // TODO: 3: mod waypoints to include speed after waypoint -Config::Config() +Config::Config(): + loaded(false) { // not much to do here, yet. } @@ -143,5 +144,7 @@ if (fp != 0) fclose(fp); + loaded = confStatus; + return confStatus; }