diff --git a/data/tracker_config.json b/data/tracker_config.json new file mode 100644 index 0000000..0bf6b4c --- /dev/null +++ b/data/tracker_config.json @@ -0,0 +1,46 @@ +{ + "beacons": [ + { + "callsign": "CD2RXU-7", + "symbol": "[", + "path": "APLT00", + "overlay": "/", + "slow_rate": 120, + "slow_speed": 3, + "fast_rate": 60, + "fast_speed": 15, + "min_tx_dist": 3, + "min_delta_bcn": 20, + "turn_min_deg": 3, + "turn_slope": 40 + }, + { + "callsign": "CD2RXU-8", + "symbol": "b", + "path": "APLT00", + "overlay": "/", + "slow_rate": 120, + "slow_speed": 5, + "fast_rate": 60, + "fast_speed": 40, + "min_tx_dist": 100, + "min_delta_bcn": 12, + "turn_min_deg": 12, + "turn_slope": 60 + }, + { + "callsign": "CD2RXU-9", + "symbol": ">", + "path": "APLT00", + "overlay": "/", + "slow_rate": 120, + "slow_speed": 10, + "fast_rate": 60, + "fast_speed": 70, + "min_tx_dist": 100, + "min_delta_bcn": 12, + "turn_min_deg": 10, + "turn_slope": 80 + } + ] +} \ No newline at end of file diff --git a/platformio.ini b/platformio.ini index 8501153..94797f0 100644 --- a/platformio.ini +++ b/platformio.ini @@ -17,4 +17,5 @@ lib_deps = jgromes/RadioLib@^5.5.0 paulstoffregen/Time@^1.6.1 mathertel/OneButton@^2.0.3 + bblanchon/ArduinoJson@^6.20.0 monitor_speed = 115200 diff --git a/src/Lora_1W_APRS_Tracker.cpp b/src/Lora_1W_APRS_Tracker.cpp index 39eba97..6ef5c1b 100644 --- a/src/Lora_1W_APRS_Tracker.cpp +++ b/src/Lora_1W_APRS_Tracker.cpp @@ -18,6 +18,8 @@ HardwareSerial neo6m_gps(1); TinyGPSPlus gps; OneButton UserButton1 = OneButton(BUTTON1_PIN, true, true); + + String CurrentUser[10]; static bool send_update = true;