Preliminaries

Coordinate System

In embedded control systems, particularly in aerial robotics, the representation of position, orientation, and motion is fundamentally dependent on the choice of coordinate systems. A clear definition of coordinate frames and their transformations is essential for accurate state estimation and control.

Reference Frames

A reference frame defines a coordinate system with respect to which the position and orientation of an object are measured. In flight control systems, two primary reference frames are commonly used:

  • Inertial Frame (World Frame): A fixed reference frame, typically aligned with the Earth. In many applications, the North-East-Down (NED) convention is used, where:

    • X-axis points toward the North

    • Y-axis points toward the East

    • Z-axis points downward

  • Body Frame: A moving reference frame attached to the vehicle. Its axes are defined relative to the drone:

    • X-axis points forward

    • Y-axis points to the right

    • Z-axis points downward

The body frame moves and rotates with the vehicle, while the inertial frame remains fixed. Sensor measurements are typically obtained in the body frame, whereas navigation and control objectives are often defined in the inertial frame.

Coordinate Transformations

To relate quantities between different frames, coordinate transformations are required. These transformations are typically represented using rotation matrices or equivalent representations. A rotation matrix RSO(3)R \in SO(3) describes the orientation of the body frame with respect to the inertial frame and allows vectors to be transformed between frames.

If 𝐯b\mathbf{v}_b represents a vector in the body frame, and 𝐯i\mathbf{v}_i represents the same vector in the inertial frame, then:

𝐯i=R𝐯b\mathbf{v}_i = R \, \mathbf{v}_b

These transformations are essential for interpreting sensor data and applying control laws in a consistent reference frame.

Attitude Representation

The orientation of a rigid body in three-dimensional space, referred to as its attitude, can be represented using several methods. The most common representations include Euler angles, rotation matrices, and quaternions.

  • Euler Angles: Orientation is described using three sequential rotations, typically roll, pitch, and yaw. While intuitive, Euler angles suffer from singularities (gimbal lock) and are not well-suited for continuous rotational dynamics.

  • Rotation Matrices: A 3×3 orthonormal matrix representing orientation. Rotation matrices are free from singularities but require more computational resources and must maintain orthogonality.

  • Quaternions: A compact and numerically stable representation of orientation using four parameters. Quaternions avoid singularities and are widely used in real-time systems for attitude estimation and control.

In practical flight control systems, quaternions are commonly used for internal computations due to their stability and efficiency, while Euler angles may be used for interpretation and user interaction.

Relevance to Control Systems

Accurate representation of coordinate frames and attitude is critical for transforming sensor measurements into meaningful state estimates. For example, inertial measurements obtained from an IMU in the body frame must be transformed into the inertial frame for tasks such as stabilization and navigation.

Similarly, control algorithms often compute desired orientations or angular rates in a specific frame, requiring consistent transformation between reference frames. Errors in these transformations can lead to incorrect state estimation and unstable control behavior.

Thus, a well-defined coordinate system framework forms the foundation for sensor fusion, state estimation, and control in embedded flight systems. Figure 2.4 illustrates the relationship between the fixed inertial frame and the drone’s body frame, along with the convention for Euler angle rotations.

Refined 3D coordinate systems showing the Inertial (NED) and Body frames side-by-side.