I’m trying to read out position values via python.
I want to use the GLOBAL_POSITION_INT message, but it seems like I’m not even receiving it.inspector|690x494
As you can see, i have GPS signal. I’m also receiving GPS_RAW_INT.
Any suggestions how i could fix my issue?
I am having a similar problem. I am using Pixhawk 4 and u-blox-7 GPS. I am receiving GPS_RAW_INT at 4Hz, GPS lock is 3DGPS. I receive GLOBAL_POSITION_INT at 10Hz, but as soon as I start moving GLOBAL_POSITION_INT rate drops to 0Hz and only when Pixhawk is stationary GLOBAL_POSITION_INT rate goes back to 10Hz.
I even modified ubx.cpp file to simulate excellent accuracy, however this doesn’t seem to help. I can’t find in the code what parameters affect GLOBAL_POSITION_INT rate.
I have to make this work without using UBX_MSG_NAV_PVT. I am need Pixhawk to work with UBX_MSG_NAV_SOL and UBX_MSG_NAV_POSLLH and UBX_MSG_NAV_TIMEUTC messages.
With UBX_MSG_NAV_PVT everything works fine.
For those who might stumble on a similar problem - GLOBAL_POSITION_INT message shows in QGC as long as gps_is_good(gps) is true for the last 10 seconds. It is called by collect_gps() and declared in gps_checks.cpp.