There are two different ways that are commonly used to represent quaternions.
Q = [a,b,c,d] with d being the scalar part, and a,b,c being the vector part.
or
Q = [a,b,c,d] where a is the scalar part and b,c,d represent the vector part.
Matlab currently uses the latter representation; a is the scalar, and b,c,d are the vector coponents. Make sure that your code is the same.
1 Comment
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/493906-why-the-quaternion-values-from-sensor-fusion-toolbox-are-switched#comment_794465
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/493906-why-the-quaternion-values-from-sensor-fusion-toolbox-are-switched#comment_794465
Sign in to comment.