summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael_chen <michael5_chen@pegatroncorp.com>2018-10-30 14:04:19 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-10-31 21:59:37 -0700
commit4184bf54877f26f0f5a7a243792e262126606b67 (patch)
tree4d7cc34fa70e52a0322c7720ee3d17c61a66f39e
parent5a2a94eea5c5d7eb47964e211917437e57083399 (diff)
downloadchrome-ec-4184bf54877f26f0f5a7a243792e262126606b67.tar.gz
rammus: Correct accel sensor BMI160 base reference dependent on sensor location.
Base on BMI160 location, the x axis is positive correlation and the y, z axis negative correlation. Correct the MB base reference direction. BUG=b:118362153 BRANCH=ToT TEST=Manual 1. Using EC console command "accelinfo on" the check the Base Accel x, y, z value. 2. Run factory tool to verify. Change-Id: I5c7968e9294b2fca511808d30aad3a99d524643f Signed-off-by: michael_chen <michael5_chen@pegatroncorp.com> Reviewed-on: https://chromium-review.googlesource.com/1307273 Commit-Ready: michael chen <michael5_chen@pegatroncorp.com> Tested-by: michael chen <michael5_chen@pegatroncorp.com> Reviewed-by: Zhuohao Lee <zhuohao@chromium.org>
-rw-r--r--board/rammus/board.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/rammus/board.c b/board/rammus/board.c
index b5be106f71..e240e52f08 100644
--- a/board/rammus/board.c
+++ b/board/rammus/board.c
@@ -551,8 +551,8 @@ static struct accelgyro_saved_data_t g_bma255_data;
/* Matrix to rotate accelrator into standard reference frame */
const mat33_fp_t base_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) }
};