mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 17:38:53 +08:00
ekf2: collect_gps() don't throttle updates until WMM set initially
This commit is contained in:
committed by
Mathieu Bresciani
parent
1e594747ab
commit
b817eb0370
@@ -92,7 +92,7 @@ bool Ekf::collect_gps(const gpsMessage &gps)
|
||||
ECL_INFO("GPS checks passed");
|
||||
}
|
||||
|
||||
if (isTimedOut(_wmm_gps_time_last_checked, 1e6)) {
|
||||
if ((isTimedOut(_wmm_gps_time_last_checked, 1e6)) || (_wmm_gps_time_last_set == 0)) {
|
||||
// a rough 2D fix is sufficient to lookup declination
|
||||
const bool gps_rough_2d_fix = (gps.fix_type >= 2) && (gps.eph < 1000);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user