Avionics
Core avionics package for CURE flight computers
Loading...
Searching...
No Matches
DataSaverPrint.h
Go to the documentation of this file.
1#ifndef DATA_SAVER_PRINT_H
2#define DATA_SAVER_PRINT_H
3
6#include <iostream>
7
13class printSaver : public IDataSaver {
14
15 public:
23 int saveDataPoint(const DataPoint& dp, uint8_t name) override {
24 std::cout << name << " " << dp.timestamp_ms << " " << dp.data << std::endl;
25 return 0;
26 }
27};
28
29#endif
Timestamped float measurement container.
Definition DataPoint.h:11
float data
Definition DataPoint.h:14
uint32_t timestamp_ms
Definition DataPoint.h:13
Abstract interface for persisting timestamped data points.
Definition DataSaver.h:13
IDataSaver that prints samples to stdout for debugging.
int saveDataPoint(const DataPoint &dp, uint8_t name) override
Print the data point to the console.