summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTing Shen <phoenixshen@google.com>2020-06-01 18:18:35 +0800
committerCommit Bot <commit-bot@chromium.org>2020-06-02 14:28:48 +0000
commita6bc401a6835565c30792b18f230ea96b7772770 (patch)
tree9717dacdab08d1c045f4b46588560890420509d8
parentc92142eadb9f57cf9732a6a623e09486299d5652 (diff)
downloadchrome-ec-a6bc401a6835565c30792b18f230ea96b7772770.tar.gz
asurada: update base sensor rotate matrix
Update rotate matrix based on our assembled unit. BUG=b:150341271 TEST=manually: 1) board laying on a table: Current data 0: 253 6 8343 2) left edge of the device toward the ground: Current data 0: 8022 448 681 3) bottom edge toward the ground: Current data 0: -103 8255 763 BRANCH=none Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: Idae526c2fbc238ea555c98f3e1747ecbf932afa7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2224762 Tested-by: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Eric Yilun Lin <yllin@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org> Auto-Submit: Ting Shen <phoenixshen@chromium.org>
-rw-r--r--board/asurada/board.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/board/asurada/board.c b/board/asurada/board.c
index 512e3e2612..f74f1274a0 100644
--- a/board/asurada/board.c
+++ b/board/asurada/board.c
@@ -377,11 +377,10 @@ static struct mutex g_base_mutex;
static struct bmi_drv_data_t g_bmi160_data;
/* Matrix to rotate accelerometer into standard reference frame */
-/* TODO: update the matrix after we have assembled unit */
static const mat33_fp_t base_standard_ref = {
{FLOAT_TO_FP(-1), 0, 0},
- {0, FLOAT_TO_FP(-1), 0},
- {0, 0, FLOAT_TO_FP(1)},
+ {0, FLOAT_TO_FP(1), 0},
+ {0, 0, FLOAT_TO_FP(-1)},
};
/* Matrix to rotate accelrator into standard reference frame */