绘制在空气中Android手机 [英] Drawing in air with Android phone

查看:134
本文介绍了绘制在空气中Android手机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的一个应用程序在空中划出与Android手机。

I am working on an application to draw in the air with an android phone.

由于我的手机是移动的,感谢acceletometer,我检索每个轴AX,AY,AZ加速。我所感兴趣的是:X,Y,Z

As my phone is moving, thanks to the acceletometer, i retrieve the acceleration on each axis ax, ay, az. What I am interested in is: x,y,z.

从我读的论坛和一些教程,整合accelaration两次给了巨大的错误。

From what I read in forums and in some tutorials, integrating the accelaration twice gives huge errors.

那么,什么是对我来说,获得手机的deplacement?

So what is the best solution for me to get information on the deplacement of the phone?

感谢您的帮助。

推荐答案

不正是你所寻找的东西:

Not exactly what you are looking for:

商店定位到一个数组 - 和比较

跟踪定位效果很好。也许你可以用加速度计的数据类似(不带任何集成)。

Tracking orientation works well. Perhaps you can do something similar with the accelerometer data (without any integration).

正如你在帖子中提到,整合加速两次无法正常工作。

As you mentioned in your post, integrating the acceleration twice does not work.

更新:

如果精度都不重要,然后二重积分可能工作了几秒钟,但预期很糟糕的结果。

If accuracy is not important at all then the double integral might work for a few seconds but expect very poor results.

然而,在陀螺仪的鼠标在我看来是一个更好的选择。 00-38:37之间见
25

However, the gyro mouse is a better choice in my opinion. See between 37:00-38:25 in

传感器融合在Android设备上:一个革命运动处理

这篇关于绘制在空气中Android手机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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