From df028763fb7f51e61011e6c3fdbbb410b7243797 Mon Sep 17 00:00:00 2001 From: Bruce Date: Fri, 28 Oct 2016 09:09:30 +0800 Subject: [PATCH] Pyro: Yoga sensor setting fine tune Fine tune matrix of base and lid. BUG=chrome-os-partner:58798 BRANCH=None TEST=check sceen rotate normally Change-Id: Ib6740f0f5d6cda87d937b95dfa5788ae72b6aaaf Signed-off-by: Bruce.Wan Reviewed-on: https://chromium-review.googlesource.com/403694 Commit-Ready: Saurabh Madan Tested-by: Devin Lu Tested-by: Saurabh Madan Reviewed-by: Shawn N --- board/pyro/board.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/board/pyro/board.c b/board/pyro/board.c index ddd4c7976b..e34fcbdd89 100644 --- a/board/pyro/board.c +++ b/board/pyro/board.c @@ -701,10 +701,10 @@ const matrix_3x3_t base_standard_ref = { { 0, 0, FLOAT_TO_FP(1)} }; -const matrix_3x3_t mag_standard_ref = { +const matrix_3x3_t lid_standard_ref = { { FLOAT_TO_FP(-1), 0, 0}, - { 0, FLOAT_TO_FP(1), 0}, - { 0, 0, FLOAT_TO_FP(-1)} + { 0, FLOAT_TO_FP(-1), 0}, + { 0, 0, FLOAT_TO_FP(1)} }; /* KX022 private data */ @@ -723,7 +723,7 @@ struct motion_sensor_t motion_sensors[] = { .drv_data = &g_kx022_data, .port = I2C_PORT_LID_ACCEL, .addr = KX022_ADDR1, - .rot_standard_ref = NULL, /* Identity matrix. */ + .rot_standard_ref = &lid_standard_ref, /* Identity matrix. */ .default_range = 2, /* g, enough for laptop. */ .config = { /* AP: by default use EC settings */ @@ -834,7 +834,7 @@ struct motion_sensor_t motion_sensors[] = { .port = I2C_PORT_GYRO, .addr = BMI160_ADDR0, .default_range = 1 << 11, /* 16LSB / uT, fixed */ - .rot_standard_ref = &mag_standard_ref, + .rot_standard_ref = NULL, .config = { /* AP: by default shutdown all sensors */ [SENSOR_CONFIG_AP] = {