sparkfun / Qwiic_Ublox_Gps_Py

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

how to know the accuracy #24

Closed lurunawjan closed 1 year ago

lurunawjan commented 2 years ago

Hello, I have a project about tracking a vehicles in real time. Currently I'm using Sparkfun ZED-F9R for the GPS module and google maps API. I manage to get the coordinates with google maps in real time but I wondering about the accuracy.

Thank you.

grwells commented 1 year ago

In the Arduino version of the ublox library I was able to dig around and find getHorizontalDOP() (horizontal dilution of precision) which gives a rough accuracy range in millimeters (I think). The same doesn't seem to be built into the library here.

I think you need the UBX DOP message, which I don't see a default helper function for requesting and parsing. I think you are going to have to write your own code... something like the satellites(...) function in ublox_gps.py which requests the message from the receiver and then scales the data. So something like 5 lines of code to try out.

edspark commented 1 year ago

I've added a function in this commit for checking accuracy. I'll be updating examples and documentation over the next few days.

grwells commented 1 year ago

Great! Thanks.