OSDN Git Service

GMINL-3234: Tweak magneto filter window size
authorPatrick Porlan <patrick.porlan@intel.com>
Wed, 12 Nov 2014 13:56:28 +0000 (14:56 +0100)
committerAdriana Reus <adriana.reus@intel.com>
Thu, 13 Nov 2014 12:47:03 +0000 (14:47 +0200)
100 events is way too much, and besides, this value is being reduced
to one second worth of data samples anyway. That should reduce CPU
load and latency a little bit on fast magnetometers. On the ECS
Cruise 7 it shouldn't change much as the BMC150 operates at 30 Hz max.

Change-Id: I078d071dd7c5fb0b06e0fd01739679cff0ac8bef
Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-3234
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
transform.c

index b68f316..ca837c4 100644 (file)
@@ -335,7 +335,7 @@ static int finalize_sample_default (int s, struct sensors_event_t* data)
                case SENSOR_TYPE_MAGNETIC_FIELD:
                        calibrate_compass (data, &sensor_info[s], get_timestamp());
                        if (sensor_info[s].quirks & QUIRK_NOISY)
-                               denoise(&sensor_info[s], data, 3, 100);
+                               denoise(&sensor_info[s], data, 3, 30);
                        break;
 
                case SENSOR_TYPE_GYROSCOPE: