How can I find the velocity using accelerometers only?

前端 未结 8 1270
情书的邮戳
情书的邮戳 2020-12-08 12:01

Using only the phone\'s (Android) built in accelerometer, how would I go about finding its velocity?

I have been tinkering with the maths of this but whatever funct

8条回答
  •  感动是毒
    2020-12-08 12:43

    First, you have to remove the acceleration due to gravity from the accelerometer data. Then it's just a matter of integrating the acceleration to get the velocity. Don't forget that acceleration and velocity are properly vectors, not scalars, and that you will also have to track rotation of the phone in space to properly determine the orientation of the acceleration vector with respect to the calculated velocity vector.

提交回复
热议问题