From b167a193e66e3c05ad61d997994072e36cb73773 Mon Sep 17 00:00:00 2001 From: Jongpil Jung Date: Sat, 16 Dec 2017 17:27:28 +0900 Subject: nautilus: update sensor rotation matrix. From rev02, Lid rotation matrix is changed. So, we have to change rotation matrix as well. BRANCH=master BUG=b:69399214 TEST=check lid_angle on rev2. Change-Id: I6718b607391aef068bee3c324e85138bac0e283e Signed-off-by: Jongpil Jung Reviewed-on: https://chromium-review.googlesource.com/830990 Tested-by: Grace Kao Reviewed-by: Shawn N --- board/nautilus/board.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'board/nautilus') diff --git a/board/nautilus/board.c b/board/nautilus/board.c index 165a5b9597..f6b923e117 100644 --- a/board/nautilus/board.c +++ b/board/nautilus/board.c @@ -576,15 +576,15 @@ static struct bma2x2_accel_data g_bma255_data; /* Matrix to rotate accelrator into standard reference frame */ const matrix_3x3_t base_standard_ref = { - { FLOAT_TO_FP(-1), 0, 0}, - { 0, FLOAT_TO_FP(1), 0}, - { 0, 0, FLOAT_TO_FP(-1)} + { FLOAT_TO_FP(-1), 0, 0 }, + { 0, FLOAT_TO_FP(1), 0 }, + { 0, 0, FLOAT_TO_FP(-1) } }; const matrix_3x3_t lid_standard_ref = { - { FLOAT_TO_FP(-1), 0, 0}, - { 0, FLOAT_TO_FP(-1), 0}, - { 0, 0, FLOAT_TO_FP(1)} + { FLOAT_TO_FP(-1), 0, 0 }, + { 0, FLOAT_TO_FP(1), 0 }, + { 0, 0, FLOAT_TO_FP(-1) } }; struct motion_sensor_t motion_sensors[] = { -- cgit v1.2.1