绘制在空气中Android手机 [英] Drawing in air with Android phone
问题描述
我工作的一个应用程序在空中划出与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手机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!