Figures
Abstract
This paper presents an improved nonsingular adaptive super twisting sliding mode control for tracking of a quadrotor system in the presence of external disturbances and uncertainty. The initial step involves developing a dynamic model for the quadrotor that is free from singularities, achieved through the utilization of the Newton-Quaternion formalism. Then, the super twisting algorithm is used to develop a novel sliding mode control that mitigates chattering. Particle Swarm Optimization (PSO) is employed for the adjustment of the controller gains. Moreover, to maintain stable control of the quadcopter, even in scenarios where the upper limit of disturbances is unknown, an adaptive rule grounded in Lyapunov stability is applied. Simulation results demonstrate that the proposed controller reduces tracking errors to 0.1% for roll, 0.05% for pitch, and 2.2% for altitude, outperforming other state-of-the-art sliding mode controllers. Additionally, the proposed controller effectively rejects disturbances, maintaining minimal steady-state errors of 0.01° for roll, 0.02° for pitch, and 0.001° for yaw, significantly better than conventional controllers. These results highlight tracking and disturbance rejection capabilities of the proposed controller, making its real-time implementation for quadrotor Unmanned Aerial Vehicles (UAVs) feasible.
Citation: Abera NB, Abdissa CM, Lemma LN (2024) An improved nonsingular adaptive super twisting sliding mode controller for quadcopter. PLoS ONE 19(10): e0309098. https://doi.org/10.1371/journal.pone.0309098
Editor: Gang Wang, University of Shanghai for Science and Technology, CHINA
Received: April 27, 2024; Accepted: August 5, 2024; Published: October 10, 2024
Copyright: © 2024 Abera et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: All relevant data are within the manuscript.
Funding: The author(s) received no specific funding for this work.
Competing interests: The authors have declared that no competing interests exist.
1 Introduction
UAVs are autonomous aircraft that have been in existence for a while [1, 2]. Aerial photography, crop spraying in agriculture, and payload transportation are only a few examples of the applications of quadrotor UAVs [3, 4]. The control system of a quadrotor UAV serves as its central processing unit, responsible for ensuring the correct position and orientation during flight. Designing high performance controllers for quadcopters presents challenges due to factors such as time-varying environmental conditions and nonlinear coupled dynamics of the system [5].
The mathematical models of quadcopters constitute nonlinear systems. The system, controlled by four input signals, operates with six degrees of freedom (DOFs). This implies a strong interdependence among the dynamic states. Consequently, the control strategy for the quadcopter typically adopts a multi-loop approach, where an outer loop prioritizes position control, while an inner loop focuses on attitude control [6].
Several linear controllers, including H-infinity [7], and conventional Proportional Integral Derivative (PID) [8], have been proposed for controlling of quadcopter. However, these methods often become less effective when there is an external disturbances. Adaptive backstepping, as discussed by [9, 10], was developed to improve the tracking abilities of quadrotors. This study presents a control scheme that achieves stable control within a predetermined time frame, ensuring precise control of both the position and attitude of a quadrotor.
Hence, it is crucial to develop a robust controller to surmount these challenges. Sliding Mode Control (SMC) is well-known for its robustness in dynamic environments [11, 12]. The paper in [13], proposes a comprehensive examination of SMC techniques, emphasizing their robustness and effectiveness in managing the nonlinear dynamics and uncertainties inherent in robotic manipulators. The paper in [14], proposes distributed robust SMC for the autonomous formation flight of quadrotors. In [15], an experimental validation of a fixed-time nonlinear homogeneous sliding mode approach for multirotor tracking control is proposed. Consequently, classical SMC techniques are commonly employed across various UAV applications. However, the persistence of a discontinuous term in the control law leads to chattering, potentially resulting damage to electromechanical systems. In [16], various SMC techniques are examined with their applications in underactuated systems. The review highlights significant advancements and ongoing challenges in the field, especially focusing on efforts to reduce chattering a common issue in SMC and to enhance robustness and control accuracy. To address this issue, numerous enhancements have been suggested. In order to mitigate chattering, an approach known as higher-order sliding mode control (HOSMC) was introduced in [17]. In [18], the discontinuous control of SMC was replaced with continuous “saturation” or “sigmoid” characteristics. However, this adjustment no longer ensures that the trajectories of the sliding system reach the sliding surface due to the sigmoid function’s approximation, potentially reducing the accuracy of the control action. In [19], the review discusses the application of SMC in various motion control systems, providing explicit design parameters and highlighting the challenge of determining the controller gain.
In [20, 21], backstepping sliding mode algorithms have been developed for trajectory tracking of quadcopters. However, finding the controller’s parameters poses a challenge. In [22], a robust backstepping integral sliding mode control (RBISMC) technique designed for quadcopter flight control, and it compares this approach with fraction order integral sliding mode control (FOISMC). In [23], robust tracking control for quadrotor UAVs is proposed using neural network-based MRAC. In [24], a genetic algorithm-tuned super twisting sliding mode controller is proposed for maglev train suspension. In [25], position tracking control using an adaptive SMC technique provided. The methods mentioned above are frequently capable of addressing issues related to trajectory tracking control in environments with external uncertainties and disturbances. However, most of these approaches tend to be highly intricate, and face challenges in acquiring the controller gains.
The PSO algorithm represents a recent and successful approach for effectively and efficiently tuning gains across various systems and types of controllers [26, 27]. In [28], PSO algorithm, specifically PSO-PID, is utilized in quadcopters to minimize tuning efforts while achieving optimal outcomes.
In this paper, an improved Nonsingular adaptive super twisting sliding mode controller is developed to stabilize the disturbed quadrotor and guarantee precise tracking when disturbances occur. Specifically, PSO-based sliding manifolds are tailored for the attitude and position subsystems, aiming to achieve accurate trajectory tracking in the quadrotor system. The contributions of this research paper can be outlined as follows:
- A new design for an Improved Nonsingular Adaptive Super Twisting Sliding Mode Controller has been introduced, aiming to enhance robust tracking control for quadrotor UAVs by utilizing quaternion modeling,
- Utilizing the Newton-Quaternion formalism a quaternion-based dynamic model, free from singularities, is developed to enhance the effectiveness of the controller design.
- Through simulation, the proposed method has been developed and evaluated in the presence of external disturbances, demonstrating better performance compared to other state-of-the-art methods [29–31].
- PSO approach has been executed to improve controller performance by tuning the sliding manifold gains which in turn increases tracking performance,
- An adaptation gain has been adopted to tune the gains of super twisting SMC.
The paper proceeds as follows: Section 2, elaborates on the mathematical model of quadcopter utilizing quaternions. Section 3, discusses the proposed controller and analyse stability. Section 4, presents the simulation results. Lastly, concluding remarks are given in Section 5.
2 Mathematical model of quadcopter
2.1 Quaternion based modeling
Various assumptions are made in the literature to simplify the modeling of the quadcoper. Universal modeling assumptions taken from various literature [32, 33] and adopted in these papers are presented here as follows:
- The propellers of quadcopter is considered rigid.
- The center of gravity (COG) of the vehicle coincides with the origin of the body’s coordinate system.
- The quadcopter has a symmetric structure and the inertia matrix around this symmetry is diagonal.
- Thrust is proportional to the square of rotor speed.
- Torque is proportional to the square of rotor speed.
2.2 Reference frames alignment
A reference body is a conceptual body of coordinates that can be used to describe the positioning and motion of objects. The quadcopter function in two coordinate frames: the inertial frame and the body frame [34].
The orientation of the coordinate system is established by applying the right-hand rule. The positive direction of the x–axis is indicated by the thumb, the positive direction of the y–axis by the first finger, and the positive direction of the z–axis by the middle finger. Two coordinate frames are utilized due to the quadcopter array of sensors. Sensors like gyroscopes and accelerometers provide readings with respect to the body frame, whereas sensors such as Global Positioning System (GPS) and magnetometers provide readings relative to the inertial frame. The body frame is linked to the quadcopter, with its origin positioned at COG.
Fig 1, shows the reference frame alignment of the quadcopter. A quadcopter orientation or attitude in three-dimensional space is represented by a rotation matrix. The rotation matrix in the context of a quadcopter is used to define the rotation of the quadcopter body frame with respect to the inertial frame [35]. The quaternion method is employed for transformation to circumvent the challenges commonly associated with Euler angles, such as geometric singularities, nonlinearity, and computational complexity [36, 37].
A four-dimensional mathematical construct is called a quaternion, encompassing both scalar and vector components. a scalar components qo, and vector components q = q0 + q1i + q2j + q3k, where q0, q1, q2 and q3 are real numbers, and i, j, and k are the quaternion units [38].
A unit quaternion is a straightforward mathematical representation utilized to specify orientations in three-dimensional space. Hence, the dynamic model of the quadrotor is formulated based on the principle of unit quaternions. The process of calculating a coordinate transformation using quaternion rotation between distinct reference frames is articulated as [39]: (1) where YT represents the vector undergoing rotation, while Y denotes the vector after rotation has been applied. As per Eq 1, when you multiply two or more rotation quaternions, you obtain a new rotation quaternion. This new quaternion represents the combined effect of each individual rotation performed by each quaternion independently. In order to move vectors from one axis system to another, it’s necessary to convert them into pure quaternions where the scalar component is zero. Eq 1, can be reformulated to yield a rotation matrix using quaternions, facilitating the transition of variables from the Inertial Frame(IF) to the Body Frame (BF). (2) where Rb = [xb, yb, zb] represents the position vector in BF coordinate system and Ri = [xi, yi, zi] represents the position vector in the IF coordinate system. Eq 2, can be rearranged as follows to calculate : (3)
Projecting BF rates onto IF using a rate transformation matrix: (4)
2.3 Translational motion of a quadrotor
The quadrotor translational dynamics in the IF can be described as follows: (5) where trust force in IF, gravitational force in IF, m mass is linear acceleration. Using Newton second law: the transitional forces with respect to earth frame can be described: (6) where Fg = mg is a force of gravitation acting, m is mass, are the linear accelerations, and g is the gravity of the quadrotor in the inertial frame (IF). The equation governing the dynamics of translational motion relative to the earth frame is stated as follows: (7) (8) (9) where U1 is the overall force of thrust employed in altitude control.
2.4 Rotational motion of quadrotor
The gyroscopic effect. The propellers’ rotation causes the gyroscopic effect in a quadcopter. The gyroscopic effect is caused by the torque, or rotational force, that the propellers produce as they spin [41]. (10) where Jtp represents the combined rotational moment of inertia about the propeller axis. (11) (12) where are angular accelerations; J represents inertia matrix; Mgyro is a gyroscopic moment: U2, U3, U4 are moments and ω represents angular speed in BF. By reorganizing Eq 12, the rotational dynamics of the quadrotor derived as. (13) (14) (15)
The dynamics description in the IF is achieved by employing the transfer matrix as shown below (16) (17) (18) (19)
The complete dynamics of quadrotor flight are outlined as follows: (20)
The following control allocation equations were developed based on the relationship between propeller rotational velocity and induced torque:
The total net propeller angular speed, denoted as ωT, is determined as follows
To convert from quaternion to euler angles by employing a conventional set of Euler angles in the following manner [42]:
3 Design of controller for quadcopter
Despite having four rotors, the translational dynamics of quadcopters tend to be underactuated. This indicates that they are not equipped with enough control inputs to directly regulate every DOF, particularly lateral motion. The system is enhanced by incorporating virtual control inputs, aiming to ensure that each output of the quadrotor aligns with a predetermined trajectory [43]. The following can be used to obtain the virtual control inputs: where the parameters Ux, Uy, and Uz denote the virtual control inputs for guiding the quadrotor position along the x, y, and z axes respectively. The quadrotor translational dynamics can be represented as: (21) (22) (23)
To design controller for a second order system, the rotational dynamics of a quadrotor are rewritten in quaternion using the small quaternion approach.
Finally, the second-order rotational dynamics of the quadrotor can be expressed using quaternions as follows:
The state vector is composed of two components: orientation control, expressed as and position control, expressed as .
3.1 Design of a quadrotor position controller
The first step to design an improved nonsingular adaptive super twisting sliding mode controller is designing sliding manifold of SMC. SMC enables the design of controllers for both linear and nonlinear processes. The concept of the SMC technique is to force the command signal to move to the sliding surface and stay on that surface after the command signal has been reached. In order to guarantee that the system states stay on the sliding surface, the control law is then designed. The two phases of SMC are [44]:
Reaching phase: This phase involves designing the control law to drive the system’s state trajectories towards a predefined sliding surface. The sliding surface is a manifold where the control objectives are met. During the reaching phase, a discontinuous control law is applied to force the system to reach the sliding surface despite the presence of uncertainties and disturbances.
Sliding phase: Once the system state reaches the sliding surface, the control switches to ensure that the state remains on this surface for all times. This phase is characterized by the system’s dynamics being confined to the sliding surface, designed to be invariant. The control law in this phase maintain the system on the sliding surface, ensuring robust performance against perturbations and uncertainties.
These phases are crucial for ensuring that SMC achieves its robustness and performance despite the presence of uncertainties and external disturbances. Fig 2, illustrates the complete controller architecture, including the position and altitude controllers, as well as the virtual control input.
Design sliding manifold. The following procedures should be taken to design a sliding manifold.
- Determine the quadcopter desired trajectory. (24)
- Design a sliding manifold, a function that measures the difference between the quadcopter actual and desired states. Designing the sliding surface in accordance with the dynamics of the error is the first stage in minimizing the difference between the desired and the actual value, and Stoline and Li proposed the general form of the following equation in [45]: (25) where e is the tracking error, defined as for z-axis e(x) = zd − z (the error between the desired trajectory and the actual trajectory in the x-axis); λ and c is a positive constant that interprets the dynamics of the surface and p = n − 1, n is relative degree between output and input. Based on Eq 25, position controller sliding manifold can be designed: (26)
- Design control law and tune the gain of sliding surface using PSO.
3.2 Design super twisting sliding mode controller
STSMC is given by the equation below: (27) (28) The total control law (U) calculated by summing the equivalent and supertwisting control law: (29) where Uequ is equivalent controller and Ust is super twisting controller.
Fig 3, illustrates the position controller diagram designed for the quadcopter. The controller focuses on maintaining the desired trajectory by controlling the quadcopter position in the x, y, and z axes.
After selecting sliding surface the next step is design equivalent control law and this law ensure the system remains in sliding mode during operation. Equivalent control law can be designed by making .
The virtual controller (Ux, Uy, Uz) which means that the three common input will control motion along x, y and z and these virtual control are given by equation. (30) where α, β are the gain of super twisting algorithm and .
Theorem 1. If the quadrotor position system 20, is taken into consideration, together with the PSO based sliding manifold 26, control laws 30, and tracking errors 24, asymptotically, the closed loop tracking error can approach zero.
The control law must ensure that and the system state variables V(z) > 0.
Proof. Lyapunov function is a positive scalar function. The Lyapunov function is defined as . The control law must ensure that and the system state variables V(z) > 0.
To substitute the value of , use the virtual control law. (31) To make the Lyapunov function valid, the gains αz, βz should be above positive. The position subsystem uses the proposed controller, and the stability of the loop is demonstrated using the Lyapunov principle.
The virtual control in Eq 30, used to determine desired quaternion value. when x, y and z approach xd, yd, and zd as time reaches the sliding surface σx = 0, σy = 0, σz = 0 and the designed controller derives the actual value to the desired position. The desired quaternion value can also be calculated by rearranging the virtual control inputs. (32) (33) (34) (35) (36)
3.3 Altitude controller design
Fig 4, depicts the altitude controller diagram responsible for maintaining the quadcopter desired altitude. The controller operates by generating control input signals based on the reference inputs provided by the conversion blocks.
By generating the input control signal (U2, U3, U4), the adaptive super twisting sliding mode control maintains the tracking errors of the attitude subsystem. The tracking errors are defined: (37)
Like position control design to design altitude controller first step is designing of sliding surface: (38)
Theorem 2. If the quadrotor attitude system 20, is designed with PSO-based sliding surfaces 38, the closed loop system’s tracking errors 37, can asymptotically converge to zero.
Proof. The Lyapunov function is stated as . with V(q1) > 0 and the control law requiring .
Consequently, the altitude tracking errors will asymptotically approach zero.
3.4 SMC gain tuning
The particle swarm approach was developed by the movements of birds and swimming fish, the notion for the optimization of nonlinear systems was suggested by [46], and further developed in [47]. PSO is very simple and efficient method to adjust gain for controllers when compared to other optimization techniques [27]. In this research, a PSO is chosen to automatically adjust the quadcopter altitude and attitude control gain of SMC controller. The various parameters that make up this fitness function are taken from trajectory monitoring and regulation of the coupled and nonlinear dynamics of a quadcopter. Every particle’s position is associated with SMC. Each particle’s speed in the two simulations is corresponding to this parametrized change. Every particle and variable has its position and velocity initialized at random. Every particle travels across the search space, and every particle’s effectiveness is assessed on a regular basis.
The PSO algorithm is computationally efficient, conceptually straightforward, and simple to apply. Fig 5, presents the flowchart of PSO algorithm, which is employed to fine-tune the control parameters of the quadcopter sliding surface. The PSO algorithm iteratively optimizes the sliding surface gains. The flowchart outlines the key steps of the PSO process, from initializing the particles’ positions and velocities to evaluating their performance and updating their positions based on the best-performing particles.
3.5 Fitness function
Using the proposed approach, a performance index is used to quantify the optimization performance of the quadrotor’s responses. The purpose of the performance index, sometimes referred to as the fitness function, is to reduce the differences between the quadrotor’s controllable and desired output responses. The goal of these papaer is to reduce quadcopter trajectory tracking error in terms of both position and orientation. Systems constructed using Integral Time Absolute Error (ITAE) have minor overshoots and minimal damped oscillations. This paper utilized the ITAE performance index.
3.6 Adaptive super twisting sliding mode control design
Control structure of adaptive super twisting sliding mode control. After that, super twisting control is considered
The adaptive gains are stated as follows: (39) (40)
Lemma 1. The adaptation law are to be defined as: (41) The parameters ϵ, γ1, ω, η are arbitrary positive constants, while αm is a small positive constant.
Proof. Lyapunov function candidate is introduced as: (42) where v0 is Lyapunov function for , α*, β* are maximum possible values of α, β respectively. The derivative of the Lyapunov function is as follows: (43)
It gives (44) with (45) where ϵα = α − α* and ϵβ = β − β*. It is evident that the system’s finite-time convergence is assured [48].
4 Simulation results
The numerical simulation is used to show the efficiency of an improved nonsingular adaptive super twisting sliding mode controller presented in this section. To underscore the importance of this research and the benefits of the proposed controller is compared with those of recently introduced approaches such as normal adaptive SMC in [29], the Super Twisting Sliding Mode Controller (STSMC) in [30], and Adaptive Second Order PID Sliding Mode Controller (ASPIDSMC) [31].
4.1 Selection of control parameters
The proposed adaptive controller utilizes the PSO algorithm to fine-tune the gains of the sliding surface. Unlike controllers such as STSMC, ASMC, and ASPIDSMC that rely on fixed gains for the sliding surface, the proposed adaptive controller incorporates adaptive gain tuning and PSO-based optimization to tune all gain values, ensuring that all gains are optimized for the best possible performance. The STSMC utilizes twelve fixed gains for the altitude controller, with gain values determined through trial and error. This approach offers simple implementation due to fixed gains and robustness in certain fixed scenarios but leads to suboptimal performance and limited adaptability to varying conditions. The ASMC utilizes eight gains for the altitude controller, with four of them tuned using an adaptation law. This combination of fixed gains and adaptive tuning improves performance by adjusting some gains and offers better performance compared to controllers with entirely fixed gains. However, the remaining fixed gains can still result in decreased overall performance. The ASPIDSMC utilizes sixteen gains for the altitude controller, with four gains tuned using an adaptation law. This combination enhances the performance and improves disturbance rejection compared to fully fixed gain controllers. In contrast, the proposed adaptive controller continuously adjusts all control parameters using an adaptation law. The PSO algorithm finds the most effective gain values for the sliding surface. This adjustment significantly enhances responsiveness and accuracy, leading to high tracking performance, good disturbance rejection, and smoother control actions.
Table 1, outlines the parameters of quadrotor and Tables 2–4, gives the design parameters of the controller.
Remark 1. The controllers’ design parameters require tuning to attain appropriate performance with regards to quadrotor tracking of trajectory despite disturbances. To determine the optimum values for these parameters, PSO and adaptation laws have been employed.
The simulation results are presented in two distinct phases to effectively illustrate the improved performance of the proposed controller compared to the previously mentioned techniques. During the first phase, spanning from takeoff to fifteen seconds (t = 0 seconds to t<15 seconds,) it is assumed that no external disturbances affect the vehicle. This phase allows for an examination of the tracking performance under ideal conditions. In the second phase, external disturbances are introduced, impacting both the attitude and altitude dynamics of the quadcopter.
4.2 Simulation results 1
To assess the proposed control scheme’s tracking performance for rotational and translational subsystems the helix input provides the desired path that is employed in this simulation. The performance of three other controller types: ASPIDSMC, STSMC, and conventional adaptive SMC has been simulated and compared with the proposed adaptive controller. It is clear from comparing the simulation results (Figs 6–9), that the proposed controller outperforms the other controllers in terms of tracking performance during the disturbance-free period of time.
The simulation enables testing the controller’s capability to precisely track a dynamic trajectory by using a helical reference input, which shows a circular or helical path for the quadcopter to track. In this paper adaptive technique and PSO is used to obtain the optimal gain for the STSM controller to track the helical trajectory. ϕd = 1—cos(t), θd = sin(t), and zd = t.
In Fig 6, the roll angle tracking performance of the quadcopter under different control strategies is presented. The proposed controller demonstrates superior performance in both accuracy and stability. It shows minimal tracking error and quickly tracks the desired roll angle compared to other controllers, such as the STSMC, ASMC, and ASPIDSMC. The roll angle follows the desired trajectory with high precision, indicating the effectiveness of the proposed controller. In Fig 7, depicts the pitch angle tracking performance. Similar to the roll angle results, the proposed controller outperforms the other control methods. It ensures the pitch angle closely follows the desired trajectory with minimal tracking error. The other controllers exhibit larger deviations and slower responses, particularly during the initial transient phase. This highlights the effectiveness of the proposed controller. Fig 8, illustrates the yaw angle tracking performance of the quadcopter under different control strategies.
Fig 9, illustrates the altitude tracking performance. The proposed adaptive controller provides altitude control, maintaining the desired altitude trajectory with minimal deviation. Other controllers, such as the STSMC, ASMC, and ASPIDSMC, exhibit larger initial tracking errors and take longer to stabilize, indicating that the proposed adaptive controller provides more reliable altitude control.
Based on the simulation results, it’s evident that three of the controllers exhibit delays in accurately tracking the trajectory of the quadcopter. To analyze the tracking error of the quadcopter, a numerical method is employed, specifically the ITAE. The utilization of ITAE offers a systematic approach to quantifying the performance of the quadcopter tracking system.
4.3 ITAE
ITAE is a performance criterion used in control theory to assess the transient response and tracking performance of control systems. The ITAE is defined as the integral of the absolute error multiplied by time, over a specified time interval. It is given by the formula: where:—e(t) represents the instantaneous error between the desired reference and the actual output at time t and T is the total duration of the simulation or the time interval of interest. The ITAE metric captures both the magnitude and duration of the error signal, providing a comprehensive measure of tracking performance.
Table 5, presents the ITAE values for tracking performance over 15 seconds. It compares the ITAE metrics for roll, pitch, yaw, and altitude control across different controllers.
4.4 Simulation results 2
In subsequent flight phases (t > 5seconds), when disturbances are not zero, the proposed controller outperforms existing techniques. The external disturbances applied at t = 5 seconds for both quadrotor position and attitude are specified as follows: In Fig 10, the roll angle performance highlights significant differences among the control strategies. The STSMC exhibits substantial oscillations with a steady-state error of approximately 1.2°. The ASMC improves on this with reduced oscillations and a lower error of about 0.5°, due to its adaptive nature. The ASPIDSMC achieves further improvement, reducing the error to around 0.2° due to its enhanced disturbance rejection capabilities. The proposed adaptive controller outperforms all, with a minimal steady-state error of 0.01°, demonstrating superior handling of disturbances and maintaining stability. In Fig 11, the pitch angle performance shows that the STSMC has significant oscillations and an error of about 1.3°, requiring approximately 5.5 seconds to reach a steady state after a disturbance. The ASMC reduces the error to about 0.7°, demonstrating better adaptability and quicker convergence. The ASPIDSMC further refines this to a 0.5° error. The proposed adaptive controller achieves an 0.02° error, quickly restoring stability after a disturbance. Additionally, the STSMC takes around 5.5 seconds to reach the steady state of attitude feedback, while the ASPIDSMC takes about 10.5 seconds for pitch angle. This suggests that the time requires for the vehicle to achieve a steady state after a disturbance occurs is between 5.5 and 10.5 seconds. These results demonstrate how difficult it is for both of these controllers to handle unanticipated disturbances, highlighting the effectiveness of the proposed controller. Fig 12, focuses on yaw angle performance, where STSMC has a minor oscillation with a 0.03° error. The ASMC reduces this to 0.02°, and the ASPIDSMC achieves an impressive 0.002° error. However, the proposed adaptive controller excels with a minimal 0.001° error, highlighting its effectiveness in maintaining yaw stability with minimal oscillations and rapid convergence. Furthermore, in Fig 13, The proposed adaptive controller exhibits better yaw stability, with fewer fluctuations and quicker convergence to the desired yaw angle. The other approaches show more significant oscillations and slower response times, indicating less efficient yaw control. The normal adaptive SMC performs attitude control in the presence of disturbances much better since it switches the SMC on and off using an adaptive law. Although the initial oscillation remains very small, the response of the output never settles to zero over extended period of time, and there is steady state inaccuracy in the roll, pitch, and yaw angles.
Table 6, presents a comparative analysis of the performance of various control methods in terms of roll, pitch, and yaw angles. Each method’s performance is evaluated by the error in degrees for roll, pitch, and yaw angles, with lower values indicating better control performance. The results validate the robustness, precision, and efficiency of the proposed adaptive control strategy for quadrotor UAVs in dynamic and disturbed environments, consistently achieving minimal steady-state errors, rapid convergence, and effective disturbance rejection, outperforming STSMC, ASMC, and ASPIDSMC. Fig 14, shows the control effort U1 applied to control the quadcopter’s altitude. Fig 15, presents the control effort U2 required for controlling the roll motion of the quadcopter. Fig 16, depicts the control effort U3 necessary to control the pitch angle of the quadcopter. Fig 17, illustrates the control effort U4 necessary to control the yaw motion of the quadcopter.
On the other hand, the proposed adaptive controller in this paper demonstrates a short oscillation that ends rapidly as the steady state is restored. The controller appears to be able to instantly reduce the effect of the external disturbance once it is applied. As a result, there is very little oscillation in attitude (0.01° for pitch and roll and 0.001° for yaw) is formed. The performance of the other tested controllers at altitude when disturbances occur (t > 5seconds), the quadcopter altitude performance is significantly impacted, exhibiting relatively large oscillations in comparison to the proposed controller. Moreover, once the disturbance has been applied to the vehicle, STSMC and ASPIDSMC similarly show a longer delay before convergent to the steady state. It appears that the suggested adaptive controller performs excellent performance, with good tracking and the ability to reject disturbances, demonstrating the effectiveness of our suggested algorithm for altitude control. In summary, the results of the simulation demonstrated that all four of the tested systems demonstrated there were noticeable differences in performance as soon as the system was subjected to outside disturbances. Due to their slow adaptation to these disturbances, the roll, pitch, yaw, and altitude oscillations were comparatively large for STSMC, ASMC, and ASPIDSMC.
For U1, U2, U3, and U4, the control efforts are 9.81N, 0.03Nm, 0.02Nm and 0.01Nm, respectively. In contrast to the other controller, the control actions that are taken with low effort are executed smoothly. These show that the control algorithm developed is effective. When comparing the three controller control efforts that are feasible in presence of external disturbance minimum control effort is expressed clearly. As a result, the proposed control strategy stabilizes the quadrotor despite the loss of optimal control efforts to guarantee accurate tracking of the required reference model trajectory.
5 Conclusions
A non-singular adaptive super twisting sliding mode controller that controls the quadrotor position and attitude is developed and tested. In order to develop the proposed controller, first the flight dynamics of quadrotor is modeled taking into account all the phenomena that are relevant for the maneuvering of the quadrotor UAV. Subsequently, the proposed controller is designed for performance comparison, with ST SMC, ASMC, and ASPIDSMC. Finally, the efficiency of the proposed control method has been confirmed using numerical simulations in both normal and disturbed environments. The results of the simulation indicate the effectiveness of the proposed control method attaining excellent accuracy in tracking and a high capacity to reject disturbances. Moreover, the desired results can be achieved with minimal and smooth control actions. These show the cost-effectiveness and functional safety of the complete control architecture, suggesting that the proposed controller may be deployed in real time for the quadrotor platform.
References
- 1. Chen K, Ye C, Wu C, Wang H, Jin L, Zhu F, et al. A novel open-closed-loop control strategy for quadrotor trajectory tracking on real-time control and acquisition platform. Appl Sci. 2023 Mar;13(5):3251.
- 2. Okyere E, Bousbaine A, Poyi GT, Joseph AK, Andrade JM. LQR controller design for quad-rotor helicopters. J Eng. 2019 Jun;2019(17):4003–4007.
- 3. Reddy Maddikunta PK, Hakak S, Alazab M, Bhattacharya S, Gadekallu TR, Khan WZ, et al. Unmanned aerial vehicles in smart agriculture: Applications, requirements, and challenges. IEEE Sensors J. 2021 Aug;21(16):17608–17619.
- 4. Eltayeb A, Rahmat MF, Basri MAM, Eltoum MAM, Mahmoud MS. Integral adaptive sliding mode control for quadcopter UAV under variable payload and disturbance. IEEE Access. 2022;10:94754–94764.
- 5. Nguyen NP, Mung NX, Thanh HLNN, Huynh TT, Lam NT, Hong SK. Adaptive sliding mode control for attitude and altitude system of a quadcopter UAV via neural network. IEEE Access. 2021;9:40076–40085.
- 6. Anjum M, Khan Q, Ullah S, Hafeez G, Fida A, Iqbal J, et al. Maximum power extraction from a standalone photovoltaic system via neuro-adaptive arbitrary order sliding mode control strategy with high gain differentiation. Appl Sci. 2022;12(6):2773.
- 7.
Wong T, Khan R, Lee D. Model linearization and H∞ controller design for a quadrotor unmanned air vehicle: Simulation study. In: 2014 13th International Conference on Control Automation Robotics and Vision (ICARCV). IEEE; 2014. p. 1490–1495. https://doi.org/10.1109/ICARCV.2014.7064536
- 8. Pounds PEI, Bersak DR, Dollar AM. Stability of small-scale UAV helicopters and quadrotors with added payload mass under PID control. Auton Robots. 2012 Aug;33(12):129–142.
- 9.
Ou TW, Liu YC. Adaptive backstepping tracking control for quadrotor aerial robots subject to uncertain dynamics. In: 2019 American Control Conference (ACC). 2019 Jul. https://doi.org/10.23919/ACC.2019.8815025
- 10.
Benaddy A, Labbadi M, Bouzi M. Adaptive nonlinear controller for the trajectory tracking of the quadrotor with uncertainties. In: 2020 2nd Global Power, Energy and Communication Conference (GPE-COM). 2020 Oct. https://doi.org/10.1109/GPECOM49333.2020.9247922
- 11. Shi X, Cheng Y, Yin C, Zhong S, Huang X, Chen K, et al. Adaptive fractional-order SMC controller design for unmanned quadrotor helicopter under actuator fault and disturbances. IEEE Access. 2020;8:103792–103802.
- 12. Du H, Yu X, Chen MZQ, Li S. Chattering-free discrete-time sliding mode control. Automatica. 2016;68:87–91.
- 13. Piltan F, Sulaiman N, Rashidi M, Tajpaikar Z, Ferdosali P. Design and implementation of sliding mode algorithm: Applied to robot manipulator-a review. Int J Robot Autom. 2011;2(5):265–82.
- 14. Mechali O, Xu L, Xie X, Iqbal J. Theory and practice for autonomous formation flight of quadrotors via distributed robust sliding mode control protocol with fixed-time stability guarantee. Control Engineering Practice. 2022;123:105150.
- 15. Mechali O, Xu L, Xie X, Iqbal J. Fixed-time nonlinear homogeneous sliding mode approach for robust tracking control of multirotor aircraft: Experimental validation. Journal of the Franklin Institute. 2022;359(5):1971–2029.
- 16. Gambhire SJ, Kishore DR, Londhe PS, Pawar SN. Review of sliding mode based control techniques for control system applications. Int J Dyn Control. 2021;9(1):363–378.
- 17.
Edwards C., Colet E. F., Fridman L., Colet E. F., and Fridman L. M., Advances in Variable Structure and Sliding Mode Control, vol. 334, Springer, 2006.
- 18. Burton JA, Zinober ASI. Continuous approximation of variable structure control. Int J Syst Sci. 1986;17(6):875–885.
- 19. Rivera J, Garcia L, Mora C, Raygoza JJ, Ortega S. Super-twisting sliding mode in motion control systems. Sliding Mode Control. 2011;1:237–254.
- 20. Ramirez-Rodriguez H, Parra-Vega V, Sanchez-Orta A, Garcia-Salazar O. Robust backstepping control based on integral sliding modes for tracking of quadrotors. J Intell Robot Syst. 2014 Jan;73(1-4):51–66.
- 21. Chen F, Jiang R, Zhang K, Jiang B, Tao G. Robust backstepping sliding-mode control and observer-based fault estimation for a quadrotor UAV. IEEE Trans Ind Electron. 2016 Aug;63(8):5044–5056.
- 22. Ullah S, Mehmood A, Khan Q, Rehman S, Iqbal J. Robust integral sliding mode control design for stability enhancement of under-actuated quadcopter. Int J Control Autom Syst. 2020;18:1671–1678.
- 23. Madebo MM, Abdissa CM, Lemma LN, Negash DS. Robust tracking control for quadrotor UAV with external disturbances and uncertainties using neural network based MRAC. IEEE Access. 2024.
- 24. Teklu EA, Abdissa CM. Genetic algorithm tuned super twisting sliding mode controller for suspension of maglev train with flexible track. IEEE Access. 2023;11:30955–30969.
- 25. Mod O, Mobayen S. Adaptive sliding mode control for finite-time stability of quad-rotor UAVs with parametric uncertainties. ISA Trans. 2018 Jan;72:1–14.
- 26.
Madruga SP, Basso GF, Tavares AHBM, de Brito AV, Nascimento TP. A PSO-based tuning algorithm for quadcopter controllers. In: Congresso Brasileiro de Automática-CBA. 2019;1(1). https://doi.org/10.20906/CBA2022/62
- 27. El Gmili N, Mjahed M, El Kari A, Ayad H. Particle swarm optimization based proportional-derivative parameters for unmanned tilt-rotor flight control and trajectory tracking. Automatika. 2020;61(2):189–206.
- 28. Sahrir NH, Basri MAM. PSO–PID controller for quadcopter UAV: index performance comparison. Arabian J Sci Eng. 2023;48(11):15241–15255
- 29. Nadda S, Swarup A. On adaptive sliding mode control for improved quadrotor tracking. J Vib Control. 2017 Apr;24(14):3210–3230.
- 30. Muñoz F, González-Hernández I, Salazar S, Espinoza ES, Lozano R. Second order sliding mode controllers for altitude control of a quadrotor UAS: Real-time implementation in outdoor environments. Neurocomputing. 2017 Apr;233:61–71.
- 31. Thanh HLNN, Hong SK. Quadcopter robust adaptive second order sliding mode control based on PID sliding surface. IEEE Access. 2018;6:66850–66860.
- 32.
Fethalla N. Modelling, identification, and control of a quadrotor helicopter [PhD thesis]. Ecole de technologie supérieure; 2019.
- 33. Musa S. Techniques for quadcopter modeling and design: A review. J Unmanned Syst Technol. 2018;5(3):66–75.
- 34. Lv YY, Huang W, Liu J, Peng ZF. A sliding mode controller of quadrotor based on unit quaternion. Appl Mech Mater. 2014 Apr;536–537:1087–1092.
- 35.
Hussein A, Abdallah R. Autopilot design for a quadcopter. Univ. Khartoum, Khartoum, Sudan, Tech. Rep., 2017.
- 36. Emran BJ, Najjaran H. A review of quadrotor: An underactuated mechanical system. Annu Rev Control. 2018 Jan;46:165–180.
- 37.
Ahmadinejad F, Bahrami J, Menhaj MB, Ghidary SS. Autonomous flight of quadcopters in the presence of ground effect. In: Proc 4th Iranian Conf Signal Process Intell Syst (ICSPIS). 2018. p. 217–223. https://doi.org/10.1109/ICSPIS.2018.8700556
- 38.
Gonzalez HA. Robust tracking of dynamic targets with aerial vehicles using quaternion-based techniques Ph.D. Univ. de Technologie de Compiegne; 2019.
- 39. Guerrero-Sánchez ME, Abaunza H, Castillo P, Lozano R, García-Beltrán CD. Quadrotor energy-based control laws: A unit-quaternion approach. J Intell Robot Syst. 2017 Dec;88(2–4):347–377.
- 40.
Bresciani T. Modelling, identification and control of a quadrotor helicopter MSc thesis. 2008.
- 41. Selfridge JM, Tao G. A multivariable adaptive controller for a quadrotor with guaranteed matching conditions. Syst Sci Control Eng. 2014 Dec;2(1):24–33.
- 42.
Sanchez-Cuevas PJ, Martin V, Heredia G, Ollero A. Aerodynamic effects in multirotors flying close to obstacles: Modelling and mapping. In: Proc 4th Iberian Robot Conf. 2020. p. 63–74. https://doi.org/10.1007/978-3-030-35990-4
- 43. Li Z, Ma X, Li Y. Model-free control of a quadrotor using adaptive proportional derivative-sliding mode control and robust integral of the signum of the error. Int J Adv Robot Syst. 2018 Sep;15(5):Art. no.
- 44. Iqbal J., “Modern control laws for an articulated robotic arm,” Engineering, Technology & Applied Science Research, vol. 9, no. 2, pp. 4057–4061, 2019.
- 45.
Bouabdallah S, Noth A, Siegwart R. PID vs LQ control techniques applied to an indoor micro quadrotor. In: 2004 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS) (IEEE Cat. No. 04CH37566). IEEE; 2004. vol. 3, p. 2451–2456. https://doi.org/10.1109/iros.2004.1389776
- 46.
Kennedy J, Eberhart R. Particle swarm optimization. In: Proceedings of ICNN’95-International Conference on Neural Networks. IEEE; 1995. vol. 4, p. 1942–1948. https://doi.org/10.1109/ICNN.1995.488968
- 47. Poli R, Kennedy J, Blackwell T. Particle swarm optimization. Swarm Intelligence. 2007;1(1):33–57.
- 48.
Besnard L, Shtessel YB, Landrum B. Control of a quadrotor vehicle using sliding mode disturbance observer. In: 2007 American Control Conference. IEEE; 2007. p. 5230–5235. https://doi.org/10.2514/6.2007-6316