From de2e8900ee57f01e622d320aed7defc0dda787e5 Mon Sep 17 00:00:00 2001 From: richonguzman Date: Mon, 18 Dec 2023 01:17:05 -0300 Subject: [PATCH] latitude mic-e decoding --- lib/APRSPacketLib/APRSPacketLib.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/APRSPacketLib/APRSPacketLib.cpp b/lib/APRSPacketLib/APRSPacketLib.cpp index c34ce5c..fdd5141 100644 --- a/lib/APRSPacketLib/APRSPacketLib.cpp +++ b/lib/APRSPacketLib/APRSPacketLib.cpp @@ -567,12 +567,9 @@ namespace APRSPacketLib { } // DECODING Mic-E received packet aprsPacket.miceType = decodeMiceMsgType(aprsPacket.tocall); - Serial.println(aprsPacket.miceType); - + //Serial.println(aprsPacket.miceType); aprsPacket.latitude = decodeMiceLatitude(aprsPacket.tocall); - Serial.println(aprsPacket.latitude); - - + //Serial.println(aprsPacket.latitude); /* decodeMiceLongitud(aprsPacket.tocall, aprsPacket.message); @@ -584,7 +581,7 @@ namespace APRSPacketLib { message es longitud, curso, velocidad y altura */ - aprsPacket.miceType = "110"; + } else if (receivedPacket.indexOf(":;") > 10) { aprsPacket.type = 5; aprsPacket.message = receivedPacket.substring(receivedPacket.indexOf(":;")+2);