diff options
author | Bruce <Bruce.Wan@quantatw.com> | 2016-11-14 12:50:17 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-11-16 19:04:36 -0800 |
commit | 8f8d635dcb4483156ff70b82db39f30dce9bad6b (patch) | |
tree | 2fb12b5937ed87ac51a06f22a40444074ab5ab55 | |
parent | 0e0a9589ec81575ae377431e5f76b68780e0d9eb (diff) | |
download | chrome-ec-8f8d635dcb4483156ff70b82db39f30dce9bad6b.tar.gz |
Snappy: Yoga sensor setting fine tune
Fine tune matrix of base and lid.
BUG=None
BRANCH=None
TEST=check sceen rotate normally
Change-Id: I7bf2918cec1718a5bf872f1d29588df9226ef776
Signed-off-by: Bruce.Wan <Bruce.Wan@quantatw.com>
Reviewed-on: https://chromium-review.googlesource.com/411020
Commit-Ready: Devin Lu <Devin.Lu@quantatw.com>
Tested-by: Devin Lu <Devin.Lu@quantatw.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
-rw-r--r-- | board/snappy/board.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/board/snappy/board.c b/board/snappy/board.c index f6e4a0879f..8065cf8bab 100644 --- a/board/snappy/board.c +++ b/board/snappy/board.c @@ -697,13 +697,13 @@ static struct mutex g_base_mutex; /* Matrix to rotate accelrator into standard reference frame */ const matrix_3x3_t base_standard_ref = { { 0, FLOAT_TO_FP(-1), 0}, - { FLOAT_TO_FP(1), 0, 0}, - { 0, 0, FLOAT_TO_FP(1)} + { FLOAT_TO_FP(-1), 0, 0}, + { 0, 0, FLOAT_TO_FP(-1)} }; -const matrix_3x3_t mag_standard_ref = { - { FLOAT_TO_FP(-1), 0, 0}, - { 0, FLOAT_TO_FP(1), 0}, +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)} }; @@ -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] = { |