mirror of https://github.com/ArduPilot/ardupilot
Copter: set source index when running aux functions
This commit is contained in:
parent
dfc312d8fa
commit
c0d1be4d2e
|
@ -140,7 +140,7 @@ void RC_Channel_Copter::init_aux_function(const AUX_FUNC ch_option, const AuxSwi
|
||||||
case AUX_FUNC::CUSTOM_CONTROLLER:
|
case AUX_FUNC::CUSTOM_CONTROLLER:
|
||||||
case AUX_FUNC::WEATHER_VANE_ENABLE:
|
case AUX_FUNC::WEATHER_VANE_ENABLE:
|
||||||
case AUX_FUNC::TRANSMITTER_TUNING:
|
case AUX_FUNC::TRANSMITTER_TUNING:
|
||||||
run_aux_function(ch_option, ch_flag, AuxFuncTrigger::Source::INIT);
|
run_aux_function(ch_option, ch_flag, AuxFuncTrigger::Source::INIT, ch_in);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
RC_Channel::init_aux_function(ch_option, ch_flag);
|
RC_Channel::init_aux_function(ch_option, ch_flag);
|
||||||
|
|
Loading…
Reference in New Issue