Cts Verifier is frequently failing the gyro tests because it's very
sensitive to out of spec samples. Filtering the BMG160 output makes
it happy, so let's enable filtering on other sensor types than just
magnetometer. We may want to tune filter latency though.
Issue: GMIN-2992
Change-Id: I0cbea2195a616ffd922c67246d04d0af8619398c
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
switch (sensor_type) {
case SENSOR_TYPE_ACCELEROMETER:
+ if (sensor_info[s].quirks & QUIRK_NOISY)
+ denoise(&sensor_info[s], data, 3);
break;
case SENSOR_TYPE_MAGNETIC_FIELD:
case SENSOR_TYPE_GYROSCOPE:
case SENSOR_TYPE_GYROSCOPE_UNCALIBRATED:
calibrate_gyro(data, &sensor_info[s]);
+ if (sensor_info[s].quirks & QUIRK_NOISY)
+ denoise(&sensor_info[s], data, 3);
break;
case SENSOR_TYPE_LIGHT: