diff options
author | Tang Qijun <qijun.tang@ecs.corp-partner.google.com> | 2022-10-21 10:26:16 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-10-21 19:58:02 +0000 |
commit | 5fbf200722a89fc48411a5392219ad29772a48fe (patch) | |
tree | f5b5be55f7968f791ea05cd982283bbe03ad935b | |
parent | fae6145045a7bb060c00de1a1fafe506267159e5 (diff) | |
download | chrome-ec-5fbf200722a89fc48411a5392219ad29772a48fe.tar.gz |
Pazquel360: Modify motion sensor matrix
Modify kx022 and BMI323 matrix
BUG=b:237421404
BRANCH=main
TEST=1. Check X/Y/Z value and lid angle is correct by
console command ‘accelinfo on’
2. Factory toolkit calibration passed
Signed-off-by: Tang Qijun <qijun.tang@ecs.corp-partner.google.com>
Change-Id: I5a2bafb5349ca5b5739f768b62fd61e1a2729997
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3970297
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Reviewed-by: Chao Gui <chaogui@google.com>
Reviewed-by: Bob Moragues <moragues@chromium.org>
Commit-Queue: Bob Moragues <moragues@chromium.org>
-rw-r--r-- | board/pazquel/board.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/board/pazquel/board.c b/board/pazquel/board.c index 90dcc6cd0d..6ed03e90ad 100644 --- a/board/pazquel/board.c +++ b/board/pazquel/board.c @@ -569,15 +569,15 @@ static struct mutex g_base_mutex; static struct mutex g_lid_mutex; /* Matrix to rotate accelerometer into standard reference frame */ -const mat33_fp_t base_standard_ref = { { FLOAT_TO_FP(1), 0, 0 }, - { 0, FLOAT_TO_FP(-1), 0 }, +const mat33_fp_t base_standard_ref = { { FLOAT_TO_FP(-1), 0, 0 }, + { 0, FLOAT_TO_FP(1), 0 }, { 0, 0, FLOAT_TO_FP(-1) } }; static struct kionix_accel_data g_kx022_data; static const mat33_fp_t lid_standard_ref_kx022 = { { FLOAT_TO_FP(1), 0, 0 }, { 0, FLOAT_TO_FP(1), 0 }, - { 0, 0, FLOAT_TO_FP(-1) } }; + { 0, 0, FLOAT_TO_FP(1) } }; static struct bmi_drv_data_t g_bmi_data; struct motion_sensor_t motion_sensors[] = { |