如何使用iPhone SDK使用加速度计计算距离? [英] How to calculate distance using accelerometer using iphone sdk?

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

问题描述

计算两点之间距离的最佳方法是什么/或者我们可以说走路时使用加速度计计算行进距离?我的主要问题是我正在开发一个应用程序,其中我需要使用两个位置来计算距离,但是有时核心位置无法更新位置,所以那时我该如何计算行进距离?

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?

推荐答案

您不能甚至可以从加速度计获得准确的速度测量值,因此,绝对您将无法获得准确的行进距离测量值。

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.

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

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