mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 16:18:52 +08:00
fix fmu: lower polling timeout to 5ms when running as task
With the previous value of 20ms, we dropped RC input when not armed. The result was that some RC channels jumped randomly between min & max.
This commit is contained in:
@@ -1210,7 +1210,7 @@ PX4FMU::cycle()
|
||||
_current_update_rate = 0;
|
||||
}
|
||||
|
||||
int poll_timeout = 20;
|
||||
int poll_timeout = 5; // needs to be small enough so that we don't miss RC input data
|
||||
|
||||
if (!_run_as_task) {
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user