ArduPlane: add CRUISE mode RC AUX Function switch

This commit is contained in:
Hwurzburg 2021-08-09 20:54:59 -05:00 committed by Andrew Tridgell
parent 42128a70b8
commit 9ab0d2e387

View File

@ -151,6 +151,7 @@ void RC_Channel_Plane::init_aux_function(const RC_Channel::aux_func_t ch_option,
case AUX_FUNC::LANDING_FLARE:
case AUX_FUNC::PARACHUTE_RELEASE:
case AUX_FUNC::MODE_SWITCH_RESET:
case AUX_FUNC::CRUISE:
break;
case AUX_FUNC::Q_ASSIST:
@ -316,6 +317,11 @@ case AUX_FUNC::ARSPD_CALIBRATE:
plane.reset_control_switch();
break;
case AUX_FUNC::CRUISE:
do_aux_function_change_mode(Mode::Number::CRUISE, ch_flag);
break;
default:
return RC_Channel::do_aux_function(ch_option, ch_flag);
}