diff options
author | Sam Hurst <shurst@google.com> | 2022-08-10 08:48:05 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-08-16 19:31:38 +0000 |
commit | 571bcbd435034825efd89a4606e1138d4b584431 (patch) | |
tree | e676e80e9402083705832e83bb1c9215daa81599 | |
parent | f38a74f311238046211767246acaa651266f009e (diff) | |
download | chrome-ec-571bcbd435034825efd89a4606e1138d4b584431.tar.gz |
Herobrine: Correct the lid g-sensor's matrix configuration
The lid g-sensor placement is like:
+------------------+
| |
| +----+ |
| | O| |
| | | | O is the pin 1 marker,
| +----+ | which faces away from user.
+------------------+
/ /
/ /
/ /
/ /
+------------------+
The sensor's coordinate system is:
x
^ z
| /
|/
+-----> y
The standard reference frame is:
y
^
|
|
+-----> x
/
/
v
z
So the matrix contributing to the standard reference frame should be:
{ { 0, 1, 0},
{ 1, 0, 0},
{ 0, 0, -1} }
BRANCH=None
BUG=b:218693733
TEST=Used 'ectool motionsense lid_angle' command to check
the g-sensor's values.
Lid closed: 0
Lid half open (~45 degrees): 45
Lid open (~90 degrees): 89
Signed-off-by: Sam Hurst <shurst@google.com>
Change-Id: I33ce68a060e6d950a77e5bde3e973ca2a8230beb
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3824298
Reviewed-by: Wai-Hong Tam <waihong@google.com>
-rw-r--r-- | zephyr/projects/herobrine/motionsense.dts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zephyr/projects/herobrine/motionsense.dts b/zephyr/projects/herobrine/motionsense.dts index ee55fa4afd..8f9940cecf 100644 --- a/zephyr/projects/herobrine/motionsense.dts +++ b/zephyr/projects/herobrine/motionsense.dts @@ -38,8 +38,8 @@ compatible = "cros-ec,motionsense-rotation-ref"; lid_rot_ref: lid-rotation-ref { mat33 = <0 1 0 - (-1) 0 0 - 0 0 1>; + 1 0 0 + 0 0 (-1)>; }; base_rot_ref: base-rotation-ref { |