AP_Mission: set source index when running aux functions

This commit is contained in:
Iampete1 2024-12-20 22:26:38 +00:00
parent 72ce853fb0
commit e2a57a0e6e

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