diff options
author | Ege Mihmanli <egemih@google.com> | 2018-01-12 15:18:43 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-01-12 22:37:52 -0800 |
commit | 0765c05d33c985dc752bf2c4668c6e7be6d4c671 (patch) | |
tree | dc1f318deda092c11b36f2f026bf0cb0a0620480 | |
parent | 6efe929eccb2ea1dd56934bdbac8a6d080deea1e (diff) | |
download | chrome-ec-0765c05d33c985dc752bf2c4668c6e7be6d4c671.tar.gz |
rainier: final fix for accel orientation.
Rainier has landscape orientation and last patch was 90 degrees off in
its base rotation value.
BUG=b:71753415
TEST=Flash ec on rainier and tilt device.
BRANCH=None
Signed-off-by: Ege Mihmanli <egemih@google.com>
Change-Id: I1d0837b2391ec4d0051c6c9af984d801264fe64c
Reviewed-on: https://chromium-review.googlesource.com/865803
Reviewed-by: Shawn N <shawnn@chromium.org>
-rw-r--r-- | board/rainier/board.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/rainier/board.c b/board/rainier/board.c index c827241eec..e56cab47d0 100644 --- a/board/rainier/board.c +++ b/board/rainier/board.c @@ -352,8 +352,8 @@ static struct bmi160_drv_data_t g_bmi160_data; /* Matrix to rotate accelerometer into standard reference frame */ const matrix_3x3_t base_standard_ref = { - { 0, FLOAT_TO_FP(-1), 0}, - { FLOAT_TO_FP(1), 0, 0}, + { 0, FLOAT_TO_FP(1), 0}, + { FLOAT_TO_FP(-1), 0, 0}, { 0, 0, FLOAT_TO_FP(1)} }; |