Skip to content

v1.0.41

Compare
Choose a tag to compare
@semuadmin semuadmin released this 15 Sep 14:47
· 31 commits to master since this release
3814785

What's Changed

ENHANCEMENTS:

  1. Enhance NMEAMessage to parse unrecognised* NMEA sentence types to a nominal <NMEA(TTXXX, NOMINAL, field_01=x...)> message structure if VALMSGID validation flag is not set, rather than raise a NMEAParseMessage 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).

  2. Add NMEA ALF sentence definition.

  3. Add validate argument to NMEAMessage and carry forward from NMEAReader

  4. Add logger to NMEAMessage.

Full Changelog: v1.0.40...v1.0.41