From 51afeae605e7604559ef6f199d97ed8112d42e12 Mon Sep 17 00:00:00 2001 From: Vijay Hiremath Date: Thu, 15 Oct 2015 16:48:03 -0700 Subject: [PATCH] kunimitsu: update accelerometer standard reference matrix This is based on kunimitsu fab 4 close chassis system. BUG=none BRANCH=none TEST=Using the "accelinfo" console command verified the lid angle by rotating the lid & base. Change-Id: Ia0491b52fda74b066120f3e2173b73fd1282c9cb Signed-off-by: Vijay Hiremath Signed-off-by: Kevin K Wong Reviewed-on: https://chromium-review.googlesource.com/306185 Reviewed-by: Shawn N --- board/kunimitsu/board.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/board/kunimitsu/board.c b/board/kunimitsu/board.c index 2f09165f8a..fc12d3c521 100644 --- a/board/kunimitsu/board.c +++ b/board/kunimitsu/board.c @@ -206,14 +206,14 @@ struct l3gd20_data g_l3gd20h_data; /* Matrix to rotate accelrator into standard reference frame */ const matrix_3x3_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)} }; const matrix_3x3_t lid_standard_ref = { - {FLOAT_TO_FP(-1), 0, 0}, - { 0, FLOAT_TO_FP(-1), 0}, + {FLOAT_TO_FP(-1), 0, 0}, + { 0, FLOAT_TO_FP(1), 0}, { 0, 0, FLOAT_TO_FP(-1)} };