I’m working on a project where I need to know the position and orientation of each tag. I’ve correctly handled position without much issue, but I’m struggling to get the orientation from the quaternion packet.
I can parse the packet but I’m struggling to get what I consider to be valid data. I get values like:
I don’t have much experience with quaternions so I don’t know if these are valid or not. When I parse them with equations found here All three values (yaw, pitch, roll) oscillate pretty heavily.
Does anybody have any experience using the quaternion packet and could point me in the right direction?
EDIT: On more investigation I think I may be using the wrong datatypes for the quaternion values. Following what I did for the position_v3 packets I have uint32_t’s for all the quaternion values. Could this be wrong?