-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflightLogger.h
More file actions
36 lines (28 loc) · 793 Bytes
/
flightLogger.h
File metadata and controls
36 lines (28 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef _FLIGHT_LOGGER_H
#define _FLIGHT_LOGGER_H
#include "flightLoggerBase.h"
#include "flightLoggerData.h"
#include "flightLoggerLFS.h"
class flightLogger {
public:
flightLogger();
void init(unsigned long timestamp);
void reindexFlights();
void reset();
bool airborne = false;
bool aborted;
float altitudeInitial;
flightLoggerLFS instance;
// Number of measures to do so that we are sure that apogee has been reached
unsigned long measures = 5;
float pressureInitial;
bool recording;
float temperatureInitial;
bool touchdown = false;
private:
TaskHandle_t reindexFlightsTaskHandle;
static void reindexFlightsTaskW(void * parameter);
};
extern flightLogger _flightLogger;
extern void setupFlightLogger();
#endif