From 4143c9402972c28aba55a3c0376fb8d4dabf0d45 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Wed, 26 Aug 2015 14:15:32 +0200 Subject: [PATCH] sensors app: Re-introduce sensor rate limiting --- src/modules/sensors/sensors.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/sensors/sensors.cpp b/src/modules/sensors/sensors.cpp index b9337dc231..26f7b1da30 100644 --- a/src/modules/sensors/sensors.cpp +++ b/src/modules/sensors/sensors.cpp @@ -2168,6 +2168,9 @@ Sensors::task_main() /* rate limit vehicle status updates to 5Hz */ orb_set_interval(_vcontrol_mode_sub, 200); + /* rate limit gyro to 250 Hz (the gyro signal is lowpassed accordingly earlier) */ + orb_set_interval(_gyro_sub, 4); + /* * do advertisements */