-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathtypes.h
More file actions
executable file
·30 lines (27 loc) · 843 Bytes
/
types.h
File metadata and controls
executable file
·30 lines (27 loc) · 843 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
#ifndef TYPES_INCLUDED
#define TYPES_INCLUDED
typedef enum {fmIdle, fmLaunched, fmDescending, fmLanding, fmLanded} TFlightMode;
struct TGPS
{
long Time; // Time as read from GPS, as an integer but 12:13:14 is 121314
long SecondsInDay; // Time in seconds since midnight. Used for APRS timing, and LoRa timing in TDM mode
int Hours, Minutes, Seconds;
float Longitude, Latitude;
long Altitude, MinimumAltitude, MaximumAltitude, PreviousAltitude;
unsigned int Satellites;
int Speed;
int Direction;
float AscentRate;
float BatteryVoltage;
float InternalTemperature;
float ExternalTemperature;
float Pressure;
float Humidity;
TFlightMode FlightMode;
float PredictedLongitude, PredictedLatitude;
float CDA;
int UseHostPosition;
int TimeTillLanding;
float PredictedLandingSpeed;
};
#endif