diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2016-09-08 10:49:49 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-09-09 12:33:19 -0700 |
commit | 8a3b9988683e8d2d42837daede1fbd3f220c19b5 (patch) | |
tree | fc72ea2e9eeb85d89d2c61824edea125ef509e20 /test | |
parent | 2b82ad78004e8ce37272743792acdb347a5a1001 (diff) | |
download | chrome-ec-8a3b9988683e8d2d42837daede1fbd3f220c19b5.tar.gz |
common: motion_lid: Add tablet mode detection using lid angle.
Using the lid angle, detect if we are in tablet mode or not.
We are in tablet mode when the lid angle is large enough:
tablet_mode:
1 | +-----<----+----------
| \/ /\
| | |
0 |------------------------>----+
+------------------+----------+----------+ lid angle
0 240 300 360
BRANCH=kevin
BUG=chrome-os-partner:55702,b:27849483
TEST=Check on Kevin event are sent on tablet mode transition.
Change-Id: Id9935ce4dd717e2c20fa6c9520defb504a1760d9
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/383073
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/test_config.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_config.h b/test/test_config.h index ffb8e877f4..371303b4cb 100644 --- a/test/test_config.h +++ b/test/test_config.h @@ -45,6 +45,7 @@ #ifdef TEST_MOTION_LID #define CONFIG_LID_ANGLE #define CONFIG_LID_ANGLE_INVALID_CHECK +#define CONFIG_LID_ANGLE_TABLET_MODE #define CONFIG_LID_ANGLE_SENSOR_BASE 0 #define CONFIG_LID_ANGLE_SENSOR_LID 1 #endif |