diff options
author | michael_chen <michael5_chen@pegatroncorp.com> | 2018-10-30 14:04:19 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-10-31 21:59:37 -0700 |
commit | 4184bf54877f26f0f5a7a243792e262126606b67 (patch) | |
tree | 4d7cc34fa70e52a0322c7720ee3d17c61a66f39e /board/rammus | |
parent | 5a2a94eea5c5d7eb47964e211917437e57083399 (diff) | |
download | chrome-ec-4184bf54877f26f0f5a7a243792e262126606b67.tar.gz |
rammus: Correct accel sensor BMI160 base reference dependent on sensor location.
Base on BMI160 location, the x axis is positive correlation
and the y, z axis negative correlation.
Correct the MB base reference direction.
BUG=b:118362153
BRANCH=ToT
TEST=Manual
1. Using EC console command "accelinfo on" the check the
Base Accel x, y, z value.
2. Run factory tool to verify.
Change-Id: I5c7968e9294b2fca511808d30aad3a99d524643f
Signed-off-by: michael_chen <michael5_chen@pegatroncorp.com>
Reviewed-on: https://chromium-review.googlesource.com/1307273
Commit-Ready: michael chen <michael5_chen@pegatroncorp.com>
Tested-by: michael chen <michael5_chen@pegatroncorp.com>
Reviewed-by: Zhuohao Lee <zhuohao@chromium.org>
Diffstat (limited to 'board/rammus')
-rw-r--r-- | board/rammus/board.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/rammus/board.c b/board/rammus/board.c index b5be106f71..e240e52f08 100644 --- a/board/rammus/board.c +++ b/board/rammus/board.c @@ -551,8 +551,8 @@ static struct accelgyro_saved_data_t g_bma255_data; /* Matrix to rotate accelrator into standard reference frame */ const mat33_fp_t base_standard_ref = { - { FLOAT_TO_FP(-1), 0, 0 }, - { 0, FLOAT_TO_FP(1), 0 }, + { FLOAT_TO_FP(1), 0, 0 }, + { 0, FLOAT_TO_FP(-1), 0 }, { 0, 0, FLOAT_TO_FP(-1) } }; |