问题
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