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
logging/logging.h@25:bb5356402687, 2018-11-30 (annotated)
- Committer:
- shimniok
- Date:
- Fri Nov 30 16:11:53 2018 +0000
- Revision:
- 25:bb5356402687
- Parent:
- 15:01fb4916a5cd
Initial publish of revised version.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
shimniok | 0:a6a169de725f | 1 | #ifndef __LOGGING_H |
shimniok | 0:a6a169de725f | 2 | #define __LOGGING_H |
shimniok | 0:a6a169de725f | 3 | |
shimniok | 0:a6a169de725f | 4 | /** Data logging functions */ |
shimniok | 0:a6a169de725f | 5 | |
shimniok | 0:a6a169de725f | 6 | #include "mbed.h" |
shimniok | 0:a6a169de725f | 7 | #include "SystemState.h" |
shimniok | 0:a6a169de725f | 8 | |
shimniok | 15:01fb4916a5cd | 9 | #define LOGDIR "/log" |
shimniok | 15:01fb4916a5cd | 10 | |
shimniok | 15:01fb4916a5cd | 11 | FILE *openlog(const char *prefix); |
shimniok | 0:a6a169de725f | 12 | bool initLogfile(void); |
shimniok | 15:01fb4916a5cd | 13 | void logData( SystemState *s ); |
shimniok | 0:a6a169de725f | 14 | void closeLogfile(void); |
shimniok | 0:a6a169de725f | 15 | |
shimniok | 15:01fb4916a5cd | 16 | #endif |