在iPhone中使用加速度计寻找距离 [英] Finding distance using accelerometer in iPhone
问题描述
cm
,位移可以是3D。 我已经做的是
1。用声音来计算2 iPhone之间的距离,但我只需要一个iPhone距离计算,即需要位移。
2。尝试 CMMotionManager
及其加速度计数据,但收到的值是无奈的。
我想我需要一个很好的过滤器来获取有用的数据。我已经使用 Kalman Filter
并通过链接
我不知道我错过了什么,或者我应该从哪里走在这里,因为很难相信没有人使用加速计来达到这样的精确度,因为这里有 请给我提供一些指示,指出某种出路目前情况。 可以不能达到厘米的准确度。原因是,令人惊讶的是,方向错误。 上面的链接包含一些提示,如果你需要位移,你可以做些什么。 更好的选择是在您的应用程序中使用方向,如果可以的话。 Please suggest some beginning point in this process of finding distance displaced by an iPhone. The requirement of accuracy in current system is in 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 I think I need a good filter to get useful data out of that junk. I already used 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屋!
$如何使用加速计计算距离? b $ b
cm
, and displacement can be in 3D. CMMotionManager
and its accelerometer data, but values received is helpless.Kalman Filter
and gone through link