From da4711d25c547f760efd1b2e8df1af2957972eae Mon Sep 17 00:00:00 2001 From: "Inno.Park" Date: Mon, 13 Sep 2021 19:41:35 +0900 Subject: bugzzy: adjust accel sensor orientation Adjust rotation matrix for two accel sensors. BUG=b:199695518 TEST=Boot and run 'ectool motionsense' on each position. *left-side, bottom-side and face-up Signed-off-by: Inno.Park Change-Id: I0429853381b93caea43a2b901de2028b4bc89506 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3156317 Reviewed-by: Henry Sun Commit-Queue: Henry Sun --- board/bugzzy/board.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'board/bugzzy') diff --git a/board/bugzzy/board.c b/board/bugzzy/board.c index 1207a01eaf..beb954b1a3 100644 --- a/board/bugzzy/board.c +++ b/board/bugzzy/board.c @@ -424,14 +424,14 @@ static struct mutex g_base_mutex; /* Matrices to rotate accelerometers into the standard reference. */ static const mat33_fp_t lid_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)} }; static const mat33_fp_t base_standard_ref = { - { 0, FLOAT_TO_FP(1), 0}, + { 0, FLOAT_TO_FP(-1), 0}, { FLOAT_TO_FP(-1), 0, 0}, - { 0, 0, FLOAT_TO_FP(1)} + { 0, 0, FLOAT_TO_FP(-1)} }; static struct stprivate_data g_lis2ds_data; -- cgit v1.2.1