mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-01 18:50:35 +08:00
control_allocator: disable backup schedule with lockstep
The backup schedule triggers updates too early and leads to simulator errors: ERROR [simulator] poll timeout 0, 22
This commit is contained in:
@@ -98,7 +98,9 @@ ControlAllocator::init()
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifndef ENABLE_LOCKSTEP_SCHEDULER // Backup schedule would interfere with lockstep
|
||||
ScheduleDelayed(50_ms);
|
||||
#endif
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -296,8 +298,10 @@ ControlAllocator::Run()
|
||||
|
||||
perf_begin(_loop_perf);
|
||||
|
||||
#ifndef ENABLE_LOCKSTEP_SCHEDULER // Backup schedule would interfere with lockstep
|
||||
// Push backup schedule
|
||||
ScheduleDelayed(50_ms);
|
||||
#endif
|
||||
|
||||
// Check if parameters have changed
|
||||
if (_parameter_update_sub.updated() && !_armed) {
|
||||
|
||||
Reference in New Issue
Block a user