Get velocity from 3DVector using accelerometer sensor

十年热恋 提交于 2019-12-12 22:16:32

问题


I was wondering if I can calculate the velocity of the phone using accelerometer sensor. What I mean is someone swing the phone once and I can measure velocity or force which was used to do this... or any other which can tell how powerful swing was:D After playing with accelerometer for a while(in VS and emulator) I see it works a little different that I though.

Is it possible to achieve something like this?


回答1:


No, not accurately.

Although my previous answer here is about position, the same holds for velocity. Perhaps surprisingly, it is the gyro white noise that messes up the accuracy.

Depending on what you want to do, you might be better of with DTW.

Integrating the linear acceleration (acceleration minus gravity) should work for very short time intervals, especially if you do not need accurate results. You also have to assume some initial velocity.



来源:https://stackoverflow.com/questions/9957625/get-velocity-from-3dvector-using-accelerometer-sensor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!