Engee documentation

Direction Cosine Matrix to Quaternions

Transformation of the rotation matrix into a quaternion.

blockType: SubSystem

Path in the library:

/Aerospace/Axes Transformations/Direction Cosine Matrix to Quaternions

Description

Block Direction Cosine Matrix to Quaternions transforms the rotation matrix (matrix of guide cosines ) into a four - element vector of quaternions .

The Matrix , defined by the unit vector of the quaternion, is equal to:

Algorithm for determining the quaternion by the rotation matrix it depends on its trace: if it is greater than zero, then the quaternion is immediately calculated; if it is less than or equal to zero, then the calculation algorithm depends on the index of the largest element of the main diagonal of the matrix.

Ports

Input

# DCMbe — the rotation matrix
the 3 by 3 matrix

Details

The rotation matrix, defined as a matrix on .

Data types

Float64

Complex numbers support

No

Output

# q — the quaternion
a 4-by-1 vector

Details

The quaternion returned as a vector on .

Data types

Float64

Complex numbers support

No