mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-16 17:57:35 +08:00
ekf2: use validated airspeed from airspeed sensor only
don't use synthetic measurements to prevent circular dependency
This commit is contained in:
@@ -1576,6 +1576,7 @@ void EKF2::UpdateAirspeedSample(ekf2_timestamps_s &ekf2_timestamps)
|
||||
if (PX4_ISFINITE(airspeed_validated.true_airspeed_m_s)
|
||||
&& PX4_ISFINITE(airspeed_validated.calibrated_airspeed_m_s)
|
||||
&& (airspeed_validated.calibrated_airspeed_m_s > 0.f)
|
||||
&& (airspeed_validated.selected_airspeed_index > 0)
|
||||
) {
|
||||
airspeedSample airspeed_sample {
|
||||
.time_us = airspeed_validated.timestamp,
|
||||
|
||||
Reference in New Issue
Block a user