Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: LSM303DLM Servo SerialGraphicLCD L3G4200D IncrementalEncoder SimpleShell
Logger.h@29:cb2f55fbfe9c, 2018-12-22 (annotated)
- Committer:
- shimniok
- Date:
- Sat Dec 22 20:28:52 2018 +0000
- Revision:
- 29:cb2f55fbfe9c
- Parent:
- 24:a7f92dfc5310
- Child:
- 30:ed791f1f7f7d
Updates to shell. Implemented eventqueue-based data logging for gps. added start/stop/enabled functions to Logger and shell commands to start/stop/status logging
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 | 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 | 24:a7f92dfc5310 | 14 | void log_estimation(); |
| shimniok | 24:a7f92dfc5310 | 15 | |
| shimniok | 24:a7f92dfc5310 | 16 | private: |
| shimniok | 24:a7f92dfc5310 | 17 | const char *_file; |
| shimniok | 24:a7f92dfc5310 | 18 | FILE *_fp; |
| shimniok | 24:a7f92dfc5310 | 19 | }; |
| shimniok | 24:a7f92dfc5310 | 20 | |
| shimniok | 24:a7f92dfc5310 | 21 | #endif |