The Emdoor I8170 STK8312 accel sensor's Z axis has a
(2.3, 2.5) bias.
Set the accel BUCKET_TOLERANCE to 2.5 to allow compensation
for this sensor.
Change-Id: I39c434d5ba8c9b81558003751dd409b20ef93c85
Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-17695
Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-17696
Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-17698
Signed-off-by: Constantin Musca <constantin.musca@intel.com>
Reviewed-on: https://android.intel.com:443/407030
/* Accelerometer bias estimation and compensation */
#define BUCKET_COUNT 3
-#define BUCKET_TOLERANCE 1 /* Maximum monitoring distance from value of interest, in m/s² */
+#define BUCKET_TOLERANCE 2.5 /* Maximum monitoring distance from value of interest, in m/s² */
#define SLICES 100 /* We currently have 3 buckets per axis, and 100 slices per bucket ; then we distribute incoming samples among slices */
typedef struct