5#ifndef MRAS_TELEMETRYSYSTEM_H
6#define MRAS_TELEMETRYSYSTEM_H
11#include "MRAS_Config.h"
12#include "TelemetryMessage.h"
13#include "system_messages/TelemetryMessageQueueMsg.h"
14#include "system_messages/TelemetryMessageReceivedMsg.h"
26 SUBSYSTEM_NAME(
"TelemetrySystem")
30 int8_t setup()
override;
32 SX1262 radio =
new Module(RADIO_CHIP_SELECT_PIN,
38 enum TelemetrySystemState {
42 } telemetry_system_state = IDLE;
44 int16_t radio_state = 0;
49 void transmit_next_message();
69 int16_t get_radio_state()
const;
Definition: Subsystem.h:30
A subsystem for sending and receiving telemetry data using the LoRa radio.
Definition: TelemetrySystem.h:23
void start_receiving_next_message(uint32_t timeout=0xFFFFFF)
Definition: TelemetrySystem.cpp:73
bool read_new_message_from_buffer(TelemetryMessageReceivedMsg *output, bool receive_again=true)
Definition: TelemetrySystem.cpp:79
A SystemMessage that is used to queue a TelemetryMessage for sending to the ground or the rocket.
Definition: TelemetryMessageQueueMsg.h:17
A SystemMessage that is output by the TelemetrySystem when a TelemetryMessage is received from the gr...
Definition: TelemetryMessageReceivedMsg.h:15