From 0765c05d33c985dc752bf2c4668c6e7be6d4c671 Mon Sep 17 00:00:00 2001 From: Ege Mihmanli Date: Fri, 12 Jan 2018 15:18:43 -0800 Subject: rainier: final fix for accel orientation. Rainier has landscape orientation and last patch was 90 degrees off in its base rotation value. BUG=b:71753415 TEST=Flash ec on rainier and tilt device. BRANCH=None Signed-off-by: Ege Mihmanli Change-Id: I1d0837b2391ec4d0051c6c9af984d801264fe64c Reviewed-on: https://chromium-review.googlesource.com/865803 Reviewed-by: Shawn N --- board/rainier/board.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/rainier/board.c b/board/rainier/board.c index c827241eec..e56cab47d0 100644 --- a/board/rainier/board.c +++ b/board/rainier/board.c @@ -352,8 +352,8 @@ static struct bmi160_drv_data_t g_bmi160_data; /* Matrix to rotate accelerometer into standard reference frame */ const matrix_3x3_t base_standard_ref = { - { 0, FLOAT_TO_FP(-1), 0}, - { FLOAT_TO_FP(1), 0, 0}, + { 0, FLOAT_TO_FP(1), 0}, + { FLOAT_TO_FP(-1), 0, 0}, { 0, 0, FLOAT_TO_FP(1)} }; -- cgit v1.2.1