mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-05 07:28:29 -04:00
AP_AHRS: use wind from simulation if available with EKF type 10
This commit is contained in:
parent
87579565de
commit
c52b64a78a
@ -790,7 +790,10 @@ Vector3f AP_AHRS::wind_estimate(void) const
|
|||||||
|
|
||||||
#if AP_AHRS_SIM_ENABLED
|
#if AP_AHRS_SIM_ENABLED
|
||||||
case EKFType::SIM:
|
case EKFType::SIM:
|
||||||
wind.zero();
|
if (_sitl) {
|
||||||
|
const auto &fdm = _sitl->state;
|
||||||
|
wind = fdm.wind_ef;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user