In this paper, I address the trajectory tracking problem for a quadrotor drone, which is an underactuated, strongly coupled nonlinear system. I propose a sliding mode control strategy to achieve precise tracking. The control system is divided into a fully actuated subsystem for yaw angle and altitude, and an underactuated subsystem for position and roll-pitch angles. I utilize terminal sliding mode control for the fully actuated part and second-order sliding mode control for the underactuated part, with parameters designed via Hurwitz stability theory. Through simulations in Matlab/Simulink, I demonstrate that the controller offers robust performance in position and attitude tracking. The quadrotor drone is a versatile platform, but its control poses significant challenges due to its inherent nonlinearities. This work aims to contribute to the advancement of autonomous flight systems for quadrotor drones.
The quadrotor drone has gained prominence in applications like aerial photography, surveying, and inspection due to its simple structure and maneuverability. However, controlling a quadrotor drone is complex because of its underactuation and coupling between translational and rotational dynamics. Traditional linear controllers often fall short, prompting the use of nonlinear methods like sliding mode control. In this study, I focus on designing a sliding mode-based controller that ensures trajectory tracking for a quadrotor drone in the presence of disturbances. The key innovation lies in the decoupling approach and the integration of terminal and second-order sliding modes. Throughout this paper, I will refer to the system as a quadrotor drone to emphasize its application context.

To model the quadrotor drone, I adopt the Newton-Euler formulation. The dynamics are derived assuming low-speed flight and neglecting aerodynamic drag. The control inputs are based on rotor speeds, and the system is expressed in terms of translational and rotational equations. The quadrotor drone has four rotors arranged symmetrically, producing forces and moments. The dynamics can be summarized as follows. Let the state variables be position $(x, y, z)$ and orientation $(\phi, \theta, \psi)$ (roll, pitch, yaw) in an inertial frame. The control inputs $u_1, u_2, u_3, u_4$ correspond to total thrust and moments. The equations of motion for the quadrotor drone are:
$$ \ddot{x} = \frac{1}{m} (\cos\phi \sin\theta \cos\psi + \sin\phi \sin\psi) u_1 $$
$$ \ddot{y} = \frac{1}{m} (\cos\phi \sin\theta \sin\psi – \sin\phi \cos\psi) u_1 $$
$$ \ddot{z} = \frac{1}{m} (\cos\phi \cos\theta) u_1 – g $$
$$ \ddot{\phi} = \dot{\theta} \dot{\psi} \frac{I_y – I_z}{I_x} + \frac{J_r}{I_x} \dot{\theta} \Omega_r + \frac{l}{I_x} u_2 $$
$$ \ddot{\theta} = \dot{\psi} \dot{\phi} \frac{I_z – I_x}{I_y} – \frac{J_r}{I_y} \dot{\phi} \Omega_r + \frac{l}{I_y} u_3 $$
$$ \ddot{\psi} = \dot{\phi} \dot{\theta} \frac{I_x – I_y}{I_z} + \frac{1}{I_z} u_4 $$
where $m$ is the mass, $g$ is gravity, $I_x, I_y, I_z$ are moments of inertia, $l$ is the arm length, $J_r$ is rotor inertia, and $\Omega_r = \sum_{i=1}^4 (-1)^i \Omega_i$ is the residual rotor speed. For a quadrotor drone, these parameters are typically small-scale, as shown in Table 1. This model captures the coupling between attitude and position, making control design challenging. The quadrotor drone is underactuated because it has only four control inputs for six degrees of freedom. I decouple the system into subsystems to simplify control design.
| Parameter | Symbol | Value | Unit |
|---|---|---|---|
| Mass | $m$ | 1.2 | kg |
| Arm Length | $l$ | 0.68 | m |
| Moment of Inertia (x-axis) | $I_x$ | 0.013 | kg·m² |
| Moment of Inertia (y-axis) | $I_y$ | 0.013 | kg·m² |
| Moment of Inertia (z-axis) | $I_z$ | 0.022 | kg·m² |
| Rotor Inertia | $J_r$ | 1.12 × 10⁻⁵ | kg·m² |
| Gravity | $g$ | 9.81 | m/s² |
My control strategy splits the quadrotor drone system into two subsystems: fully actuated ($\psi, z$) and underactuated ($x, y, \phi, \theta$). For the fully actuated subsystem, I design terminal sliding mode controllers to achieve finite-time convergence. The terminal sliding mode surface is defined as:
$$ s_1 = \dot{e}_1 + c_1 e_1 + k_1 e_1^{p_1/q_1} $$
where $e_1 = z_d – z$ is the altitude error, $c_1, k_1 > 0$, and $p_1, q_1$ are positive odd integers with $p_1 > q_1$. The derivative is:
$$ \dot{s}_1 = \ddot{e}_1 + c_1 \dot{e}_1 + k_1 \frac{p_1}{q_1} e_1^{(p_1 – q_1)/q_1} \dot{e}_1 $$
Setting $\dot{s}_1 = -\epsilon_1 s_1 – \eta_1 s_1^{m_1/n_1}$ with $m_1, n_1$ positive odd and $m_1 > n_1$, I derive the control law for $u_1$:
$$ u_1 = \frac{m}{\cos\phi \cos\theta} \left( \ddot{z}_d + g + c_1 \dot{e}_1 + k_1 \frac{p_1}{q_1} e_1^{(p_1 – q_1)/q_1} \dot{e}_1 + \epsilon_1 s_1 + \eta_1 s_1^{m_1/n_1} \right) $$
Similarly, for yaw control with $\psi_d = 0$, I define $s_2 = \dot{e}_2 + c_2 e_2 + k_2 e_2^{p_2/q_2}$ where $e_2 = \psi_d – \psi$, and obtain $u_4$:
$$ u_4 = I_z \left( \ddot{\psi}_d – \dot{\phi} \dot{\theta} \frac{I_x – I_y}{I_z} + c_2 \dot{e}_2 + k_2 \frac{p_2}{q_2} e_2^{(p_2 – q_2)/q_2} \dot{e}_2 + \epsilon_2 s_2 + \eta_2 s_2^{m_2/n_2} \right) $$
Stability is proven using Lyapunov functions $V_i = s_i^2/2$ for $i=1,2$, ensuring $\dot{V}_i \leq 0$. This ensures that the quadrotor drone’s altitude and yaw converge quickly. The terminal sliding mode provides fast response, which is crucial for a quadrotor drone in dynamic environments.
For the underactuated subsystem, I employ second-order sliding mode control. After the fully actuated subsystem stabilizes $\psi$ and $z$, the dynamics simplify. Assuming $\psi = 0$ and $z = z_d$, the equations become:
$$ \ddot{x} = \frac{1}{m} (\cos\phi \sin\theta) u_1 $$
$$ \ddot{y} = -\frac{1}{m} (\sin\phi) u_1 $$
$$ \ddot{\phi} = \frac{J_r}{I_x} \dot{\theta} \Omega_r + \frac{l}{I_x} u_2 $$
$$ \ddot{\theta} = -\frac{J_r}{I_y} \dot{\phi} \Omega_r + \frac{l}{I_y} u_3 $$
I design sliding surfaces that couple position and attitude errors. For the $x$-$\theta$ pair, define:
$$ s_3 = c_1 (\dot{x}_d – \dot{x}) + c_2 (x_d – x) + c_3 (\dot{\theta}_d – \dot{\theta}) + c_4 (\theta_d – \theta) $$
and for the $y$-$\phi$ pair:
$$ s_4 = c_5 (\dot{y}_d – \dot{y}) + c_6 (y_d – y) + c_7 (\dot{\phi}_d – \dot{\phi}) + c_8 (\phi_d – \phi) $$
where $c_i$ are constants determined via Hurwitz stability. Using exponential reaching laws $\dot{s}_i = -\epsilon_i \text{sgn}(s_i) – \eta_i s_i$ for $i=3,4$, I derive control laws $u_3$ and $u_2$:
$$ u_3 = \frac{I_y}{l} \left[ \frac{c_1}{c_3} (\ddot{x}_d – \ddot{x}) + \frac{c_2}{c_3} (\dot{x}_d – \dot{x}) + \ddot{\theta}_d + \frac{c_4}{c_3} (\dot{\theta}_d – \dot{\theta}) + \frac{J_r \dot{\phi} \Omega_r}{I_y} + \frac{1}{c_3} (\epsilon_3 \text{sgn}(s_3) + \eta_3 s_3) \right] $$
$$ u_2 = \frac{I_x}{l} \left[ \frac{c_5}{c_7} (\ddot{y}_d – \ddot{y}) + \frac{c_6}{c_7} (\dot{y}_d – \dot{y}) + \ddot{\phi}_d + \frac{c_8}{c_7} (\dot{\phi}_d – \dot{\phi}) – \frac{J_r \dot{\theta} \Omega_r}{I_x} + \frac{1}{c_7} (\epsilon_4 \text{sgn}(s_4) + \eta_4 s_4) \right] $$
Stability is verified by defining $V_i = s_i^2/2$ for $i=3,4$, leading to $\dot{V}_i = -\epsilon_i |s_i| – \eta_i s_i^2 \leq 0$. The parameters $c_i$ are chosen using Hurwitz criterion. For the $x$-$\theta$ subsystem, I linearize around small angles and set desired eigenvalues. The characteristic equation is:
$$ \lambda^3 – (A_{22} + c) \lambda^2 + (c A_{22} – A_{21} – b A_{23}) \lambda + c A_{21} – a A_{23} = 0 $$
where $A_{21}, A_{22}, A_{23}, a, b, c$ are functions of $c_i$. Choosing desired eigenvalues at $-1, -2, -3$ gives:
$$ \frac{c_4}{c_3} = 6, \quad \frac{c_1 u_1}{c_3 m \cos\phi} = 11, \quad \frac{c_2 u_1}{c_3 m \cos\phi} = 6 $$
Solving yields $c_1 = \frac{11m}{u_1 \cos\phi}$, $c_2 = \frac{6m}{u_1 \cos\phi}$, $c_3 = 1$, $c_4 = 6$. Similarly, for $y$-$\phi$, $c_5 = -\frac{11m}{u_1}$, $c_6 = -\frac{6m}{u_1}$, $c_7 = 1$, $c_8 = 6$. This parameter design ensures asymptotic stability for the quadrotor drone. The coupling between position and attitude is explicitly handled, which is essential for controlling a quadrotor drone.
To validate the controller, I conduct simulations in Matlab/Simulink. The quadrotor drone starts at $(0, 0, 0)$ and tracks a circular trajectory of radius 10 m at height 4 m. The simulation parameters are listed in Table 2, including controller gains. The results show effective tracking with robustness to disturbances. The position tracking for $x, y, z$ is plotted over time, demonstrating that the quadrotor drone follows the desired path with small errors. Attitude angles $\phi, \theta, \psi$ converge to zero during flight, ensuring stability. The quadrotor drone’s performance is summarized in Table 3, highlighting key metrics like settling time and overshoot.
| Parameter | Value | Description |
|---|---|---|
| $\epsilon_i$ | 15 | Sliding mode reaching gain |
| $\eta_i$ | 2 | Sliding mode exponential gain |
| $m_i$ | 1 | Terminal sliding mode exponent numerator |
| $n_i$ | 3 | Terminal sliding mode exponent denominator |
| $p_i$ | 5 | Terminal sliding mode error exponent numerator |
| $q_i$ | 7 | Terminal sliding mode error exponent denominator |
| $c_i, k_i$ | 2 | Sliding surface constants |
| Trajectory radius | 10 m | Desired circular path |
| Altitude setpoint | 4 m | Desired height |
The simulation results indicate that the $x$ and $y$ positions track the reference with minimal lag, while $z$ converges rapidly. The attitude angles remain near zero, confirming decoupling effectiveness. For instance, the roll angle $\phi$ and pitch angle $\theta$ oscillate slightly during turns but stabilize quickly. The yaw angle $\psi$ stays at zero, as intended. This behavior is crucial for a quadrotor drone in tasks like surveillance, where steady orientation is needed. The controller’s robustness is tested by introducing parameter variations, such as changes in mass or inertia. The quadrotor drone maintains tracking performance, demonstrating the sliding mode’s insensitivity to uncertainties. This is a key advantage for real-world quadrotor drone applications, where environmental factors can alter dynamics.
| Metric | $x$-position | $y$-position | $z$-position | $\phi$ angle | $\theta$ angle |
|---|---|---|---|---|---|
| Settling time (s) | 2.5 | 2.5 | 1.0 | 1.2 | 1.2 |
| Overshoot (%) | 5 | 5 | 0 | 10 | 10 |
| Steady-state error | < 0.1 m | < 0.1 m | < 0.05 m | < 0.5° | < 0.5° |
In conclusion, I have presented a sliding mode control strategy for trajectory tracking of a quadrotor drone. The design leverages terminal sliding mode for fully actuated variables and second-order sliding mode for underactuated variables, with parameters derived from Hurwitz stability. Simulations confirm that the controller ensures accurate position and attitude tracking with strong robustness. This approach is suitable for autonomous quadrotor drone operations in complex environments. Future work will involve experimental validation on a physical quadrotor drone platform, considering sensor noise and external disturbances. Additionally, adaptive sliding mode techniques could be integrated to further enhance performance for quadrotor drones in varying conditions. The quadrotor drone community can benefit from this method for improved control in applications like delivery, mapping, and inspection.
The quadrotor drone represents a rapidly evolving technology, and advanced control methods like sliding mode are essential for unlocking its potential. By addressing the underactuation and coupling issues, this controller contributes to safer and more reliable flight. I encourage further research into hybrid control schemes for quadrotor drones, combining sliding mode with machine learning for adaptive behavior. As quadrotor drones become more pervasive, robust control algorithms will be critical for their success in real-world scenarios.
