Avionics
Core avionics package for CURE flight computers
Loading...
Searching...
No Matches
printSaver Class Reference

IDataSaver that prints samples to stdout for debugging. More...

#include <DataSaverPrint.h>

Inheritance diagram for printSaver:
Inheritance graph
Collaboration diagram for printSaver:
Collaboration graph

Public Member Functions

int saveDataPoint (const DataPoint &dp, uint8_t name) override
 Print the data point to the console.
Public Member Functions inherited from IDataSaver
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.

Detailed Description

IDataSaver that prints samples to stdout for debugging.

Note
When to use: desktop/unit tests where observing the stream matters more than persisting it.

Definition at line 13 of file DataSaverPrint.h.

Member Function Documentation

◆ saveDataPoint()

int printSaver::saveDataPoint ( const DataPoint & dp,
uint8_t name )
inlineoverridevirtual

Print the data point to the console.

Parameters
dpData point to display.
name8-bit channel identifier.
Note
When to use: inspect saver traffic interactively while troubleshooting.

Implements IDataSaver.

Definition at line 23 of file DataSaverPrint.h.


The documentation for this class was generated from the following file: