diff options
author | Etienne Le Grand <etn@google.com> | 2014-05-28 15:42:48 -0700 |
---|---|---|
committer | Etienne Le Grand <etn@google.com> | 2014-05-28 15:42:48 -0700 |
commit | 53017efa7b29990c8e9934a0cea27d62d454d055 (patch) | |
tree | aae924b2633006101c8e21b09b10aabafbafc1d4 /include/hardware/sensors.h | |
parent | 7b7b4cb4337947b4e16824b2aafcbcce50d9f47e (diff) | |
download | hardware_libhardware-53017efa7b29990c8e9934a0cea27d62d454d055.zip hardware_libhardware-53017efa7b29990c8e9934a0cea27d62d454d055.tar.gz hardware_libhardware-53017efa7b29990c8e9934a0cea27d62d454d055.tar.bz2 |
Update starting gravity of tilt definition
Change-Id: I9be79fe264b8a751757a2b6840b7ff928679028d
Diffstat (limited to 'include/hardware/sensors.h')
-rw-r--r-- | include/hardware/sensors.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/hardware/sensors.h b/include/hardware/sensors.h index 6a3bbae..caf0ea0 100644 --- a/include/hardware/sensors.h +++ b/include/hardware/sensors.h @@ -521,9 +521,10 @@ enum { * * A sensor of this type generates an event each time a tilt event is detected. A tilt event * should be generated if the direction of the 2-seconds window average gravity changed by at least - * 35 degrees since the activation of the sensor. + * 35 degrees since the activation or the last trigger of the sensor. * initial_estimated_gravity = average of accelerometer measurements over the first - * 1 second after activation. + * 1 second after activation or the estimated gravity at the last + * trigger. * current_estimated_gravity = average of accelerometer measurements over the last 2 seconds. * trigger when angle (initial_estimated_gravity, current_estimated_gravity) > 35 degrees * |