How to calculate distance using accelerometer using iphone sdk?

梦想与她 提交于 2019-12-22 16:58:15

问题


What is the best way to calculate the distance between two points/Or we can say while we walk calculate distance traveled using accelerometer? My main question is that i'm working on an application in which i need to count distance using two locations but sometimes the core locations fails to update location so at that time how do i calculate the distance traveled?


回答1:


You can't even get an accurate measurement of velocity from the accelerometer, so you're definitely not going to be able to get an accurate measure of distance traveled.



来源:https://stackoverflow.com/questions/2115288/how-to-calculate-distance-using-accelerometer-using-iphone-sdk

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