winlink quick check without gps fix

This commit is contained in:
richonguzman 2024-02-22 09:06:46 -03:00
parent a62b35cc18
commit 74f464496f
1 changed files with 8 additions and 4 deletions

View File

@ -383,10 +383,14 @@ namespace KEYBOARD_Utils {
} else if (menuDisplay == 52) { } else if (menuDisplay == 52) {
menuDisplay = 50111; menuDisplay = 50111;
} else if (menuDisplay == 53) { } else if (menuDisplay == 53) {
String packet = APRSPacketLib::generateGPSBeaconPacket(currentBeacon->callsign, "APLRT1", Config.path, currentBeacon->overlay, APRSPacketLib::encondeGPS(gps.location.lat(),gps.location.lng(), gps.course.deg(), gps.speed.knots(), currentBeacon->symbol, Config.sendAltitude, gps.altitude.feet(), sendStandingUpdate, "GPS")); if (gps.location.isUpdated()) {
packet += "winlink"; String packet = APRSPacketLib::generateGPSBeaconPacket(currentBeacon->callsign, "APLRT1", Config.path, currentBeacon->overlay, APRSPacketLib::encondeGPS(gps.location.lat(),gps.location.lng(), gps.course.deg(), gps.speed.knots(), currentBeacon->symbol, Config.sendAltitude, gps.altitude.feet(), sendStandingUpdate, "GPS"));
show_display("<<< TX >>>", "", packet,100); packet += "winlink";
LoRa_Utils::sendNewPacket(packet); show_display("<<< TX >>>", "", packet,100);
LoRa_Utils::sendNewPacket(packet);
} else {
show_display("___INFO___", "", " WAITING FOR GPS FIX", 2000);
}
} else if (menuDisplay == 5000) { } else if (menuDisplay == 5000) {
MSG_Utils::sendMessage(1, "WLNK-1", "L"); MSG_Utils::sendMessage(1, "WLNK-1", "L");
} else if (menuDisplay == 5010) { } else if (menuDisplay == 5010) {