AP_Mission: set source index when running aux functions

This commit is contained in:
Iampete1 2024-12-20 22:26:38 +00:00 committed by Andrew Tridgell
parent 81c5697948
commit 440d49c7f3

View File

@ -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