MRAS
Multi Rocket Avionics System
Loading...
Searching...
No Matches
TelemetryMessage Class Reference

A base class for all telemetry messages. More...

#include <TelemetryMessage.h>

Inheritance diagram for TelemetryMessage:
Inheritance graph
Collaboration diagram for TelemetryMessage:
Collaboration graph

Public Member Functions

 TelemetryMessage (TelemetryMessageType type)
 
TelemetryMessageType get_type ()
 Get the type of the message.
 

Protected Attributes

TelemetryMessageType type
 

Detailed Description

A base class for all telemetry messages.

TelemetryMessages are similar to SystemMessages but are designed for the telemetry system. All data contained within the TelemetryMessage must be stored within the TelemetryMessage and not referred to with pointers. This is because the memory of the TelemetryMessage is copied straight into the radio buffer and sent down to the ground station.

TelemetryMessages must be allocated on the heap and will be deleted by the TelemetrySystem once they have been transmitted or processed.

Member Function Documentation

◆ get_type()

TelemetryMessageType TelemetryMessage::get_type ( )
inline

Get the type of the message.

Returns
The TelemetryMessageType of the TelemetryMessage

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