How to use onSensorChanged sensor data in combination with OpenGL

后端 未结 6 1665
天涯浪人
天涯浪人 2020-12-07 10:05

( edit: I added the best working approach in my augmented reality framework and now also take the gyroscope into account which makes it much more stable again: Droid

6条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-07 10:33

    I couldn't test the code yet (but I will, looks really interesting). One thing that caught my attention is that you don't seem to filter the sensor data in any way.

    Sensor readings are very noisy by nature, specially the magnetic sensor. I'd suggest you implement some low pass filtering.

    See my previous answer for further reading.

提交回复
热议问题