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>
Thu, 28 Jun 2012 00:07:54 +0000 (17:07 -0700)
commit2cf098846c83bab82272f107ba110f7c47df1763
tree1c580f77c986271d364d73aa0904d887f1d35642
parent50b66767f6c5635430483393e17d15969dfe2f05
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: I319dc4f449a3abd553d61b196a9ddcf7782f912d
services/sensorservice/RotationVectorSensor.cpp
services/sensorservice/RotationVectorSensor.h