From 94b97313be6b89e9eded959971e74646753be3ac Mon Sep 17 00:00:00 2001 From: Gone4Dirt Date: Tue, 28 Sep 2021 09:51:26 +0100 Subject: [PATCH] AP_AHRS: Add APM_BUILD_Heli --- libraries/AP_AHRS/AP_AHRS.cpp | 2 +- libraries/AP_AHRS/AP_AHRS_DCM.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_AHRS/AP_AHRS.cpp b/libraries/AP_AHRS/AP_AHRS.cpp index e7c7f0d5f9..19d77cf67b 100644 --- a/libraries/AP_AHRS/AP_AHRS.cpp +++ b/libraries/AP_AHRS/AP_AHRS.cpp @@ -187,7 +187,7 @@ AP_AHRS::AP_AHRS(uint8_t flags) : // load default values from var_info table AP_Param::setup_object_defaults(this, var_info); -#if APM_BUILD_TYPE(APM_BUILD_ArduCopter) || APM_BUILD_TYPE(APM_BUILD_ArduSub) +#if APM_BUILD_COPTER_OR_HELI() || APM_BUILD_TYPE(APM_BUILD_ArduSub) // Copter and Sub force the use of EKF _ekf_flags |= AP_AHRS::FLAG_ALWAYS_USE_EKF; #endif diff --git a/libraries/AP_AHRS/AP_AHRS_DCM.cpp b/libraries/AP_AHRS/AP_AHRS_DCM.cpp index ae44096c4b..b7fa3e8c7c 100644 --- a/libraries/AP_AHRS/AP_AHRS_DCM.cpp +++ b/libraries/AP_AHRS/AP_AHRS_DCM.cpp @@ -611,7 +611,7 @@ Vector3f AP_AHRS_DCM::ra_delayed(uint8_t instance, const Vector3f &ra) */ bool AP_AHRS_DCM::should_correct_centrifugal() const { -#if APM_BUILD_TYPE(APM_BUILD_ArduCopter) || APM_BUILD_TYPE(APM_BUILD_ArduSub) || APM_BUILD_TYPE(APM_BUILD_Blimp) +#if APM_BUILD_COPTER_OR_HELI() || APM_BUILD_TYPE(APM_BUILD_ArduSub) || APM_BUILD_TYPE(APM_BUILD_Blimp) return hal.util->get_soft_armed(); #endif