summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2014-03-17 15:43:57 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-03-26 19:31:22 +0000
commit9b420804d88a7adf8a1ded8bd12e52e1aa8ddd84 (patch)
tree21c947996b498049d42f2a635a3ade1bc2fb5935
parent9d5432bc74f040d3f130def809a06979191baf40 (diff)
downloadchrome-ec-9b420804d88a7adf8a1ded8bd12e52e1aa8ddd84.tar.gz
accel: glimmer: Fixed sign of accel z-axis
The accelerometer calibration routine came up with the wrong sign for the z-axis. Fixed that bug and flipped the sign for glimmer in the standard reference frame rotation matrix. BUG=none BRANCH=rambi TEST=Tested on a glimmer. Ran calibration routine and then verified that if the unit is sitting flat on a table with lid open to 90, the accelometer data send to host should read: base = 0, 0, 1024 lid = -1024, 0, 0 When the laptop is closed and flipped over, the data should read: base = 0, 0, -1024 lid = 0, 0, -1024 Change-Id: I1e8bcda26c16496d9cb49dece12db0c4ea929ece Original-Change-Id: If3bb7a095e400f5a247fab64b0050a44f4947e6c Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/190400 Reviewed-by: Dave Parker <dparker@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/191579 Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r--common/motion_calibrate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/motion_calibrate.c b/common/motion_calibrate.c
index af237591dd..9819f12d28 100644
--- a/common/motion_calibrate.c
+++ b/common/motion_calibrate.c
@@ -30,7 +30,7 @@
static matrix_3x3_t standard_ref_calib = {
{ 1024, 0, 0},
{ 0, -1024, 0},
- { 0, 0, -1024}
+ { 0, 0, 1024}
};
/*****************************************************************************/