summaryrefslogtreecommitdiff
path: root/board/lazor
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2020-05-14 09:54:23 -0700
committerCommit Bot <commit-bot@chromium.org>2020-05-16 08:33:36 +0000
commit400ea24bb0d0103f04749a5508de755ce544f467 (patch)
treed1efa931cf370740c9351082bc81f0785a6f2c00 /board/lazor
parentd3f7940da1510b6dc9726556ce483aff01833c38 (diff)
downloadchrome-ec-400ea24bb0d0103f04749a5508de755ce544f467.tar.gz
Lazor: Correct the lid g-sensor's matrix configuration
The lid g-sensor placement is like: +------------------+ | | | +----+ | | | | | | |O | | O is the pin 1 marker, | +----+ | which faces to the user. +------------------+ / / / / / / / / +------------------+ The sensor's coordinate system is: x <-----+ /| / | v v z y The standard reference frame is: y ^ | | +-----> x / / v z So the matrix contributing to the standard reference frame should be: { { -1, 0, 0}, { 0, -1, 0}, { 0, 0, 1} } BRANCH=None BUG=b:155853349 TEST=Used 'accelinfo on' command to check the g-sensor's values. Change-Id: I98aa49665659374d0fda0d8a3c7622ec5f9a27bc Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2202164 Reviewed-by: Alexandru M Stan <amstan@chromium.org>
Diffstat (limited to 'board/lazor')
-rw-r--r--board/lazor/board.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/board/lazor/board.c b/board/lazor/board.c
index 71d07b1c62..f22ec13871 100644
--- a/board/lazor/board.c
+++ b/board/lazor/board.c
@@ -430,9 +430,9 @@ const mat33_fp_t base_standard_ref = {
};
static const mat33_fp_t lid_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, FLOAT_TO_FP(-1), 0},
+ { 0, 0, FLOAT_TO_FP(1)}
};
struct motion_sensor_t motion_sensors[] = {