|
Avionics
Core avionics package for CURE flight computers
|
Packetizes telemetry streams and sends them out over a Stream. More...
#include <Telemetry.h>

Public Member Functions | |
| template<std::size_t N> | |
| Telemetry (const std::array< SendableSensorData *, N > &streams, Stream &rfdSerialConnection, CommandLine *commandLine=nullptr) | |
| Construct from std::array (convenient and compile-time sized). The std::array must outlive the Telemetry instance. | |
| bool | tick (std::uint32_t currentTime_ms) |
| Call every loop to send due telemetry streams. | |
| bool | isInCommandMode () const |
| True if telemetry is currently paused for radio command mode. | |
| void | setCommandLine (CommandLine *newCommandLine) |
| Optional command line interface to drive while telemetry manages command mode. | |
| void | lockCommandModeTimeout (std::uint32_t lockDuration_ms) |
| Temporarily disable command-mode inactivity timeout. | |
| void | unlockCommandModeTimeout () |
| Re-enable command-mode inactivity timeout immediately. | |
| void | forceExitCommandMode () |
| Immediately exit command mode if currently active. | |
Packetizes telemetry streams and sends them out over a Stream.
Usage pattern:
Lifetime rule:
Definition at line 190 of file Telemetry.h.
|
inline |
Construct from std::array (convenient and compile-time sized). The std::array must outlive the Telemetry instance.
Definition at line 198 of file Telemetry.h.
| void Telemetry::forceExitCommandMode | ( | ) |
Immediately exit command mode if currently active.
Definition at line 100 of file Telemetry.cpp.
|
inline |
True if telemetry is currently paused for radio command mode.
Definition at line 217 of file Telemetry.h.
| void Telemetry::lockCommandModeTimeout | ( | std::uint32_t | lockDuration_ms | ) |
Temporarily disable command-mode inactivity timeout.
| lockDuration_ms | Duration before auto-unlock fallback. |
Definition at line 80 of file Telemetry.cpp.
|
inline |
Optional command line interface to drive while telemetry manages command mode.
Definition at line 222 of file Telemetry.h.
| bool Telemetry::tick | ( | std::uint32_t | currentTime_ms | ) |
Call every loop to send due telemetry streams.
| currentTime_ms | Current time in milliseconds. |
Definition at line 240 of file Telemetry.cpp.
| void Telemetry::unlockCommandModeTimeout | ( | ) |
Re-enable command-mode inactivity timeout immediately.
Definition at line 91 of file Telemetry.cpp.