Plane: Quadaplane: add aux function for QStabilize mode

This commit is contained in:
Iampete1 2022-12-01 09:14:36 +00:00 committed by Andrew Tridgell
parent 021cb75d5b
commit 152eb47020
1 changed files with 5 additions and 0 deletions

View File

@ -156,6 +156,7 @@ void RC_Channel_Plane::init_aux_function(const RC_Channel::aux_func_t ch_option,
case AUX_FUNC::FBWA:
#if HAL_QUADPLANE_ENABLED
case AUX_FUNC::QRTL:
case AUX_FUNC::QSTABILIZE:
#endif
case AUX_FUNC::FBWA_TAILDRAGGER:
case AUX_FUNC::FWD_THR:
@ -260,6 +261,10 @@ bool RC_Channel_Plane::do_aux_function(const aux_func_t ch_option, const AuxSwit
case AUX_FUNC::QRTL:
do_aux_function_change_mode(Mode::Number::QRTL, ch_flag);
break;
case AUX_FUNC::QSTABILIZE:
do_aux_function_change_mode(Mode::Number::QSTABILIZE, ch_flag);
break;
#endif
case AUX_FUNC::SOARING: