![](/media/cache/profiles/2012_sf_avc_095.jpg.50x50_q85.jpg)
2018 revision to classic DataBus AVC code.
Dependencies: LSM303DLM Servo SerialGraphicLCD L3G4200D IncrementalEncoder SimpleShell
Logger/Logger.h@44:0d72a8a1288a, 2019-01-07 (annotated)
- Committer:
- shimniok
- Date:
- Mon Jan 07 16:47:33 2019 +0000
- Revision:
- 44:0d72a8a1288a
- Parent:
- 36:3095e00eef37
Rewrote TinyGPS -> NMEA, GPS::read() now returns struct
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 |