From 2ac54572159bc61873e043fbb9196227777822c1 Mon Sep 17 00:00:00 2001 From: richonguzman Date: Tue, 14 Mar 2023 22:54:49 -0300 Subject: [PATCH] final beta --- src/Lora_1W_APRS_Tracker.cpp | 16 ---------------- src/beacon_config.h | 2 +- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/src/Lora_1W_APRS_Tracker.cpp b/src/Lora_1W_APRS_Tracker.cpp index b2fbb46..a1f9598 100644 --- a/src/Lora_1W_APRS_Tracker.cpp +++ b/src/Lora_1W_APRS_Tracker.cpp @@ -146,10 +146,6 @@ void loop() { static int standingUpdateCounter = 0; int CurrentSpeed = (int)gps.speed.kmph(); - // - String mensaje_test = "0"; // testing Serial.Monitor log - // - if (!send_update && gps_loc_update) { uint32_t lastTx = millis() - lastTxTime; int MinimumDistanceTx = CurrentUser[6].toInt(); @@ -164,9 +160,6 @@ void loop() { if (lastTxDistance > MinimumDistanceTx) { send_update = true; standingUpdateCounter = 0; - // - mensaje_test = "D:" + String(lastTxDistance) + " S:" + String(CurrentSpeed) + " I:" + String(txInterval); - // } } if (!send_update) { @@ -180,9 +173,6 @@ void loop() { if (headingDelta > TurnMinAngle && lastTxDistance > MinimumDistanceTx) { send_update = true; standingUpdateCounter = 0; - // - mensaje_test = "C:" + String(headingDelta) + " D:" + String(lastTxDistance) + " S:" + String(CurrentSpeed) + " I:" + String(txInterval); - // } } } @@ -190,16 +180,10 @@ void loop() { send_update = true; sendStandingUpdate = true; standingUpdateCounter += 1; - // - mensaje_test = "Standing Still for " + String(15*standingUpdateCounter) + "min"; - // } if (!send_update && lastTx >= tx60mInterval) { send_update = true; sendStandingUpdate = true; - // - mensaje_test = "Standing Still for hours"; - // } } diff --git a/src/beacon_config.h b/src/beacon_config.h index d8a9767..f649087 100644 --- a/src/beacon_config.h +++ b/src/beacon_config.h @@ -1,7 +1,7 @@ #ifndef BEACON_CONFIG_H_ #define BEACON_CONFIG_H_ -#define FirstUser 3 // Select the First User at Tracker Start Up (Example: 1 means User1) +#define FirstUser 1 // Select the First User at Tracker Start Up (Example: 1 means User1) #define AprsPath "APLT00" // APRS Destination (could be also "WIDE1-1" or even just "AP") #define AprsOverlay "/" #define SendAltitude true // "true" adds Altitude to the APRS packet/message, "false" add Course+Speed