OSDN Git Service

fix [3369027] Sensor.TYPE_ROTATION_VECTOR is unstable and returns NaNs when running...
authorMathias Agopian <mathias@google.com>
Wed, 19 Jan 2011 22:26:25 +0000 (14:26 -0800)
committerMathias Agopian <mathias@google.com>
Wed, 19 Jan 2011 23:32:38 +0000 (15:32 -0800)
commita97ead75db11ce7dcaa0d3a598fb2de805d30d2d
tree5458876a58edb46fbf720ddd4484b9448451a8e7
parenta0bafb471385767f7c9c91efe7fd828b069b2e97
fix [3369027] Sensor.TYPE_ROTATION_VECTOR is unstable and returns NaNs when running slowly

The cut-off frequency of the lowpass filter was too high
for the sampling rate used by DELAY_NORMAL.

Now we use the same filters used for the gravity vector
(cascaded biquad at 1.5 Hz)

Change-Id: Iac290a716cc47a78337a8f0e45b103e49b4d9d78
services/sensorservice/RotationVectorSensor.cpp
services/sensorservice/RotationVectorSensor.h