diff options
author | Michael5 Chen <michael5_chen1@pegatron.corp-partner.google.com> | 2020-07-29 16:24:57 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-08-04 03:48:02 +0000 |
commit | af298aca642afe36670ca7dd86dbf705d2ea674d (patch) | |
tree | 34fb497a982da6ddbf8e412511718483e77c0ad7 /board/delbin/sensors.c | |
parent | 0256f966bffc6f6f758a2301e21714d279547f32 (diff) | |
download | chrome-ec-af298aca642afe36670ca7dd86dbf705d2ea674d.tar.gz |
delbin: Config lid and base rotation matrix
Config lid and base rotation matrix.
BUG=b:162376060
BRANCH=master
TEST=manual
Using ectool command "ectool motionsense lid_angle"
and check angle from 0 to 360 degree.
Signed-off-by: Michael5 Chen <michael5_chen1@pegatron.corp-partner.google.com>
Change-Id: I40c320a6cbbb1d7163734ab9ef64a3bda3b4178f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2325498
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'board/delbin/sensors.c')
-rw-r--r-- | board/delbin/sensors.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/board/delbin/sensors.c b/board/delbin/sensors.c index 03f8f2ffab..d5413769d5 100644 --- a/board/delbin/sensors.c +++ b/board/delbin/sensors.c @@ -29,14 +29,14 @@ static struct bmi_drv_data_t g_bmi260_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)} + { 0, 0, FLOAT_TO_FP(1)} }; const mat33_fp_t base_standard_ref = { + { FLOAT_TO_FP(1), 0, 0}, { 0, FLOAT_TO_FP(1), 0}, - { FLOAT_TO_FP(-1), 0, 0}, { 0, 0, FLOAT_TO_FP(1)} }; |