Plane: added QRTL as RCn_OPTION

This commit is contained in:
Andrew Tridgell 2021-11-22 07:43:58 +11:00
parent 0554fb2d4f
commit 5f52171776

View File

@ -154,6 +154,9 @@ void RC_Channel_Plane::init_aux_function(const RC_Channel::aux_func_t ch_option,
case AUX_FUNC::RTL: case AUX_FUNC::RTL:
case AUX_FUNC::TAKEOFF: case AUX_FUNC::TAKEOFF:
case AUX_FUNC::FBWA: case AUX_FUNC::FBWA:
#if HAL_QUADPLANE_ENABLED
case AUX_FUNC::QRTL:
#endif
case AUX_FUNC::FBWA_TAILDRAGGER: case AUX_FUNC::FBWA_TAILDRAGGER:
case AUX_FUNC::FWD_THR: case AUX_FUNC::FWD_THR:
case AUX_FUNC::LANDING_FLARE: case AUX_FUNC::LANDING_FLARE:
@ -252,6 +255,12 @@ bool RC_Channel_Plane::do_aux_function(const aux_func_t ch_option, const AuxSwit
do_aux_function_change_mode(Mode::Number::FLY_BY_WIRE_A, ch_flag); do_aux_function_change_mode(Mode::Number::FLY_BY_WIRE_A, ch_flag);
break; break;
#if HAL_QUADPLANE_ENABLED
case AUX_FUNC::QRTL:
do_aux_function_change_mode(Mode::Number::QRTL, ch_flag);
break;
#endif
case AUX_FUNC::SOARING: case AUX_FUNC::SOARING:
do_aux_function_soaring_3pos(ch_flag); do_aux_function_soaring_3pos(ch_flag);
break; break;