Aerospace Blockset    
Quaternions to Euler Angles

Convert quaternion vector to Euler angles

Library

Transformations/Axes

Description

The Quaternions to Euler Angles block converts the four-element unit quaternion (q0,q1,q2,q3) into the equivalent three Euler angle rotations (roll, pitch, yaw).

The conversion is generated by comparing elements in the direction cosine matrix (DCM), as functions of the Euler rotation angles, with elements in the DCM, as functions of a unit quaternion vector.



From the preceding, you can derive the following relationships between DCM elements and individual Euler angles:

Dialog Box

Inputs and Outputs

The input is a 4-by-1 quaternion vector.

The output is a 3-by-1 vector of Euler angles.

Assumptions and Limitations

This implementation generates a pitch angle that lies between degrees, and roll and yaw angles that lie between degrees.

Examples

See aero_six_dof.mdl for an example of the use of the Quaternions to Euler Angles block in an implementation of the equations of motion of a rigid body.

See Also
Direction Cosine Matrix to Euler Angles

Direction Cosine Matrix to Quaternions

Euler Angles to Direction Cosine Matrix

Euler Angles to Quaternions

Quaternions to Direction Cosine Matrix


  Quaternions to Direction Cosine Matrix Second Order Linear Actuator