mixer_module: remove unused limit_callbacks_to_primary argument

This commit is contained in:
Beat Küng
2022-11-22 13:41:16 -05:00
committed by Daniel Agar
parent 2833832968
commit a20c581111
5 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -187,7 +187,7 @@ void PWMOut::Run()
} }
// check at end of cycle (updateSubscriptions() can potentially change to a different WorkQueue thread) // 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); perf_end(_cycle_perf);
} }
+2 -2
View File
@@ -633,11 +633,11 @@ void PX4IO::Run()
} }
} }
_mixing_output.updateSubscriptions(true, true);
// minimal backup scheduling // minimal backup scheduling
ScheduleDelayed(20_ms); 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); perf_end(_cycle_perf);
} }
+1 -1
View File
@@ -404,7 +404,7 @@ void TAP_ESC::Run()
} }
// check at end of cycle (updateSubscriptions() can potentially change to a different WorkQueue thread) // 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); perf_end(_cycle_perf);
} }
+1 -1
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) { if (!_need_function_update || _armed.armed) {
return false; return false;
+1 -2
View File
@@ -151,10 +151,9 @@ public:
* Check for subscription updates. * Check for subscription updates.
* Call this at the very end of Run() if allow_wq_switch * Call this at the very end of Run() if allow_wq_switch
* @param allow_wq_switch if true * @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 * @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 * unregister uORB subscription callbacks