summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2014-09-02 10:55:56 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-09-03 04:50:47 +0000
commit00816a1552db928f662119bf4562be19bb9274fe (patch)
treebb40d1521f0cabafd8e0fc1508c7e139dc33ad79
parent27dbf8f5812d9af1760d299521cee9f825e5013e (diff)
downloadchrome-ec-00816a1552db928f662119bf4562be19bb9274fe.tar.gz
samus: accels: set appropriate lid accel rotation matrix
Change lid accel rotation matrix to orient lid accel to the base accel. BUG=none BRANCH=none TEST=Load onto samus, use accelread 0 and accelread 1 to make sure lid and base accels match at a variety of locations. Change-Id: I7a27f8e702c6c26ed671325183a87b52e5b3d06a Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/215944 Reviewed-by: Sheng-liang Song <ssl@chromium.org>
-rw-r--r--board/samus/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/samus/board.c b/board/samus/board.c
index 7a8ca30229..a75682ad29 100644
--- a/board/samus/board.c
+++ b/board/samus/board.c
@@ -274,8 +274,8 @@ const
struct accel_orientation acc_orient = {
/* Lid and base sensor are already aligned. */
.rot_align = {
+ { 0, -1, 0},
{ 1, 0, 0},
- { 0, 1, 0},
{ 0, 0, 1}
},