Browse Source

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

apm_2208
Andrew Tridgell 3 years ago
parent
commit
0ededd7c62
  1. 5
      libraries/AP_AHRS/AP_AHRS.cpp

5
libraries/AP_AHRS/AP_AHRS.cpp

@ -822,7 +822,10 @@ Vector3f AP_AHRS::wind_estimate(void) const @@ -822,7 +822,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

Loading…
Cancel
Save