summaryrefslogtreecommitdiff
path: root/board/quackingstick/board.c
diff options
context:
space:
mode:
authorSue Chen <sue.chen@quanta.corp-partner.google.com>2021-12-02 14:12:14 +0800
committerCommit Bot <commit-bot@chromium.org>2021-12-06 19:25:15 +0000
commit1670136344b405317272cecce178eba1e95535c3 (patch)
tree92a05df89e242e8a7f44a901ca26c11da7e1c590 /board/quackingstick/board.c
parent8b6e53873cafa90de04e50a6c74ca9059b3126e8 (diff)
downloadchrome-ec-1670136344b405317272cecce178eba1e95535c3.tar.gz
Quackingstick: fix orientation for accelgyro BMI160
Modify lid_standard_ref to 0, 1, 0 -1, 0, 0 0, 0, 1 BUG=b:208865381 BRANCH=none TEST=The display orientation is correct on the BMI160 board. Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: Ica254ebe7e805771f7a6a2514196a7123a7908d8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3316163 Reviewed-by: Wai-Hong Tam <waihong@google.com> Reviewed-by: Bob Moragues <moragues@chromium.org> Commit-Queue: Bob Moragues <moragues@chromium.org>
Diffstat (limited to 'board/quackingstick/board.c')
-rw-r--r--board/quackingstick/board.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/quackingstick/board.c b/board/quackingstick/board.c
index 3ab1d69c2e..856578db82 100644
--- a/board/quackingstick/board.c
+++ b/board/quackingstick/board.c
@@ -263,8 +263,8 @@ static enum lid_accelgyro_type lid_accelgyro_config;
/* Matrix to rotate accelerometer into standard reference frame */
const mat33_fp_t lid_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)}
};