mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 17:13:34 +08:00
mixer_module: remove unused limit_callbacks_to_primary argument
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user