mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-14 02:50:35 +08:00
added bad_airspeed reporting (#123)
This commit is contained in:
committed by
Lorenz Meier
parent
b126921894
commit
5217b73df1
@@ -90,8 +90,10 @@ void Ekf::fuseAirspeed()
|
||||
|
||||
if (_airspeed_innov_var_temp >= R_TAS) { // Check for badly conditioned calculation
|
||||
SK_TAS[0] = 1.0f / _airspeed_innov_var_temp;
|
||||
_fault_status.flags.bad_airspeed = false;
|
||||
|
||||
} else { // Reset the estimator
|
||||
_fault_status.flags.bad_airspeed = true;
|
||||
initialiseCovariance();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user