diff --git a/libraries/RC_Channel/RC_Channel.cpp b/libraries/RC_Channel/RC_Channel.cpp index 32023fe9ab..f454515aef 100644 --- a/libraries/RC_Channel/RC_Channel.cpp +++ b/libraries/RC_Channel/RC_Channel.cpp @@ -1617,7 +1617,7 @@ bool RC_Channel::do_aux_function(const aux_func_t ch_option, const AuxSwitchPos case AUX_FUNC::AHRS_TYPE: { #if HAL_NAVEKF3_AVAILABLE && HAL_EXTERNAL_AHRS_ENABLED - AP::ahrs().set_ekf_type(ch_flag==AuxSwitchPos::HIGH? 11 : 3); + AP::ahrs().set_ekf_type(ch_flag==AuxSwitchPos::HIGH? AP_AHRS::EKFType::EXTERNAL : AP_AHRS::EKFType::THREE); #endif break; }