diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2019-10-25 17:18:32 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-10-12 15:10:05 +0000 |
commit | 44654f6ba9fbd77a95bec015efd8a9c743bead30 (patch) | |
tree | 049672d77d77237281c44d98400190cb5205fb08 | |
parent | 270925bdc4b1287e1a0087f9ac797904234ef9db (diff) | |
download | chrome-ec-44654f6ba9fbd77a95bec015efd8a9c743bead30.tar.gz |
drallion_ish: correct lid accelerometer rotation matrix
Z axis was inverted.
BUG=b:140311300
BRANCH=none
TEST=use ectool to verify sane values at various lid angles
Change-Id: I48863fc336474f34e123ee37f495aff35251b111
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1881930
Reviewed-by: Mathew King <mathewk@chromium.org>
(cherry picked from commit 0f6d238844a75756e660959a0c2051f397682ae6)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3193838
Tested-by: Rong Chang <rongchang@chromium.org>
Auto-Submit: Rong Chang <rongchang@chromium.org>
Commit-Queue: Rong Chang <rongchang@chromium.org>
-rw-r--r-- | board/drallion_ish/board.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/drallion_ish/board.c b/board/drallion_ish/board.c index 92e1305df9..bea54d439f 100644 --- a/board/drallion_ish/board.c +++ b/board/drallion_ish/board.c @@ -45,8 +45,8 @@ static struct lis2mdl_private_data lis2mdl_a_data; /* Matrix to rotate lid sensor into standard reference frame */ const mat33_fp_t lid_rot_ref = { { FLOAT_TO_FP(-1), 0, 0}, - { 0, FLOAT_TO_FP(-1), 0}, - { 0, 0, FLOAT_TO_FP(1)} + { 0, FLOAT_TO_FP(1), 0}, + { 0, 0, FLOAT_TO_FP(1)} }; /* Drivers */ |