mirror of
https://github.com/lora-aprs/LoRa_APRS_Tracker.git
synced 2026-04-20 22:13:38 +00:00
add a path to the beacon
This commit is contained in:
parent
52122a916c
commit
f69a05eb08
4 changed files with 30 additions and 27 deletions
|
|
@ -187,6 +187,7 @@ void loop() {
|
|||
|
||||
msg.setSource(Config.callsign);
|
||||
msg.setDestination("APLT00-1");
|
||||
msg.setPath(Config.beacon.path);
|
||||
|
||||
if (!Config.enhance_precision) {
|
||||
lat = create_lat_aprs(gps.location.rawLat());
|
||||
|
|
@ -310,6 +311,7 @@ void loop() {
|
|||
if ((Config.debug == false) && (millis() > 5000 && gps.charsProcessed() < 10)) {
|
||||
logPrintlnE("No GPS frames detected! Try to reset the GPS Chip with this "
|
||||
"firmware: https://github.com/lora-aprs/TTGO-T-Beam_GPS-reset");
|
||||
show_display("No GPS frames detected!", "Try to reset the GPS Chip", "https://github.com/lora-aprs/TTGO-T-Beam_GPS-reset", 2000);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -39,6 +39,8 @@ Configuration ConfigurationManagement::readConfiguration() {
|
|||
conf.enhance_precision = data["enhance_precision"] | false;
|
||||
if (data.containsKey("beacon") && data["beacon"].containsKey("message"))
|
||||
conf.beacon.message = data["beacon"]["message"].as<String>();
|
||||
if (data.containsKey("beacon") && data["beacon"].containsKey("path"))
|
||||
conf.beacon.path = data["beacon"]["path"].as<String>();
|
||||
conf.beacon.timeout = data["beacon"]["timeout"] | 1;
|
||||
if (data.containsKey("beacon") && data["beacon"].containsKey("symbol"))
|
||||
conf.beacon.symbol = data["beacon"]["symbol"].as<String>();
|
||||
|
|
@ -85,6 +87,7 @@ void ConfigurationManagement::writeConfiguration(Configuration conf) {
|
|||
data["debug"] = conf.debug;
|
||||
data["enhance_precision"] = conf.enhance_precision;
|
||||
data["beacon"]["message"] = conf.beacon.message;
|
||||
data["beacon"]["path"] = conf.beacon.path;
|
||||
data["beacon"]["timeout"] = conf.beacon.timeout;
|
||||
data["beacon"]["symbol"] = conf.beacon.symbol;
|
||||
data["beacon"]["overlay"] = conf.beacon.overlay;
|
||||
|
|
|
|||
|
|
@ -9,10 +9,11 @@ class Configuration {
|
|||
public:
|
||||
class Beacon {
|
||||
public:
|
||||
Beacon() : message("LoRa Tracker, Info: github.com/lora-aprs/LoRa_APRS_Tracker"), timeout(1), symbol("["), overlay("/"), button_tx(false) {
|
||||
Beacon() : message("LoRa Tracker"), path("WIDE1-1"), timeout(1), symbol("["), overlay("/"), button_tx(false) {
|
||||
}
|
||||
|
||||
String message;
|
||||
String path;
|
||||
int timeout;
|
||||
String symbol;
|
||||
String overlay;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue