MRAS
Multi Rocket Avionics System
Loading...
Searching...
No Matches
TelemetryMessage.h
1//
2// Created by Tom Danvers on 04/02/2023.
3//
4
5#ifndef MRAS_TELEMETRYMESSAGE_H
6#define MRAS_TELEMETRYMESSAGE_H
7
8enum TelemetryMessageType {
9 UNDEFINED_TELEMETRY_MESSAGE,
10 /*
11 * Rocket sends this message to the ground in order to
12 * initiate a new transfer opportunity
13 */
14 TransferWindowInitMsg_t,
15
16 /*
17 * Ground sends this in response to a TransferWindowInit
18 * in the case where it does not have any data to send
19 * to the rocket
20 */
21 TransferWindowAckMsg_t,
22 CommandMsg_t, // unused for now
23 CommandResponseMsg_t, // unused for now
24 TelemetryDataMsg_t
25};
26
40protected:
41 TelemetryMessageType type;
42public:
43 explicit TelemetryMessage(TelemetryMessageType type) : type(type) {};
44
50 TelemetryMessageType get_type() { return type; };
51};
52
53
54#endif //MRAS_TELEMETRYMESSAGE_H
A base class for all telemetry messages.
Definition: TelemetryMessage.h:39
TelemetryMessageType get_type()
Get the type of the message.
Definition: TelemetryMessage.h:50