2018 revision to classic DataBus AVC code.
Dependencies: LSM303DLM Servo SerialGraphicLCD L3G4200D IncrementalEncoder SimpleShell
Logger.h@24:a7f92dfc5310, 2018-12-21 (annotated)
- Committer:
- shimniok
- Date:
- Fri Dec 21 20:04:09 2018 +0000
- Revision:
- 24:a7f92dfc5310
- Child:
- 29:cb2f55fbfe9c
thread changes, added stats command, added sd filesystem, other minor changes
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
shimniok | 24:a7f92dfc5310 | 1 | #ifndef __Logger_H |
shimniok | 24:a7f92dfc5310 | 2 | #define __Logger_H |
shimniok | 24:a7f92dfc5310 | 3 | |
shimniok | 24:a7f92dfc5310 | 4 | #include "mbed.h" |
shimniok | 24:a7f92dfc5310 | 5 | #include "SystemState.h" |
shimniok | 24:a7f92dfc5310 | 6 | |
shimniok | 24:a7f92dfc5310 | 7 | class Logger { |
shimniok | 24:a7f92dfc5310 | 8 | public: |
shimniok | 24:a7f92dfc5310 | 9 | Logger(const char *file); |
shimniok | 24:a7f92dfc5310 | 10 | void log_gps(GpsData gd); |
shimniok | 24:a7f92dfc5310 | 11 | void log_estimation(); |
shimniok | 24:a7f92dfc5310 | 12 | |
shimniok | 24:a7f92dfc5310 | 13 | private: |
shimniok | 24:a7f92dfc5310 | 14 | const char *_file; |
shimniok | 24:a7f92dfc5310 | 15 | FILE *_fp; |
shimniok | 24:a7f92dfc5310 | 16 | void _open(); |
shimniok | 24:a7f92dfc5310 | 17 | void _close(); |
shimniok | 24:a7f92dfc5310 | 18 | }; |
shimniok | 24:a7f92dfc5310 | 19 | |
shimniok | 24:a7f92dfc5310 | 20 | #endif |