减少wiimote俯仰/滚动变化 [英] Reducing wiimote pitch/roll variations
问题描述
我想使用wiimote在没有红外传感器栏的情况下控制光标。我使用俯仰和滚动值为此。
问题是,当桨距接近0度时,摇摆非常不稳定,当桨距接近90度时,其本身非常不稳定,但是摇摆很好。
我频繁地轮询wiimote,所以im平均最后20个值为俯仰和滚动,我可以得到光标去我想要的地方。唯一的问题是,仍然有很多不可控的摇晃。
有关如何减少它的任何想法? (或者甚至在没有IR传感器栏的情况下获得更准确的位置?)
谢谢!
Dave
这是俯仰和滚转的常见问题。你可以减少这个恼人的效果,但你不能摆脱它,只要你使用俯仰和滚动(欧拉角)。看看38:25
http://www.youtube.com/watch?v=C7JQ7Rpwn2k
我使用旋转矩阵取代了欧拉角在我的运动感应应用程序。旋转矩阵:
http:// gentlenav .googlecode.com / files / DCMDraft2.pdf
四进制也非常受欢迎,并且被认为是最稳定的。 / p>
I want to use the wiimote to control a cursor WITHOUT the infrared sensor bar. I'm using the pitch and roll values for this. The problem is that when the pitch is close to 0 degrees, the roll is very unstable, and when the pitch is close to 90 degrees, it is itself very unstable, but the roll is fine. Im polling the wiimote very frequently, so im averaging the last 20 values for both pitch and roll, and I can get the cursor to go where I want. The only problem is that there is still alot of uncontrolable shaking. Any ideas on how I can reduce it? (Or even get a more precise position without the IR sensorbar?)
Thanks!
Dave
This is a common problem with pitch and roll. You can reduce this annoying effect but you cannot get rid of it as long as you are using pitch and roll (Euler angles). Look at 38:25
http://www.youtube.com/watch?v=C7JQ7Rpwn2k
I use rotation matrices instead of Euler angles in my motion sensing application. Rotation matrices:
http://gentlenav.googlecode.com/files/DCMDraft2.pdf
Quaternions are also very popular and said to be the most stable.
这篇关于减少wiimote俯仰/滚动变化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!