From 107e647d00a75f6650e4729d9f26054c6ab1aca8 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 3 Aug 2021 11:59:55 +1000 Subject: [PATCH] AP_AHRS: correct compilation under SITL with no EKF3 --- libraries/AP_AHRS/AP_AHRS.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/AP_AHRS/AP_AHRS.cpp b/libraries/AP_AHRS/AP_AHRS.cpp index f6cd0353e8..c2151a21f0 100644 --- a/libraries/AP_AHRS/AP_AHRS.cpp +++ b/libraries/AP_AHRS/AP_AHRS.cpp @@ -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