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>
This commit is contained in:
Alec Berg
2014-03-17 15:43:57 -07:00
committed by chrome-internal-fetch
parent 9d5432bc74
commit 9b420804d8

View File

@@ -30,7 +30,7 @@
static matrix_3x3_t standard_ref_calib = {
{ 1024, 0, 0},
{ 0, -1024, 0},
{ 0, 0, -1024}
{ 0, 0, 1024}
};
/*****************************************************************************/