mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-24 16:01:53 +08:00
fix(ekf2): publish the sideslip innovation variance in wind (#29080)
Since408c30de13the 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 (cherry picked from commit9e36a52ab7)
This commit is contained in:
1 parent
b364d30a88
commit
71dd16ed2d
1 file changed
+1
-1
@@ -2192,7 +2192,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