forked from PiInTheSky/lora-gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal.h
executable file
·61 lines (53 loc) · 1.27 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#include <curses.h>
struct TLoRaDevice
{
int InUse;
int DIO0;
int DIO5;
char Frequency[16];
double activeFreq;
bool AFC;
int SpeedMode;
int PayloadLength;
int ImplicitOrExplicit;
int ErrorCoding;
int Bandwidth;
int SpreadingFactor;
int LowDataRateOptimize;
int CurrentBandwidth;
int RSSI; //added - G8DHE
int SNR; //added - G8DHE
double FreqError; //added - G8DHE
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;
time_t ReturnToCallingModeAt;
int InCallingMode;
int ActivityLED;
};
struct TConfig
{
char Tracker[16];
int EnableHabitat;
int EnableSSDV;
int EnableTelemetryLogging;
int EnableMetadataLogging; //added for extra logging of Metadata - G8DHE
int CallingTimeout;
char ftpServer[100];
char ftpUser[32];
char ftpPassword[32];
char ftpFolder[64];
struct TLoRaDevice LoRaDevices[2];
int NetworkLED;
int InternetLED;
};
extern struct TConfig Config;
void LogMessage(const char *format, ...);