c4dynamics.states.lib.quatbody.quatbody.psi

Contents

c4dynamics.states.lib.quatbody.quatbody.psi#

property quatbody.psi#

Gets and sets the Euler yaw angle, \(\psi\) (rad).

The angle is derived from the attitude quaternion. Setting the angle updates the quaternion while the other two Euler angles are kept.

Examples

>>> qb = c4d.quatbody()
>>> qb.psi = 45 * c4d.d2r
>>> qb.quat  
[0.924  0  0  0.383]