Merge "Update starting gravity of tilt definition"

This commit is contained in:
Etienne Le Grand 2014-05-28 22:46:27 +00:00 committed by Android (Google) Code Review
commit 6b007d084d

View file

@ -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
*