Table of Contents
Euler Angles from Rotation Matrix
This block converts a rotation matrix to Euler angles.
Library
MATLAB Command Line
Click to copy the following command line to the clipboard. Then paste it in the MATLAB Command Window:
qc_open_library('quarc_library/Math Operations/Matrices')Description
This block converts a rotation matrix to Euler angles according to the Euler angle convention selected in the block parameters. All 24 possible combinations of rotations about fixed or relative axes are supported.
Input Ports
R
The 3x3 rotation matrix to convert to Euler angles.
Output Ports
phi
This output is the angle in radians for the first rotation. The axis is determined by the first axis in the rotation order selected in the Rotation order parameter.
theta
This output is the angle in radians for the second rotation. The axis is determined by the second axis in the rotation order selected in the Rotation order parameter.
psi
This output is the angle in radians for the third rotation. The axis is determined by the third axis in the rotation order selected in the Rotation order parameter.
Parameters and Dialog Box
Rotation order
Selects the Euler angle convention to use. There are 24 different definitions for Euler angles. The classic Euler angles consist of rotations where the first and third axes are the same e.g. a Z-X-Z convention. The roll-pitch-yaw or Tait-Byran angles consist of rotations where all the axes are different e.g. an X-Y-Z convention.
Targets
Target Name |
Compatible* |
Model Referencing |
Comments |
---|---|---|---|
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
Last fully supported in QUARC 2018. |
|
Rapid Simulation (RSIM) Target |
Yes |
Yes |
|
S-Function Target |
No |
N/A |
Old technology. Use model referencing instead. |
Normal simulation |
Yes |
Yes |
See Also
Copyright ©2024 Quanser Inc. This page was generated 2024-10-17. Submit feedback to Quanser about this page.
Link to this page.