diff options
author | jerry2.huang <jerry2.huang@lcfc.corp-partner.google.com> | 2020-11-24 10:30:16 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-11-25 02:49:56 +0000 |
commit | a2a960834bcb7a86d3c30b052bec7f3f4297837b (patch) | |
tree | 678208a7f02f8ad466e525047c1ee4c5155697ff | |
parent | 9c1dea75ffa0c3c05faf8ff5f1dfc01671c487bd (diff) | |
download | chrome-ec-a2a960834bcb7a86d3c30b052bec7f3f4297837b.tar.gz |
boten: fine tune motion sensor matrices
fine tune lid and base accel sensor matrices
BUG=b:172290264
BRANCH=none
TEST=buildall, check the sreen rotation degree is correct on tablet mode
and desktop mode
Signed-off-by: jerry2.huang <jerry2.huang@lcfc.corp-partner.google.com>
Change-Id: I5e3ba275484dc2ecc178ef114cc27c9dc6392745
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2556731
Reviewed-by: Henry Sun <henrysun@google.com>
Reviewed-by: Diana Z <dzigterman@chromium.org>
-rw-r--r-- | board/boten/board.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/board/boten/board.c b/board/boten/board.c index 1b6d1a8080..f8f20bf0ec 100644 --- a/board/boten/board.c +++ b/board/boten/board.c @@ -286,14 +286,14 @@ static struct mutex g_base_mutex; /* Matrices to rotate accelerometers into the standard reference. */ static const mat33_fp_t lid_standard_ref = { { FLOAT_TO_FP(1), 0, 0}, - { 0, FLOAT_TO_FP(1), 0}, + { 0, FLOAT_TO_FP(-1), 0}, { 0, 0, FLOAT_TO_FP(-1)} }; static const mat33_fp_t base_standard_ref = { + { 0, FLOAT_TO_FP(-1), 0}, { FLOAT_TO_FP(1), 0, 0}, - { 0, FLOAT_TO_FP(1), 0}, - { 0, 0, FLOAT_TO_FP(-1)} + { 0, 0, FLOAT_TO_FP(1)} }; /* Sensor Data */ |