Per @LorenzMeier , opening a new issue here to continue discussion for the github issue at -
In short,
The code snippet in the above link requests the sUAS GPS Global Position coordinates.
The coordinates are returned but when the sUAS is flying, the MavLink inspector widget in QGC and the above code do not match in their latitude and longitude values. They are printed as ints so no decimal points and I print the value that is returned by the PX4 FC.
Looking for advice on if the code is missing something or is wrong.
And here are the GPS coordinates my application pulls
latitude: 375611872:
longitude: -1223285103:
altitude: 41885:
Is it possible there is a slow connection between the PX4 and compute board from where I pull these coordinates ? The widget coordinates change in the 5th decimal. My application only changes in the 6th or 7th spot.
Hi @LorenzMeier
I think for now you can avoid looking into this. I think I notice that my application does get the latest and changing GPS coordinates and matches what the QGC widget shows. I do some processing on each GPS coordinate after receiving them in my application and that maybe is causing some delay. I will let you know how it goes.