I currently have the wiiuse lib op and running with the motion plus output the angle_rate
from the gyro. Now i want this to give me the output in angles either euler representation or best of with quaternions, and i am a little stuck here. any solutions code examples that could point me in the way of how to calculate these?
I have an example of wiimoteHook running with a DSU controller test that gives output the quaternion output and is exactly what i want to give further to my program.
my program i am working on is that i am trying to make the wii remote hold by a person with a position system using ultra sound that gives me a coordinate(x,y,z) in a world frame then I want the wiimote to give me the rotation in that point to teach a 6 axis robot a tool center point that in the end would imitate movement of the remote.
I hope that somebody can guide me in the way of getting the rotations from the wiimote.
Thanks in advance.