There was an error while loading. Please reload this page.
2 parents 2be60b3 + 843f29d commit 0e9f842Copy full SHA for 0e9f842
src/main/navigation/navigation_pos_estimator.c
@@ -256,11 +256,13 @@ void onNewGPSData(void)
256
posEstimator.gps.eph = INAV_GPS_DEFAULT_EPH;
257
posEstimator.gps.epv = INAV_GPS_DEFAULT_EPV;
258
}
259
-
260
- /* Indicate a last valid reading of Pos/Vel */
261
- posEstimator.gps.lastUpdateTime = currentTimeUs;
262
263
+ /* Indicate a last valid reading of Pos/Vel - must be updated even on
+ * first GPS reading after recovery to prevent position estimate from
+ * timing out and getting stuck at zero (fixes issue #11049) */
264
+ posEstimator.gps.lastUpdateTime = currentTimeUs;
265
+
266
previousLat = gpsSol.llh.lat;
267
previousLon = gpsSol.llh.lon;
268
previousAlt = gpsSol.llh.alt;
0 commit comments