Report medium accuracy rather than the default (unreliable) one
if we're not using calibration.
Change-Id: I648075681eed0a82bc081babe8a0825096bbe4a4
{
struct gyro_cal* cal_data = (struct gyro_cal*) info->cal_data;
- event->gyro.status = SENSOR_STATUS_ACCURACY_MEDIUM;
-
if (cal_data == NULL)
return;
case SENSOR_TYPE_GYROSCOPE:
case SENSOR_TYPE_GYROSCOPE_UNCALIBRATED:
+ /*
+ * Report medium accuracy by default ; higher accuracy
+ * levels will be reported once, and if, we achieve
+ * calibration.
+ */
+ data->gyro.status = SENSOR_STATUS_ACCURACY_MEDIUM;
+
if (!(sensor_info[s].quirks & QUIRK_TERSE_DRIVER))
calibrate_gyro(data, &sensor_info[s]);
if (sensor_info[s].quirks & QUIRK_NOISY)