Next Article in Journal
Standardized Extraction of Air Traffic Control Hazard Features Based on Expert Knowledge
Previous Article in Journal
Optical Image Generation Through Digital Terrain Models for Autonomous Lunar Navigation
Previous Article in Special Issue
Aircraft System Identification Using Multi-Stage PRBS Optimal Inputs and Maximum Likelihood Estimator
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Quaternion-Based Robust Sliding-Mode Controller for Quadrotor Operation Under Wind Disturbance

Department of Mechanical Engineering, Inha University, Incheon 22212, Republic of Korea
*
Author to whom correspondence should be addressed.
Aerospace 2025, 12(2), 93; https://doi.org/10.3390/aerospace12020093
Submission received: 19 December 2024 / Revised: 21 January 2025 / Accepted: 24 January 2025 / Published: 27 January 2025
(This article belongs to the Special Issue Flight Dynamics, Control & Simulation (2nd Edition))

Abstract

:
This paper presents a quaternion-based robust sliding-mode controller for quadrotors operating under significant wind disturbances. The proposed control method improves the reliability and efficiency of quadrotor control by eliminating the singularity problem inherent in the Euler angle method. The quadrotor dynamics and wind environment are modeled, and dynamic analysis is performed via numerical simulation. A realistic wind model is used, similar to a combination of deterministic and statistical models. The Lyapunov stability theory is utilized to prove the convergence and stability of the proposed control system. The simulation results demonstrate that the quaternion-based controller enables the quadrotor to follow the desired path and remain stable, even under external wind disturbances. Specifically, both position and attitude converge to the desired values within 10 s, demonstrating stable performance despite the challenging wind disturbances in both scenarios. Scenario 1 features turbulence with an average wind speed of 12 m/s and changing wind directions, while Scenario 2 models an environment with wind speeds that change abruptly and discretely over time, coupled with temporal variations in wind direction. Additionally, a comparative analysis with the conventional PD controller highlights the superior performance of the proposed RSMC controller in terms of trajectory tracking, stability, and energy efficiency. The rotor speeds remain within a reasonable and hardware-feasible range, ensuring practical applicability.

1. Introduction

Recently, quadrotors have attracted attention in various fields due to their versatility and high maneuverability. Quadrotors are under-actuated systems that use four propeller inputs to stabilize their position and attitude in the air with six degrees of freedom (DOF). They have vertical takeoff and landing capabilities and can execute precise movements in various directions. These systems could be crucial in diverse applications, such as disaster relief, environmental monitoring, agriculture, and security monitoring [1,2,3,4]. However, quadrotors must be robust to the various external factors that may affect their operating environment, especially uncertain external forces such as wind.
Quadrotor control strategies span a wide spectrum—from classical linear methods (proportional-integral-derivative (PID) [5], linear quadratic regulator [6]) and nonlinear techniques (feedback linearization [7], backstepping [8], sliding-mode [9]) to advanced approaches like model predictive control [10], intelligent learning-based systems [11], and hybrid methods [12]—each offering unique trade-offs between simplicity, robustness, computational cost, and adaptability, particularly when dealing with challenging scenarios like wind disturbances [13,14,15].
Quaternions are a mathematical tool for representing rotation in three-dimensional space. Quaternion-based control enables more efficient handling of object rotation in three-dimensional space while avoiding singularity problems (such as gimbal lock) that can occur with angle representations [16,17]. For quadrotors, quaternions allow for more precise and stable flight control.
Robust sliding-mode control (RSMC) is a control technique that can respond robustly to system uncertainties and external disturbances. It allows the control system to maintain a predefined sliding-mode state, ensuring that the target state is reached, regardless of dynamic changes in the system or external disturbances [18,19]. When applied to quadrotors, RSMC ensures flight control that is robust to external disturbances such as wind.
Wind disturbance is one of the major challenges for flying vehicles such as quadrotors. Wind is unpredictable and volatile and can negatively affect the flight path and stability of a quadrotor [20]. Therefore, the development of a control system that can effectively respond to wind disturbances is essential for improving the practicability of quadrotors [15,21,22].
The main contributions of this research can be summarized as follows:
-
The quaternion representation eliminates singularity issues, enabling more reliable control of the quadrotor’s orientation.
-
The controller effectively compensates for the impact of wind disturbances, maintaining trajectory accuracy and stability.
-
The proposed control algorithm is numerically validated in a windy environment.
The remainder of the paper is organized as follows. Section 2 introduces the nonlinear mathematical model of the quadrotor and wind disturbance. Subsequently, the robust nonlinear control algorithm is described, and its stability is proven via the Lyapunov theorem in Section 3. Then, Section 4 presents and discusses the numerical simulation results for the RSMC algorithm for quadrotors, including wind disturbances. Finally, Section 5 presents the concluding remarks.

2. Theoretical Modeling

This paper proposes a quaternion-based RSMC that remains stable in the presence of wind disturbances. The controller is established for the dynamic system associated with quadrotor flight.
Figure 1 shows the system of the quadrotor model, which includes the Earth inertial frame, referred to herein as the E-frame. In Figure 1, a and b are, in order, the transverse and lateral distances from the center of gravity, s i is the local vector of the ith rotor position, Ω i is the angular velocity of the ith rotor, and ψ , θ , and ϕ are the angles in the yaw, pitch, and roll orientation, respectively. The local reference body frame, denoted as the B-frame, is fixed to the quadrotor body, and the origin of the B-frame is positioned at the quadrotor’s center of mass. The relative orientation between the B-frame and E-frame can be expressed as R = R ψ R θ R ϕ , which is the yaw–pitch–roll sequence Euler rotation matrix:
R = R 11 R 12 R 13 R 21 R 22 R 23 R 31 R 32 R 33 = c ψ s ψ 0 s ψ c ψ 0 0 0 1 c θ 0 s θ 0 1 0 s θ 0 c θ 1 0 0 0 c ϕ s ϕ 0 s ϕ c ϕ ,
where
R 11 = cos θ cos ψ R 12 = cos ϕ sin ψ + sin ϕ sin θ cos ψ R 13 = sin ϕ sin ψ + cos ϕ sin θ cos ψ R 21 = cos θ sin ψ R 22 = cos ϕ cos ψ + sin ϕ sin θ s i n ψ R 23 = sin ϕ cos ψ + cos ϕ sin θ sin ψ R 31 = sin θ R 32 = sin ϕ cos θ R 33 = cos ϕ cos θ ,
where cos is denoted by c, and sin is denoted by s for notational convenience.
With the rotation matrix defined, the vector from the quadrotor’s center of mass to any point within the quadrotor can be expressed as follows:
s = R s ,
where vectors marked with the prime (′) are defined with respect to the body frame ( G x y z ), and those without the prime are defined with respect to the inertial frame ( O X Y Z ).
In Figure 1a, the rotors are numbered in counterclockwise order, starting from Rotor 1 on the top right in the B-frame. The local vectors of the position of each rotor in the B-frame are expressed sequentially as follows:
s 1 = b a 0 T ,
s 2 = b a 0 T ,
s 3 = b a 0 T ,
s 4 = b a 0 T .
The moment of inertia matrix of the quadrotor can be written as
J = 4 m r a 2 0 0 0 4 m r b 2 0 0 0 4 m r a 2 + b 2 ,
where m r is the mass of the rotor.
The gravitational force acting on the quadrotor can be represented by
f g = 0 0 m g T ,
where m = m b + 4 m r , m b is the mass of the main body of the quadrotor, and g is the gravitational acceleration.
The thrust force and moment of the quadrotor can be calculated as follows:
f p = i = 1 4 f i ,
m p = i = 1 4 s ˜ i f i ,
where
f i = 0 0 k T Ω i 2 T ,
where k T is the thrust coefficient, with the tilde (~) indicating a 3 × 3 skew-symmetric matrix of the vector.
The torque generated around the rotor axis can be expressed as
m r = 0 0 i = 1 4 ( 1 ) i k R Ω i 2 T ,
where k R is the torque coefficient.
The aerodynamic drag force and moment are
f a = 1 2 ρ C D W W ,
m a = 1 2 ρ C M W W ,
where C D and C M are the aerodynamic coefficients, ρ is the air density, W = W w i n d v is the relative wind vector, W w i n d is the wind vector, and v is the velocity vector of the quadrotor’s mass center.

2.1. Dynamics

The equations of motion of the quadrotor can be expressed in 6-DOF, including quaternion vectors, as follows [17]:
r ˙ = v ,
m v ˙ = F ,
q ˙ = 1 2 0 ω T ω ω ˜ q ,
J ω ˙ + ω ˜ J ω = M ,
where
F = f g + R f p + R f a ,
M = m p + m r + m a ,
where ω is the angular velocity of the quadrotor between the E-frame and the B-frame, and q = e 0 e T T is a unit quaternion between the E-frame and the B-frame, with e = e 1 e 2 e 3 T .
The orientation angles calculated for R , defined for the yaw–pitch–roll sequence, are expressed as
ϕ = arctan 2 e 2 e 3 + e 0 e 1 / 1 2 e 1 2 + e 2 2 θ = arcsin 2 e 0 e 3 e 1 e 2 ψ = arctan 2 e 1 e 2 + e 0 e 3 / 1 2 e 2 2 + e 3 2 ,
where
R = ( 2 e 0 2 1 ) I + 2 ( e e T + e 0 e ˜ ) ,
where I is the three-dimensional identity matrix.
The desired trajectory can be defined as a function of time in the following form: r d t , r ˙ d t , and r ¨ d t . Then, the equations of translational error become
r ˙ e = r ˙ r ˙ d = v e ,
v ˙ e = 1 m F r ¨ d = 1 m u 1 + D r ¨ d ,
where
u 1 = F D ,
D = 1 m R f a ,
where r e = r r d is the position error, and D is the disturbance force calculated by the aerodynamic force f a .
The desired rotation matrix can be defined as [16]
R d = ( 2 d 0 2 1 ) I + 2 ( d d T + d 0 d ˜ ) ,
where q d = d 0 d T T is the desired quaternion, in which d = d 1 d 2 d 3 T . In this study, the desired rotation matrix was separated to match the heading angle of the flight attitude with the direction of the trajectory. As seen in Figure 2, the rotation matrix was separated into the firs yaw direction and second roll–pitch direction to match the heading angle of the flight attitude and the direction of the trajectory. The desired rotation matrix and quaternion are defined as follows:
R d = R 1 i R 2 w ,
where
i = cos ( ψ d / 2 ) 0 0 sin ( ψ d / 2 ) T ,
w = w 0 w 1 w 2 0 T ,
where R 1 is the desired first rotation matrix, which is a function of i , the desired first quaternion; R 2 is the desired second rotation matrix, which is a function of w , the desired second quaternion; and ψ d is a predefined variable that depends on the desired trajectory.
The quaternion error is defined as the relative rotation between the desired rotation and the actual rotation. The relative rotation matrix and quaternion error can be expressed as [16]
R e = R d T R ,
q e = d 0 d T d d 0 I d ˜ q ,
where q e = p 0 p T T is the quaternion error, with p = p 1 p 2 p 3 T .
Accordingly, the dynamic equations of attitude error are expressed as
q ˙ e = 1 2 0 ω e T ω e ω ˜ e q e ,
ω ˙ e = ω ˙ d + J 1 u 2 + T + J 1 ω ˜ e J ω e ω ˜ e J ω d ω ˜ d J ω e ω ˜ d J ω d ,
where
u 2 = M J T ,
T = J 1 m a ,
where ω e = ω ω d is the angular velocity error; ω d = R e T ω d is the desired angular velocity, with ω d t and ω ˙ d t being functions of time depending on the desired path; and T is the disturbance moment calculated with the aerodynamic moment m a .

2.2. Wind Modeling

Herein, the wind profile is defined as the sum of the deterministic and stochastic wind models. We ignore the deterministic wind blowing in the vertical direction.
W w i n d = U w V w W w = R T v w i n d + w w i n d ,
where
v w i n d = R γ W z 0 0 ,
R γ = c γ s γ 0 s γ c γ 0 0 0 1 ,
where W z is the deterministic horizontal wind speed, with z representing the height above the ground; w w i n d is the stochastic wind model, which follows a white Gaussian distribution; w w i n d N 0 , Φ , with Φ denoting a power spectral density (PSD); and γ is the wind direction angle.
The speed of the deterministic wind is calculated using the power law method [23]:
W z = W z 0 z z 0 α ,
where W z 0 signifies the mean wind speed at a reference height of z 0 , and α is the wind shear coefficient.
The spectral Dryden turbulence model is used as the stochastic wind model. The PSD functions are [24]
Φ u Ω = σ u 2 2 L u π 1 1 + L u Ω 2 ,
Φ v Ω = σ v 2 2 L v π 1 + 12 L v Ω 2 1 + 4 L v Ω 2 2 ,
Φ w Ω = σ w 2 2 L w π 1 + 12 L w Ω 2 1 + 4 L w Ω 2 2 ,
where σ is the turbulence intensity, L is the scale length, and Ω is the spatial frequency. The turbulence intensities and scale lengths for heights less than 300 m can be determined using the ESDU data curves [25,26]. Specifically, the turbulence intensities are
σ u W = 3.51 1 z 0.01 3.23 ,
σ v W = 2.13 1 z 0.01 1.95 ,
σ w W = 1.17 1 z 0.01 1.06 ,
The scale lengths are
L u = 280 z z 0 0.35 ,
L v = 140 z z 0 0.48 ,
L w = 0.35 z .
The system parameters of a quadrotor are substituted with appropriate values by referring to Table 1 and the references [27,28].

3. Controller Design

The control input required to follow a desired path can be defined as [27]
U 1 U 2 U 3 U 4 = k T k T k T k T a k T a k T a k T a k T b k T b k T b k T b k T k R k R k R k R Ω 1 2 Ω 2 2 Ω 3 2 Ω 4 2 ,
where
0 0 U 1 = 1 k T R d 1 u 1 f g ,
U 2 U 3 U 4 = u 2 .
where u 1 is the required force and u 2 is the required torque. To facilitate the controller design, the following conditions are assumed:
-
The magnitude of the quadrotor velocity does not exceed the actuator speed constraint:
v 15 .
-
The magnitude of the wind velocity does not exceed the actuator speed constraint:
W w i n d 20 .
Due to hardware limitations, quadrotors have limits to the speeds they can achieve. Their applicability is also limited to specific environments, and operation in harsh environments is challenging for the following reason [29,30]: a wind speed of W w i n d = 20 is considered to be a gale on the Beaufort scale and can have severely destructive effects [31]. Therefore, the assumptions in Equations (54) and (55) are reasonable.
In this paper, two types of wind scenarios are analyzed to compare with the traditional PD control method and demonstrate the robustness of the proposed controller. Scenario 1 simulates an environment with a mean wind speed of 12 m/s, representative of strong winds, where the wind direction varies over time. The wind profile for this scenario is described as follows:
W z 0 = 12 ,
z 0 = 1 ,
α = 0.143 ,
γ = 0 t < 30 π / 180 t 30 30 t < 50 π / 9 50 t < 60 π / 180 t + 80 60 t < 90 π / 18 t 90 .
In contrast, Scenario 2 models an environment with wind speeds that change abruptly and discretely over time, coupled with temporal variations in wind direction. The corresponding wind profile is defined by Equations (57), (58), (60), and (61).
W z 0 , t = 3 t < 30 10 30 t < 50 5 50 t < 60 6 60 t 100 ,
γ = 0 t < 30 π / 90 t 30 30 t < 50 2 π / 9 50 t < 60 π / 180 t + 90 60 t 100 ,
Figure 3 shows the profile of the wind model for Scenarios 1 and 2. In Figure 3a for Scenario 1, the wind profile considers a constant mean wind speed of the magnitude corresponding to strong winds, wind speed variation with altitude, wind direction variation over time, and wind turbulence. This setup shows conditions encountered by quadrotors operating in rapidly shifting horizontal winds under high-wind scenarios.
In contrast, Figure 3b for Scenario 2 features a wind profile characterized by abrupt, discrete changes in wind speed, wind speed variation with altitude, wind direction variation over time, and wind turbulence. This configuration similarly depicts challenging conditions for quadrotors navigating rapidly changing horizontal winds in high-wind environments.

3.1. PD Controller

To compare the performance with the proposed controller, a PD controller was introduced. The PID control is the most widely used control approach for quadrotors, because of its simplicity. However, in the presence of persistent or fluctuating disturbances, an integrator can continuously accumulate the error caused by the disturbance. In environments with large and variable disturbances, such as wind, this can lead to excessive error accumulation, negatively affecting the system’s performance. A PD controller avoids this issue, providing stable flight even under such conditions, which is why the integral component of the PID controller is not used.
The required force and torque calculated based on the conventional PD control method can be expressed as [32,33]
u 1 = m K p , p r e K d , p v e ,
u 2 = J K p , a sgn p 0 p K d , a ω e ,
where K p , p = diag p 1 , p , p 2 , p , p 3 , p , K d , p = diag d 1 , p , d 2 , p , d 3 , p , K p , a = diag p 1 , a , p 2 , a , p 3 , a , and K d , a = diag d 1 , a , d 2 , a , d 3 , a .
The PD controller design parameters are selected through manual tuning to ensure performance, without relying on external references, as shown in Table 2.

3.2. RSMC Position Controller

A sliding surface can be defined as
ξ = v e + Λ p r e ,
where Λ p = d i a g λ 1 , p , λ 2 , p , λ 3 , p , and the time derivative of ξ is
ξ ˙ = v ˙ e + Λ p r ˙ e = 1 m u 1 + D r ¨ d + Λ r ˙ e .
The RSMC can be designed based on these assumptions, and the derivative of ξ can be expressed as
ξ ˙ = K η , p sgn ( ξ ) K σ , p ξ K δ , p sgn ( ξ ) + D ,
where K η , p = diag η 1 , p , η 2 , p , η 3 , p , K σ , p = diag σ 1 , p , σ 2 , p , σ 3 , p , K δ , p = diag δ 1 , p , δ 2 , p , δ 3 , p , and all the disturbances are uniformly bounded. Specifically, D 1 δ 1 , p , D 2 δ 2 , p , and D 3 δ 3 , p , with known positive constants δ 1 , p , δ 2 , p , and δ 3 , p , respectively. Then, the Lyapunov function is introduced in the positive-definite form:
V p = 1 2 ξ T ξ ,
The negativity of the time derivative of V p is confirmed even in the presence of disturbances:
V ˙ p = ξ T ξ ˙ = ξ T 1 m u 1 + D r ¨ d + Λ p r ˙ e = ξ T K η , p sgn ( ξ ) K σ , p ξ K δ , p sgn ( ξ ) + D = ξ T K η , p sgn ( ξ ) K σ , p ξ + ξ T D K δ , p sgn ( ξ ) ξ T K η , p sgn ( ξ ) K σ , p ξ 0 ,
where
D = 1 m R f a 1 m 1 2 ρ C D W 2 I 1 m 1 2 ρ C D W a i r T W a i r + 2 W a i r v + v T v I K δ , p .
Therefore, the control system is asymptotically stable, and the dynamic states reach the sliding surface, even with the disturbances. The signum function in Equation (66) can be replaced with a hyperbolic tangent function to reduce chattering, and the required control force can be calculated as
u 1 = m r ¨ d Λ p r ˙ e K η , p tanh ( ξ ) K σ , p ξ K δ , p tanh ( ξ ) ,
where
tanh ( ξ ) = e ξ e ξ e ξ + e ξ .

3.3. RSMC Attitude Controller

As in the position controller design, a sliding surface can be defined as
ζ = ω e + Λ a sgn p 0 p ,
where Λ a = d i a g λ 1 , a , λ 2 , a , λ 3 , a , and the time derivative of ζ is
ζ ˙ = ω ˙ e + Λ a sgn p 0 p ˙ = ω ˙ d + J 1 u 2 + T + J 1 ω ˜ e J ω e ω ˜ e J ω d ω ˜ d J ω e ω ˜ d J ω d + Λ a 2 sgn p 0 p 0 I + p ˜ ω e
Then, the derivative of ζ can be expressed as
ζ ˙ = K η , a sgn ( ζ ) K σ , a ζ K δ , a sgn ( ζ ) + T ,
where K η , a = diag η 1 , a , η 2 , a , η 3 , a , K σ , a = diag σ 1 , a , σ 2 , a , σ 3 , a , and K δ , a = diag δ 1 , a , δ 2 , a , δ 3 , a , and all the disturbances are uniformly bounded. Specifically, T 1 δ 1 , a , T 2 δ 2 , a , and T 3 δ 3 , a , with known positive constants δ 1 , a , δ 2 , a , and δ 3 , a , respectively. Then, the Lyapunov function is introduced in the positive-definite form:
V a = 1 2 ζ T ζ ,
V a satisfies the Lyapunov stability, including the moment disturbances, as follows:
V ˙ a = ζ T ζ ˙ = ζ T ω ˙ d + J 1 u 2 + T + J 1 ω ˜ e J ω e ω ˜ e J ω d ω ˜ d J ω e ω ˜ d J ω d + Λ a 2 sgn p 0 p 0 I + p ˜ ω e = ζ T K η , a sgn ( ζ ) K σ , a ζ K δ , a sgn ( ζ ) + T = ζ T K η , a sgn ( ζ ) K σ , a ζ + ζ T T K δ , a sgn ( ζ ) ζ T K η , a sgn ( ζ ) K σ , a ζ 0 ,
where
T = J 1 m a 1 m 1 2 ρ C M W 2 I 1 m 1 2 ρ C M W a i r T W a i r + 2 W a i r v + v T v I K δ , a .
Therefore, the control system is asymptotically stable with the disturbances. The required control torque can thus be calculated as
u 2 = J K η , a tanh ( ξ ) K σ , a ζ K δ , a tanh ( ξ ) Λ a 2 sgn p 0 p 0 I + p ˜ ω e + ω ˙ d + ω ˜ e J ω e + ω ˜ e J ω d + ω ˜ d J ω e + ω ˜ d J ω d .
The controller design parameters are manually tuned and chosen for good performance without reference, as shown in Table 3.

4. Results

Considering the initial conditions r 0 = 0 0 0 T , v 0 = 0 0 0 T , q 0 = 1 0 0 0 T , and ω 0 = 0 0 0 T , numerical simulations were conducted using the fourth-order Runge–Kutta method. Figure 4 shows the desired simulation path for verification, which follows Equations (79) and (80):
r d t = R cos ω 0 t R sin ω 0 t z d T ,
ψ d t = ω 0 t + π 2 ,
where R = 60 , z d = 5 , and ω 0 = π / 18 .
The desired angles θ d and ϕ d are calculated according to Equations (22) and (29)–(31), given the desired heading angle ψ d value and the posture required to reach the desired position.

4.1. Scenario 1

Figure 5 shows the position and attitude results obtained through the path-tracking simulation in Scenario 1. The desired trajectory and attitude are shown with red lines, while the actual responses are represented by black lines for the proposed RSMC controller and green lines for the PD controller.
Despite the presence of wind disturbances, the RSMC controller demonstrates stable convergence and accurate trajectory tracking. It took approximately 10 s for the system to converge from the initial maximum error value, begin flying, and follow the designated trajectory.
Notably, the roll and pitch angles exhibit rapid convergence within 10 s. However, due to the strong wind influence, the pitch angle shows a slightly slower response, which subsequently causes a minor delay in the yaw angle, as reflected in the behavior of ψ in Figure 5b. This delayed pitch response induces a minor lag in the yaw angle, as observed in the oscillatory behavior of ψ . In fact, excessive attitude response can overwhelm the quadrotor’s required input capacity, hindering its ability to execute precise maneuvers and thus reducing its utility.
In comparison, the PD controller exhibits inferior performance across all axes. The roll and pitch angles controlled by the PD controller show more oscillations and slower convergence, reflecting reduced robustness to disturbances. For the yaw angle, the PD controller exhibits slightly slower convergence and more noticeable lag compared to the RSMC controller.
Overall, the RSMC controller outperforms the PD controller in terms of both stability and tracking accuracy. The RSMC controller effectively suppresses oscillations and ensures smooth convergence, whereas the PD controller’s larger tracking errors and oscillatory behavior could compromise the quadrotor’s stability in practical applications. These results emphasize the robustness and effectiveness of the quaternion-based RSMC controller in achieving precise and stable trajectory tracking under extreme wind scenarios.
Figure 6 shows the disturbance force and moment generated by the wind in Scenario 1. Figure 6a shows the disturbance forces in the x, y, and z directions, while Figure 6b shows the corresponding disturbance moments about the roll, pitch, and yaw axes. As mentioned earlier, the wind profile is defined relative to the quadrotor’s body frame.
The disturbance forces shown in Figure 6a are calculated with respect to the E-frame and fluctuate depending on the quadrotor’s position and attitude. These fluctuations reflect the interaction between the wind and the quadrotor’s motion. Notably, these forces remain bounded, confirming that the wind disturbances do not exceed the designed limits of the system.
On the other hand, the disturbance moments in Figure 6b are defined in the quadrotor’s body frame. As previously noted, the wind profile is defined relative to the quadrotor’s body frame; consequently, the disturbance moments depicted in Figure 6b tend to resemble those shown in Figure 3a. The magnitudes of the moment disturbances are also bounded to ensure the robustness of the controller.
To ensure robust performance against such wind disturbances, the controller parameters must be appropriately selected. The values of the controller parameters δ 1 , p , δ 2 , p , δ 3 , p , δ 1 , a , δ 2 , a , and δ 3 , a must individually exceed the element values of D and T calculated from the disturbance. This ensures that the control system can effectively counteract disturbances while maintaining stability and precision in both trajectory tracking and attitude control.
Figure 7 shows the variations in the angular velocities of the rotors in response to the desired inputs. The responses indicate that after the initial position error converged, the system reached a stable equilibrium point despite the wind disturbances depicted in Figure 6. In Figure 7a, it is noted that the maximum angular velocity remained below 600 rad/s throughout the entire simulation duration, which is within the feasible specifications of the quadrotor [34].
However, Figure 7b shows a significantly higher peak rotor speed requirement for the PD controller, despite its inferior performance in trajectory tracking. This indicates that the PD controller demands greater input from the actuators to follow the desired trajectory, resulting in higher rotor speeds. In contrast, the RSMC controller achieves superior performance in trajectory tracking while requiring lower rotor speeds, highlighting its greater efficiency and reduced energy consumption.

4.2. Scenario 2

Figure 8 shows the position and attitude results obtained through the path-tracking simulation in Scenario 2. Similar to the results of Scenario 1, it takes approximately 10 s for the system to converge. In Figure 8b, the control of roll and pitch angles in Scenario 2 appears to respond more slowly than in Scenario 1 (Figure 5b). However, this behavior is a result of the controller handling abrupt disturbance moments caused by the discrete changes in wind speed under highly extreme conditions, as evidenced in Figure 9.
To address the slower convergence, increasing the controller gain could achieve faster results. However, this would lead to sudden increases in rotor thrust, potentially exceeding the hardware limits or reducing energy efficiency. The slower convergence of roll and pitch observed in Figure 8b is thus an intentional design choice, ensuring stable and efficient operation under significant wind disturbances. The controller settings were optimized to gradually reduce oscillation amplitude while maintaining system stability.
Additionally, Figure 8b shows a slightly longer delay in the yaw response compared to Scenario 1. This delay reflects the challenges of operating under rapidly changing wind conditions, where the controller prioritizes stability and robustness. Future work may explore adaptive gain tuning or advanced control strategies to enhance convergence speed for all attitude angles without compromising actuator performance.
Regarding the PD controller, similar to the results observed in Scenario 1, the proposed RSMC controller shows superior performance compared to the PD controller. As shown in Figure 8b, the PD controller exhibits a more sensitive response to disturbances, resulting in larger errors and more pronounced oscillations compared to the RSMC controller. Additionally, the lag in the yaw angle is also more pronounced with the PD controller.
Figure 9 shows the disturbance forces and moments generated by the wind in Scenario 2. Similar to Figure 6, Figure 9a presents the disturbance forces in the x, y, and z directions, while Figure 9b illustrates the corresponding disturbance moments about the roll, pitch, and yaw axes.
The wind profile in Scenario 2 is characterized by discrete changes in wind speed, which is clearly reflected in the results shown in Figure 9. With both the wind profile and disturbance moments defined in the B-frame, the disturbance moments in Figure 9b exhibit a pattern similar to those in Figure 3b.
As designed, the wind-induced disturbance forces and moments acting on the quadrotor stay within the controller’s robustness limits. This demonstrates the control system’s ability to mitigate disturbances effectively while ensuring stable and accurate performance in both trajectory tracking and attitude control.
Figure 10 illustrates the variations in the angular velocities of the rotors in response to the desired inputs in Scenario 2. Similar to the results of Scenario 1, the responses indicate that after the initial position error converged, the system achieved a stable equilibrium point despite the presence of wind disturbances, shown in Figure 10a.
Notably, the maximum angular velocity remained below 600 rad/s, and after convergence, it decreased to values below 300 rad/s. Consistent with the results of Scenario 1, the rotor velocities remained within the feasible operational specifications of the quadrotor throughout the entire simulation [34].
Similar to the results in Scenario 1, it is observed that the PD controller requires a peak rotor angular velocity approximately twice as high as that of the RSMC controller. This clearly demonstrates that the proposed RSMC controller outperforms the PD controller in both flight performance and energy efficiency.

5. Discussions

To verify the robustness and performance of the RSMC controller proposed in this paper, it is compared with the conventional PD control algorithm under two distinct wind scenarios. Scenario 1 simulates an environment with a constant wind speed of 12 m/s and changing wind directions, while Scenario 2 represents a situation where the wind speed fluctuates discretely, and the wind direction also varies. Both scenarios represent extreme wind conditions.
Simulations were carried out in the MATLAB R2023a environment, and the control and dynamic parameters used are provided. The quadrotor is commanded to stabilize its attitude and follow the desired path. The proposed RSMC control algorithm, which leverages a quaternion-based representation, offers several advantages over traditional Euler angle-based controllers. By avoiding the singularity issues inherent in Euler angles (gimbal lock), the quaternion-based controller ensures robust and precise attitude control even under significant disturbances. This allows the quadrotor to maintain stability and accurately track the desired trajectory despite the presence of wind disturbances.
However, due to the simulation being conducted under strong wind conditions, a relatively slow response time of the Euler angles is observed. While increasing the controller gain in the simulation could easily address this issue, excessively high gains may lead to hardware stress or exceed actuator limitations. This consideration is critical for real-world testing, so the controller was carefully tuned to ensure gradual oscillation reduction without overloading the actuators. Future work may explore adaptive gain tuning or nonlinear control strategies to achieve faster convergence while mitigating abrupt thrust changes.
In contrast, the PD control algorithm tracks the trajectory with larger errors and oscillations, which could affect the stability and performance of the quadrotor in practical applications. Overall, it is clear that the proposed algorithm outperforms the PD control method in terms of tracking accuracy, system performance, and stability
By incorporating a quaternion-based controller, the proposed RSMC algorithm not only addresses the stability and accuracy issues observed in the PD controller but also demonstrates enhanced robustness against extreme wind disturbances. This approach provides a solid foundation for future research and practical implementation in challenging flight environments.

6. Conclusions

This study presented a quaternion-based RSMC for quadrotors operating under significant wind disturbances. The primary goal was to enhance the stability and performance of quadrotors during flight in unpredictable windy environmental conditions. The proposed approach involved detailed modeling of the quadrotor dynamics and wind environment, along with controller design and dynamic analysis through simulation.
The use of quaternion representation eliminated the singularity issues inherent in Euler angle methods, thereby ensuring more reliable and efficient control of the quadrotor’s orientation. Based on the Lyapunov stability theory, we rigorously proved the convergence and stability of the proposed RSMC system. This verifies that the quadrotor would maintain its stability and follow the desired path accurately, even in the presence of external disturbances.
Through numerical simulations, we demonstrated that the proposed controller operates effectively under adverse wind conditions. In both Scenario 1, which involved turbulence with an average wind speed of 12 m/s and changing wind directions, and Scenario 2, featuring abrupt and discrete changes in wind speed along with temporal variations in wind direction, the quadrotor successfully maintained its attitude and tracked the desired trajectory. Additionally, a comparative analysis with the conventional PD controller highlighted the superior performance of the proposed RSMC. The RSMC exhibited faster convergence, more accurate trajectory tracking, and reduced rotor speed requirements, which directly translates into improved energy efficiency and operational reliability.
Future research should focus on experimental validation of the proposed control strategy in real-world flight tests. Furthermore, the robustness of the system can be enhanced by incorporating adaptive mechanisms that can dynamically adjust controller parameters based on varying environmental conditions. A robust controller should be able to handle not only wind disturbances, but also other unpleasant situations that may arise, and it is important to use the controller to deal with them safely. As further research, a robust controller should be considered for situations such as the quadrotor motor stalling in windy conditions.
In conclusion, the proposed quaternion-based RSMC offers a promising solution for improving quadrotor performance in wind-affected environments. Our findings have the potential to significantly elevate the operational reliability and efficiency of unmanned aerial vehicles in real-world applications in the future.

Author Contributions

J.-J.B.: writing—original draft preparation, review and editing, methodology, validation, investigation, data curation, resources, visualization. J.-Y.K.: writing—review and editing, project administration. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported by Basic Science Research Program through the National Research Foundation of Korea (NRF) funded by the Ministry of Education (RS-2024-00411205).

Data Availability Statement

Data are contained within the article. The data that support the findings of this study are available from the corresponding author upon reasonable request.

Conflicts of Interest

The authors declare no conflicts of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

References

  1. Cardona, G.A.; Ramirez-Rugeles, J.; Mojica-Nava, E.; Calderon, J.M. Visual victim detection and quadrotor-swarm coordination control in search and rescue environment. Int. J. Electr. Comput. Eng. 2021, 11, 2079. [Google Scholar] [CrossRef]
  2. Liu, Y.; Liu, S. Design and Implementation of Farmland Environment Monitoring System Based on Micro Quadrotor UAV. J. Phys. Conf. Ser. 2022, 2281, 012005. [Google Scholar] [CrossRef]
  3. Feng, L.; Katupitiya, J. Vector field based control of quadrotor uavs for wildfire boundary monitoring. J. Intell. Rob. Syst. 2022, 106, 27. [Google Scholar] [CrossRef]
  4. Thusoo, R.; Jain, S.; Bangia, S. Quadrotors in the Present Era: A Review. Inf. Technol. Ind. 2021, 9, 164–178. [Google Scholar]
  5. Lopez-Sanchez, I.; Moreno-Valenzuela, J. PID control of quadrotor UAVs: A survey. Annu. Rev. Control 2023, 56, 100900. [Google Scholar] [CrossRef]
  6. Ahmad, F.; Kumar, P.; Bhandari, A.; Patil, P.P. Simulation of the Quadcopter Dynamics with LQR based Control. Mater. Today Proc. 2020, 24, 326–332. [Google Scholar] [CrossRef]
  7. Sadiq, M.; Hayat, R.; Zeb, K.; Al-Durra, A.; Ullah, Z. Robust Feedback Linearization based Disturbance Observer Control of Quadrotor UAV. IEEE Access 2024, 12, 17966–17981. [Google Scholar] [CrossRef]
  8. Moeini, A.; Lynch, A.F.; Zhao, Q. A backstepping disturbance observer control for multirotor UAVs: Theory and experiment. Int. J. Control 2022, 95, 2364–2378. [Google Scholar] [CrossRef]
  9. Mofid, O.; Mobayen, S.; Zhang, C.; Esakki, B. Desired tracking of delayed quadrotor UAV under model uncertainty and wind disturbance using adaptive super-twisting terminal sliding mode control. ISA Trans. 2022, 123, 455–471. [Google Scholar] [CrossRef]
  10. Jiang, B.; Li, B.; Zhou, W.; Lo, L.-Y.; Chen, C.-K.; Wen, C.-Y. Neural network based model predictive control for a quadrotor UAV. Aerospace 2022, 9, 460. [Google Scholar] [CrossRef]
  11. Dooraki, A.R.; Lee, D.-J. An innovative bio-inspired flight controller for quad-rotor drones: Quad-rotor drone learning to fly using reinforcement learning. Rob. Auton. Syst. 2021, 135, 103671. [Google Scholar] [CrossRef]
  12. Abdelmaksoud, S.I.; Mailah, M.; Hing, T.H. Hybrid Fuzzy Logic Active Force Control for Trajectory Tracking of a Quadrotor System. In Proceedings of the International Conference on Emerging Technologies and Intelligent Systems 2022, Virtual, 2–3 September 2022; pp. 246–256. [Google Scholar]
  13. Shen, J.; Wang, B.; Chen, B.M.; Bu, R.; Jin, B. Review on wind resistance for quadrotor UAVs: Modeling and controller design. Unmanned Syst. 2023, 11, 5–15. [Google Scholar] [CrossRef]
  14. Xing, Z.; Zhang, Y.; Su, C.-Y. Active Wind Rejection Control for a Quadrotor UAV Against Unknown Winds. IEEE Trans. Aerosp. Electron. Syst. 2023, 59, 8956–8968. [Google Scholar] [CrossRef]
  15. Hassani, H.; Mansouri, A.; Ahaitouf, A. Backstepping-based supertwisting sliding mode attitude control for a quadrotor aircraft subjected to wind disturbances: Experimental validation. Int. J. Dyn. Control 2023, 11, 1285–1296. [Google Scholar] [CrossRef]
  16. Pliego-Jiménez, J. Quaternion-based adaptive control for trajectory tracking of quadrotor unmanned aerial vehicles. Int. J. Adapt. Control Signal Process. 2021, 35, 628–641. [Google Scholar] [CrossRef]
  17. Kang, J.-W.; Sadegh, N.; Urschel, C. Quaternion based nonlinear trajectory control of quadrotors with guaranteed stability. In Proceedings of the 2020 American Control Conference (ACC), Denver, CO, USA, 1–3 July 2020; pp. 3834–3839. [Google Scholar]
  18. Hassani, H.; Mansouri, A.; Ahaitouf, A. Robust autonomous flight for quadrotor UAV based on adaptive nonsingular fast terminal sliding mode control. Int. J. Dyn. Control 2021, 9, 619–635. [Google Scholar] [CrossRef]
  19. Ahmad, I.; Liaquat, M.; Malik, F.M.; Ullah, H.; Ali, U. Variants of the sliding mode control in presence of external disturbance for quadrotor. IEEE Access 2020, 8, 227810–227824. [Google Scholar] [CrossRef]
  20. Hassani, H.; Mansouri, A.; Ahaitouf, A. Model-Based Robust Tracking Attitude and Altitude Control of an Uncertain Quadrotor Under Disturbances. Int. J. Aeronaut. Space Sci. 2024, 25, 1464–1478. [Google Scholar] [CrossRef]
  21. Al-Dhaifallah, M.; Al-Qahtani, F.M.; Elferik, S.; Saif, A.-W.A. Quadrotor robust fractional-order sliding mode control in unmanned aerial vehicles for eliminating external disturbances. Aerospace 2023, 10, 665. [Google Scholar] [CrossRef]
  22. Phadke, A.; Medrano, F.A.; Chu, T.; Sekharan, C.N.; Starek, M.J. Modeling Wind and Obstacle Disturbances for Effective Performance Observations and Analysis of Resilience in UAV Swarms. Aerospace 2024, 11, 237. [Google Scholar] [CrossRef]
  23. Hellmann, G. Über die Bewegung der Luft in den Untersten Schichten der Atmosphäre; Kgl. Akademie der Wissenschaften [G.] Reimer: Berlin, Germany, 1914. [Google Scholar]
  24. MIL-F-8785C, Military Specification: Flying Qualities of Piloted Airplanes; United States Department of Defense: Washington, DC, USA, 1980.
  25. Howard, A. Experimental Characterization and Simulation of a Tethered Aerostat with Controllable Tail Fins; McGill University: Montreal, QC, Canada, 2008. [Google Scholar]
  26. Tran, N.K.; Bulka, E.; Nahon, M. Quadrotor control in a wind field. In Proceedings of the 2015 International Conference on Unmanned Aircraft Systems (ICUAS), Denver, CO, USA, 9–12 June 2015; pp. 320–328. [Google Scholar]
  27. Seo, D.; Kang, J. Collision-avoided tracking control of UAV using velocity-adaptive 3D local path planning. Int. J. Control Autom. Syst. 2023, 21, 231–243. [Google Scholar] [CrossRef]
  28. Hattenberger, G.; Bronz, M.; Condomines, J.-P. Evaluation of drag coefficient for a quadrotor model. Int. J. Micro Air Veh. 2023, 15, 17568293221148378. [Google Scholar] [CrossRef]
  29. Watkins, S.; Burry, J.; Mohamed, A.; Marino, M.; Prudden, S.; Fisher, A.; Kloet, N.; Jakobi, T.; Clothier, R. Ten questions concerning the use of drones in urban environments. Build. Environ. 2020, 167, 106458. [Google Scholar] [CrossRef]
  30. Zhou, X.; Yu, X.; Guo, K.; Zhou, S.; Guo, L.; Zhang, Y.; Peng, X. Safety flight control design of a quadrotor UAV with capability analysis. IEEE Trans. Cybern. 2021, 53, 1738–1751. [Google Scholar] [CrossRef]
  31. Melbourne, W. Criteria for environmental wind conditions. J. Wind Eng. Ind. Aerodyn. 1978, 3, 241–249. [Google Scholar] [CrossRef]
  32. Alaimo, A.; Artale, V.; Milazzo, C.L.R.; Ricciardello, A. PID controller applied to hexacopter flight. J. Intell. Rob. Syst. 2014, 73, 261–270. [Google Scholar] [CrossRef]
  33. Fresk, E.; Nikolakopoulos, G. Full quaternion based attitude control for a quadrotor. In Proceedings of the 2013 European Control Conference (ECC), Zurich, Switzerland, 17–19 July 2013; pp. 3864–3869. [Google Scholar]
  34. Sun, S.; Sijbers, L.; Wang, X.; de Visser, C. High-speed flight of quadrotor despite loss of single rotor. IEEE Rob. Autom. Lett. 2018, 3, 3201–3207. [Google Scholar] [CrossRef]
Figure 1. Quadrotor model system: (a) quadrotor configuration; (b) coordinate system.
Figure 1. Quadrotor model system: (a) quadrotor configuration; (b) coordinate system.
Aerospace 12 00093 g001
Figure 2. Definition of rotation matrices.
Figure 2. Definition of rotation matrices.
Aerospace 12 00093 g002
Figure 3. Profile of the wind model: (a) Scenario 1; (b) Scenario 2.
Figure 3. Profile of the wind model: (a) Scenario 1; (b) Scenario 2.
Aerospace 12 00093 g003
Figure 4. Desired path.
Figure 4. Desired path.
Aerospace 12 00093 g004
Figure 5. Simulation results: (a) position; (b) attitude.
Figure 5. Simulation results: (a) position; (b) attitude.
Aerospace 12 00093 g005
Figure 6. Wind disturbance: (a) force; (b) moment.
Figure 6. Wind disturbance: (a) force; (b) moment.
Aerospace 12 00093 g006
Figure 7. Angular velocity responses of rotor: (a) RSMC; (b) PD.
Figure 7. Angular velocity responses of rotor: (a) RSMC; (b) PD.
Aerospace 12 00093 g007
Figure 8. Simulation results: (a) position; (b) attitude.
Figure 8. Simulation results: (a) position; (b) attitude.
Aerospace 12 00093 g008
Figure 9. Wind disturbance: (a) force; (b) moment.
Figure 9. Wind disturbance: (a) force; (b) moment.
Aerospace 12 00093 g009
Figure 10. Angular velocity responses of rotor: (a) RSMC; (b) PD.
Figure 10. Angular velocity responses of rotor: (a) RSMC; (b) PD.
Aerospace 12 00093 g010
Table 1. System parameters of quadrotor.
Table 1. System parameters of quadrotor.
PropertyValueUnit
Geometrical parameters a 0.35m
b 0.55m
Total mass m 135kg
Rotor mass m r 15kg
Thrust coefficient k T 0.0047
Torque coefficient k R 3.93 × 10−4
Air density ρ 1.225kg·m−3
Aerodynamic coefficients C D 1.35
C M 0.135
Table 2. PD controller design parameter.
Table 2. PD controller design parameter.
PropertyValue
Position controller gain p 1 , p = p 2 , p = p 3 , p 2
d 1 , p = d 2 , p = d 3 , p 8
Attitude controller gain p 1 , a = p 2 , a = p 3 , a 10
d 1 , a = d 2 , a = d 3 , a 5
Table 3. SMC controller design parameter.
Table 3. SMC controller design parameter.
PropertyValue
Position controller gain η 1 , p = η 2 , p = η 3 , p 1
σ 1 , p = σ 2 , p = σ 3 , p 0.5
δ 1 , p = δ 2 , p = δ 3 , p 0.2
λ 1 , p = λ 2 , p = λ 3 , p 0.4
Attitude controller gain η 1 , a = η 2 , a = η 3 , a 2
σ 1 , a = σ 2 , a = σ 3 , a 2
δ 1 , a = δ 2 , a = δ 3 , a 0.5
λ 1 , a = λ 2 , a = λ 3 , a 6
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Bae, J.-J.; Kang, J.-Y. Quaternion-Based Robust Sliding-Mode Controller for Quadrotor Operation Under Wind Disturbance. Aerospace 2025, 12, 93. https://doi.org/10.3390/aerospace12020093

AMA Style

Bae J-J, Kang J-Y. Quaternion-Based Robust Sliding-Mode Controller for Quadrotor Operation Under Wind Disturbance. Aerospace. 2025; 12(2):93. https://doi.org/10.3390/aerospace12020093

Chicago/Turabian Style

Bae, Jung-Ju, and Jae-Young Kang. 2025. "Quaternion-Based Robust Sliding-Mode Controller for Quadrotor Operation Under Wind Disturbance" Aerospace 12, no. 2: 93. https://doi.org/10.3390/aerospace12020093

APA Style

Bae, J.-J., & Kang, J.-Y. (2025). Quaternion-Based Robust Sliding-Mode Controller for Quadrotor Operation Under Wind Disturbance. Aerospace, 12(2), 93. https://doi.org/10.3390/aerospace12020093

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop