mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
RC_Channel: log init_aux_function and read_aux
This commit is contained in:
parent
d8d3494b17
commit
21d92780d2
@ -521,7 +521,7 @@ void RC_Channel::init_aux_function(const aux_func_t ch_option, const AuxSwitchPo
|
|||||||
#if HAL_MOUNT_ENABLED
|
#if HAL_MOUNT_ENABLED
|
||||||
case AUX_FUNC::RETRACT_MOUNT:
|
case AUX_FUNC::RETRACT_MOUNT:
|
||||||
#endif
|
#endif
|
||||||
do_aux_function(ch_option, ch_flag);
|
run_aux_function(ch_option, ch_flag, AuxFuncTriggerSource::INIT);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
gcs().send_text(MAV_SEVERITY_WARNING, "Failed to init: RC%u_OPTION: %u\n",
|
gcs().send_text(MAV_SEVERITY_WARNING, "Failed to init: RC%u_OPTION: %u\n",
|
||||||
@ -638,7 +638,7 @@ bool RC_Channel::read_aux()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// debounced; undertake the action:
|
// debounced; undertake the action:
|
||||||
do_aux_function(_option, new_position);
|
run_aux_function(_option, new_position, AuxFuncTriggerSource::RC);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user