mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 19:53:34 +08:00
Improve robustness to bad and lost airspeed data (#11846)
This commit is contained in:
@@ -391,7 +391,8 @@ FixedwingPositionControl::airspeed_poll()
|
||||
|
||||
if (PX4_ISFINITE(as.indicated_airspeed_m_s)
|
||||
&& PX4_ISFINITE(as.true_airspeed_m_s)
|
||||
&& (as.indicated_airspeed_m_s > 0.0f)) {
|
||||
&& (as.indicated_airspeed_m_s > 0.0f)
|
||||
&& !_vehicle_status.aspd_use_inhibit) {
|
||||
|
||||
airspeed_valid = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user