summaryrefslogtreecommitdiff
path: root/board/hatch
diff options
context:
space:
mode:
authorScott Collyer <scollyer@google.com>2019-03-28 11:11:37 -0700
committerchrome-bot <chrome-bot@chromium.org>2019-03-30 20:59:46 -0700
commitc321f0945bebd3e84edab78582fd01785f5e256b (patch)
tree8977090c8de4a40756334153e8176f6b6fd90cde /board/hatch
parent6a7c59affa6aba2af814a45f6f49908d22e2fa04 (diff)
downloadchrome-ec-c321f0945bebd3e84edab78582fd01785f5e256b.tar.gz
hatch: Fix lid accel rotation matrix
The rotation matrix for the lid accel sensor was incorrect which was resulting in unreliable lid angle calculations. This then resulted in tablet mode being constantly activated. BUG=b:129410925 BRANCH=none TEST=Using ec console 'accelinfo on 1000' verified lid angle now goes from 0 to 360 and swtiches to tablet mode after crossing 180 threshold. Change-Id: I051162261c29659efab84a4c95d5ad1e3bb52306 Signed-off-by: Scott Collyer <scollyer@google.com> Reviewed-on: https://chromium-review.googlesource.com/1544250 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Tested-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Gwendal Grignou <gwendal@google.com>
Diffstat (limited to 'board/hatch')
-rw-r--r--board/hatch/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/hatch/board.c b/board/hatch/board.c
index 7ec5136801..29867bcfa8 100644
--- a/board/hatch/board.c
+++ b/board/hatch/board.c
@@ -145,8 +145,8 @@ static const mat33_fp_t base_standard_ref = {
* sure the rotaiton 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},
+ { FLOAT_TO_FP(-1), 0, 0},
{ 0, 0, FLOAT_TO_FP(-1)}
};