AP_AHRS: correct compilation under SITL with no EKF3

This commit is contained in:
Peter Barker 2021-08-03 11:59:55 +10:00 committed by Peter Barker
parent f71b951cb2
commit 107e647d00

View File

@ -792,11 +792,15 @@ bool AP_AHRS::airspeed_estimate(float &airspeed_ret) const
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
case EKFType::SITL:
#if HAL_NAVEKF3_AVAILABLE
if (EKF3.getWind(-1,wind_vel)) {
ret = true;
} else {
ret = false;
}
#else
ret = false;
#endif
break;
#endif