summaryrefslogtreecommitdiff
path: root/board/dojo
diff options
context:
space:
mode:
authorTommy Chung <tommy.chung@quanta.corp-partner.google.com>2022-02-22 17:45:17 +0800
committerCommit Bot <commit-bot@chromium.org>2022-02-24 05:39:29 +0000
commited12181a99349dcd0972fa325221d289535d5215 (patch)
tree8cae2673fff46bd4b8ad676c6bc846f1f1f10122 /board/dojo
parentc32c083b51e82e653091cea2a4132f81b94faea5 (diff)
downloadchrome-ec-ed12181a99349dcd0972fa325221d289535d5215.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>
Diffstat (limited to 'board/dojo')
-rw-r--r--board/dojo/board.c10
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[] = {