PlanetPhysics/Direction Cosine Matrix to Euler 132 Sequence

From testwiki
Jump to navigation Jump to search

Starting with a [[../DirectionCosineMatrix/|direction cosine matrix]] (DCM), we need to determine the three Euler angles. The connection is made by comparing the DCM elements with the combined [[../Euler132Sequence/|Euler 132 Sequence]]. It is important to note that the 12 combinations of Euler angles for a given sequence can be found from a given DCM. The DCM [[../Matrix/|matrix]] is

DCM=[A11A12A13A21A22A23A31A32A33]

The Euler 132 sequence is

R2(ψ)R3(θ)R1(ϕ)=[cψcθcψsθcϕ+sψsϕcψsθsϕsψcϕsθcθcϕcθsϕsψcθsψsθcϕcψsϕsψsθsϕ+cψcϕ]

If we examine the element in coloum 1 row 2, then by inspection

A21=sin(θ)

Solving for θ yields

θ=sin1(A21)

Care must now be taken when evaluating the inverse sine. It is a multivalued [[../Bijective/|function]], which will have values of θ and πθ. Analytically, the convention is to choose the principle value such that

π/2θπ/2

If a numerical [[../SupercomputerArchitercture/|program]] is used, a function asin() usually does this for us. The next step is to analyze the ratio A23A22. Using these values from the Euler sequence we get

A23A22=cos(θ)sin(ϕ)cos(θ)cos(ϕ)

Rearranging and using the tangent yields

tan(ϕ)=A23A22

Solving the quadrant ambiquity caused by the inverse tangent is done by examining the signs of the numerator and denominator. Denoting y as the numerator and x as the denominator, then the quadrant is chosen by:

quadrant 1 </math> \left[ \begin{matrix} y & x \\ + & + \\ \end{matrix} \right] soifxandyarebothpositive,then<math>0ϕπ/2. Similarily for the other quadrant possibilites

quadrant 2 </math> \left[ \begin{matrix} y & x \\ + & - \\ \end{matrix} \right] quadrant3 \left[ \begin{matrix} y & x \\ - & - \\ \end{matrix} \right] quadrant4 \left[ \begin{matrix} y & x \\ - & + \\ \end{matrix} \right] Ofcourse,itismuchsimpliertouseacalculatorornumericalprogramthatusestheatan2()functionwhichwillchoosetheprinciplevalue.InasimilarfashionwecanfindthefinalEuleranglebylookingattheratio<math>A31A11 which gives the [[../Bijective/|relation]] A31A11=sin(ψ)cos(θ)cos(ψ)cos(θ)

Canceling terms and rearrangeing gives us

ψ=tan1(A31A11)

which uses the same method to resolove quadrant ambiguity as above. To summarize, we will give the [[../Formula/|formulas]] for the conversion from a direction cosine matrix to the Euler 132 angles in Matlab syntax. Be careful how you implement this in other numerical programs. In Matlab it goes atan2(y,x) and in Mathematica it is ArcTan[x, y].

ϕ=atan2(A23,A22) θ=asin(A21) ψ=atan2(A31,A11)

Template:CourseCat