From 2193afd0a009008a5331a86db2e76a359c2d291e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Tue, 18 Jul 2017 15:31:42 +0200 Subject: [PATCH] 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. --- src/drivers/px4fmu/fmu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/px4fmu/fmu.cpp b/src/drivers/px4fmu/fmu.cpp index 739f7b1b4a..a8af4ed06c 100644 --- a/src/drivers/px4fmu/fmu.cpp +++ b/src/drivers/px4fmu/fmu.cpp @@ -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) { /*