summaryrefslogtreecommitdiff
path: root/board/boten
diff options
context:
space:
mode:
authorjerry2.huang <jerry2.huang@lcfc.corp-partner.google.com>2020-11-24 10:30:16 +0800
committerCommit Bot <commit-bot@chromium.org>2020-11-25 02:49:56 +0000
commita2a960834bcb7a86d3c30b052bec7f3f4297837b (patch)
tree678208a7f02f8ad466e525047c1ee4c5155697ff /board/boten
parent9c1dea75ffa0c3c05faf8ff5f1dfc01671c487bd (diff)
downloadchrome-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>
Diffstat (limited to 'board/boten')
-rw-r--r--board/boten/board.c6
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 */