AP_AHRS: use wind from simulation if available with EKF type 10

This commit is contained in:
Andrew Tridgell 2022-07-30 11:45:47 +10:00
parent 5aff248950
commit 11c9645d7d
1 changed files with 4 additions and 1 deletions

View File

@ -790,7 +790,10 @@ Vector3f AP_AHRS::wind_estimate(void) const
#if AP_AHRS_SIM_ENABLED
case EKFType::SIM:
wind.zero();
if (_sitl) {
const auto &fdm = _sitl->state;
wind = fdm.wind_ef;
}
break;
#endif