Avionics
Core avionics package for CURE flight computers
Loading...
Searching...
No Matches
SendableSensorData Struct Reference

Bundles one or more SensorDataHandler pointers for telemetry packing. More...

#include <Telemetry.h>

Collaboration diagram for SendableSensorData:
Collaboration graph

Public Member Functions

 SendableSensorData (SensorDataHandler *_singleSDH, SensorDataHandler **_multiSDH, int _multiSDHLength, int _multiSDHDataLabel, uint8_t _sendFrequencyHz)
bool shouldBeSent (uint32_t time)
 True if the packet should be sent.
void markWasSent (uint32_t time)
 Run when the packet is sent.

Public Attributes

SensorDataHandlersingleSDH
SensorDataHandler ** multiSDH
int multiSDHLength
int multiSDHDataLabel
int sendFrequencyHz
uint32_t lastSentTimestamp

Detailed Description

Bundles one or more SensorDataHandler pointers for telemetry packing.

Parameters
singleSDHSingle handler to send when not using an array.
multiSDHArray of handlers to send together (optional).
multiSDHLengthLength of the multiSDH array.
multiSDHDataLabelLabel used for the multi array payload.
sendFrequencyHzDesired transmission rate in hertz.
Note
When to use: define the telemetry mix (single vs. grouped streams) fed to Telemetry before calling tick().

Definition at line 25 of file Telemetry.h.

Constructor & Destructor Documentation

◆ SendableSensorData()

SendableSensorData::SendableSensorData ( SensorDataHandler * _singleSDH,
SensorDataHandler ** _multiSDH,
int _multiSDHLength,
int _multiSDHDataLabel,
uint8_t _sendFrequencyHz )
inline

Definition at line 33 of file Telemetry.h.

Member Function Documentation

◆ markWasSent()

void SendableSensorData::markWasSent ( uint32_t time)
inline

Run when the packet is sent.

Definition at line 53 of file Telemetry.h.

◆ shouldBeSent()

bool SendableSensorData::shouldBeSent ( uint32_t time)
inline

True if the packet should be sent.

Definition at line 45 of file Telemetry.h.

Member Data Documentation

◆ lastSentTimestamp

uint32_t SendableSensorData::lastSentTimestamp

Definition at line 31 of file Telemetry.h.

◆ multiSDH

SensorDataHandler** SendableSensorData::multiSDH

Definition at line 27 of file Telemetry.h.

◆ multiSDHDataLabel

int SendableSensorData::multiSDHDataLabel

Definition at line 29 of file Telemetry.h.

◆ multiSDHLength

int SendableSensorData::multiSDHLength

Definition at line 28 of file Telemetry.h.

◆ sendFrequencyHz

int SendableSensorData::sendFrequencyHz

Definition at line 30 of file Telemetry.h.

◆ singleSDH

SensorDataHandler* SendableSensorData::singleSDH

Definition at line 26 of file Telemetry.h.


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