As you see its different. I tried to analyze the matrices of rotations with different conventions (xyz, zyx etc) but none fits this kind of formulas.
Due to unknown convention I can't compare them. So I decided to use the quaternions from MPU instead. And then Using matlab to convert them into euler angles. Euler angles (yaw pitch roll) from MPU and euler angles got from MATLAB after conversion MPU quaternions to euler angles are completely different and makes no sense. MPU euler angles are OK. Showing good results but mpu quaternions to euler angles done in Matlab are completely wrong (matlab uses zyx convention but I think it doesn't matter which convention to use as I'm getting it from quaternions).
So the question is: is it possible that mpu is using it's own kind of quaternions and rotation matrix convention for euler angles or am I missing something? Could you help with that please?
My task is to compare two sensors results one is xsense another is MPU 9150. I read about the quaternions to euler conversion:![wikipedia formula](https://upload.wikimedia.org/math/a/2/9/a2925987257bc7469187cfc3c18da853.png)
What I see from the source code of MPU is:
As you see its different. I tried to analyze the matrices of rotations with different conventions (xyz, zyx etc) but none fits this kind of formulas.
Due to unknown convention I can't compare them. So I decided to use the quaternions from MPU instead. And then Using matlab to convert them into euler angles. Euler angles (yaw pitch roll) from MPU and euler angles got from MATLAB after conversion MPU quaternions to euler angles are completely different and makes no sense. MPU euler angles are OK. Showing good results but mpu quaternions to euler angles done in Matlab are completely wrong (matlab uses zyx convention but I think it doesn't matter which convention to use as I'm getting it from quaternions).
So the question is: is it possible that mpu is using it's own kind of quaternions and rotation matrix convention for euler angles or am I missing something? Could you help with that please?