summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacky Wang <jacky5_wang@pegatron.corp-partner.google.com>2021-02-01 14:22:34 +0800
committerCommit Bot <commit-bot@chromium.org>2021-02-02 02:09:02 +0000
commitb0a5133519ed8989fc39b822a32d17af8ca5070f (patch)
treea09c84e751f62409b654ee9681ce2f958be6a7a2
parenta5235d2e2f010ae9309ee28c5345c6583eed3ba0 (diff)
downloadchrome-ec-b0a5133519ed8989fc39b822a32d17af8ca5070f.tar.gz
copano: Config the rotation matrix setting for X axis.
1. Correct the rotation matrix for X axis direction. BUG=b:176393206 BRANCH=firmware-volteer-13672.B TEST=make BOARD=copano 1. Using "ectool motionsense" check x/y/z value. 2. Using "ectool motionsense lid_angle" check angle. Signed-off-by: Jacky Wang <jacky5_wang@pegatron.corp-partner.google.com> Change-Id: Ic31b17419aed98a72eaa0a05a4b6f36127d62e39 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2662228 Reviewed-by: Michael5 Chen <michael5_chen1@pegatron.corp-partner.google.com> Reviewed-by: Keith Short <keithshort@chromium.org>
-rw-r--r--board/copano/sensors.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/copano/sensors.c b/board/copano/sensors.c
index 6604d312ea..ba667f755c 100644
--- a/board/copano/sensors.c
+++ b/board/copano/sensors.c
@@ -30,13 +30,13 @@ static struct bmi_drv_data_t g_bmi160_data;
/* Rotation matrix for the lid accelerometer */
static const mat33_fp_t lid_standard_ref = {
- { FLOAT_TO_FP(1), 0, 0},
+ { FLOAT_TO_FP(-1), 0, 0},
{ 0, FLOAT_TO_FP(1), 0},
{ 0, 0, FLOAT_TO_FP(-1)}
};
const mat33_fp_t base_standard_ref = {
- { FLOAT_TO_FP(-1), 0, 0},
+ { FLOAT_TO_FP(1), 0, 0},
{ 0, FLOAT_TO_FP(-1), 0},
{ 0, 0, FLOAT_TO_FP(-1)}
};