OSDN Git Service

calibration.h: set accel BUCKET_TOLERANCE to 2.5
authorConstantin Musca <constantin.musca@intel.com>
Wed, 2 Sep 2015 10:25:15 +0000 (13:25 +0300)
committerbuildslave <sys_buildbot@intel.com>
Wed, 2 Sep 2015 14:04:30 +0000 (14:04 +0000)
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

calibration.h

index 00324da..eb75287 100644 (file)
@@ -39,7 +39,7 @@ gyro_cal_t;
 /* 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