diff options
author | Inno.Park <ih.yoo.park@samsung.corp-partner.google.com> | 2020-04-01 17:19:47 +0900 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-04-01 19:32:26 +0000 |
commit | b0140e5e14a971820cce4cfe2e8eabdd2f5f79d6 (patch) | |
tree | 08f456ffc3624918daaf456c550ffaa4362cc881 | |
parent | dec09934db166678c573c25b405cbfcaea426445 (diff) | |
download | chrome-ec-b0140e5e14a971820cce4cfe2e8eabdd2f5f79d6.tar.gz |
nightfury: fix new lid accel orientation and odr config
Adjust rotation matrix and modify initial odr value for new lid accel.
BUG=b:152930837
BRANCH=none
TEST=Boot and run 'ectool motionsense' on each LCD position.
*left-side, bottom-side and face-up.
Signed-off-by: Inno.Park <ih.yoo.park@samsung.corp-partner.google.com>
Change-Id: Ib20b894c8bd7cf19b67c8bcea5e47cdf3ae6ea3d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2130153
Reviewed-by: Bob Moragues <moragues@chromium.org>
Commit-Queue: Bob Moragues <moragues@chromium.org>
-rw-r--r-- | board/nightfury/board.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/board/nightfury/board.c b/board/nightfury/board.c index 825fd755bf..65b9cdd27f 100644 --- a/board/nightfury/board.c +++ b/board/nightfury/board.c @@ -198,8 +198,8 @@ static const mat33_fp_t base_standard_ref = { * sure the rotation matrix for the lid sensor is correct. */ static const mat33_fp_t lid_standard_ref = { - { FLOAT_TO_FP(1), 0, 0}, - { 0, FLOAT_TO_FP(1), 0}, + { 0, FLOAT_TO_FP(-1), 0}, + { FLOAT_TO_FP(-1), 0, 0}, { 0, 0, FLOAT_TO_FP(1)} }; @@ -222,11 +222,11 @@ struct motion_sensor_t motion_sensors[] = { .config = { /* EC use accel for angle detection */ [SENSOR_CONFIG_EC_S0] = { - .odr = 10000 | ROUND_UP_FLAG, + .odr = 12500 | ROUND_UP_FLAG, }, /* Sensor on in S3 */ [SENSOR_CONFIG_EC_S3] = { - .odr = 10000 | ROUND_UP_FLAG, + .odr = 12500 | ROUND_UP_FLAG, }, }, }, |