mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-22 14:19:57 +08:00
fix(ekf2): publish the sideslip innovation variance in wind (#29080)
Since 408c30de13 the variance overwrote beta_innov, so the wind topic carried the variance in place of the innovation and beta_innov_var was always 0.
Assisted-by: Claude:claude-opus-5-5
This commit is contained in:
1 parent
e80c008909
commit
9e36a52ab7
1 file changed
+1
-1
@@ -2186,7 +2186,7 @@ void EKF2::PublishWindEstimate(const hrt_abstime ×tamp)
|
||||
#endif // CONFIG_EKF2_AIRSPEED
|
||||
#if defined(CONFIG_EKF2_SIDESLIP)
|
||||
wind.beta_innov = _ekf.aid_src_sideslip().innovation;
|
||||
wind.beta_innov = _ekf.aid_src_sideslip().innovation_variance;
|
||||
wind.beta_innov_var = _ekf.aid_src_sideslip().innovation_variance;
|
||||
#endif // CONFIG_EKF2_SIDESLIP
|
||||
|
||||
wind.windspeed_north = wind_vel(0);
|
||||
|
||||
Reference in new issue
Block a user