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

Packages sensor data into fixed-size packets and streams over UART. More...

#include <Telemetry.h>

Collaboration diagram for Telemetry:
Collaboration graph

Public Member Functions

 Telemetry (SendableSensorData *ssdArray[], int ssdArrayLength, Stream &rfdSerialConnection)
 Initialize this object.
bool tick (uint32_t currentTime)
 No argument tick function that handles sending data at specified send frequencies.

Detailed Description

Packages sensor data into fixed-size packets and streams over UART.

Note
When to use: periodic downlink of key channels during flight; call tick() every loop to honor per-stream send rates.

Definition at line 63 of file Telemetry.h.

Constructor & Destructor Documentation

◆ Telemetry()

Telemetry::Telemetry ( SendableSensorData * ssdArray[],
int ssdArrayLength,
Stream & rfdSerialConnection )

Initialize this object.

Parameters
ssdArrayArray of pointers to SendableSensorData.
ssdArrayLengthNumber of entries in ssdArray.
rfdSerialConnectionStream connected to the radio/modem.
Note
When to use: instantiate once during setup with the telemetry layout you need for the current flight profile.

Definition at line 5 of file Telemetry.cpp.

Member Function Documentation

◆ tick()

bool Telemetry::tick ( uint32_t currentTime)

No argument tick function that handles sending data at specified send frequencies.

Attention
MUST BE RUN EVERY LOOP
Returns
true if a packet was sent after calling this function.

Definition at line 66 of file Telemetry.cpp.


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