2018 revision to classic DataBus AVC code.

Dependencies:   LSM303DLM Servo SerialGraphicLCD L3G4200D IncrementalEncoder SimpleShell

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?

UserRevisionLine numberNew 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