Skip to content

Commit 3b17a59

Browse files
committed
Initial push - this was from the 5/8/2022 launch
1 parent c16054a commit 3b17a59

14 files changed

+2468
-0
lines changed

BearGroundStation/BearGroundStation.ino

+465
Large diffs are not rendered by default.

BearGroundStation/config.h

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#define SSID1 "RedRover"
2+
#define PASSWORD1 NULL
3+
4+
#define SSID2 "Thehojos mobile 2.4"
5+
#define PASSWORD2 "Ball00nZ!"
6+
7+
#define LORA_2_PAYLOAD_CALLSIGN "KD2EAT-11"
8+
#define MY_CALLSIGN "KD2EAT-10"
9+
10+
#define READONLY_STATION
11+
12+
#define BROADCAST_MASK (uint32_t)0x000000ff // Be dumb and assume /24 networks for now
13+
#define PAYLOAD_SUMMARY_PORT 55673
14+
//#define PAYLOAD_SUMMARY_PORT 5000
15+
#define UDP_LOGGING_PORT 5010
16+
#define PAYLOAD_SUMMARY_INTERVAL 10000 // Interval for UDP packet sending (ms)
17+
18+
#define DROP_SWITCH 32
19+
#define SAFETY_SWITCH 33
20+
#define LED_DROP 12 // Blue
21+
#define LED_WARNING 13 // Yellow
22+
#define LED_SAFETY 17 // Red
23+
#define LED_WIFI_STATUS 2

BearGroundStation/lorastructs.h

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#define LORA_GROUND_STATION 0xbb
2+
#define LORA_BROADCAST 0xff
3+
#define LORA_TRACKER 0xaa
4+
5+
typedef struct TelemetryData { //Tbeam to Ground Station
6+
byte DestinationAddr;
7+
byte SourceAddr;
8+
int16_t TrackerRSSI;
9+
float TrackerSNR;
10+
uint16_t MsgCount;
11+
uint8_t Hour;
12+
uint8_t Minute;
13+
uint8_t Second;
14+
uint8_t Month;
15+
uint8_t Day;
16+
uint16_t Year;
17+
uint8_t Satellites;
18+
uint16_t Altitude;
19+
uint16_t MaxAltitude;
20+
int32_t Lat;
21+
int32_t Lng;
22+
uint16_t LastCommandReceived;
23+
uint16_t BadPacketsReceived;
24+
uint8_t BearDropped; //being sent back from the bear
25+
uint8_t OverrideReceived; // don't need Tbeam to communicate this to ground but need vise versa?
26+
uint8_t Checksum[2]; // Calculated just before we send the packet
27+
28+
};
29+
30+
31+
typedef struct TeleCommand {
32+
byte DestinationAddr;
33+
byte SourceAddr;
34+
uint16_t CommandCount;
35+
uint8_t dropSwitchState;
36+
uint8_t overrideSwitchState;
37+
uint8_t Checksum[2]; // Calculated just before we send the packet
38+
39+
};

0 commit comments

Comments
 (0)