diff options
author | Mathias Agopian <mathias@google.com> | 2011-01-19 14:26:25 -0800 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2011-01-19 18:20:06 -0800 |
commit | 0bcd713977be17cf1f3c485e9e2277bfaea175af (patch) | |
tree | e308b42d686556c7904f3859817223cdb6a88f44 /services/sensorservice/RotationVectorSensor.h | |
parent | ed58d8ed8a50cbd8c5e01c4e51bcbbe4341d1dfd (diff) | |
download | frameworks_base-0bcd713977be17cf1f3c485e9e2277bfaea175af.zip frameworks_base-0bcd713977be17cf1f3c485e9e2277bfaea175af.tar.gz frameworks_base-0bcd713977be17cf1f3c485e9e2277bfaea175af.tar.bz2 |
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
Diffstat (limited to 'services/sensorservice/RotationVectorSensor.h')
-rw-r--r-- | services/sensorservice/RotationVectorSensor.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/sensorservice/RotationVectorSensor.h b/services/sensorservice/RotationVectorSensor.h index b7c9512..17699f8 100644 --- a/services/sensorservice/RotationVectorSensor.h +++ b/services/sensorservice/RotationVectorSensor.h @@ -38,9 +38,9 @@ class RotationVectorSensor : public SensorInterface { double mAccTime; double mMagTime; SecondOrderLowPassFilter mALowPass; - BiquadFilter mAX, mAY, mAZ; + CascadedBiquadFilter mAX, mAY, mAZ; SecondOrderLowPassFilter mMLowPass; - BiquadFilter mMX, mMY, mMZ; + CascadedBiquadFilter mMX, mMY, mMZ; public: RotationVectorSensor(sensor_t const* list, size_t count); |