diff options
author | Ben Chen <ben.chen2@quanta.corp-partner.google.com> | 2021-03-04 16:40:58 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-03-05 02:01:48 +0000 |
commit | 8bf33a2fdeb53af0d84a5eafd99819af7be23329 (patch) | |
tree | cc4c2bc09adff2fadd06d35aff92ea3473836b20 | |
parent | 50095ea120ae45950e4d1b791870eec76e7f7be9 (diff) | |
download | chrome-ec-8bf33a2fdeb53af0d84a5eafd99819af7be23329.tar.gz |
magolor: fix gyroscope translation matrix
CTS tests are failing because sensor values from axis 1 and 2 are
negated. When the test expects 360 degrees, -360 degrees gets reported.
Set the standard base translation matrix to resolve this.
BUG=b:155944359, b:155944129
TEST=Try CTS
BRANCH=None
Change-Id: I60aa29b8983d7ab11b42496e4d91b9636dffe163
Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2734070
Reviewed-by: Diana Z <dzigterman@chromium.org>
-rw-r--r-- | board/magolor/board.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/magolor/board.c b/board/magolor/board.c index 1191d6f9fb..f1fca86f90 100644 --- a/board/magolor/board.c +++ b/board/magolor/board.c @@ -514,8 +514,8 @@ static struct bmi_drv_data_t g_bmi160_data; #ifdef BOARD_MAGOLOR static const mat33_fp_t base_icm_ref = { - { 0, FLOAT_TO_FP(-1), 0}, - { FLOAT_TO_FP(1), 0, 0}, + { FLOAT_TO_FP(-1), 0, 0}, + { 0, FLOAT_TO_FP(1), 0}, { 0, 0, FLOAT_TO_FP(-1)} }; |