Click here to Skip to main content
15,889,909 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello everyone,
I am creating a application for windowns phone, and have a function able computing velocity moving of WP in street, I thought about accelerometer or GPS, but seems it not true.
Have anyone give for me a solution for this issue.
Thanks for reading!
Posted
Comments
Sergey Alexandrovich Kryukov 9-Nov-11 0:13am    
Did you learn elementary physics at school?
--SA

1 solution

Before doing that, learn elementary Galilean principle of relativity, http://en.wikipedia.org/wiki/Galilean_transformation[^].
Any mechanical behavior does not depend on which inertial system we observe them in. That said, there is no measurable difference between a phone moving with uniform velocity, no matter what is that velocity.

Well, theoretically speaking (only very theoretically) you can bring the phone is a state of zero speed (relative to what? well, let's say, to the Earth), and press some button to reset a state of your program to a state referred as "zero speed". From that point, start integrating all accelerations to calculate "current speed". In practice, this is just a fantasy. You don't have a real-time system to do that, and even in perfect real-time system, the measurements and calculations are not precise, and the errors tends to accumulate with time. An accelerometer can measure well… acceleration, not speed. And nothing can measure instantaneous speed, even theoretically, according to the principle mentioned above. No, this is not possible.

Back to school!

—SA
 
Share this answer
 
v3
Comments
williamVu 9-Nov-11 5:11am    
yes, it is not possible.
at first, I thought can use acceleration (x,y,x,t) use Galilean principle of relativity theory to calculation to velocity. But after studied I seen it is not possible. So I said "it not true" and want find new way. I think all everything has some way to solve, although is not accuracy. I need only a relative result.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900