AP_Button: print button index and postion on aux function trigger
This commit is contained in:
parent
6a4280429a
commit
bedbc0a65f
@ -279,7 +279,7 @@ void AP_Button::run_aux_functions(bool force)
|
|||||||
#if AP_RC_CHANNEL_AUX_FUNCTION_STRINGS_ENABLED
|
#if AP_RC_CHANNEL_AUX_FUNCTION_STRINGS_ENABLED
|
||||||
const char *str = rc_channel->string_for_aux_function(func);
|
const char *str = rc_channel->string_for_aux_function(func);
|
||||||
if (str != nullptr) {
|
if (str != nullptr) {
|
||||||
gcs().send_text(MAV_SEVERITY_INFO, "Button: executing (%s)", str);
|
gcs().send_text(MAV_SEVERITY_INFO, "Button %i: executing (%s %s)", i+1, str, rc_channel->string_for_aux_pos(pos));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
rc_channel->run_aux_function(func, pos, RC_Channel::AuxFuncTriggerSource::BUTTON);
|
rc_channel->run_aux_function(func, pos, RC_Channel::AuxFuncTriggerSource::BUTTON);
|
||||||
|
Loading…
Reference in New Issue
Block a user