how to calculate phone's movement in the vertical direction from rest?

前端 未结 3 1695
生来不讨喜
生来不讨喜 2020-11-29 11:56

I am developing an app using android OS for which I need to know how can I calculate the movement of the device up in the vertical direction.

For example, the devic

3条回答
  •  鱼传尺愫
    2020-11-29 12:10

    1. you can correlate it to magnetic field sensor in microTesla

    2. You can use dist= integral of integral of acceleration ~ sigma ~ summation = integral of speed+constant

提交回复
热议问题