如何仅使用加速度计找到速度? [英] How can I find the velocity using accelerometers only?

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

问题描述

仅使用手机 (Android) 内置的加速度计,我将如何找到它的速度?

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

我一直在修补这个数学问题,但无论我想出什么函数,都会导致速度呈指数增长.我的工作假设是在应用程序启动时,手机处于静止状态.这肯定会使找到速度(至少粗略地)成为可能.

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)/t.因此,知道时间和加速度,并假设 V0 = 0,则 V1 = 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

在更真实的世界中,您可能不会有恒定的加速度,因此您应该为每次测量计算 Delta 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天全站免登陆