From 0f6d238844a75756e660959a0c2051f397682ae6 Mon Sep 17 00:00:00 2001 From: Jack Rosenthal Date: Fri, 25 Oct 2019 17:18:32 -0600 Subject: drallion_ish: correct lid accelerometer rotation matrix Z axis was inverted. BUG=b:140311300 BRANCH=none TEST=use ectool to verify sane values at various lid angles Change-Id: I48863fc336474f34e123ee37f495aff35251b111 Signed-off-by: Jack Rosenthal Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1881930 Reviewed-by: Mathew King --- board/drallion_ish/board.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'board/drallion_ish') diff --git a/board/drallion_ish/board.c b/board/drallion_ish/board.c index 597cf6a9e5..e4446b3e48 100644 --- a/board/drallion_ish/board.c +++ b/board/drallion_ish/board.c @@ -45,8 +45,8 @@ static struct lis2mdl_private_data lis2mdl_a_data; /* Matrix to rotate lid sensor into standard reference frame */ const mat33_fp_t lid_rot_ref = { { FLOAT_TO_FP(-1), 0, 0}, - { 0, FLOAT_TO_FP(-1), 0}, - { 0, 0, FLOAT_TO_FP(1)} + { 0, FLOAT_TO_FP(1), 0}, + { 0, 0, FLOAT_TO_FP(1)} }; /* Drivers */ -- cgit v1.2.1