px4io: minimal backup scheduling regardless of dynamic mixing

- even if there's no configured output we still need to run to grab RC
data
This commit is contained in:
Daniel Agar 2022-06-27 13:23:22 -04:00
parent 8f8615e6c2
commit 8ccd8fbed1
1 changed files with 3 additions and 5 deletions

View File

@ -531,11 +531,6 @@ void PX4IO::Run()
perf_begin(_cycle_perf);
perf_count(_interval_perf);
// schedule minimal update rate if there are no actuator controls
if (!_mixing_output.useDynamicMixing()) {
ScheduleDelayed(20_ms);
}
/* if we have new control data from the ORB, handle it */
if (_param_sys_hitl.get() <= 0) {
_mixing_output.update();
@ -654,6 +649,9 @@ void PX4IO::Run()
_mixing_output.updateSubscriptions(true, true);
// minimal backup scheduling
ScheduleDelayed(20_ms);
perf_end(_cycle_perf);
}