Skip to content

Commit

Permalink
RC_Channel: use EKFType enum class
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Dec 16, 2023
1 parent 6f79c1c commit 8976767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/RC_Channel/RC_Channel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8976767

Please sign in to comment.