diff options
author | Sue Chen <sue.chen@quanta.corp-partner.google.com> | 2021-12-07 09:50:07 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-12-08 03:58:29 +0000 |
commit | 51c390b37286f2b705160b3e1c6a9438b3cce7f7 (patch) | |
tree | 2402c47d243e3301e6463fe30be2f7db15103d29 | |
parent | 849ac6ee864eedc0eef6ce0b900f9645597c0086 (diff) | |
download | chrome-ec-51c390b37286f2b705160b3e1c6a9438b3cce7f7.tar.gz |
Dewatt: fix orientation of Base accel BMI260
orientation
-1, 0, 0
0, 1, 0
0, 0, -1
BUG=b:209523571
BRANCH=none
TEST=The lid angle and display are correct.
Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com>
Change-Id: I3e1168e5211e63f1f1ddf91233bc9a2ec6443ec6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3319619
Reviewed-by: Diana Z <dzigterman@chromium.org>
-rw-r--r-- | board/dewatt/board.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/board/dewatt/board.c b/board/dewatt/board.c index c5b334c1ef..9d9ed1bbc1 100644 --- a/board/dewatt/board.c +++ b/board/dewatt/board.c @@ -46,9 +46,9 @@ static struct accelgyro_saved_data_t g_bma422_data; /* Matrix to rotate accelrator into standard reference frame */ const mat33_fp_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, FLOAT_TO_FP(1), 0}, + { 0, 0, FLOAT_TO_FP(-1)} }; const mat33_fp_t lid_standard_ref = { |