diff options
author | Tommy Chung <tommy.chung@quanta.corp-partner.google.com> | 2022-02-22 17:45:17 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-02-25 10:09:48 +0000 |
commit | 14eaa3eebf3f5fd742fada84e477eb3eec808cf5 (patch) | |
tree | 858af60bc3eac34124b921e561a44f7bfe74f1c3 | |
parent | 841c2ebf8280be5c72c9e07649f96ee86b9b6a28 (diff) | |
download | chrome-ec-14eaa3eebf3f5fd742fada84e477eb3eec808cf5.tar.gz |
dojo: Motion sensor tuning
Tuning standard reference matrix for dojo.
BUG=none
BRANCH=cherry
TEST=on dojo mockup, make sure that with "ectool motionsense", correct
matrix values are reported under corresponding orientation.
Signed-off-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com>
Change-Id: Ie7f872a401bb3894a52cfe9d25be2aa4c1f92743
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3478985
Reviewed-by: Devin Lu <Devin.Lu@quantatw.com>
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
(cherry picked from commit ed12181a99349dcd0972fa325221d289535d5215)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3486600
-rw-r--r-- | board/dojo/board.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/board/dojo/board.c b/board/dojo/board.c index 1ec5cb1c6d..36737f7072 100644 --- a/board/dojo/board.c +++ b/board/dojo/board.c @@ -45,15 +45,15 @@ static struct kionix_accel_data g_kx022_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, FLOAT_TO_FP(-1), 0}, + { 0, 0, FLOAT_TO_FP(1)} }; 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)} }; struct motion_sensor_t motion_sensors[] = { |