forked from PiInTheSky/lora-gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal.h
executable file
·46 lines (40 loc) · 902 Bytes
/
global.h
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
#include <curses.h>
struct TLoRaDevice
{
int InUse;
int DIO0;
int DIO5;
char Frequency[16];
int SpeedMode;
int PayloadLength;
int ImplicitOrExplicit;
int ErrorCoding;
int Bandwidth;
double Reference;
int SpreadingFactor;
int LowDataRateOptimize;
WINDOW *Window;
unsigned int TelemetryCount, SSDVCount, BadCRCCount, UnknownCount, SSDVMissing;
char Payload[16], Time[12];
unsigned int Counter;
unsigned long Seconds;
double Longitude, Latitude;
unsigned int Altitude, PreviousAltitude;
unsigned int Satellites;
unsigned long LastPositionAt;
time_t LastPacketAt;
float AscentRate;
};
struct TConfig
{
char Tracker[16];
int EnableHabitat;
int EnableSSDV;
char ftpServer[100];
char ftpUser[32];
char ftpPassword[32];
char ftpFolder[64];
struct TLoRaDevice LoRaDevices[2];
int EnableKML;
};
extern struct TConfig Config;