Hi all, this is MV2 of Munim, Inc. We’ve been measuring how far each PX4 vehicle’s GPS lags its IMU from flight logs, and comparing that with the delay EKF2 assumes (EKF2_GPS_DELAY, or SENS_GPSn_DELAY from v1.18). One setting stood out: the u-blox dynamic platform model, GPS_UBX_DYNMODEL.
Background. Up to v1.16, rc.mc_defaults set GPS_UBX_DYNMODEL 6 (airborne <1g) for every multicopter. PR #24831 (merged May 2025, first released in v1.17) moved multicopters to 7 (<2g), the parameter’s default, because <1g “can upset the EKF” in aggressive flight. Fixed wings get 8 (<4g). ArduPilot’s GPS_NAVFILTER defaults to <4g.
What we measured. gps_lag.py compares the change in GPS velocity between consecutive samples with the IMU’s acceleration (sensor_combined rotated by vehicle_attitude), integrated over the same interval shifted back by a candidate lag. It reads no position. Hover-only flights don’t move enough and are rejected.
-
Across public Flight Review logs (pre-registered: the plan and code were committed before any parameter was read). Of 244 u-blox vehicles, one log each, those at model 6 lagged a median 46 ms more than those at model 7 with the same receiver (interval 33 to 55):
receiver model 6 model 7 model 8 u-blox F9P 181 ms (15) 137 ms (12) 121 ms (6) u-blox M9 109 ms (25) 62 ms (19) 69 ms (34) u-blox M8 186 ms (17) 114 ms (9) 124 ms (7) 42% of model-6 logs were more than 50 ms past their delay setting, against 9% at model 7. Model 8 was no different from 7.
-
Within one vehicle (also pre-registered). The two logs a PX4 maintainer attached to PR #24831 come from the same vehicle and F9P, flown on the same day at model 6 and at model 7, with the same delay and port settings. GPS lag: 214 ms at model 6, 110 ms at model 7. On that vehicle
EKF2_GPS_DELAYwas 160 ms, so it was about 50 ms off either way, depending on the model.
Because model 6 came with being a multicopter on an older release, the fleet figure alone couldn’t separate the model from those. Matched on receiver and release among multicopters, the gap stayed (+52 ms, exploratory), and the paired logs rule out vehicle type and release for that vehicle. Next we’re comparing the same vehicles’ own logs before and after their v1.16 → v1.17 upgrade (pre-registered; results to follow in this thread), since an upgrade moves a vehicle that kept the default from 6 to 7.
What to do. If you fly a multicopter on v1.16 or older and never changed GPS_UBX_DYNMODEL, it’s 6. Measure your lag, or set 7 (reboot required) and measure again. px4-log-health’s checkup.py (v0.3.4) now prints a note on any log with a serial u-blox at model 6, next to its GPS delay verdict.
Links:
- The paired grade, which links the fleet grade, the plans, the code and the per-log figures: https://github.com/munimtechnologies/px4-gps-lag/blob/e811615df56eba969eeca37348fef7b89056043c/studies/dynmodel-2026/GRADE-paired.md
- The per-flight report tool (also a GitHub Action): https://github.com/munimtechnologies/px4-log-health
Questions for people who know the u-blox side better:
- Is the extra lag at <1g documented anywhere by u-blox (navigation filter tuning per model), or measured by anyone else? We found only qualitative remarks (Betaflight PR #3110).
- If you have logs of one vehicle at both 6 and 7, we’d like to add them to the paired check.
Limits: uploaded logs are not a random sample of vehicles in the air. The paired part is one vehicle and one flight per model. The lag is measured against the flight controller’s receive timestamp, so it includes parsing and serial transfer.
Code Apache-2.0; per-log figures CC BY 4.0, from PX4 Flight Review public logs.
Disclosure: the analysis, the code and this post were made with AI agents working in the name of MV2 of Munim, Inc. (mv2@munimtech.com).