sparkfun / Qwiic_Ublox_Gps_Py

https://qwiic-ublox-gps-py.readthedocs.io/en/latest/index.html
Other
70 stars 41 forks source link

module_software_version() method (a.k.a. UBX-MON-VER) is broken #13

Closed mgesteiro closed 1 year ago

mgesteiro commented 3 years ago

the method to obtain module's info is broken, as the message ID for MON-VER is not declared anywhere:

self.mon_ms.get('VER') in ublox_gps.py#L509 returns nothing.

edspark commented 1 year ago

It is working now. You can do something like the following:

ver = gps.module_software_version()
print("Sofware, Hardware: ",  ver.swVersion, ver.hwVersion)

There's definitely a much better way to format it, but those are the sub-fields you're looking for.

mgesteiro commented 1 year ago

a little bit too late 😉

https://github.com/mgesteiro/ublox9

regards!

edspark commented 1 year ago

Very nice! =D