MRAS
Multi Rocket Avionics System
Loading...
Searching...
No Matches
SystemMessage.h
1//
2// Created by Tom Danvers on 13/12/2022.
3//
4
5#ifndef MRAS_SYSTEMMESSAGE_H
6#define MRAS_SYSTEMMESSAGE_H
7
8#include <cstdint>
9
10enum SystemMessageType {
11 UNDEFINED_SYSTEM_MESSAGE,
12 AccelerometerDataMsg_t,
13 HighGAccelerometerDataMsg_t,
14 BarometerDataMsg_t,
15 GyroDataMsg_t,
16 MagnetometerDataMsg_t,
17 GNSSDataMsg_t,
18 QueueTelemetryMessageMsg_t,
19 ReceivedTelemetryMessageMsg_t,
20 StateEstimatorMsg_t,
21 TextLogMsg_t,
22 RadioStatusMsg_t,
23};
24
33public:
34 explicit SystemMessage(SystemMessageType type) : type(type) {};
35
41 SystemMessageType get_type() { return type; };
42protected:
43 SystemMessageType type;
44};
45
46#endif //MRAS_SYSTEMMESSAGE_H
A base class for all system messages.
Definition: SystemMessage.h:32
SystemMessageType get_type()
Get the type of the message.
Definition: SystemMessage.h:41