How to remove Gravity factor from Accelerometer readings in Android 3-axis accelerometer

后端 未结 7 1711
天命终不由人
天命终不由人 2020-12-29 08:16

Can anyone help on removing the g factor from accelerometer readings?

I am using SensorEventListener with onSensorChanged() method for getting Sensor.TY

7条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-29 08:26

    Use Sensor.TYPE_LINEAR_ACCELERATION instead of Sensor.TYPE_ACCELEROMETER

提交回复
热议问题