Convert rotation angles to quaternion
quaternion
= angle2quat(rotationAng1
,rotationAng2
,rotationAng3
)
quaternion
= angle2quat(rotationAng1
,rotationAng2
,rotationAng3
,rotationSequence
)
calculates the quaternion for three rotation angles. Aerospace Toolbox uses quaternions that are defined using the scalar-first convention. The
rotation used in this function is a passive transformation between two coordinate
systems.quaternion
= angle2quat(rotationAng1
,rotationAng2
,rotationAng3
)
calculates
the quaternion using a rotation sequence. quaternion
= angle2quat(rotationAng1
,rotationAng2
,rotationAng3
,rotationSequence
)
|
| |||||||||||||
|
| |||||||||||||
|
| |||||||||||||
|
Rotation sequence. For example, the default
|
|
|
Determine the quaternion from rotation angles:
yaw = 0.7854; pitch = 0.1; roll = 0; q = angle2quat(yaw, pitch, roll) q = 0.9227 -0.0191 0.0462 0.3822
Determine the quaternion from rotation angles and rotation sequence:
yaw = [0.7854 0.5]; pitch = [0.1 0.3]; roll = [0 0.1]; q = angle2quat(pitch, roll, yaw, 'YXZ') q = 0.9227 0.0191 0.0462 0.3822 0.9587 0.0848 0.1324 0.2371
angle2dcm
| dcm2angle
| dcm2quat
| quat2angle
| quat2dcm