How to use Accelerometer to measure distance for Android Application Development

淺唱寂寞╮ 提交于 2019-11-26 04:23:30

问题


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.

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.

Thank You, Arslan


回答1:


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

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

Similar questions:

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




回答2:


You can combine it with GPS positioning, and filter data with Kalman filter. GPS give rough but stable position, while accelerometer give more accerate but drifting position.



来源:https://stackoverflow.com/questions/6352681/how-to-use-accelerometer-to-measure-distance-for-android-application-development

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!