summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormick_hsiao <mick_hsiao@compal.corp-partner.google.com>2023-05-09 14:02:51 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-05-12 07:36:38 +0000
commit940d056342f76d940074a4ab889cca1504c9f305 (patch)
tree08ae1936a37b02659dc842575f567fa6adec089d
parent5c4d8b42efb23ba5334a43145cdc6ad1809ab1b3 (diff)
downloadchrome-ec-940d056342f76d940074a4ab889cca1504c9f305.tar.gz
Uldren: modify rotate matrix
modift rotate matrix to let motionsensor works corretly BUG=b:281487225 TEST=watch -n 1 ectool motionsense, all data are correctly as expected Change-Id: I13032d7c9eb46695eb281be9cc3f0125dcde85a1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4515843 Reviewed-by: Elthan Huang <elthan_huang@compal.corp-partner.google.com> Tested-by: Mick Hsiao <mick_hsiao@compal.corp-partner.google.com> Commit-Queue: Shou-Chieh Hsu <shouchieh@chromium.org> Reviewed-by: Shou-Chieh Hsu <shouchieh@chromium.org>
-rw-r--r--zephyr/program/nissa/uldren/motionsense.dtsi8
1 files changed, 4 insertions, 4 deletions
diff --git a/zephyr/program/nissa/uldren/motionsense.dtsi b/zephyr/program/nissa/uldren/motionsense.dtsi
index 70b381b843..baaec61e5e 100644
--- a/zephyr/program/nissa/uldren/motionsense.dtsi
+++ b/zephyr/program/nissa/uldren/motionsense.dtsi
@@ -35,14 +35,14 @@
motionsense-rotation-ref {
compatible = "cros-ec,motionsense-rotation-ref";
lid_rot_ref: lid-rotation-ref {
- mat33 = <0 (-1) 0
+ mat33 = <0 1 0
(-1) 0 0
- 0 0 (-1)>;
+ 0 0 1>;
};
base_rot_ref: base-rotation-ref {
- mat33 = <0 1 0
- (-1) 0 0
+ mat33 = <1 0 0
+ 0 1 0
0 0 1>;
};
};