Skip to content

Commit

Permalink
Final code release from Fall 2023 launch
Browse files Browse the repository at this point in the history
  • Loading branch information
kd2eat committed Apr 26, 2023
1 parent 9a582cf commit 9e82aa7
Show file tree
Hide file tree
Showing 17 changed files with 5,939 additions and 5,929 deletions.
1,040 changes: 520 additions & 520 deletions BearGroundStation/BearGroundStation.ino

Large diffs are not rendered by default.

58 changes: 29 additions & 29 deletions BearGroundStation/config.h
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
#define SSID1 "RedRover" // Change as needed
#define PASSWORD1 NULL // Change as needed

#define SSID2 "iPhone" // Change as needed
#define PASSWORD2 "radioclub" // Change as needed

#include "localssids.h" // Can override SSID's above. This file will be empty in github.

#define LORA_2_PAYLOAD_CALLSIGN "KD2EAT-11"
#define MY_CALLSIGN "KD2EAT-10"

//#define READONLY_STATION

#define BROADCAST_MASK (uint32_t)0x000000ff // Be dumb and assume /24 networks for now
#define PAYLOAD_SUMMARY_PORT 55673
//#define PAYLOAD_SUMMARY_PORT 5000
#define UDP_LOGGING_PORT 5010
#define PAYLOAD_SUMMARY_INTERVAL 10000 // Interval for UDP packet sending (ms)

#define DROP_SWITCH 32
#define SAFETY_SWITCH 33
#define SWITCH_PARACHUTE 23
#define SWITCH_BUZZER 0
#define LED_DROP 12 // Blue
#define LED_WARNING 13 // Yellow
#define LED_SAFETY 17 // Red
#define LED_WIFI_STATUS 2
#define LED_BUZZER 22
#define LED_PARACHUTE 25
#define SSID1 "RedRover" // Change as needed
#define PASSWORD1 NULL // Change as needed

#define SSID2 "iPhone" // Change as needed
#define PASSWORD2 "radioclub" // Change as needed

#include "localssids.h" // Can override SSID's above. This file will be empty in github.

#define LORA_2_PAYLOAD_CALLSIGN "KD2EAT-11"
#define MY_CALLSIGN "KD2EAT-10"

//#define READONLY_STATION

#define BROADCAST_MASK (uint32_t)0x000000ff // Be dumb and assume /24 networks for now
#define PAYLOAD_SUMMARY_PORT 55673
//#define PAYLOAD_SUMMARY_PORT 5000
#define UDP_LOGGING_PORT 5010
#define PAYLOAD_SUMMARY_INTERVAL 10000 // Interval for UDP packet sending (ms)

#define DROP_SWITCH 32
#define SAFETY_SWITCH 33
#define SWITCH_PARACHUTE 23
#define SWITCH_BUZZER 0
#define LED_DROP 12 // Blue
#define LED_WARNING 13 // Yellow
#define LED_SAFETY 17 // Red
#define LED_WIFI_STATUS 2
#define LED_BUZZER 22
#define LED_PARACHUTE 25
16 changes: 8 additions & 8 deletions BearGroundStation/localssids.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// This file can be pulled into your source tree and modified to match your own wifi configuration We do this so that your SSIDs and passwords won't leak into github.
// If you uncomment defines below, they will override the ones set in config.h

//#define SSID1 "CHANGEME" // Change as needed
//#define PASSWORD1 "CHANGEME" // Change as needed

//#define SSID2 "CHANGEME" // Change as needed
//#define PASSWORD2 "CHANGEME" // Change as needed
// This file can be pulled into your source tree and modified to match your own wifi configuration We do this so that your SSIDs and passwords won't leak into github.
// If you uncomment defines below, they will override the ones set in config.h

#define SSID1 "The Hojos" // Change as needed
#define PASSWORD1 "quiltsail1" // Change as needed

#define SSID2 "Thehojos mobile 2.4" // Change as needed
#define PASSWORD2 "Ball00nZ!" // Change as needed
92 changes: 46 additions & 46 deletions BearGroundStation/lorastructs.h
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
#define LORA_GROUND_STATION 0xbb
#define LORA_BROADCAST 0xff
#define LORA_TRACKER 0xaa

typedef struct TelemetryData { //Tbeam to Ground Station
byte DestinationAddr;
byte SourceAddr;
int16_t TrackerRSSI;
uint32_t MsgCount;
int32_t Lat;
int32_t Lng;
int32_t Hdop;
float TrackerSNR;
int16_t Millivolts;
int16_t TempTenths;
uint16_t Altitude;
uint16_t MaxAltitude;
uint16_t LastCommandReceived;
uint16_t BadPacketsReceived;
uint16_t Year;
uint8_t Month;
uint8_t Day;
uint8_t Hour;
uint8_t Minute;
uint8_t Second;
uint8_t Satellites;
uint8_t BearDropped; //being sent back from the bear
uint8_t ParachuteDropped; //being sent back from the bear
uint8_t GoodFix;
uint8_t OverrideReceived; // don't need Tbeam to communicate this to ground but need vise versa?
uint8_t BuzzerReceived; // don't need Tbeam to communicate this to ground but need vise versa?
uint8_t Checksum[2]; // Calculated just before we send the packet
};


typedef struct TeleCommand {
byte DestinationAddr;
byte SourceAddr;
uint16_t CommandCount;
uint8_t dropSwitchState;
uint8_t parachuteSwitchState;
uint8_t overrideSwitchState;
uint8_t buzzerSwitchState;
uint8_t Checksum[2]; // Calculated just before we send the packet

};
#define LORA_GROUND_STATION 0xbb
#define LORA_BROADCAST 0xff
#define LORA_TRACKER 0xaa

typedef struct TelemetryData { //Tbeam to Ground Station
byte DestinationAddr;
byte SourceAddr;
int16_t TrackerRSSI;
uint32_t MsgCount;
int32_t Lat;
int32_t Lng;
int32_t Hdop;
float TrackerSNR;
int16_t Millivolts;
int16_t TempTenths;
uint16_t Altitude;
uint16_t MaxAltitude;
uint16_t LastCommandReceived;
uint16_t BadPacketsReceived;
uint16_t Year;
uint8_t Month;
uint8_t Day;
uint8_t Hour;
uint8_t Minute;
uint8_t Second;
uint8_t Satellites;
uint8_t BearDropped; //being sent back from the bear
uint8_t ParachuteDropped; //being sent back from the bear
uint8_t GoodFix;
uint8_t OverrideReceived; // don't need Tbeam to communicate this to ground but need vise versa?
uint8_t BuzzerReceived; // don't need Tbeam to communicate this to ground but need vise versa?
uint8_t Checksum[2]; // Calculated just before we send the packet
};


typedef struct TeleCommand {
byte DestinationAddr;
byte SourceAddr;
uint16_t CommandCount;
uint8_t dropSwitchState;
uint8_t parachuteSwitchState;
uint8_t overrideSwitchState;
uint8_t buzzerSwitchState;
uint8_t Checksum[2]; // Calculated just before we send the packet

};
Loading

0 comments on commit 9e82aa7

Please # to comment.