MRAS
Multi Rocket Avionics System
Loading...
Searching...
No Matches
SDLogger.h
1//
2// Created by Tom Danvers on 08/02/2023.
3//
4
5#ifndef MRAS_SDLOGGER_H
6#define MRAS_SDLOGGER_H
7
8
9#include "Subsystem.h"
10#include "Arduino.h"
11#include "SD.h"
12
21class SDLogger : public Subsystem {
22public:
29 SDLogger(uint8_t id, uint8_t sdPin) : Subsystem(id) {
30 SD_pin = sdPin;
31 }
32private:
33 uint8_t SD_pin;
34
35 SUBSYSTEM_NAME("SDLogger")
36
37 int8_t setup() override;
38
39protected:
40 File log_file;
41 bool setup_complete = false;
42};
43
44
45#endif //MRAS_SDLOGGER_H
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
Definition: Subsystem.h:30