减少 Wiimote 俯仰/滚动变化
我想使用 Wiimote 来控制光标,而不需要红外传感器条。我为此使用俯仰和滚动值。 问题是,当俯仰接近0度时,横滚很不稳定,而当俯仰接近90度时,本身就很不稳定,但横滚还算可以。 我非常频繁地轮询 Wiimote,因此我对俯仰和横滚的最后 20 个值进行平均,这样我就可以让光标移动到我想要的位置。唯一的问题是仍然存在大量无法控制的晃动。 关于如何减少它有什么想法吗? (或者甚至在没有红外传感器条的情况下获得更精确的位置?)
谢谢!
戴夫
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是俯仰和横滚的常见问题。您可以减少这种恼人的影响,但只要您使用俯仰和横滚(欧拉角),就无法摆脱它。请观看 38:25
http://www.youtube.com/watch?v= C7JQ7Rpwn2k
我在运动传感应用中使用旋转矩阵而不是欧拉角。有关旋转矩阵的介绍,我建议:
方向余弦矩阵 IMU:理论
四元数也很受欢迎,据说是最稳定的。
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. For an introduction to rotation matrices I recommend:
Direction Cosine Matrix IMU: Theory
Quaternions are also very popular and said to be the most stable.
一个简单的(有时简单是最好的)解决方案将平均您的读数。
缓冲最后一个读数,例如五个读数,然后将这些读数的平均值作为您的值。它们在平坦和快速旋转之间会有轻微的延迟,但对于光标来说,几乎会产生轻微的摩擦,它会有点抵抗突然的变化。
A simple (some times simple is the best) solution would be average out your readings.
Buffer the last, say five readings, and then take the average of those as your value. Their will be a slight delay between being flat and being quickly rotated, but for a cursor will result in a slight, sort of friction almost, it will sort of resist sudden changes.