如何计算Windows Phone在街上的移动速度?可以使用加速度计吗? [英] how to computing moving velocity of windows phone in street? can use accelerometer?

查看:61
本文介绍了如何计算Windows Phone在街上的移动速度?可以使用加速度计吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我正在为windowns手机创建一个应用程序,并且具有能够计算WP在街道上的速度移动的功能,我想到了加速度计或GPS,但事实并非如此.
有谁给我解决这个问题的方法.
感谢您的阅读!

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!

推荐答案

在此之前,请学习相对论的基本伽利略原理, ^ ].
任何机械行为均不取决于我们在哪个惯性系统中进行观察.也就是说,无论速度如何,移动速度一致的手机之间都没有可测量的差异.

好吧,从理论上讲(理论上只有非常),您可以将手机置于零速状态(相对于什么?好吧,比方说,到达地球),然后按一些按钮将程序的状态重置为零速度"状态.从那时起,开始积分所有加速度以计算当前速度".实际上,这只是一个幻想.您没有实时系统来执行此操作,即使在完美的实时系统中,测量和计算也不精确,并且误差会随着时间而累积.加速度计可以很好地测量……加速度,而不是速度.根据上述原理,即使理论上也无法测量瞬时速度.不,这是不可能的.

回到学校!

—SA
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


这篇关于如何计算Windows Phone在街上的移动速度?可以使用加速度计吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆