The control of unmanned aerial vehicles, particularly the quadrotor drone, has been a focal point of significant research in robotics and automation. This platform’s simple mechanical structure, vertical take-off and landing capability, and high maneuverability make it ideal for numerous applications. However, achieving precise, robust, and globally valid control for a quadrotor drone remains a challenging task, primarily due to its underactuated, highly nonlinear dynamics and its susceptibility to model uncertainties and external disturbances.
Traditional control designs often rely on Euler angle or quaternion-based representations of attitude. While useful, these parameterizations have inherent limitations. Euler angles suffer from singularities, restricting the controller’s operational envelope to local regions and preventing aggressive, global maneuvers. Unit quaternions, while singularity-free, provide a double cover of the true rotation space, leading to potential ambiguity and the so-called “unwinding” phenomenon where the system performs unnecessary large rotations. To overcome these fundamental issues, geometric control theory offers an elegant solution by formulating the dynamics directly on the Special Orthogonal Group SO(3), the natural space of 3D rotations. This approach provides a global and unique representation without singularities.
In this work, I address the trajectory tracking problem for a quadrotor drone with significant model uncertainties. The primary challenges considered are an unknown moment of inertia matrix and the presence of bounded external disturbances. A dynamic model incorporating these uncertainties is formulated directly on the configuration space SE(3), which is the Cartesian product of R³ for position and SO(3) for attitude. I adopt a hierarchical control structure, separating the fast attitude dynamics (inner loop) from the slower translational dynamics (outer loop). For the inner loop, I design a novel robust adaptive controller on SO(3). This controller combines the intuitive structure of a Proportional-Integral-Derivative (PID) controller with adaptation laws to estimate the inertia mismatch and robust terms to reject disturbances. The stability of the closed-loop system is rigorously proven using Lyapunov analysis. The outer position control loop utilizes a standard linear PID controller to generate the required thrust magnitude and a desired attitude. The performance of the proposed control system is validated through numerical simulations, demonstrating its superiority over a non-adaptive geometric PID controller in terms of convergence speed and tracking accuracy in the presence of uncertainties.
Mathematical Modeling of the Quadrotor Drone on SE(3)

The kinematic and dynamic model of the quadrotor drone is developed with a focus on practical engineering considerations. Let $\{ \mathcal{W}_1, \mathcal{W}_2, \mathcal{W}_3 \}$ denote an inertial, world-fixed frame and $\{ \mathcal{B}_1, \mathcal{B}_2, \mathcal{B}_3 \}$ denote a body-fixed frame attached to the center of mass of the drone. The third body axis, $\mathcal{B}_3$, is assumed to be perpendicular to the plane defined by the four rotors. The following key assumptions underpin the model derivation, summarized in Table 1.
| Assumption | Description |
|---|---|
| A1 | The thrust $f_i$ generated by each propeller $i$ is directly controllable and acts along the negative $\mathcal{B}_3$ direction. |
| A2 | Propellers 1 and 3 rotate clockwise, generating negative $\mathcal{B}_3$ thrust. Propellers 2 and 4 rotate counter-clockwise. |
| A3 | The reactive torque $\tau_i$ about $\mathcal{B}_3$ produced by each propeller is proportional to its thrust, i.e., $\tau_i = (-1)^i c_{\tau f} f_i$. |
| A4 | Unmodeled forces $\Delta_F$ and torques $\Delta_{\tau}$ are bounded by unknown constants. |
The key variables and parameters for the quadrotor drone model are defined in Table 2.
| Symbol | Description |
|---|---|
| $m \in \mathbb{R}$ | Mass of the quadrotor drone. |
| $J \in \mathbb{R}^{3\times3}$ | Inertia matrix in $\mathcal{B}$-frame ($J = J_0 + \Delta J$, where $J_0$ is known). |
| $R \in SO(3)$ | Rotation matrix from $\mathcal{B}$-frame to $\mathcal{W}$-frame. |
| $\Omega \in \mathbb{R}^3$ | Angular velocity vector expressed in the $\mathcal{B}$-frame. |
| $r \in \mathbb{R}^3$ | Position vector of the CoM in the $\mathcal{W}$-frame. |
| $v \in \mathbb{R}^3$ | Velocity vector of the CoM in the $\mathcal{W}$-frame. |
| $f \in \mathbb{R}$ | Total thrust magnitude, $f = \sum_{i=1}^{4} f_i$. |
| $M \in \mathbb{R}^3$ | Total moment vector in the $\mathcal{B}$-frame. |
| $\Delta_F, \Delta_{\tau} \in \mathbb{R}^3$ | Bounded external disturbance force and torque. |
The equations of motion for the quadrotor drone are given by:
$$
\begin{align}
m \dot{v} &= m g \mathcal{W}_3 – f R \mathcal{B}_3 + \Delta_F, \label{eq:trans_dyn} \\
\dot{R} &= R \hat{\Omega}, \label{eq:kinematics} \\
J \dot{\Omega} &= -\Omega \times J \Omega + M + \Delta_{\tau}. \label{eq:rot_dyn}
\end{align}
$$
Here, $g$ is gravitational acceleration. The map $(\cdot)^\wedge: \mathbb{R}^3 \to \mathfrak{so}(3)$ is defined such that $\hat{x} y = x \times y$ for all $x, y \in \mathbb{R}^3$. Its inverse is the vee map $\text{vex}(\cdot)$. The control inputs are the total thrust $u_1 = f$ and the total moment vector $u_2 = M$. The moment vector is related to the individual motor thrusts $[f_1, f_2, f_3, f_4]^T$ via an invertible allocation matrix, confirming that $f$ and $M$ are valid control inputs.
Given a desired trajectory specified by position $r_d(t)$, velocity $v_d(t)$, attitude $R_d(t) \in SO(3)$, and angular velocity $\Omega_d(t)$, the control objective is to design $u(t)$ such that the quadrotor drone’s state asymptotically tracks the desired trajectory. Defining the tracking errors is the first step:
$$
\begin{align}
e_r &= r – r_d, \\
e_v &= v – v_d, \\
e_R &= \frac{1}{2} \text{vex}\left( R_d^T R – R^T R_d \right), \\
e_\Omega &= \Omega – R^T R_d \Omega_d.
\end{align}
$$
The corresponding error dynamics are derived as:
$$
\begin{align}
\dot{e}_r &= e_v, \label{eq:e_r_dyn} \\
m \dot{e}_v &= m g \mathcal{W}_3 – m \ddot{r}_d – u_1 R \mathcal{B}_3 + \Delta_F, \label{eq:e_v_dyn} \\
\dot{e}_R &= E(R, R_d) e_\Omega, \label{eq:e_R_dyn} \\
\dot{e}_\Omega &= J^{-1}\left( -\Omega \times J \Omega + u_2 + \Delta_{\tau} \right) – \alpha_d, \label{eq:e_Omega_dyn}
\end{align}
$$
where $E(R, R_d) = \frac{1}{2}\left(\text{tr}[R^T R_d] I – R^T R_d\right)$ and $\alpha_d = \dot{\Omega}_d – \widehat{R^T R_d \Omega_d} \Omega_d$. A key function in the stability analysis is the attitude error function $\Psi(R, R_d) = \frac{1}{2} \text{tr}[I – R_d^T R]$. Its properties are crucial and are listed in Lemma 1.
Lemma 1. The function $\Psi: SO(3) \times SO(3) \to \mathbb{R}$ has the following properties:
1. It is locally positive-definite about $R = R_d$.
2. Its critical points are $\{R_d\} \cup \{R_d \exp(\pi \hat{s}), s \in \mathcal{S}^2\}$.
3. Its lower bound is $\frac{1}{2} \|e_R\|^2 \leq \Psi(R, R_d)$.
4. For a constant $\psi < 2$, if $\Psi(R, R_d) < \psi$, then $\|E(R, R_d)\|_F \leq \frac{1}{\sqrt{2-\psi}}$.
5. Its time derivative satisfies $\dot{\Psi} = e_R \cdot e_\Omega$.
Control System Design and Stability Analysis
The control architecture follows the standard inner-outer loop paradigm common in flight control. The fast inner loop stabilizes the attitude dynamics on SO(3), while the slower outer loop controls the translational motion. This structure, depicted in the block diagram, effectively handles the underactuation of the quadrotor drone.
Outer Loop: Position Control
For the translational dynamics (Eq. \ref{eq:e_v_dyn}), a linear PID controller is sufficient given the slower time scale and linear structure when the attitude is stabilized. The desired force vector $F_{des} \in \mathbb{R}^3$ in the inertial frame is computed as:
$$
F_{des} = -K_p e_r – K_d e_v + m g \mathcal{W}_3 + m \ddot{r}_d,
$$
where $K_p, K_d \in \mathbb{R}^{3\times3}$ are positive definite diagonal gain matrices. The primary control input, the total thrust magnitude $u_1 = f$, is the projection of this desired force onto the current body-fixed $\mathcal{B}_3$ axis:
$$
u_1 = F_{des} \cdot (R \mathcal{B}_3).
$$
The direction of the desired body $z$-axis, $\mathcal{B}_{3,des}$, is simply the unit vector along $F_{des}$: $\mathcal{B}_{3,des} = F_{des} / \|F_{des}\|$. Given a desired yaw angle $\psi_d(t)$, the desired body $x$-axis, $\mathcal{B}_{1,des}$, is constructed to be orthogonal to $\mathcal{B}_{3,des}$ and to point towards the projection of the heading defined by $\psi_d$. Specifically, we define a temporary heading vector $h = [\cos\psi_d, \sin\psi_d, 0]^T$. Then,
$$
\begin{align}
\mathcal{B}_{2,des} &= \frac{\mathcal{B}_{3,des} \times h}{\|\mathcal{B}_{3,des} \times h\|}, \\
\mathcal{B}_{1,des} &= \mathcal{B}_{2,des} \times \mathcal{B}_{3,des}.
\end{align}
$$
From these axes, the complete desired rotation matrix $R_d = [\mathcal{B}_{1,des}, \mathcal{B}_{2,des}, \mathcal{B}_{3,des}]$ is formed. Its associated angular velocity $\Omega_d$ is obtained from the kinematics $\dot{R}_d = R_d \hat{\Omega}_d$.
Inner Loop: Robust Adaptive Attitude Control on SO(3)
The core contribution lies in the design of the attitude controller for the uncertain quadrotor drone system (Eqs. \ref{eq:e_R_dyn}, \ref{eq:e_Omega_dyn}). Let $\tilde{J} = \Delta J = J – J_0$ represent the unknown part of the inertia matrix. The control moment $u_2 = M$ is designed as a robust adaptive PID controller:
$$
\begin{align}
u_2 &= -k_R e_R – k_\Omega e_\Omega – k_I e_I + \Omega \times J_0 \Omega + J_0 \alpha_d + \hat{J} \alpha_d + \mu_2, \label{eq:control_law} \\
\dot{e}_I &= e_\Omega + c_2 e_R, \label{eq:integral_dyn} \\
\mu_2 &= -\frac{\delta^2 e_A}{\delta \|e_A\| + \epsilon}, \quad e_A = e_\Omega + c_2 e_R. \label{eq:robust_term}
\end{align}
$$
Here, $k_R, k_\Omega, k_I, c_2, \epsilon > 0$ are constant controller gains, $\hat{J}$ is the estimate of $\tilde{J}$, and $\delta$ is a positive constant related to the disturbance bound. The term $\mu_2$ is a smooth robust control term to counteract the bounded disturbance $\Delta_\tau$. The integral action on $e_I$ helps eliminate steady-state errors due to constant or slowly varying disturbances. The adaptation law for the inertia estimate is designed as:
$$
\dot{\hat{J}} = \text{Proj}\left( \frac{\gamma}{2} \left( -2 \dot{e}_I e_\Omega^T – e_A \alpha_d^T + \alpha_d e_A^T + e_A \Omega^T – \Omega e_A^T \right) \right), \label{eq:adaptation_law}
$$
where $\gamma > 0$ is the adaptation gain and $\text{Proj}(\cdot)$ is a parameter projection operator ensuring the estimates remain bounded, which is a standard tool in adaptive control.
Stability Analysis
The stability of the closed-loop attitude error system is analyzed using Lyapunov theory.
Theorem 1. Consider the attitude error dynamics (Eqs. \ref{eq:e_R_dyn}, \ref{eq:e_Omega_dyn}) for the quadrotor drone under the control law (Eq. \ref{eq:control_law}) with the robust term (Eq. \ref{eq:robust_term}) and adaptation law (Eq. \ref{eq:adaptation_law}). Assume the initial attitude error satisfies $\Psi(R(0), R_d(0)) < \psi_1 < 2$. If the controller gains are selected such that the following matrix is positive definite:
$$
W_1 = \begin{bmatrix}
c_2 k_R & -\frac{c_2 k_\Omega}{2} & 0 \\
-\frac{c_2 k_\Omega}{2} & (k_\Omega – 3 c_2 \lambda_{max}(J_0)) & -\frac{1}{2} \\
0 & -\frac{1}{2} & \frac{k_I}{2}
\end{bmatrix} > 0,
$$
then the tracking errors $(e_R, e_\Omega, e_I)$ and the parameter estimation error $\tilde{J}$ are uniformly ultimately bounded. Furthermore, if the disturbances $\Delta_\tau = 0$, the tracking errors converge to zero asymptotically.
Proof Sketch: Consider the candidate Lyapunov function:
$$
\begin{align*}
V = &\frac{1}{2} e_\Omega^T J e_\Omega + k_R \Psi(R, R_d) + c_2 e_R^T J e_\Omega + \frac{1}{2} k_I e_I^T e_I + \frac{1}{2\gamma} \|\tilde{J}\|_F^2.
\end{align*}
$$
Using the properties from Lemma 1 and under the initial condition on $\Psi$, it can be shown that $V$ is positive definite and radially unbounded in the error states. Computing its time derivative $\dot{V}$ along the trajectories of the closed-loop system and substituting the control and adaptation laws yields, after significant algebraic manipulation and application of Young’s inequality:
$$
\dot{V} \leq -z^T W_2 z + \eta.
$$
Here, $z = [\|e_R\|, \|e_\Omega\|, \|e_I\|]^T$, $W_2$ is a positive definite matrix for appropriate gain selection, and $\eta$ is a positive constant stemming from the bounded disturbances. This inequality proves uniform ultimate boundedness. In the disturbance-free case ($\Delta_\tau=0$ and thus $\eta=0$), $\dot{V} \leq -z^T W_2 z \leq 0$. By LaSalle’s invariance principle, the system converges to the largest invariant set where $e_R=0$, $e_\Omega=0$, and $e_I$ is constant. From the closed-loop dynamics, this forces $e_I=0$, completing the proof of asymptotic stability for the quadrotor drone’s attitude subsystem.
Simulation Results
To validate the proposed geometric adaptive controller for the quadrotor drone, numerical simulations were conducted in MATLAB. The physical parameters and controller gains are listed in Table 3.
| Parameter | Value |
|---|---|
| Mass ($m$) | 1.0 kg |
| True Inertia ($J$) | $\text{diag}(0.01, 0.01, 0.02)$ kg·m² |
| Nominal Inertia ($J_0$) | $\text{diag}(0.005, 0.005, 0.01)$ kg·m² (Case 1) $\text{diag}(0.02, 0.02, 0.02)$ kg·m² (Case 2) |
| Position Gains ($K_p, K_d$) | $K_p = 10I_3$, $K_d = 8I_3$ |
| Attitude Gains | $k_R=8.4$, $k_\Omega=1.0$, $k_I=0.1$, $c_2=2.0$, $\epsilon=1$ |
| Adaptation Gain ($\gamma$) | 0.1 |
Two sets of simulations were performed: (i) an aggressive attitude tracking maneuver, and (ii) a full 3D trajectory tracking mission with wind disturbances.
Attitude Tracking Performance
The desired attitude $R_d(t)$ was generated to perform simultaneous large-angle rotations: $R_d(t) = \exp(\hat{\omega}_1(t)) \exp(\hat{\omega}_2(t)) \exp(\hat{\omega}_3(t))$, with $\omega_1(t)=\frac{\pi}{4}\sin(t)$, $\omega_2(t)=\frac{\pi}{4}\sin(2t)$, $\omega_3(t)=\frac{\pi}{3}\sin(3t)$. This is a challenging, globally defined maneuver. A sinusoidal disturbance torque $\Delta_\tau = [0.1\sin(\pi t), 0.1\cos(\pi t), 0]^T$ N·m was applied. The proposed robust adaptive controller (RAC) was compared against a standard geometric PID controller (using Eq. \ref{eq:control_law} with $\hat{J}=0$ and $\mu_2=0$).
The results are striking. The adaptive controller for the quadrotor drone achieved significantly faster convergence and lower steady-state error in both attitude ($e_R$) and angular velocity ($e_\Omega$). The norm of the attitude error vector $\|e_R\|$ under RAC converged to near zero in approximately 2 seconds, while the PID controller exhibited persistent oscillations with much larger amplitude due to the inertia mismatch and disturbance. This demonstrates the critical advantage of online parameter adaptation for the quadrotor drone’s dynamics. The evolution of the inertia estimate $\hat{J}$ for two different initial guesses $J_0$ (Case 1: under-estimate, Case 2: over-estimate) is shown in the figures. In both cases, the estimates converged to steady values that compensated for the true mismatch $\tilde{J}$, confirming the effectiveness of the adaptation law.
Trajectory Tracking Performance
A full 3D trajectory was commanded: $r_d(t) = [5\sin(0.5t), 5\cos(0.5t), -10 – 0.1t]^T$ m, with a constant desired yaw $\psi_d=0$. The same disturbance torque was applied. The initial attitude was set to the identity. The proposed cascaded controller (adaptive inner loop + PID outer loop) successfully stabilized the quadrotor drone and achieved accurate tracking.
The 3D plot of the trajectory shows the quadrotor drone closely following the desired helical descent path. The position tracking errors ($e_r$) remained within a few centimeters after a brief transient period. The inner-loop attitude error $\|e_R\|$ and angular velocity error $\|e_\Omega\|$ again showed rapid convergence to a very small neighborhood of zero, despite the persistent disturbance and the changing desired attitude $R_d(t)$ computed by the outer loop. This robustness is attributed to the combined action of the adaptive term $\hat{J} \alpha_d$, which cancels the inertia mismatch effect, and the robust term $\mu_2$, which actively suppresses the external disturbance $\Delta_\tau$.
Conclusion
This work presented a comprehensive geometric adaptive control solution for the trajectory tracking problem of a quadrotor drone. By formulating the dynamics directly on the SO(3) manifold, a globally valid model was obtained, free from the singularities and ambiguities of local parameterizations. The controller was designed with practical implementation in mind, explicitly accounting for a significant unknown parameter—the moment of inertia—and bounded external disturbances.
The proposed control architecture decomposed the problem into an inner attitude loop and an outer position loop. For the critical inner loop, a novel robust adaptive PID controller on SO(3) was developed. Its key features include: (1) an adaptation law to estimate the inertia matrix online, (2) a smooth robust control term to reject disturbances, and (3) an integral term to eliminate steady-state errors. The separation of the known nominal inertia $J_0$ in the control law allowed for a more efficient design, leveraging available model information. Lyapunov-based stability analysis proved the uniform ultimate boundedness of all signals and asymptotic convergence in the disturbance-free case.
Simulation studies confirmed the theoretical claims and demonstrated the superior performance of the adaptive controller over a non-adaptive geometric PID controller. The adaptive quadrotor drone controller achieved faster convergence, higher precision in attitude tracking, and effective rejection of sinusoidal disturbances, even when starting with a highly inaccurate initial inertia estimate. The successful 3D trajectory tracking simulation validated the overall cascaded control structure. Future work will focus on extending this framework to address input saturation, more complex aerodynamic effects, and experimental validation on a physical quadrotor drone platform.
