加速度计移动的距离 [英] Distance moved by Accelerometer

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

问题描述

我想通过移动iPhone在iPhone屏幕上移动对象(矩形,圆形等)。
例如,我沿着X轴移动iPhone,对象沿着X轴移动。对于Y,Z轴也是如此。

I want to move objects on iPhone screen (rectangle, circle and so on) by moving iPhone. For example, I move iPhone along X-axis and the object moves along X-axis. The same for Y,Z-axis.

我该怎么做?
我可以获得算法吗?

How can I do this? Can I get algorithm for it?

谢谢。

PS:
我看了一会儿,似乎可以使用加速度计。

P.S: I looked for a while and seems like it is possible using accelerometer.

推荐答案

通过两次积分线性加速度得到位置,但错误很可怕。它在实践中毫无用处。

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

这是解释原因(Google Tech Talk)于23:20。我强烈推荐这个视频。

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

然而陀螺鼠标可能适用于您的应用,请参阅视频中的37:00-38:25 。

However the gyro mouse might work for your application, see between 37:00-38:25 in the video.

类似的问题:

跟踪没有GPS的iphone的小动作

真实世界的准确度是多少用于定位的手机加速度计?¥b $ b 如何计算手机在垂直方向上的移动休息?

iOS:3D空间中的移动精度
b $ b 如何使用Accelerometer测量Android应用程序开发的距离

我如何找到陀螺仪和加速度计的距离?

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
How to use Accelerometer to measure distance for Android Application Development
How can I find distance traveled with a gyroscope and accelerometer?

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

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