mixer_module: remove unused limit_callbacks_to_primary argument

This commit is contained in:
Beat Küng 2022-11-22 11:56:36 +01:00 committed by Daniel Agar
parent 2833832968
commit a20c581111
5 changed files with 6 additions and 7 deletions

View File

@ -187,7 +187,7 @@ void PWMOut::Run()
}
// check at end of cycle (updateSubscriptions() can potentially change to a different WorkQueue thread)
_mixing_output.updateSubscriptions(true, true);
_mixing_output.updateSubscriptions(true);
perf_end(_cycle_perf);
}

View File

@ -633,11 +633,11 @@ void PX4IO::Run()
}
}
_mixing_output.updateSubscriptions(true, true);
// minimal backup scheduling
ScheduleDelayed(20_ms);
// check at end of cycle (updateSubscriptions() can potentially change to a different WorkQueue thread)
_mixing_output.updateSubscriptions(true);
perf_end(_cycle_perf);
}

View File

@ -404,7 +404,7 @@ void TAP_ESC::Run()
}
// check at end of cycle (updateSubscriptions() can potentially change to a different WorkQueue thread)
_mixing_output.updateSubscriptions(true, true);
_mixing_output.updateSubscriptions(true);
perf_end(_cycle_perf);
}

View File

@ -212,7 +212,7 @@ void MixingOutput::cleanupFunctions()
}
}
bool MixingOutput::updateSubscriptions(bool allow_wq_switch, bool limit_callbacks_to_primary)
bool MixingOutput::updateSubscriptions(bool allow_wq_switch)
{
if (!_need_function_update || _armed.armed) {
return false;

View File

@ -151,10 +151,9 @@ public:
* Check for subscription updates.
* Call this at the very end of Run() if allow_wq_switch
* @param allow_wq_switch if true
* @param limit_callbacks_to_primary set to only register callbacks for primary actuator controls (if used)
* @return true if subscriptions got changed
*/
bool updateSubscriptions(bool allow_wq_switch = false, bool limit_callbacks_to_primary = false);
bool updateSubscriptions(bool allow_wq_switch = false);
/**
* unregister uORB subscription callbacks