Quaternions
Quaternions are a 4-parameter representation of attitude that avoids the singularities found in Euler angles.
Where is the scalar part and is the vector part. For rotation, these relate to axis-angle as:
Where is the rotation axis and is the rotation angle.
Direction Cosine Matrix (DCM)
DCM is a 3×3 rotation matrix that transforms vectors from one coordinate system to another.
The columns represent the body coordinate axes expressed in the inertial frame.
From quaternions, the DCM can be computed as:
Torque-Free Motion
In the absence of external torques, angular momentum is conserved. For a rigid body, this means:
Where is the angular momentum. In body coordinates, this leads to:
Where is the moment of inertia tensor and is the angular velocity.
Constant Angular Velocity
For bodies with special inertia properties or specific initial conditions, can remain constant in body coordinates. Our simulation implements:
This means the spacecraft rotates around a fixed axis with constant speed, even though the orientation changes continuously.
Quaternion Kinematics
For a rotating body with angular velocity , the quaternion evolution is given by:
Where is quaternion multiplication. This differential equation describes how the orientation changes with time.
DCM Kinematics
The equivalent differential equation for the DCM is:
Where is the skew-symmetric matrix formed from angular velocity:
Euler's Rotation Theorem
Any rotation can be expressed as a single rotation about some axis. This is the principle behind the axis-angle representation.
This is the foundation of both quaternion and DCM representations.
Body Frame Axes
The red, green, and blue axes in the visualization represent the body-fixed coordinate frame:
- X-axis (red) - Body forward direction
- Y-axis (green) - Body upward direction
- Z-axis (blue) - Body right direction
This right-handed coordinate system rotates with the spacecraft.
Attitude Propagation
For the constant angular velocity case, the quaternion at time is:
Where is a 4×4 matrix formed from angular velocity components and .
Polhode Motion
In torque-free rotation, the angular velocity vector traces a path called a polhode when viewed from the body frame.
For principal axis rotation (as simulated here), the polhode simplifies to a single point, meaning is constant in body coordinates.