mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-22 06:57:35 +08:00
EKF: improve covariance stability when estimating wind
This commit is contained in:
committed by
Lorenz Meier
parent
5cf31e439d
commit
9f48c0505b
+1
-1
@@ -204,7 +204,7 @@ void Ekf::predictCovariance()
|
||||
float wind_vel_sig;
|
||||
|
||||
// Don't continue to grow wind velocity state variances if they are becoming too large or we are not using wind velocity states as this can make the covariance matrix badly conditioned
|
||||
if (_control_status.flags.wind && (P[22][22] + P[23][23]) < 1000.0f) {
|
||||
if (_control_status.flags.wind && (P[22][22] + P[23][23]) < 2.0f) {
|
||||
wind_vel_sig = dt * math::constrain(_params.wind_vel_p_noise, 0.0f, 1.0f);
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user