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

Packetizes telemetry streams and sends them out over a Stream. More...

#include <Telemetry.h>

Collaboration diagram for Telemetry:
Collaboration graph

Public Member Functions

template<std::size_t N>
 Telemetry (const std::array< SendableSensorData *, N > &streams, Stream &rfdSerialConnection)
 Construct from std::array (convenient and compile-time sized). The std::array must outlive the Telemetry instance.
bool tick (std::uint32_t currentTimeMs)
 Call every loop to send due telemetry streams.

Detailed Description

Packetizes telemetry streams and sends them out over a Stream.

Usage pattern:

Lifetime rule:

  • Telemetry stores a pointer to the provided list of streams (non-owning). The list must outlive Telemetry.

Definition at line 192 of file Telemetry.h.

Constructor & Destructor Documentation

◆ Telemetry()

template<std::size_t N>
Telemetry::Telemetry ( const std::array< SendableSensorData *, N > & streams,
Stream & rfdSerialConnection )
inline

Construct from std::array (convenient and compile-time sized). The std::array must outlive the Telemetry instance.

Definition at line 200 of file Telemetry.h.

Member Function Documentation

◆ tick()

bool Telemetry::tick ( std::uint32_t currentTimeMs)

Call every loop to send due telemetry streams.

Parameters
currentTimeMsCurrent time in milliseconds.
Returns
true if a packet was sent on this tick.

Definition at line 80 of file Telemetry.cpp.


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