ArduPlane: add auxillary function to change to FBWA

This commit is contained in:
Peter Barker 2020-12-15 14:22:14 +11:00 committed by Andrew Tridgell
parent 44cafa0dcc
commit 1307a2fea8

View File

@ -149,6 +149,7 @@ void RC_Channel_Plane::init_aux_function(const RC_Channel::aux_func_t ch_option,
case AUX_FUNC::MANUAL:
case AUX_FUNC::RTL:
case AUX_FUNC::TAKEOFF:
case AUX_FUNC::FBWA:
case AUX_FUNC::FWD_THR:
case AUX_FUNC::LANDING_FLARE:
break;
@ -229,6 +230,10 @@ void RC_Channel_Plane::do_aux_function(const aux_func_t ch_option, const AuxSwit
do_aux_function_change_mode(Mode::Number::TAKEOFF, ch_flag);
break;
case AUX_FUNC::FBWA:
do_aux_function_change_mode(Mode::Number::FLY_BY_WIRE_A, ch_flag);
break;
case AUX_FUNC::SOARING:
do_aux_function_soaring_3pos(ch_flag);
break;