2018 revision to classic DataBus AVC code.
Dependencies: LSM303DLM Servo SerialGraphicLCD L3G4200D IncrementalEncoder SimpleShell
Logger/Logger.h@36:3095e00eef37, 2019-01-01 (annotated)
- Committer:
- shimniok
- Date:
- Tue Jan 01 17:44:27 2019 +0000
- Revision:
- 36:3095e00eef37
- Parent:
- Logger.h@31:20a95043adb0
File reorganization
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 | 31:20a95043adb0 | 9 | Logger(); |
shimniok | 29:cb2f55fbfe9c | 10 | void start(); |
shimniok | 29:cb2f55fbfe9c | 11 | void stop(); |
shimniok | 29:cb2f55fbfe9c | 12 | bool enabled(); |
shimniok | 24:a7f92dfc5310 | 13 | void log_gps(GpsData gd); |
shimniok | 30:ed791f1f7f7d | 14 | void log_sensors(SensorData sd); |
shimniok | 24:a7f92dfc5310 | 15 | void log_estimation(); |
shimniok | 24:a7f92dfc5310 | 16 | |
shimniok | 24:a7f92dfc5310 | 17 | private: |
shimniok | 31:20a95043adb0 | 18 | char *_file; |
shimniok | 24:a7f92dfc5310 | 19 | FILE *_fp; |
shimniok | 24:a7f92dfc5310 | 20 | }; |
shimniok | 24:a7f92dfc5310 | 21 | |
shimniok | 24:a7f92dfc5310 | 22 | #endif |