summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBarney_Liao <barney_liao@pegatron.corp-partner.google.com>2019-07-03 16:34:00 +0800
committerCommit Bot <commit-bot@chromium.org>2019-07-17 09:17:31 +0000
commit3e8e4db7892acc2d64410ed24f1f0b333d66978b (patch)
tree1edf910bf6c7aa59c0084e55365b6c9783b3b782
parentb328f56f4c65517146d26bdb86503665b920b020 (diff)
downloadchrome-ec-3e8e4db7892acc2d64410ed24f1f0b333d66978b.tar.gz
Helios:Modify lid and base rotation matrix
Depend on placement modify rotation matrix for the lid and base sensor. BUG=b:135554555 BRANCH=ToT TEST=Manual Check EC console accleinfo. Change-Id: I287808dde06ff752f9e10766f3c348e0d63606f3 Signed-off-by: Barney_Liao <barney_liao@pegatron.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1687037 Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
-rw-r--r--board/helios/board.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/board/helios/board.c b/board/helios/board.c
index 3c587059b4..170818256a 100644
--- a/board/helios/board.c
+++ b/board/helios/board.c
@@ -177,18 +177,13 @@ static struct opt3001_drv_data_t g_opt3001_data = {
/* Matrix to rotate accelrator into standard reference frame */
static const mat33_fp_t base_standard_ref = {
{ 0, FLOAT_TO_FP(1), 0},
- { FLOAT_TO_FP(-1), 0, 0},
- { 0, 0, FLOAT_TO_FP(1)}
+ { FLOAT_TO_FP(1), 0, 0},
+ { 0, 0, FLOAT_TO_FP(-1)}
};
-/*
- * TODO(b/124337208): P0 boards don't have this sensor mounted so the rotation
- * matrix can't be tested properly. This needs to be revisited after EVT to make
- * sure the rotaiton matrix for the lid sensor is correct.
- */
static const mat33_fp_t lid_standard_ref = {
- { 0, FLOAT_TO_FP(-1), 0},
- { FLOAT_TO_FP(-1), 0, 0},
+ { 0, FLOAT_TO_FP(1), 0},
+ { FLOAT_TO_FP(1), 0, 0},
{ 0, 0, FLOAT_TO_FP(-1)}
};