Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

# Function to Convert between DCM, Euler angles, Quaternions, and Euler vectors 1.0

Date Added: May 28, 2013  |  Visits: 287

SpinCalc is a consolidated matlab function that will convert any rotation data between the 4 types included. Will also convert between 2 different Euler angle set types.Multiple orientations can be input. For N orientations:DCM ===> 3x3xN multidimensional arrayEA### ===> Nx3 matrixEuler Vectors ===> Nx4 matrixQuaternions ===> Nx4 matrixInput includes error check flag that will warn when Euler angles approach singularity or when appropriate values deviate from unity. Fatal errors issued for improper DCM's etc.*****NOTE TO USERS*****I have gotten many questions regarding translation to Euler angle sets. When converting data to Euler angles, you MUST make sure the orientation you are translating is not near a singularity. Singular Euler sets are orientations which cannot be uniquely converted to 3 variables in that particular rotation order. The singular sets are as follows:Type 1 Rotations: 123 - 132 - 213 - 231 - 321 - 312Singular if second rotation angle is -90 or 90 degrees.Type 2 Rotations: 121 - 131 - 212 - 232 - 313 - 323Singular if second rotation angle is 0 or 180 degrees.SpinCalc should now detect when input DCM, EV, or Q correspond to a singular Euler set output. It will prohibit output in such an event.Naturally when converting from these singular Euler angle sets to other data types, you will receive a correct answer. Unfortunately you cannot convert that output back to the correct Euler angle set. This is why singular Euler input is prohibited.Some users may need SpinCalc for the very reason of converting singular Euler sets to the other types. In those cases, removing the prohibiting error check shouldn't be too difficult. Contact me for help if need be.

 Requirements: No special requirements Platforms: Matlab Keyword: Convert,  Converting,  Converting Data,  Degreesspincalc,  Euler Angles,  Input Dcm,  Prohibit Output,  Singular,  Singular Euler,  Translating,  Usersi,  Values,  Values Deviate,  Vectors Dgt,  Warn,  Warn Euler Users rating: 0/10