RC_Channel: use EKFType enum class

This commit is contained in:
Andrew Tridgell 2023-12-05 18:40:18 +11:00
parent 6f79c1cee2
commit 8976767321
1 changed files with 1 additions and 1 deletions

View File

@ -1617,7 +1617,7 @@ bool RC_Channel::do_aux_function(const aux_func_t ch_option, const AuxSwitchPos
case AUX_FUNC::AHRS_TYPE: { case AUX_FUNC::AHRS_TYPE: {
#if HAL_NAVEKF3_AVAILABLE && HAL_EXTERNAL_AHRS_ENABLED #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 #endif
break; break;
} }