diff options
author | Jacky Wang <jacky5_wang@pegatron.corp-partner.google.com> | 2021-02-01 17:05:21 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-02-02 19:12:00 +0000 |
commit | babc0ea2dc00f53cac08e18a407b8f9921305d7c (patch) | |
tree | 36a653e4f0bb431209ff2776f4ae0ed4e18e56cb /board | |
parent | 061d7bbd58cd4baacadd55bb71a3b263bcb07871 (diff) | |
download | chrome-ec-babc0ea2dc00f53cac08e18a407b8f9921305d7c.tar.gz |
Jelboz360: Config the rotation matrix setting for X axis.
1. Correct the rotation matrix for X axis direction.
BUG=b:178451001
BRANCH=firmware-zork-13434.B
TEST=make BOARD=shuboz
1. Using "ectool motionsense" check x/y/z value.
2. Using "ectool motionsense lid_angle" check angle.
Signed-off-by: Jacky Wang <jacky5_wang@pegatron.corp-partner.google.com>
Change-Id: I7e6b7742b6b306e7e34b961518de19cb366a26dc
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2662864
Reviewed-by: Edward Hill <ecgh@chromium.org>
Commit-Queue: Edward Hill <ecgh@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/shuboz/board.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/shuboz/board.c b/board/shuboz/board.c index d4bb011729..249ababc59 100644 --- a/board/shuboz/board.c +++ b/board/shuboz/board.c @@ -55,13 +55,13 @@ static struct bmi_drv_data_t g_bmi160_data; /* Matrix to rotate accelrator into standard reference frame */ static const mat33_fp_t lid_standard_ref = { - { FLOAT_TO_FP(-1), 0, 0 }, + { FLOAT_TO_FP(1), 0, 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}, + { FLOAT_TO_FP(-1), 0, 0}, { 0, 0, FLOAT_TO_FP(-1)} }; |