如何使用加速度计来测量距离为Android应用开发 [英] How to use Accelerometer to measure distance for Android Application Development

查看:169
本文介绍了如何使用加速度计来测量距离为Android应用开发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在应用程序开发行业只是一个初学者。我知道加速度计可用于沿三个轴返回当前加速度在每平方秒(米/秒2)米。但我已经知道,一个加速度计,也可以用速度计。

I am just a beginner in the application development industry. I know the accelerometer can be used to return the current acceleration along three axis in meters per second squared (m/s2). But I have come to know that an accelerometer can also be use as speedometer.

我想知道我可以利用加速度传感器来确定距离的兴趣点之间通过Android设备行进。如果可能的话,那我怎么才能实现呢?我已经看到了类似的问题:我怎么衡量一个iPhone使用加速度行进的距离<一href="http://stackoverflow.com/questions/3707726/how-do-i-measure-the-distance-traveled-by-an-iphone-using-the-accelerometer">How做我衡量使用加速度计,一个iPhone移动的距离?。但我并没有到了一个地步。

I want to know how I can use accelerometer to determine distance traveled by Android device between points of interest. If it is possible, then how can I implement it? I have seen a similar question "how do I measure the distance traveled by an Iphone using accelerometer" How do I measure the distance traveled by an iPhone using the accelerometer?. But I didn't come to a point.

感谢你, 阿尔斯兰

推荐答案

您获得位置通过集成的线性加速两次,但错误是可怕的。这是在实践中无用的。

You get position by integrating the linear acceleration twice but the error is horrible. It is useless in practice.

下面是解释为什么(谷歌技术讲座) 23:20。我强烈推荐这部影片。

Here is an explanation why (Google Tech Talk) at 23:20. I highly recommend this video.

同样的问题:

跟踪iPhone的小运动,没有GPS
什么是手机加速度计的真实世界的准确性用于定位的时候?
如何计算从静止状态垂直方向上手机的运动?
的iOS:运动precision在三维空间

track small movements of iphone with no GPS
What is the real world accuracy of phone accelerometers when used for positioning?
how to calculate phone's movement in the vertical direction from rest?
iOS: Movement Precision in 3D Space

这篇关于如何使用加速度计来测量距离为Android应用开发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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