mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-03-08 22:43:53 +01:00
gps beacon fix
This commit is contained in:
parent
20a5029da8
commit
b5d9103ea5
|
|
@ -144,7 +144,7 @@
|
|||
name="beacon.comment"
|
||||
id="beacon.comment"
|
||||
class="form-control"
|
||||
placeholder="LoRa APRS"
|
||||
placeholder=""
|
||||
/>
|
||||
</div>
|
||||
<div class="col-12 mt-3">
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ namespace GPS_Utils {
|
|||
Config.backupDigiMode = false;
|
||||
}
|
||||
String beaconPacket = APRSPacketLib::generateBasePacket(Config.callsign, "APLRG1", Config.beacon.path);
|
||||
String encodedGPS = APRSPacketLib::encodeGPSIntoBase91(Config.beacon.latitude, Config.beacon.longitude, 0, 0, Config.beacon.symbol, true, 0, true, Config.beacon.ambiguityLevel);
|
||||
String encodedGPS = APRSPacketLib::encodeGPSIntoBase91(Config.beacon.latitude, Config.beacon.longitude, 0, 0, Config.beacon.symbol, false, 0, true, Config.beacon.ambiguityLevel);
|
||||
|
||||
iGateBeaconPacket = beaconPacket;
|
||||
iGateBeaconPacket += ",qAC:!";
|
||||
|
|
|
|||
|
|
@ -163,7 +163,7 @@ namespace Utils {
|
|||
GPS_Utils::getData();
|
||||
if (gps.location.isUpdated() && gps.location.lat() != 0.0 && gps.location.lng() != 0.0) {
|
||||
String basePacket = APRSPacketLib::generateBasePacket(Config.callsign, "APLRG1", Config.beacon.path);
|
||||
String encodedGPS = APRSPacketLib::encodeGPSIntoBase91(gps.location.lat(),gps.location.lng(), 0, 0, Config.beacon.symbol, true, 0, true, Config.beacon.ambiguityLevel);
|
||||
String encodedGPS = APRSPacketLib::encodeGPSIntoBase91(gps.location.lat(),gps.location.lng(), 0, 0, Config.beacon.symbol, false, 0, true, Config.beacon.ambiguityLevel);
|
||||
|
||||
beaconPacket = basePacket;
|
||||
beaconPacket += ",qAC:!";
|
||||
|
|
|
|||
Loading…
Reference in a new issue