Abstract
To address the challenges of modeling inaccuracies, external unknown disturbances, and degraded tracking speed and precision in complex environments for fixed-wing unmanned aerial vehicles, this paper proposes a novel adaptive sliding mode controller based on a model compensation method. A high-precision compensating function observer is introduced to estimate and compensate for both model uncertainties and external disturbances in real time. To further enhance tracking performance in complex and dynamic conditions, a new composite reaching law is developed, and its gain parameters are adaptively tuned to ensure rapid control response while effectively suppressing chattering. To evaluate the control performance of the designed controller and its tracking capability in complex and dynamic environments, numerical simulations are conducted on the MATLAB/Simulink platform. Furthermore, hardware-in-the-loop experiments based on the RflySim platform are carried out for additional verification. The results demonstrate that the proposed control method effectively reduces system chattering, shortens convergence time, and enhances disturbance rejection capability.
Introduction
As an efficient and low-cost aerial platform, small fixed-wing unmanned aerial vehicles (UAVs) are widely used in civilian, military, and scientific fields. With advantages such as long endurance, high flight efficiency, and strong stability, fixed-wing UAVs are capable of performing tasks such as environmental monitoring, disaster relief, and agricultural inspection (Hu et al., 2026). However, increasingly complex mission scenarios place higher demands on the performance of their control systems. Moreover, characteristics such as underactuation, strong coupling, and nonlinearity pose significant challenges to control system design. Traditional control methods often suffer from limited precision and speed, and when combined with unmodeled dynamics and unknown disturbances, control systems face great challenges in ensuring reliable mission execution for fixed-wing UAVs.
Traditional control algorithms include proportional–integral–derivative control (Admas et al., 2024; Ziquan et al., 2021), active disturbance rejection control (Wang et al., 2024; Xu et al., 2024), adaptive control (Du et al., 2025; Hou et al., 2022), and sliding mode control (SMC) (Melkou et al., 2018; Zhang et al., 2023), among others. Among them, the SMC algorithm can overcome system uncertainties, providing strong robustness against disturbances and unmodeled dynamics, especially for nonlinear control systems. Therefore, it has been widely applied in the field of fixed-wing UAV control (Song et al., 2021; Zhang et al., 2021b). Hervas et al. (2014) proposed a sliding mode control-based fixed-wing UAV controller that ensures the flight state converges to the expected value under wind disturbances. However, conventional SMC cannot guarantee convergence in finite time. Xie (2024) proposed a fixed-wing UAV pitch angle control algorithm based on terminal sliding mode, and experimentally verified that it can still converge in finite time under external disturbances. However, terminal sliding mode can lead to singular phenomena during the control process. Zheng et al. (2023) proposed an adaptive fractional-order nonsingular terminal sliding mode controller, achieving finite-time tracking control for flying wing UAVs.
The discontinuity of SMC means that the switching characteristics of the system structure change over time, and the presence of the switching function can cause the system state to oscillate around the sliding surface. To suppress the chattering problem in SMC, in-depth research has been conducted by scholars both domestically and internationally. A combination of SMC and a low-pass filter was introduced by Cordeiro et al. (2020). The control signal was decomposed into a smooth component and a chattering component, and only the chattering component was filtered to suppress the chattering phenomenon. Guo et al. (2022b) introduced a fuzzy adaptive approach, designing a fuzzy adaptive sliding mode controller for the switching term to reduce the chattering problem in traditional SMC. An adaptive gain sliding mode control method based on adaptive dynamic programming was proposed by Zhang et al. (2021a) for fixed-wing UAVs affected by unknown disturbances. In the novel adaptive gain multivariable generalized super-twisting algorithm, two adaptive gains were adjusted through two different gain adaptation laws, resulting in effective chattering reduction. Sun et al. (2024) proposed a continuous finite-time control scheme based on an extended state observer (ESO) for vertical take-off and landing UAVs. A controller was designed based on the nonsingular fast terminal sliding mode (NFTSM) algorithm. To suppress chattering, ESO was introduced into the finite-time control scheme, decoupling it from the basic NFTSM controller. A higher-order sliding mode control strategy was employed by Mofid et al. (2022). An adaptive super-twisting terminal sliding mode control (ASTW) scheme was designed by integrating an adaptive law with a super-twisting algorithm. In this scheme, an adaptive law proportional to the sliding mode variable was included, which effectively mitigated the chattering effect.
The flight control system not only needs to improve its adaptability to the environment but also must handle its own complex dynamic model and model uncertainties. To improve the control performance of the algorithm, the design of the control method must also consider the impact of unmodeled components and unknown disturbances. A novel coordinated disturbance observer (CDO) was proposed by Huang and Chen (2022), in which multiple disturbance observers of basic form, each dependent on a designed coordination variable, were integrated. The requirement for the positive definiteness of the observer gain in individual disturbance observers was eliminated in the CDO. By applying weighted combinations of the gains of multiple smaller observers, the overall performance of the coordinated disturbance observer was significantly enhanced. A finite-time sliding mode attitude control method based on a multivariable disturbance observer was proposed by Nguyen et al. (2023). A multivariable finite-time disturbance observer was designed to ensure accurate estimation of both matched and unmatched disturbances. By incorporating a nonsingular terminal sliding mode manifold, accurate tracking of the desired attitude commands by the fixed-wing UAVs was achieved within a finite time. Furthermore, a multivariable super-twisting reaching law was introduced to ensure that the sliding variables and their derivatives converge to zero within finite time. Deng et al. (2021) proposed an improved proportional-derivative controller based on an ESO for the inner-loop attitude control of fixed-wing UAVs, which enhances the system’s robustness against both internal and external uncertainties. However, the ESO is not an integral cascade structure, only applying position or attitude information without using velocity or angular velocity information. Therefore, accuracy issues arise when observing unknown models. To address this, Qi et al. (2023) proposed a CFO, significantly improving control accuracy and achieving good results in UAV applications. A feedforward second-order was proposed by Xu and Qi (2024), in which a hyperbolic tangent function was integrated with the CFO to effectively reduce the large estimation errors typically present at the initial stage. In addition, a model compensation control (MCC) algorithm based on the CFO was developed for controlling both the longitudinal and lateral channels of a fixed-wing UAVs.
Inspired by the aforementioned literature, this paper proposes an adaptive novel nonsingular terminal sliding mode controller based on a CFO for fixed-wing UAV systems affected by unknown disturbances and modeling inaccuracies. The main contributions of this work are as follows: (1) The gain parameters of the new compound reaching law (NCRL) are adaptively designed to ensure optimal control performance under varying environmental conditions. (2) A high-precision CFO is employed to observe and compensate for external unknown disturbances and unmodeled dynamics in real time, thereby enhancing the system’s disturbance rejection capability. (3) For fixed-wing UAV systems, an innovative integration of adaptive new compound reaching law (ANCRL) and CFO is proposed to improve control accuracy and further strengthen robustness against external disturbances.
The structure of this chapter is as follows. Section 2 introduces the modeling of small fixed-wing UAVs. Section 3 presents the design of an ANCRL mode control system for fixed-wing UAVs based on the compensation function observer. Section 4 conducts numerical simulations and hardware-in-the-loop (HIL) experiments, comparing and analyzing the tracking performance of ASTW, SMC, and ANCRL, and performing a comparative analysis between ESO-based ANCRL and CFO-based ANCRL. Section 5 provides a conclusion.
Fixed-wing UAVs modeling
The definition of the coordinate system of a small fixed-wing UAVs and the forces are shown in Figure 1.

Structure of small fixed-wing UAVs.
It follows from Sartori et al. (2021) that the 6-degree-of-freedom UAV dynamics model using the Newton–Euler formulation:
where
the simplified dynamic model of the small fixed-wing UAV is described as follows:
where
where S denotes the fixed-wing wing area,
Flight controller design
In this study, an improved SMC adaptive controller is designed for a small fixed-wing UAVs. The controller enables fast convergence of all signals of the closed-loop system while reducing chattering phenomena, allowing the attitude of the small fixed-wing UAV to track the desired trajectory faster.
Taking the pitch channel in equation (4) as an example, the control system is designed based on its dynamic expression. The pitch channel is given by:
let
Analysis of NCRL
The traditional SMC design method consists of two parts. The first step is to design a sliding surface that ensures the trajectory of the dynamic system reaches this surface. The second step involves the reaching law, which drives the system trajectory toward the sliding surface. The reaching law plays a key role in determining the quality of the system is motion phase. Therefore, the control performance of the system is directly influenced by the design of the sliding surface and the reaching law.
In order to achieve a fast convergence and reduce chattering, exponential and power functions are added to the convergence law design, while power term segmentation-based switching functions are used instead of sign functions. NCRL (Guo et al., 2022a) is developed as:
where
where ε represents the thickness of the boundary layer,
However, the control performance of the NCRL heavily depends on the accuracy of the system model, yet it fails to account for the unmodeled dynamics of fixed-wing UAVs as well as external disturbances such as gusts and strong airflow. In addition, the fixed gain parameters of the NCRL limit the controller’s ability to maintain optimal performance under varying environmental conditions.
CFO-based compensation ANCRL
Analysis of CFO
The CFO is utilized to estimate and compensate for the unknown components in the model in a timely manner. By defining
the CFO designed for the third-order expansion system is shown below:
where
where
The advantages are specifically reflected in the following three aspects. First, the CFO preserves a derivative (pure integrator chain) structure consistent with the original system dynamics. Compared with the conventional ESO, it effectively increases the system type, thereby improving steady-state accuracy. Second, the CFO fully exploits measurable system information, particularly the velocity (or angular velocity) signals, while simultaneously utilizing the error signal and its derivative, thereby enhancing dynamic tracking capability. Third, by introducing compensation terms to counteract unknown model dynamics, the CFO mitigates their influence on the error equation to a certain extent, resulting in error dynamics that can be represented as a linear system with assignable poles. Owing to the increased system type and the effective utilization of velocity information, the CFO achieves zero steady-state error for ramp and parabolic signals, which explains its performance superiority over the standard ESO.
Parameter adaptation law
To ensure that the designed controller maintains optimal control performance under different environments, an adaptive law is designed for the gain parameters in the controller. The expression of the adaptive law is given in equation (13).
where
When
When
Therefore, under the given conditions, the reaching law (8) and the adaptive law (13) ensure that the variables s and ṡ converge to the equilibrium point (0, 0).
Controller design
To construct CFO-based compensation ANCRL attitude controller, a novel nonsingular terminal sliding mode surface s is defined as follows:
where

Block diagram of controller.
Stability analysis
In this section, the stability analysis of the closed-loop system is carried out by using Lyapunov theory.
where
When
When
Therefore, it can be derived that
Simulation experiments and analysis
Numerical simulation and analysis
In this section, numerical simulations of the proposed fixed-wing UAV controller are conducted. The fast convergence and strong disturbance rejection capability of the proposed ANCRL are demonstrated through comparisons with conventional SMC and ASTW. The parameters of the fixed-wing UAV system are listed in Table 1.
Main parameters of the fixed-wing drone.
Comparative analysis of adaptive performance head
To verify the effectiveness of the proposed adaptive control law under different conditions, this paper compares the control performance of the adaptive novel compound reaching law with that of the conventional novel compound reaching law. Without considering model uncertainties or external disturbances. The expression of the controller is shown in equation (21).
The controller parameters were selected according to their roles in the controller design. Parameters related to the nonlinear sliding dynamics mainly affect the convergence rate, while those associated with the switching term influence chattering attenuation. All parameters were chosen within the stability-guaranteed region derived from the Lyapunov analysis and subsequently fine-tuned through simulations to balance convergence performance and robustness. where the parameters of the NCRL part are
The expression of the given desired signal is shown in equation (22).
the control responses to desired signals with different variation frequencies are shown in Figure 3.

Adaptive law comparison analysis under numerical simulation conditions.
Figure 3 compares the tracking performance of the NCRL and ANCRL methods. In this figure, the red curve represents the desired signal, while the other colored curves correspond to the two control algorithms. Based on the simulation results, the mean absolute error (MAE) was calculated. For NCRL, the MAE values at the three frequencies are 0.0022, 0.0035, and 0.0064, while for ANCRL, the corresponding values are 0.0021, 0.0029, and 0.0044. At frequencies of 2, 3, and 4, the tracking MAE is reduced by 5.43%, 18.69%, and 30.6%, respectively. A comparison of the MAE values indicates that the introduction of adaptive parameters significantly enhances the performance of the control algorithm in handling signals of varying frequencies.
Controller performance comparison analysis
In order to verify the control performance of the designed controllers, the control effects of three methods are compared in this section, namely, adaptive new compound reaching law, adaptive super-twisting control and sliding mode control. The control law expressions for SMC and ASTW are as follows:
where
where

Tracking effect on desired signal without interference under numerical simulation conditions.
Figure 4 compares the tracking performance of the SMC, ASTW, and ANCRL methods. In this figure, the red curve represents the desired signal, while the other colored curves correspond to the respective control algorithms. Based on the simulation results, the MAE, RMSE, overshoot, and settling time are obtained. For SMC, the MAE, RMSE, overshoot, and settling time are 0.0023, 0.0141, 25.06%, and 0.508 s, respectively. For ASTW, these values are 0.0021, 0.0160, 4.30%, and 0.313 s, respectively. For ANCRL, the corresponding results are 0.0016, 0.0140, 2.54%, and 0.226 s. From these results, it is evident that the ANCRL algorithm exhibits superior control performance in terms of both system response speed and tracking accuracy. Specifically, compared with SMC and ASTW, the overshoot of ANCRL is reduced by 89.86% and 40.93%, respectively. In addition, the settling time of ANCRL is 55.51% and 27.80% shorter than those of SMC and ASTW, respectively. Furthermore, the tracking MAE of ANCRL is improved by 28.17% and 24.38%, while the RMSE is improved by 0.94% and 15.04%, relative to the other two algorithms.
Analysis of observer observation effectiveness
In this section, a comparative simulation analysis of the observer’s observation performance is carried out. Model uncertainty and unknown perturbations are considered in the numerical simulations. Controllers were designed based on ESO and CFO respectively, and the observational performance of the observers was compared by numerical simulation. The external perturbations were designed to be added during 4 to 10 s, and the expressions for the perturbations are shown below:
The observer gain of the CFO is
Figure 5 compares the observation performance of ANCRL, ANCRL-ESO, and ANCRL-CFO. The MAE and RMSE of the three controllers are as follows: for ANCRL, the MAE and RMSE are 0.0027 and 0.0035, respectively; for ANCRL-ESO, the values are 0.0006 and 0.0008, respectively; and for ANCRL-CFO, the results are 0.0003 and 0.0003, respectively. Based on these results, it can be concluded that incorporating an observer significantly enhances the controller’s ability to handle unknown disturbances. The MAE of ANCRL-CFO is improved by 88.89% and 50% compared to ANCRL and ANCRL-ESO, respectively, while the RMSE is improved by 91.43% and 62.5%, respectively.

Pitch angle tracking response under external disturbance in numerical simulation conditions.
From the observation results of the position disturbance, it can be seen that ESO exhibits a certain delay in estimating the unknown disturbance. According to the simulation results, the MAE values of CFO and ESO are 2.29 and 4.98, respectively, while the RMSE values are 2.65 and 5.73, respectively. It can be concluded that the MAE of CFO in observing unknown disturbances is 53.94% better than that of ESO, while the RMSE is 53.72% better. These results demonstrate that ESO is a weaker observer than CFO when dealing with unknown perturbations.
Numerical simulation results demonstrate that the designed controller exhibits excellent performance in signal tracking, chattering suppression, and disturbance rejection. To further validate its effectiveness and reliability in practical hardware environments, the next section will present HIL experiments.
Experiments and analysis
This section describes the HIL testing of the control algorithm, which was implemented using the RflySim platform. RflySim is a comprehensive UAV simulation and development platform based on the Model-Based Design (MBD) methodology. A key component of this platform is the CopterSim middleware, which automatically generates code from control algorithms designed in MATLAB/Simulink and seamlessly integrates it with the PX4 open-source flight control firmware. This integration enables the algorithm to be executed on physical flight control hardware such as Pixhawk. Within this framework, a high-fidelity UAV model runs on the host computer and exchanges data in real-time with the flight control hardware using the MAVLink communication protocol. This configuration provides an effective means of validating the algorithm’s performance on actual computational hardware, ensuring both reliability and consistency throughout the transition from simulation to real-world deployment.
In the HIL experiments, the control algorithm was deployed on a PX4 V5 Nano flight controller, which is based on an STM32F7 (Cortex-M7) processor. The algorithm code was automatically generated from MATLAB/Simulink and compiled into the native PX4 firmware, enabling direct execution on the onboard microcontroller. The control loop was executed at a sampling frequency of 1000 Hz. During high-frequency testing, no task overruns or communication delays were observed. The MAVLink-based data exchange between the host computer and the flight controller satisfied real-time constraints, ensuring deterministic execution of the control algorithm throughout the HIL validation process.
This section conducts three simulation experiments based on the aforementioned platform, corresponding to the numerical simulations, and the results are presented as follows.
Figure 6 compares the tracking performance of the NCRL and ANCRL methods. Based on the simulation results, the MAE was calculated as follows: at frequencies of 0.5, 1, and 1.5, the MAE of NCRL is 0.0019, 0.0039, and 0.0063, respectively, while that of ANCRL is 0.0018, 0.0036, and 0.0055, respectively. These results indicate that the ANCRL algorithm significantly enhances tracking performance during signal processing. Specifically, compared with NCRL, the tracking MAE of ANCRL is reduced by approximately 5.26%, 7.69%, and 12.7% at frequencies of 0.5, 1 and 1.5, respectively. This demonstrates that the ANCRL algorithm achieves superior tracking accuracy and stability in high-frequency signal tracking applications.

Comparative analysis of adaptive laws under hardware in the loop experimental conditions.
Figure 7 compares the tracking performance of the ANCRL, ASTW, and SMC methods. Based on the simulation results, performance metrics including the MAE, RMSE, overshoot, and response time were calculated. The specific results are presented in Table 2.

Tracking effect on desired signal without interference under hardware in the loop experimental conditions.
Performance metrics.
Compared with ASTW and SMC, the MAE of ANCRL is reduced by 23.33% and 36.11%, respectively. Meanwhile, its RMSE decreases by 12.43% and 14.01%, the overshoot is reduced by 76.74% and 78.26%, and the response time is accelerated by 33.33% and 31.58%, respectively. In addition, the control input profiles demonstrate that the proposed ANCRL controller generates control signals with reduced chattering amplitude and lower oscillation frequency. These results demonstrate that ANCRL achieves superior tracking accuracy, enhanced stability, and a faster dynamic response, while also exhibiting favorable control input characteristics with reduced chattering and smoother actuation behavior.
Figure 8 compares the disturbance rejection performance of the ANCRL, ANCRL-ESO, and ANCRL-CFO methods. Based on the simulation results, the MAE and RMSE were calculated. The specific results are as follows: the MAE and RMSE of ANCRL are 0.0043 and 0.0049, respectively; those of ANCRL-ESO are 0.0012 and 0.0014, respectively; and those of ANCRL-CFO are 0.0007 and 0.0008, respectively. From these data, it can be seen that compared with ANCRL, the MAE and RMSE of ANCRL-CFO are reduced by approximately 83.72% and 83.67%, respectively. Compared with ANCRL-ESO, its MAE and RMSE are reduced by approximately 41.67% and 42.86%, respectively. These results clearly demonstrate that ANCRL-CFO achieves superior tracking accuracy. In addition, when analyzing observer performance, the MAE and RMSE indices of CFO are 2.72 and 3.31, respectively, while those of ESO are 4.24 and 5.09. The MAE and RMSE are reduced by 35.85% and 34.79%, respectively. This indicates that CFO also outperforms ESO in terms of observation accuracy, with smaller error indices, further confirming the overall advantage of the ANCRL-CFO method in both disturbance rejection and state observation.

Pitch angle tracking response under external disturbance in hardware in the loop experimental conditions.
Based on the above simulations and experiments, the proposed method demonstrates its effectiveness. The use of adaptive parameter design reduces the desired response time and suppresses chattering. Comparative results among SMC, ASTW, and ANCRL indicate that ANCRL not only achieves faster response speed but also improves steady-state accuracy. Experimental comparisons between ANCRL-CFO and ANCRL-ESO show that ANCRL-CFO outperforms ESO in both observation accuracy and speed under unknown disturbances.
Conclusion
This paper proposes an adaptive novel sliding mode control method for fixed-wing UAVs based on CFO. The parameters of NCRL are adaptively designed to ensure fast convergence while suppressing chattering under different environments. To address the impact of unmodeled components and unknown disturbances of fixed-wing UAVs, a CFO is introduced in the controller design to provide observational compensation, thereby enhancing the disturbance rejection capability of the controller. Future work will involve conducting outdoor flight tests based on the HIL setup to further validate the effectiveness of the proposed control algorithm.
Footnotes
Funding
The authors disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This work was supported by the National Natural Science Foundation of China under Grants 62503359 and 62303350, the Natural Science Foundation of Tianjin City under Grant 25JCQNJC00610, and the Key Program of the Natural Science Foundation of Tianjin City under Grant 25JCZDJC00650, and Hebei Natural Science Foundation under Grant F2025110005.
Declaration of conflicting interests
The authors declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Data availability statement
Data sharing is not applicable to this article as no data sets were generated or analyzed during this study.
