From e2a57a0e6eff42f09df49c0e0b54d0ecc12d9695 Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Fri, 20 Dec 2024 22:26:38 +0000 Subject: [PATCH] AP_Mission: set source index when running aux functions --- libraries/AP_Mission/AP_Mission_Commands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Mission/AP_Mission_Commands.cpp b/libraries/AP_Mission/AP_Mission_Commands.cpp index c25b34131d..ba59139edf 100644 --- a/libraries/AP_Mission/AP_Mission_Commands.cpp +++ b/libraries/AP_Mission/AP_Mission_Commands.cpp @@ -31,7 +31,7 @@ bool AP_Mission::start_command_do_aux_function(const AP_Mission::Mission_Command default: return false; } - rc().run_aux_function(function, pos, RC_Channel::AuxFuncTrigger::Source::MISSION); + rc().run_aux_function(function, pos, RC_Channel::AuxFuncTrigger::Source::MISSION, cmd.index); return true; } #endif // AP_RC_CHANNEL_ENABLED