我如何才能找到只使用加速度计的速度? [英] How can I find the velocity using accelerometers only?

查看:123
本文介绍了我如何才能找到只使用加速度计的速度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

仅使用手机的(安卓)内置加速度计,我怎么会去寻找它的速度?

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

我一直在摆弄这个的数学,但无论功能我拿出容易导致速度呈指数增长。我从在App启动,手机处于静止状态的假设工作。这绝对应该使查找速度(至少粗略地)可能的。

I have been tinkering with the maths of this but whatever function I come up with tends to lead to exponential growth of the velocity. I am working from the assumption that on startup of the App, the phone is at a standstill. This should definitely make finding the velocity (at least roughly) possible.

我在物理学和数学体面的背景了,所以我不应该在这里的任何概念的任何困难。

I have a decent background in physics and math too, so I shouldn't have any difficulty with any concepts here.

我应该怎么办呢?

推荐答案

这真的取决于加速度是多​​长时间。温和,长的加速可能是可衡量的,但是任何突然增加的加速,接着是恒定的速度,将让你的测量相当困难,而且容易出错。

That will really depend on what the acceleration is and for how long. A mild, long acceleration could be measurable, but any sudden increase in acceleration, followed by a constant velocity, will make your measurements quite difficult and prone to error.

假设恒定的加速度,该公式是非常简单的:A =(V1-V0)/吨。所以,知道时间和加速度,并假设V 0 = 0,则V 1 = A * T

Assuming constant acceleration, the formula is extremely simple: a = (V1-V0)/t . So, knowing the time and the acceleration, and assuming V0 = 0, then V1 = a*t

在一个更真实的世界,你可能不会有一个恒定的加速度,所以你应该计算增量V每次测量,并添加所有这些变化的速度,以获得最终速度。总是认为你不会有一个连续的加速度数据,所以这是最可行的办法(即真实数据VS积分的数学理论)。

In a more real world, you probably won't have a constant acceleration, so you should calculate Delta V for each measurement, and adding all those changes in velocity to get the final velocity. Always consider that you won't have a continuous acceleration data, so this is the most feasible way (i.e, real data vs integral math theory).

在任何方式,即使在最好的情况下,你会最终有一个非常高的误差,所以不推荐这种方法为任何应用程序,真正要看实际速度。

In any way, even in the best scenario, you will end up with a very high error margin, so I do not recommend this approach for any app that truly depends on real velocities.

这篇关于我如何才能找到只使用加速度计的速度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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