diff options
author | Ben Chen <ben.chen2@quanta.corp-partner.google.com> | 2020-08-26 11:25:27 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-09-01 03:01:20 +0000 |
commit | a88a71767b5984f0ab5e8fe0ba753b092435e99e (patch) | |
tree | 405b9be0eb30b5fa9d9b3e22f7aee821e03b3cdb | |
parent | 8f8608e0e1da3bfed29e0e8d31ddf952069e1745 (diff) | |
download | chrome-ec-a88a71767b5984f0ab5e8fe0ba753b092435e99e.tar.gz |
magolor: modify motion sensor rotation matrices
Change rotations matrices of lid accel and base
BUG=b:166062863
BRANCH=none
TEST=Using ectool 'motionsense' verified lid angle now goes
from 0 to 360 and swtiches to tablet mode after crossing 200
threshold.
Change-Id: Ia2f9b41e508354ca1930b18684241565a6dd9e37
Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2383357
Tested-by: Justin TerAvest <teravest@chromium.org>
Reviewed-by: Justin TerAvest <teravest@chromium.org>
Commit-Queue: Justin TerAvest <teravest@chromium.org>
-rw-r--r-- | board/magolor/board.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/board/magolor/board.c b/board/magolor/board.c index 61a1f51307..6f365bf07e 100644 --- a/board/magolor/board.c +++ b/board/magolor/board.c @@ -286,15 +286,15 @@ 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}, - { 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 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, 0, FLOAT_TO_FP(-1)} }; static struct accelgyro_saved_data_t g_bma253_data; |