summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaadi Maalem <saadi.maalem@intel.com>2015-07-14 16:56:06 +0800
committerZhengyin Qian <qianzy@google.com>2015-08-13 19:37:42 -0700
commit7e89936cef8aea0e53e690dee9d58f9b14dd9f16 (patch)
treef1152c3d6ddc85f7d530aa57f2a23871256e9f78
parent76227f0914d2f20b9af44c8fce0a849dba01dbe9 (diff)
downloadsensors-7e89936cef8aea0e53e690dee9d58f9b14dd9f16.tar.gz
Sensor: adjust lsm6ds3 axis since PCB is assembled bottom-up.
JIRA: MARVIN-315 Reverse Accelerometer (x and z axis) and Gyroscope (z axis) matrix to fix it. Change-Id: I5da569afbc5ac2607c8c96caa5f339e7b01db0fc Signed-off-by: Fei Li <feix.f.li@intel.com> Reviewed-on: https://android.intel.com/389877 Reviewed-by: Tasayco Loarte, VictorX <victorx.tasayco.loarte@intel.com> Reviewed-by: Ledentec, AlexandreX <alexandrex.ledentec@intel.com> Reviewed-by: Maalem, Saadi <saadi.maalem@intel.com> Tested-by: Tasayco Loarte, VictorX <victorx.tasayco.loarte@intel.com>
-rw-r--r--libsensors_iio/.config4
-rw-r--r--libsensors_iio/configuration.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/libsensors_iio/.config b/libsensors_iio/.config
index bca3f77..c4a62b0 100644
--- a/libsensors_iio/.config
+++ b/libsensors_iio/.config
@@ -35,11 +35,11 @@ CONFIG_ST_HAL_GEOMAG_ROT_VECTOR_DISABLED=y
#
CONFIG_ST_HAL_MAX_SAMPLING_FREQUENCY=200
CONFIG_ST_HAL_DEBUG_LEVEL=0
-CONFIG_ST_HAL_ACCEL_ROT_MATRIX="1,0,0,0,1,0,0,0,1"
+CONFIG_ST_HAL_ACCEL_ROT_MATRIX="1,0,0,0,-1,0,0,0,-1"
CONFIG_ST_HAL_ACCEL_RANGE=17
CONFIG_ST_HAL_MAGN_ROT_MATRIX="1,0,0,0,1,0,0,0,1"
CONFIG_ST_HAL_MAGN_RANGE=1000
-CONFIG_ST_HAL_GYRO_ROT_MATRIX="1,0,0,0,1,0,0,0,1"
+CONFIG_ST_HAL_GYRO_ROT_MATRIX="1,0,0,0,1,0,0,0,-1"
CONFIG_ST_HAL_GYRO_RANGE=35
#
diff --git a/libsensors_iio/configuration.h b/libsensors_iio/configuration.h
index 03ee9b0..a7bf75f 100644
--- a/libsensors_iio/configuration.h
+++ b/libsensors_iio/configuration.h
@@ -27,11 +27,11 @@
#define CONFIG_ST_HAL_MAX_SAMPLING_FREQUENCY 200
#define CONFIG_ST_HAL_DEBUG_LEVEL 0
-#define CONFIG_ST_HAL_ACCEL_ROT_MATRIX 1,0,0,0,1,0,0,0,1
+#define CONFIG_ST_HAL_ACCEL_ROT_MATRIX 1,0,0,0,-1,0,0,0,-1
#define CONFIG_ST_HAL_ACCEL_RANGE 17
#define CONFIG_ST_HAL_MAGN_ROT_MATRIX 1,0,0,0,1,0,0,0,1
#define CONFIG_ST_HAL_MAGN_RANGE 1000
-#define CONFIG_ST_HAL_GYRO_ROT_MATRIX 1,0,0,0,1,0,0,0,1
+#define CONFIG_ST_HAL_GYRO_ROT_MATRIX 1,0,0,0,1,0,0,0,-1
#define CONFIG_ST_HAL_GYRO_RANGE 35