v1.0.41
What's Changed
- parse unknown message IDs by @semuadmin in #65
ENHANCEMENTS:
-
Enhance NMEAMessage to parse unrecognised* NMEA sentence types to a nominal
<NMEA(TTXXX, NOMINAL, field_01=x...)>
message structure ifVALMSGID
validation flag is not set, rather than raise aNMEAParseMessage
error e.g.:A. with the
VALMSGID
flag not set (the new default behaviour):from pynmeagps import NMEAReader msg = NMEAReader.parse("$GNACN,103607.00,ECN,E,A,W,A,test,C*67\r\n") print(msg)
<NMEA(GNACN, NOMINAL, field_01=103607.00, field_02=ECN, field_03=E, field_04=A, field_05=W, field_06=A, field_07=test, field_08=C)>
B. with the
VALMSGID flag
set:from pynmeagps import NMEAReader, VALMSGID msg = NMEAReader.parse("$GNACN,103607.00,ECN,E,A,W,A,test,C*67\r\n", validate=VALMSGID) print(msg)
pynmeagps.exceptions.NMEAParseError: Unknown msgID GNACN, msgmode GET.
* unrecognised message types include those with unknown or invalid NMEA msgIDs (but valid payloads and checksums), or valid NMEA sentences whose payload definitions are not yet in the public domain (e.g. those currently commented-out in
NMEA_MSGIDS
). -
Add NMEA ALF sentence definition.
-
Add
validate
argument toNMEAMessage
and carry forward fromNMEAReader
-
Add logger to
NMEAMessage
.
Full Changelog: v1.0.40...v1.0.41