|
Avionics
Core avionics package for CURE flight computers
|
Abstract interface for persisting timestamped data points. More...
#include <DataSaver.h>


Public Member Functions | |
| virtual int | saveDataPoint (const DataPoint &dp, uint8_t name)=0 |
| Persist a data point with a source identifier. | |
| virtual int | saveDataPoint (float data, uint32_t timestamp_ms, uint8_t name) final |
| Convenience overload to construct and save a data point. | |
| virtual bool | begin () |
| Optional hook for initialization. | |
| virtual void | launchDetected (uint32_t launchTimestamp_ms) |
| Notification that launch has been detected. | |
Abstract interface for persisting timestamped data points.
Definition at line 13 of file DataSaver.h.
|
inlinevirtual |
Optional hook for initialization.
Reimplemented in DataSaverBigSD, and DataSaverSPI.
Definition at line 42 of file DataSaver.h.
|
inlinevirtual |
Notification that launch has been detected.
| launchTimestamp_ms | Timestamp of launch, in milliseconds. |
Reimplemented in DataSaverSPI.
Definition at line 52 of file DataSaver.h.
|
pure virtual |
Persist a data point with a source identifier.
| dp | Data point to store. |
| name | 8-bit identifier (sensor/channel) saved alongside the value. |
Implemented in DataSaverBigSD, DataSaverMock, DataSaverSDSerial, DataSaverSPI, and printSaver.
|
inlinefinalvirtual |
Convenience overload to construct and save a data point.
| data | Measurement value. |
| timestamp_ms | Timestamp of the measurement in milliseconds. |
| name | 8-bit source identifier. |
Reimplemented in DataSaverSDSerial.
Definition at line 33 of file DataSaver.h.