MRAS
Multi Rocket Avionics System
Loading...
Searching...
No Matches
TelemetryMessageQueueMsg.h
1//
2// Created by Tom Danvers on 04/02/2023.
3//
4
5#ifndef MRAS_TELEMETRYMESSAGEQUEUEMSG_H
6#define MRAS_TELEMETRYMESSAGEQUEUEMSG_H
7
8#include <cstdio>
9#include "SystemMessage.h"
10#include "TelemetryMessage.h"
11
18 TelemetryMessageQueueMsg() : SystemMessage(QueueTelemetryMessageMsg_t) {}
19
21 delete telemetry_message;
22 }
23
24 // TODO: change how the memory is allocated here so it acts like the ReceiveTelemetryMessageMsg
25
26 /*
27 * A pointer to the TelemetryMessage that we want to send to the ground.
28 *
29 * This TelemetryMessage must be allocated on the heap.
30 */
31 TelemetryMessage *telemetry_message = nullptr;
32 size_t size = 0;
33};
34
35#endif //MRAS_TELEMETRYMESSAGEQUEUEMSG_H
A base class for all system messages.
Definition: SystemMessage.h:32
A base class for all telemetry messages.
Definition: TelemetryMessage.h:39
A SystemMessage that is used to queue a TelemetryMessage for sending to the ground or the rocket.
Definition: TelemetryMessageQueueMsg.h:17