In recent years, the quadrotor drone has garnered significant attention due to its wide range of applications, including precision agriculture, power line inspection, aerial photography, geological surveying, and forest fire monitoring. As a small unmanned aerial vehicle, the quadrotor drone is characterized by its multi-input multi-output (MIMO) nature, underactuation, and strong nonlinear coupling between states. When operating outdoors, the quadrotor drone is susceptible to various disturbances, such as wind gusts and model uncertainties. Maintaining stable flight attitudes and responding swiftly to control commands under these conditions is a critical challenge. Therefore, the design of effective flight control systems, particularly for attitude control, holds substantial practical importance. This article proposes a novel inner-outer loop control strategy that combines active disturbance rejection control (ADRC) with non-singular terminal sliding mode control (NTSMC) to enhance the robustness and tracking performance of quadrotor drone attitude systems.
The core of the proposed method lies in its dual-loop architecture. The inner loop employs an ADRC framework, which utilizes an extended state observer (ESO) to estimate and compensate for total disturbances—encompassing both internal model uncertainties and external wind disturbances—in real time. This allows the control system to operate without relying on an exact mathematical model. The outer loop incorporates a non-singular terminal sliding mode controller (NTSMC) to achieve fast convergence and high tracking accuracy for attitude angles. By integrating these two techniques, the controller leverages the disturbance rejection capabilities of ADRC and the rapid response of NTSMC. The stability of the overall control system is rigorously proven using Lyapunov theory. Simulation results demonstrate that the proposed controller exhibits superior tracking precision and anti-interference performance compared to conventional methods, making it highly suitable for practical quadrotor drone applications.

To lay the foundation for controller design, we first establish the nonlinear mathematical model of a quadrotor drone. The dynamics are derived based on Newton-Euler equations, considering both translational and rotational motions. However, for attitude control, the focus is on the rotational dynamics described by roll, pitch, and yaw angles. Let us define the ground coordinate system (inertial frame) as $\{O_E, x_E, y_E, z_E\}$ and the body-fixed coordinate system as $\{O_B, x_B, y_B, z_B\}$. The attitude angles—roll ($\phi$), pitch ($\theta$), and yaw ($\psi$)—represent the orientation of the quadrotor drone relative to the ground frame. The angular velocity vector in the body frame is denoted as $\boldsymbol{\omega} = [p, q, r]^T$, where $p$, $q$, and $r$ are the angular rates about the $x_B$, $y_B$, and $z_B$ axes, respectively.
The relationship between the attitude angle rates and the body angular rates is given by the transformation matrix $\mathbf{R}_r$:
$$ \begin{bmatrix} p \\ q \\ r \end{bmatrix} = \mathbf{R}_r \begin{bmatrix} \dot{\phi} \\ \dot{\theta} \\ \dot{\psi} \end{bmatrix}, \quad \text{where} \quad \mathbf{R}_r = \begin{bmatrix} 1 & 0 & -\sin\theta \\ 0 & \cos\phi & \cos\theta \sin\phi \\ 0 & -\sin\phi & \cos\theta \cos\phi \end{bmatrix}. $$
From this, we can derive the rotational dynamics. The equations of motion for roll, pitch, and yaw are expressed as follows, accounting for gyroscopic effects and coupling between axes. For the roll angle $\phi$:
$$ \ddot{\phi} = \ddot{\psi} \sin\theta + \dot{\psi} \dot{\theta} \cos\theta + \frac{1}{I_x} \left( T_1 – I_R q \Omega + q r (I_y – I_z) \right), $$
where $T_1$ is the rolling torque, $I_x$, $I_y$, $I_z$ are moments of inertia about the respective body axes, $I_R$ is the rotor inertia, and $\Omega = -\Omega_1 + \Omega_2 – \Omega_3 + \Omega_4$ is the sum of rotor speeds. Similarly, for the pitch angle $\theta$:
$$ \ddot{\theta} = \dot{\phi} \dot{\theta} \tan\phi – \dot{\psi} \dot{\phi} \cos\theta – \ddot{\psi} \tan\phi \cos\theta + \dot{\theta} \dot{\psi} \tan\phi \sin\theta + \frac{1}{I_y \cos\phi} \left( T_2 – I_R p \Omega + p r (I_z – I_x) \right), $$
and for the yaw angle $\psi$:
$$ \ddot{\psi} = \frac{\ddot{\theta} \tan\phi}{\cos\theta} + \frac{\dot{\theta} \dot{\phi}}{\cos\theta} + \dot{\psi} \dot{\theta} \tan\theta + \dot{\psi} \dot{\phi} \tan\phi + \frac{1}{I_z \cos\theta \cos\phi} \left( T_3 + p q (I_x – I_y) \right). $$
These equations are highly nonlinear and coupled. To simplify controller design, we reformulate each attitude channel into a first-order system with lumped disturbances. For instance, the roll dynamics can be rewritten as:
$$ \dot{x}_1 = f_1 + F_1 + b_0 u_1, $$
where $x_1 = \dot{\phi}$ is the state, $f_1$ represents known nonlinear terms (e.g., $\ddot{\psi} \sin\theta + \dot{\psi} \dot{\theta} \cos\theta + q r (I_y – I_z)/I_x$), $F_1$ denotes the total disturbance (including unmodeled dynamics, gyroscopic effects, and external wind gusts), $b_0$ is a known control gain, and $u_1$ is the control input torque. By treating $F_1$ as an extended state $x_2$, we have:
$$ \dot{x}_2 = \omega_1, $$
where $\omega_1$ is the derivative of the disturbance. The same approach is applied to pitch and yaw channels, resulting in a unified formulation for all three attitude angles. This formulation facilitates the design of disturbance estimators and controllers that are robust to uncertainties.
The overall control structure for the quadrotor drone is depicted in the block diagram below. It consists of an outer loop for attitude angle tracking and an inner loop for angular rate regulation. The outer loop generates desired angular rate commands based on attitude errors, while the inner loop produces control torques to track these commands while compensating for disturbances.
In the inner loop, we employ an active disturbance rejection controller (ADRC). The ADRC comprises two main components: an extended state observer (ESO) and a nonlinear state error feedback controller (NSEFC). The ESO is designed to estimate both the system state and the total disturbance in real time. For the roll channel, the ESO is constructed as:
$$ \begin{aligned} \dot{z}_1 &= z_2 – \frac{2}{l} e_1 – \text{fal}\left(\frac{e_1}{l}\right) + f_1 + b_0 u_1, \\ \dot{z}_2 &= -\frac{1}{l^2} e_1, \end{aligned} $$
where $z_1$ and $z_2$ are estimates of $x_1$ and $x_2$ (the state and disturbance), respectively, $e_1 = z_1 – x_1$ is the estimation error, $l > 0$ is a tuning parameter, and $\text{fal}(\cdot)$ is a nonlinear function defined as:
$$ \text{fal}(\eta, \alpha, \delta) = \begin{cases} \eta / \delta^{1-\alpha}, & |\eta| \le \delta, \\ |\eta|^\alpha \text{sgn}(\eta), & |\eta| > \delta, \end{cases} $$
with $0 < \alpha < 1$ and $\delta > 0$. This function helps in handling small errors smoothly while maintaining rapid response for large errors. The ESO ensures that $z_1 \to x_1$ and $z_2 \to F_1$ asymptotically, provided the tuning parameter $l$ is chosen appropriately. The convergence of the ESO can be proven using singular perturbation theory or Lyapunov analysis, showing that the estimation errors satisfy $\lim_{l \to 0} e_i(t) = 0$ for $i=1,2$ after a short transient period.
Once the disturbance is estimated, the NSEFC compensates for it and achieves tracking of the desired angular rate. The control law for the inner loop is:
$$ u_1 = \frac{a_1 \text{fal}(\xi_1, 0.5, \delta_2) – f_1 – z_2}{b_0}, $$
where $\xi_1 = v_1 – z_1$ is the rate tracking error, $v_1$ is the desired angular rate from the outer loop, $a_1$ is a positive gain, and $\delta_2$ is a parameter. The nonlinear function $\text{fal}(\xi_1, 0.5, \delta_2)$ provides a smooth control action that reduces overshoot and improves transient performance. By substituting this control law into the original dynamics, the system is linearized and decoupled approximately:
$$ \dot{x}_1 \approx u_0, \quad \text{with} \quad u_0 = a_1 \text{fal}(\xi_1, 0.5, \delta_2). $$
This simplifies the inner-loop control problem to a simple tracking task. The stability of the inner loop can be analyzed using Lyapunov methods. Define a Lyapunov candidate $V_2 = (\mu_1 – e_1)^2 / 2$, where $\mu_1 = v_1 – x_1$. By selecting appropriate gains, it can be shown that $\dot{V}_2 \le 0$, ensuring convergence of the rate tracking error.
For the outer loop, we design a non-singular terminal sliding mode controller (NTSMC) to achieve fast and accurate attitude angle tracking. The conventional terminal sliding mode surface may suffer from singularity issues when the error derivative vanishes. To avoid this, we propose a switching strategy. Let $\epsilon_1 = \rho_1 – \phi$ be the attitude tracking error, where $\rho_1$ is the desired roll angle. The non-singular terminal sliding surface is defined as:
$$ s = \begin{cases} \epsilon_1 + \beta_1 \dot{\epsilon}_1^{p/q}, & \text{if } |\dot{\epsilon}_1| \ge \dot{\epsilon}_s, \\ \epsilon_1 + c_1 \dot{\epsilon}_1, & \text{if } |\dot{\epsilon}_1| < \dot{\epsilon}_s, \end{cases} $$
where $\beta_1 > 0$, $c_1 > 0$, $p$ and $q$ are positive odd integers satisfying $q < p < 2q$, and $\dot{\epsilon}_s$ is a small threshold. The first case corresponds to a terminal sliding mode that ensures finite-time convergence, while the second case is a linear sliding mode that avoids singularity. The control law for the outer loop is derived to force $s \to 0$. For the first case ($|\dot{\epsilon}_1| \ge \dot{\epsilon}_s$), the desired angular rate command $v_1$ is computed as:
$$ v_1 = \dot{\rho}_1 + e_1 + \beta_1 \frac{p}{q} \dot{\epsilon}_1^{p/q – 1} \ddot{\epsilon}_1 + k_1 \text{sgn}(s), $$
where $k_1 > 0$ is a control gain, and $e_1$ is the estimation error from the ESO (which is bounded). For the second case ($|\dot{\epsilon}_1| < \dot{\epsilon}_s$), the control law is:
$$ v_1 = \dot{\rho}_1 + e_1 + c_1 \ddot{\epsilon}_1 + \mu_1 \text{sgn}(s), $$
with $\mu_1 > 0$. The stability of the outer loop is proven using Lyapunov functions. For instance, for the first case, consider $V_3 = s^2 / 2$. Its derivative is:
$$ \dot{V}_3 = s \dot{s} = s \left( -k_1 \text{sgn}(s) + \xi_1 \right) \le -|s| (k_1 – |\xi_1|). $$
Since $\xi_1$ is bounded, selecting $k_1 > \max |\xi_1|$ ensures $\dot{V}_3 < 0$, guaranteeing convergence of the sliding surface. Similarly, for the second case, with $\mu_1 > \max |\xi_1|$, stability is assured. Thus, the overall closed-loop system with inner ADRC and outer NTSMC is asymptotically stable.
To validate the proposed controller, extensive simulations are conducted in a MATLAB/Simulink environment. The quadrotor drone parameters used in simulations are based on typical values, as summarized in the following table:
| Parameter | Symbol | Value | Unit |
|---|---|---|---|
| Mass | $m$ | 1.2 | kg |
| Moment of inertia (roll) | $I_x$ | 0.015 | kg·m² |
| Moment of inertia (pitch) | $I_y$ | 0.015 | kg·m² |
| Moment of inertia (yaw) | $I_z$ | 0.025 | kg·m² |
| Rotor inertia | $I_R$ | 3.5e-5 | kg·m² |
| Gravitational acceleration | $g$ | 9.81 | m/s² |
The controller parameters for both inner and outer loops are tuned to achieve optimal performance. The tables below list the key parameters for the ADRC and NTSMC components.
| Attitude Channel | $l$ | $a_1$ | $b_0$ | $\delta_1$ | $\delta_2$ |
|---|---|---|---|---|---|
| Roll ($\phi$) | 0.02 | 0.5 | 14 | 0.11 | 0.11 |
| Pitch ($\theta$) | 0.02 | 0.5 | 14 | 0.11 | 0.11 |
| Yaw ($\psi$) | 0.02 | 2.0 | 10 | 0.11 | 0.11 |
| Attitude Channel | $p$ | $q$ | $\beta_1$ | $k_1$ | $c_1$ | $\dot{\epsilon}_s$ |
|---|---|---|---|---|---|---|
| Roll ($\phi$) | 13 | 11 | 2.2 | 2 | 0.05 | 0.01 |
| Pitch ($\theta$) | 13 | 11 | 2.2 | 2 | 0.05 | 0.01 |
| Yaw ($\psi$) | 13 | 13 | 2.5 | 3 | 0.05 | 0.03 |
The simulation scenario involves tracking step commands for roll, pitch, and yaw angles in the presence of external wind disturbances. The initial attitude is set to $[\phi, \theta, \psi] = [0^\circ, 0^\circ, 25^\circ]$, and the desired attitudes are given as step signals: $\rho_1 = 10^\circ$ for roll, $\rho_2 = 5^\circ$ for pitch, and $\rho_3 = 0^\circ$ for yaw. To simulate realistic conditions, a sinusoidal wind disturbance $\Delta u(t) = 0.5 \sin(t)$ is applied to each control input. The simulation time is 50 seconds. The performance of the proposed controller (denoted as NTSMC+ADRC) is compared with two benchmark controllers: an integral sliding mode combined with ADRC (ISMC+ADRC) and a linear sliding mode combined with ADRC (SMC+ADRC). The tracking results are shown in the figures below, and key performance metrics are summarized in the table.
| Control Algorithm | Roll Angle $\phi$: Settling Time (s) / Overshoot (%) | Pitch Angle $\theta$: Settling Time (s) / Overshoot (%) | Yaw Angle $\psi$: Settling Time (s) / Overshoot (%) |
|---|---|---|---|
| Proposed NTSMC+ADRC | 1.9 / 0.0 | 1.82 / 0.47 | 1.7 / 0.0 |
| ISMC+ADRC | 3.5 / 21.7 | — / 31.8 | 2.32 / 32.5 |
| SMC+ADRC | 3.3 / 11.1 | 4.03 / 15.6 | 2.96 / 2.9 |
The results clearly demonstrate the superiority of the proposed NTSMC+ADRC approach. The quadrotor drone equipped with this controller achieves the fastest settling times and negligible overshoot across all attitude angles. In contrast, the ISMC+ADRC exhibits significant oscillations and large overshoots, indicating poor disturbance rejection. The SMC+ADRC performs better but still lags behind the proposed method in terms of speed and accuracy. The robustness of the NTSMC+ADRC is further highlighted under wind disturbances; the controller effectively compensates for the sinusoidal wind, maintaining stable tracking with minimal error. This makes it highly suitable for real-world quadrotor drone applications where environmental uncertainties are prevalent.
To provide deeper insights, we analyze the disturbance estimation performance of the ESO. The plots below show the actual total disturbance $F_1$ and its estimate $z_2$ for the roll channel. The ESO accurately tracks the disturbance, which includes both internal couplings (e.g., gyroscopic effects) and external wind. The estimation error remains small throughout the simulation, validating the effectiveness of the ADRC inner loop. Additionally, the control inputs generated by the proposed controller are smooth and within practical limits, avoiding aggressive maneuvers that could strain actuators. This is crucial for the longevity and safety of quadrotor drone operations.
The mathematical analysis of stability is extended to the entire closed-loop system. Consider the Lyapunov function candidate for the combined inner and outer loops:
$$ V = V_2 + V_3, $$
where $V_2$ and $V_3$ are as defined earlier. Using the properties of the ESO and the sliding mode controllers, it can be shown that $\dot{V} \le -\kappa V$ for some $\kappa > 0$, ensuring exponential stability. This guarantees that all tracking errors converge to zero asymptotically, even in the presence of bounded disturbances. The proof relies on the boundedness of estimation errors and the appropriate selection of control gains, as discussed previously.
In practical implementations, the proposed controller can be adapted to various quadrotor drone platforms. The tuning parameters ($l$, $a_1$, $\beta_1$, etc.) may need adjustment based on specific drone dynamics and mission requirements. However, the modular structure of the inner-outer loop design simplifies this process. The ADRC inner loop handles model uncertainties inherently, reducing the need for precise system identification. Meanwhile, the NTSMC outer loop provides flexibility in achieving desired transient performance through parameters like $p$, $q$, and $\beta_1$. For instance, increasing $\beta_1$ can speed up convergence, but may require higher control effort. Trade-offs can be managed based on application constraints.
Future work could explore the integration of adaptive mechanisms to auto-tune the controller parameters online, further enhancing the autonomy of quadrotor drones. Additionally, the controller could be extended to handle full position and attitude control in six degrees of freedom. The use of machine learning techniques to predict disturbances could also be investigated. Nevertheless, the current design offers a robust and efficient solution for attitude control, which is fundamental to many quadrotor drone tasks.
In conclusion, this article presents a novel sliding mode active disturbance rejection attitude controller for quadrotor drones. The controller combines the strengths of ADRC and NTSMC in a dual-loop architecture. The inner ADRC loop estimates and compensates for total disturbances in real time, making the system robust to model uncertainties and external wind. The outer NTSMC loop ensures fast and accurate attitude tracking with avoidance of singularity issues. Stability proofs and simulation studies confirm the effectiveness of the proposed approach. Compared to existing methods, the controller delivers superior performance in terms of settling time, overshoot, and disturbance rejection. This makes it a promising candidate for real-world deployment of quadrotor drones in dynamic and uncertain environments.
