diff --git a/libraries/AP_AHRS/AP_AHRS_NavEKF.cpp b/libraries/AP_AHRS/AP_AHRS_NavEKF.cpp index a097822928..4fb696affc 100644 --- a/libraries/AP_AHRS/AP_AHRS_NavEKF.cpp +++ b/libraries/AP_AHRS/AP_AHRS_NavEKF.cpp @@ -1780,11 +1780,6 @@ bool AP_AHRS_NavEKF::pre_arm_check(bool requires_position, char *failure_msg, ui return false; } -void AP_AHRS_NavEKF::set_ekf_use(bool setting) -{ - _ekf_type.set(setting?1:0); -} - // true if the AHRS has completed initialisation bool AP_AHRS_NavEKF::initialised(void) const { diff --git a/libraries/AP_AHRS/AP_AHRS_NavEKF.h b/libraries/AP_AHRS/AP_AHRS_NavEKF.h index 6d2ce627a3..a3901057fa 100644 --- a/libraries/AP_AHRS/AP_AHRS_NavEKF.h +++ b/libraries/AP_AHRS/AP_AHRS_NavEKF.h @@ -197,8 +197,6 @@ public: // get speed limit void getEkfControlLimits(float &ekfGndSpdLimit, float &ekfNavVelGainScaler) const; - void set_ekf_use(bool setting); - // is the AHRS subsystem healthy? bool healthy() const override;