MRAS
Multi Rocket Avionics System
Loading...
Searching...
No Matches
GroundSDLogger.h
1//
2// Created by Tom Danvers on 10/02/2023.
3//
4
5#ifndef MRAS_GROUNDSDLOGGER_H
6#define MRAS_GROUNDSDLOGGER_H
7
8
9#include "SDLogger.h"
10#include "system_messages/RadioStatusMsg.h"
11
15class GroundSDLogger : public SDLogger {
17
18 int8_t loop() override;
19
20 void on_message(SystemMessage *msg) override;
21
22 uint32_t last_log_entry = millis();
23
30 struct GroundDataLogPayload {
31 float latitude = 0;
32 float longitude = 0;
33 float altitude = 0;
34 uint8_t fix_type = 0;
35 uint8_t SIV = 0;
36 } data;
37
38 RadioStatusMsg radio_status = {};
39};
40
41
42#endif //MRAS_GROUNDSDLOGGER_H
Definition: GroundSDLogger.h:15
General SD logger class, used by both the ground and rocket SD loggers. This class is not intended to...
Definition: SDLogger.h:21
SDLogger(uint8_t id, uint8_t sdPin)
Construct a new SDLogger object.
Definition: SDLogger.h:29
A base class for all system messages.
Definition: SystemMessage.h:32
Definition: RadioStatusMsg.h:11