diff options
author | wen zhang <zhangwen6@huaqin.corp-partner.google.com> | 2021-02-04 14:12:54 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-02-04 10:36:55 +0000 |
commit | 404211221e2dc8beb6dade45f30750775cdf8e6a (patch) | |
tree | 1161ccce4b60d773d00788932c60ffbc36d42171 /board/katsu | |
parent | d78e31576248a3f496a3ff92c44c4806111933e4 (diff) | |
download | chrome-ec-404211221e2dc8beb6dade45f30750775cdf8e6a.tar.gz |
Katsu: change the accelerator matrix
We change the A+G sensor from BMI160 to ICM40608
then the direction of the frame is wrong
so we should modify the matrix
BUG=b:178339361
BRANCH=kukui
TEST=1.make BOARD=katsu
2.rotate the DUT and check the direction of the frame
Change-Id: Ibb14123c2d7fa9a3ea7016db933860cffe667dc3
Signed-off-by: wen zhang <zhangwen6@huaqin.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2674685
Reviewed-by: Sunwei Li <lisunwei@huaqin.corp-partner.google.com>
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Tested-by: Sunwei Li <lisunwei@huaqin.corp-partner.google.com>
Diffstat (limited to 'board/katsu')
-rw-r--r-- | board/katsu/board.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/katsu/board.c b/board/katsu/board.c index cc0cf6c553..27d285dc76 100644 --- a/board/katsu/board.c +++ b/board/katsu/board.c @@ -309,8 +309,8 @@ static struct icm_drv_data_t g_icm426xx_data; /* Matrix to rotate accelerometer into standard reference frame */ static 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}, {0, 0, FLOAT_TO_FP(1)} }; |