From 3d968de71f7a6bfa138948ae2def4f6f25d53db4 Mon Sep 17 00:00:00 2001 From: tongjian Date: Sat, 17 Apr 2021 15:56:06 +0800 Subject: Homestar:BMI160:Adjust the initial orientation of the BMI160 BUG=b:185631804 TEST=make -j BOARD=homestar Verify build on EVT board BRANCH=Trogdor Signed-off-by: tongjian Change-Id: I91de1f34af210103b12b30f8cfa6a17e7692a301 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2833032 Reviewed-by: Wai-Hong Tam Reviewed-by: Weimin Wu Tested-by: Weimin Wu --- board/homestar/board.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/homestar/board.c b/board/homestar/board.c index 8e1977b49a..ce13ee1076 100644 --- a/board/homestar/board.c +++ b/board/homestar/board.c @@ -262,9 +262,9 @@ static struct bmi_drv_data_t g_bmi160_data; /* Matrix to rotate accelerometer into standard reference frame */ const mat33_fp_t lid_standard_ref = { + { FLOAT_TO_FP(-1), 0, 0}, { 0, FLOAT_TO_FP(-1), 0}, - { FLOAT_TO_FP(1), 0, 0}, - { 0, 0, FLOAT_TO_FP(1)} + { 0, FLOAT_TO_FP(1), 0} }; struct motion_sensor_t motion_sensors[] = { -- cgit v1.2.1