final beta

This commit is contained in:
richonguzman 2023-03-14 22:54:49 -03:00
parent 93e31c80ac
commit 2ac5457215
2 changed files with 1 additions and 17 deletions

View File

@ -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";
//
}
}

View File

@ -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