From babc0ea2dc00f53cac08e18a407b8f9921305d7c Mon Sep 17 00:00:00 2001 From: Jacky Wang Date: Mon, 1 Feb 2021 17:05:21 +0800 Subject: 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 Change-Id: I7e6b7742b6b306e7e34b961518de19cb366a26dc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2662864 Reviewed-by: Edward Hill Commit-Queue: Edward Hill --- board/shuboz/board.c | 4 ++-- 1 file 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)} }; -- cgit v1.2.1