-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflightLoggerData.h
More file actions
68 lines (61 loc) · 1.3 KB
/
flightLoggerData.h
File metadata and controls
68 lines (61 loc) · 1.3 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#ifndef _FLIGHT_LOGGER_DATA_H
#define _FLIGHT_LOGGER_DATA_H
#include <ArduinoJson.h>
struct flightDataStruct {
float altitudeApogee;
float altitudeApogeeFirstMeasure;
float altitudeCurrent;
float altitudeInitial;
float altitudeLast;
float altitudeLaunch;
float altitudeTouchdown;
unsigned long epochS = 0;
unsigned long timestampApogee = 0;
unsigned long timestampApogeeFirstMeasure = 0;
unsigned long timestampCurrent = 0;
unsigned long timestampLaunch = 0;
unsigned long timestampPrevious = 0;
unsigned long timestampTouchdown = 0;
};
struct flightDataReadResultsStruct {
bool success;
JsonObject results;
};
struct flightDataTraceStruct {
float accelX;
float accelY;
float accelZ;
long altitude;
long diffTime;
float gyroX;
float gyroY;
float gyroZ;
float humidity;
float pressure;
float temperature;
float velocity;
};
struct flightMinAndMaxStruct {
long duration;
float accelXMax;
float accelXMin;
float accelYMin;
float accelYMax;
float accelZMin;
float accelZMax;
long altitudeMax;
long altitudeMin;
long humidityMax;
long humidityMin;
long pressureMax;
long pressureMin;
long temperatureMax;
long temperatureMin;
long velocityMax;
long velocityMin;
};
struct flightDataNumberStruct {
int * numbers;
int size;
};
#endif