diff options
author | Inno.Park <ih.yoo.park@samsung.corp-partner.google.com> | 2021-09-13 19:41:35 +0900 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-09-14 07:41:20 +0000 |
commit | da4711d25c547f760efd1b2e8df1af2957972eae (patch) | |
tree | b0503d46bef88fddfc3f850e71d22999dc4d8eee /board | |
parent | 3d1b834b57d4710a48d61c794a38b28be56a67ce (diff) | |
download | chrome-ec-da4711d25c547f760efd1b2e8df1af2957972eae.tar.gz |
bugzzy: adjust accel sensor orientation
Adjust rotation matrix for two accel sensors.
BUG=b:199695518
TEST=Boot and run 'ectool motionsense' on each position.
*left-side, bottom-side and face-up
Signed-off-by: Inno.Park <ih.yoo.park@samsung.corp-partner.google.com>
Change-Id: I0429853381b93caea43a2b901de2028b4bc89506
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3156317
Reviewed-by: Henry Sun <henrysun@google.com>
Commit-Queue: Henry Sun <henrysun@google.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/bugzzy/board.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/board/bugzzy/board.c b/board/bugzzy/board.c index 1207a01eaf..beb954b1a3 100644 --- a/board/bugzzy/board.c +++ b/board/bugzzy/board.c @@ -424,14 +424,14 @@ static struct mutex g_base_mutex; /* Matrices to rotate accelerometers into the standard reference. */ static const mat33_fp_t lid_standard_ref = { { 0, FLOAT_TO_FP(1), 0}, - { FLOAT_TO_FP(-1), 0, 0}, + { FLOAT_TO_FP(1), 0, 0}, { 0, 0, FLOAT_TO_FP(1)} }; static const mat33_fp_t base_standard_ref = { - { 0, FLOAT_TO_FP(1), 0}, + { 0, FLOAT_TO_FP(-1), 0}, { FLOAT_TO_FP(-1), 0, 0}, - { 0, 0, FLOAT_TO_FP(1)} + { 0, 0, FLOAT_TO_FP(-1)} }; static struct stprivate_data g_lis2ds_data; |