From 8a3b9988683e8d2d42837daede1fbd3f220c19b5 Mon Sep 17 00:00:00 2001 From: Gwendal Grignou Date: Thu, 8 Sep 2016 10:49:49 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/383073 Reviewed-by: Aseda Aboagye --- test/test_config.h | 1 + 1 file changed, 1 insertion(+) (limited to 'test') 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 -- cgit v1.2.1