semuconsulting / pyubx2

Python library for parsing and generating UBX GPS/GNSS protocol messages.
BSD 3-Clause "New" or "Revised" License
173 stars 67 forks source link

Support obsolete cfg dat set datum message Fixes #64 #66

Closed semuadmin closed 2 years ago

semuadmin commented 2 years ago

pyubx2 Pull Request Template

Description

Add support for alternate versions of now-obsolete CFG-DAT SET message. There are two versions of this message type; one which takes a single unsigned integer (U2) representing a preset datum enumeration; the other takes a set of floats as manual datum settings. A modified get_dict() routine distinguishes between them by checking for a keyword of 'datumNum' or a payload length of 2 bytes.

Fixes #64

Testing

Please test all changes, however trivial, against the supplied unittest suite tests/test_*.py e.g. by executing the tests/testsuite.py module or using your IDE's native Python unittest integration facilities. Please describe any test cases you have amended or added to this suite to maintain >= 99% code coverage.

Checklist: