Reducing wiimote pitch/roll variations

两盒软妹~` 提交于 2019-11-28 02:20:28

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!