jit.quat item - how to extract the rotation matrix?
with the Jit quat item, I can see in the item attributes it has the 3 components of the 3x3 matrix. what I am trying to do is work out how I can output the 3 z axis values to retrospectively subtract those from my accelerometer values to produce a crude IMU. I have tried @zaxis in the command but I'm not sure what additional value to put in so that when I unpack I get the 3 values rather than the standard 4 for the quat?
anyone know.
Does anyone know how to retrieve the matrix components from the jit.quat item - I have tried @zaxis - but all I get are the 4 floats for the quat values still. The 3x3 matrix values are all displayed in the item parameters. The help file doesn't provide a solution??
once you've set the quaternion values, you send the message "getzaxis" to the object, and the values come out the dump outlet. this is the attribute paradigm of jit objects.
Thanks that's great.