From f48e9dca082730b14c41cdaece8ee5ba800554ce Mon Sep 17 00:00:00 2001 From: richonguzman Date: Mon, 13 Feb 2023 14:17:41 -0300 Subject: [PATCH] first cleaning --- src/Lora_1W_APRS_Tracker.cpp | 15 ++++----------- src/beacon_config.h | 5 +++++ 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/src/Lora_1W_APRS_Tracker.cpp b/src/Lora_1W_APRS_Tracker.cpp index 3bba985..b2fbb46 100644 --- a/src/Lora_1W_APRS_Tracker.cpp +++ b/src/Lora_1W_APRS_Tracker.cpp @@ -134,21 +134,14 @@ void loop() { while (neo6m_gps.available() > 0) { gps.encode(neo6m_gps.read()); } - bool gps_loc_update = gps.location.isUpdated(); - bool gps_time_update = gps.time.isUpdated(); - //static time_t nextBeaconTimeStamp = -1; - static double currentHeading = 0; - static double previousHeading = 0; - //static unsigned int rate_limit_message_text = 0; - + bool gps_loc_update = gps.location.isUpdated(); + bool gps_time_update = gps.time.isUpdated(); + static double currentHeading = 0; + static double previousHeading = 0; static double lastTxLatitude = 0.0; static double lastTxLongitude = 0.0; static double lastTxDistance = 0.0; static uint32_t txInterval = 60000L; - static int zeroSpeedCounter = 0; - uint32_t txCommentInterval = 120*60*1000; // 120 min!!! - uint32_t tx15mInterval = 15*60*1000; // 15 min! - uint32_t tx60mInterval = 60*60*1000; // 60 min! static bool sendStandingUpdate = false; static int standingUpdateCounter = 0; int CurrentSpeed = (int)gps.speed.kmph(); diff --git a/src/beacon_config.h b/src/beacon_config.h index 8c76b53..46251ca 100644 --- a/src/beacon_config.h +++ b/src/beacon_config.h @@ -41,4 +41,9 @@ #define User3_TurnMinDeg 10 #define User3_TurnSlope 80 +uint32_t txCommentInterval = 120*60*1000; // 120 min!!! +uint32_t tx15mInterval = 15*60*1000; // 15 min! +uint32_t tx60mInterval = 60*60*1000; // 60 min! + + #endif \ No newline at end of file