在iPhone中使用加速度计寻找距离 [英] Finding distance using accelerometer in iPhone

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

问题描述

请在这个寻找iPhone距离的过程中提出一些起点。当前系统的精度要求是 cm ,位移可以是3D。

我已经做的是

1。用声音来计算2 iPhone之间的距离,但我只需要一个iPhone距离计算,即需要位移。

2。尝试 CMMotionManager 及其加速度计数据,但收到的值是无奈的。



我想我需要一个很好的过滤器来获取有用的数据。我已经使用 Kalman Filter 并通过链接

问题/ 3177199 / iphone-accelerometer-speed-and-distance> iphone加速度计速度和距离,


$如何使用加速计计算距离? b $ b

我如何使用加速度计来测量iPhone所经过的距离?

这个问题背后的基本微积分是在表达式

尝试 DCT-II算法多维DCT 过滤数据。



我不知道我错过了什么,或者我应该从哪里走在这里,因为很难相信没有人使用加速计来达到这样的精确度,因为这里有

请给我提供一些指示,指出某种出路目前情况。

可以不能达到厘米的准确度。原因是,令人惊讶的是,方向错误。

上面的链接包含一些提示,如果你需要位移,你可以做些什么。



更好的选择是在您的应用程序中使用方向,如果可以的话。

Please suggest some beginning point in this process of finding distance displaced by an iPhone. The requirement of accuracy in current system is in cm, and displacement can be in 3D.

What I have already done is

1. Tried using sound to calculated distance between between 2 iPhones, but I need distance calculation with one iPhone only, i.e need displacement.

2. Tried CMMotionManager and its accelerometer data, but values received is helpless.

I think I need a good filter to get useful data out of that junk. I already used Kalman Filter and gone through link

iphone accelerometer speed and distance,

How to calculate distance using accelerometer using iphone sdk?,

How do I measure the distance traveled by an iPhone using the accelerometer?,

Basic calculus behind this problem is in the expression

Tried DCT-II algorithm and Multidimensional DCTs to filter data.

I dont know what did I miss, or where should I go from here, as it is hard to believe that no one has used accelerometer for such an accuracy, because there are so many practical examples of it being used for greater accuracy.

Please provide me some pointer that suggest some way out of current situation.

解决方案

You can't achieve cm accuracy. The reason is, surprisingly, the orientation error.

The above link contains some tips what you can do if you need displacement.

An even better alternative is to use orientation in you application, if you can.

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

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