Nomenclature
Symbols
- ${A_{lon}},\;{B_{lon}}$
-
Longitudinal flight dynamics state and control matrices of the UAS-S4
- ${A_{lat}},\;{B_{lat}}$
-
Lateral flight dynamics state and control matrices of the UAS-S4
- ${A_i},\;{B_i}$
-
State and control matrices of the UAS-S4 Takagi-Sugeno fuzzy model
- ${A_r},\;{B_r}$
-
State and control matrices of the reference model
- $d\left( {X,t} \right)$
-
Bounded external disturbance
- $E$
-
Tracking error
- ${G_u},\;{G_w},{H_u},{H_w},{M_u},{M_w},{M_q}$
-
Longitudinal state matrix dimensional stability derivatives
- ${G_\delta },{H_\delta },{M_\delta }\;$
-
Longitudinal control matrix dimensional stability derivatives
- ${K_i}_{1 \times n}$ , ${Z_i}$
-
Takagi-Sugeno fuzzy logic controller gains
- ${k_i}_{1 \times n}$ , ${z_i}$
-
Desired fuzzy logic controller gains based on the reference model
- $p$
-
Roll rate
- $q$
-
Pitch rate
- ${\mathcal{Q}},R$
-
Linear Quadratic Regulator cost function weights
- $\eta $
-
Yaw rate
- $u$
-
Axial velocity
- $v$
-
Side velocity
- $V$
-
Lyapunov function
- $w$
-
Vertical velocity
- $X$
-
The UAS-S4 state variables vector
- ${X_r}$
-
Reference model state variables vector
- ${Y_v},\;{Y_p},\;{Y_r},\;{L_v},\;{L_p},\;{L_r},\;{N_v},\;{N_p},\;{N_r}$
-
Lateral state matric dimensional stability derivatives
- ${Y_\delta },{L_\delta },{N_\delta }$
-
Lateral control matric dimensional stability derivatives
Greek letters
- $\theta $
-
Pitch angle
- $\varphi $
-
Roll angle
- $\delta $
-
Control input vector
- ${\delta_a}$
-
Aileron angle
- ${\delta_e}$
-
Elevator angle
- ${\delta_r}$
-
Rudder angle
- ${\phi_i}$
-
Fuzzy rule activator
- ${\rm{{\rm K}}}$
-
Linear Quadratic Regulator gain
- ${\rm{\Gamma }}_j^i$
-
Membership function’s collected grades in fuzzy subsystems
- ${\gamma_1},{\gamma_2}$
-
Constant weights of the Lyapunov function
- ${\epsilon_{{A_i}}},\;{\epsilon_{{B_i}}}$
-
UAS-S4 model uncertainties
Abbreviation
- FDM
-
Flight Dynamics Model
- FLM
-
Fuzzy Logic Model
- FLC
-
Fuzzy Logic Control
- LQR
-
Linear Quadratic Regulator
- RAFLC
-
Robust Adaptive Fuzzy Logic Control
- SATE
-
Sum of Absolute Tracking Errors
- T-S FL
-
Takagi-Sugeno Fuzzy Logic
- UAV
-
Unmanned Aerial Vehicles
1.0 Introduction
Unmanned Aerial Vehicles (UAVs) are remotely controlled aircraft designed to perform specific tasks. Due to the fast-growing demand for UAVs aimed at a variety of applications, the design of UAVs has remained a dynamic research field [Reference Cir1]. In most cases, UAVs have been produced for military and disaster relief purposes, as well as for surveillance and reconnaissance [Reference Watts, Ambrosia and Hinkley2]. The UAS-S4 Ehecatl is such an UAV, designed and manufactured by the Hydra Technologies company in Mexico to perform military and civilian surveillance [Reference Kuitche and Botez3].
Critical UAV systems are equipped with accurate flight dynamics controllers [Reference Chen, Wang and Li4]. Designing an efficient controller requires an accurate flight dynamics model [Reference Tuzcu, Marzocca, Cestino, Romeo and Frulla5]. In fact, the access to the flight dynamics model enhances our ability to evaluate the controller performance in the early phases of the UAV development instead of relying mainly on flight test phases, which dramatically improves flight safety while reducing both costs and time [Reference Yu, Guo, Zhang and Jiang6]. The present work seeks to design a fully functional controller for the UAS-S4 based on its flight dynamics model. In this context, the model refers to the mathematical representation of the UAS-S4 flight dynamics system, which is basically used for its better understanding, prediction and control.
Since fixed-wing UAS-S4s have the minimum number of required control surfaces, only a few actuators should provide a safe and reliable flight. While utilising a fewer number of actuators results in a simpler UAV flight dynamics model, flight stability may become more affected in the presence of uncertainties [Reference Borello, Cestino and Frulla7]. These uncertainties may be external disturbances (dues to environmental conditions) [Reference Ghommam, Saad, Mnif and Zhu8], unknown controller parameters (affected by actuator and sensor imperfections) [Reference Cao and Hovakimyan9], and model imperfections (dues to model approximation and to experimental errors) [Reference Bucolo, Buscarino, Famoso, Fortuna and Frasca10]. Additionally, following changes in flight conditions, the flight dynamics behave nonlinearly [Reference Wang and Stengel11]. In order to provide stable flight, it is essential to obtain an accurate mathematical flight dynamics model for the UAS-S4, and then to design an efficient controller that can consider flight dynamics nonlinearities and uncertainties.
Basically, any UAV flight dynamics model depends on its geometrical data, aerodynamic performance estimation, onboard actuators and sensors model, controller model, signal processing, and environmental functioning conditions [Reference Stengel12]. By conducting flight tests, the model parameters can be determined. The interpretation of UAV propulsion and actuation systems in terms of its mass and inertia are the essential requirements for obtaining an accurate UAV model. To that end, both linear and nonlinear representations of aircraft models are shown in [Reference Etkin and Reid13]. When obtaining an accurate flight dynamics model is possible, a model-based controller will be highly successful in performing the intended tasks [Reference Brosilow and Joseph14]. Thanks to the equipment available at our LARCASE (The Active Control, Avionics and Aeroservoelasticity Research Laboratory), including the UAS-S4, the Price-Païdoussis subsonic blow down wind tunnel, and the tow Research Aircraft Flight Simulators (RAFS) level-D for the [R]-too and Cessna Citation X [Reference Botez15], the accurate modeling of UAS-S4 flight dynamics is possible. Thus, the model-based control approach can be used to design the desired UAS-S4 controller.
From the classical control theory aspect, the PID approach is known as the generic and standard industrial control law [Reference Amoroso, Liverani, Francia and Ceruti16]. Basically, this controller operates via the feedback mechanism with the objective of reducing the stabilisation and tracking error by modifying its signal. Although the PID technique can stabilise UAS-S4 flight dynamics without needing complex calculations for tuning the corresponding controller gains [Reference Kuitche and Botez3], performing the stabilisation tasks requires major control signal efforts. The need of such a controller that gives the desired output while considering a cost function led us at our LARCASE to investigate the LQR approach. The LQR methodology controls the state variables by using an optimal state-feedback law computed while minimising a fine-tuned energy-like cost function [Reference Minchala-Avila, Garza-Castañón, Vargas-Martínez and Zhang17]. This method showed high efficiency when it was utilised for our UAS-S4 flight dynamics control [Reference Yañez-Badillo, Kuitche and Botez18]. However, state variables estimation decreases the LQR’s effectiveness, which worsens with increasing distance from the equilibrium point [Reference Hashemi, Menhaj and Amani19]. With respect to the designed PID and LQR controllers for our UAS-S4, we need to design an efficient flight dynamics controller that can solve challenges including, parametric and nonparametric uncertainties while flight dynamics behaves nonlinearly.
A control strategy is expected to be designed, such that it could work very well despite uncertainties [Reference Lungu, Lungu and Grigorie20]. These issues led us to choose the Fuzzy Logic Control (FLC) method, which has proven its ability to handle nonlinearities in a broad range of operation [Reference Grigorie and Botez21]. Fuzzy Logic can provide a nonlinear model constructed by the soft association of several local linear models, while reduces computational complexity for the controller in real time operations. Then, a Fuzzy Logic Controller can be designed based on the provided Fuzzy Logic Model (FLM). Where, the classical feedback control technique aimed at flight dynamics stabilisation and tracking can be employed to control each local model. The designed Fuzzy Logic Controller (FLC) can be developed into the Adaptive FLC that can solve uncertainties due to unknown controller parameters (affected by actuator and sensor imperfections) [Reference Cho, Seo and Lee22].
The objective of this article is the adaptive fuzzy methodology reconfiguration aimed at UAVs flight dynamics control for a wide range of uncertainties that may be caused by unknown controller’s parameters. The novelty of this study is to modify the adaptive laws in order to make them robust against external disturbances (e.g., wind turbulence, wind shear, wind gust) or model imperfections (dues to fuzzification and defuzzification process errors), which were not considered in [Reference Doyle, Francis and Tannenbaum44]. Moreover, a general Theorem, followed by its stability proof is given to be useful for flight dynamics control of a variety of UAVs.
This paper is arranged in five sections. Following Section 1 on Introduction, the UAS-S4 flight dynamics model and its fuzzy logic representation are stated in Section 2. The fuzzy controller developed for the desired reference model is described, and then its robustness and adaptive aspects are developed in Section 3. Section 4 presents the simulation results and their numerical analysis. The research contributions and achievements are summarised in Section 5, and they are followed by an outline of proposed future works.
2.0 UAS-S4 flight dynamics modeling
The first essential step towards the design of an efficient controller for a flight dynamics system is the calculation of an appropriate model that accurately expresses the system dynamics behaviour. In this way, the UAS-S4 is considered as the case study which is equipped with elevators, ailerons and rudders that are controlling its loads through the pitch, roll and yaw axes. Figure 1 shows Hydra Technologies UAS-S4 Ehecatl, and Table 1 lists its specifications.
For an UAV that flies in a broad operating range, a vast number of internal and external factors could affect its flight dynamics behaviour. To obtain an accurate model for the design of an efficient controller, the flight dynamics data was mapped in a Mach-altitude flight envelope. A scheduled model was provided to represent the flight envelope containing nodes associated to the flight dynamics trim models. For each node, the flight dynamics model nonlinearities and parametric uncertainties were reduced.
The model in charge of each node was mathematically represented using differential equations with respect to the time-varying mass, and then linear models were designed around several equilibrium points. The controller was allocated to all nodes, in which a time-varying mass existed. Figure 2 depicts step-by-step procedure followed to reach the research objective.
Firstly, the flight envelope schedules the UAS-S4 flight dynamics model for nine altitudes and four speeds. Then, the nonlinear model considering time-varying mass is linearised around several equilibrium points. Linearised models apply to the defined membership functions in order to obtain the UAS-S4 Fuzzy Logic Model (FLM). Next, the Fuzzy Logic Controller (FLC) computes the control signal based on the provided UAS-S4 FLM. Finally, the desired and controlled flight dynamics values are compared, and the error is used by the adaptation block for adjusting FLC gains. The UAS-S4 flight dynamics model and its controller design are explained in details in the following sections.
2.1 UAS-S4 linear local models
By considering the aircraft differential equations of motion [Reference Caughey23], UAS-S4 state variables can be linearly modeled about its several equilibrium points. The UAS control problem can be solved for both its lateral and longitudinal motions. In this paper, the state variables of the UAS-S4 both lateral and longitudinal motions are controlled.
The state variables of the longitudinal flight dynamics are represented by ${X_{lon}} = {\left[ {u\quad w\quad q\quad \theta } \right]^T}$ , with the axial velocity $u$ , vertical velocity $\;w$ , pitch rate $q$ , and pitch angle $\theta $ while the control input is ${\delta_{lon}} = {\left[ {\begin{array}{cccccc}{{\delta_e}}\quad {{\delta_T}}\end{array}} \right]^T}$ . Even though the control vector is formed by the elevator deflection ${\delta_e}$ and thrust ${\delta_T}$ , the former plays the key role for the pitch control. The lateral flight dynamics state variables represented by ${X_{lat}} = {\left[ {v\quad p\quad \eta\quad \varphi } \right]^T}$ , with the side velocity $v$ , roll rate $p$ , yaw rate $\eta $ , and roll angle $\varphi $ . Based on the aileron and ruder deflections, ${\delta_{lat}} = {\left[ {\begin{array}{cccccc}{{\delta_a}}\quad {{\delta_r}}\end{array}} \right]^T}\;$ is in charge of lateral controls input.
Knowing that the linearised state-space representation of the model around an equilibrium pointis [Reference Nelson24]:
where the longitudinal state-space matrices are:
and the lateral state-space matrices are:
where ${G_u},\;{G_w},{H_u},{H_w},{M_u},{M_w},{M_q}\;$ are the UAS-S4 longitudinal state matric dimensional stability derivatives, and ${G_\delta },{H_\delta },{M_\delta }\;$ are its longitudinal control matric dimensional stability derivatives. In addition, ${Y_v},\;{Y_p},\;{Y_r},\;{L_v},\;{L_p},\;{L_r},\;{N_v},\;{N_p},\;{N_r}$ are the UAS-S4 lateral state matric dimensional stability derivatives, and $\;{Y_\delta },{L_\delta },{N_\delta }$ are its lateral control matric dimensional stability derivatives.
In order to obtain the UAS-S4 state-space matrices’ elements, it is needed to compute the dimensional aerodynamic coefficients and their derivatives. While several research projects on aircraft modeling have been conducted at the LARCASE [Reference Botez, Hamel, Ghazi, Boughari, Theel and Mendoza25–Reference Bardela and Botez27], the most comprehensive study on the UAS-S4 modeling was detailed in [Reference Kuitche and Botez3]. The UAS-S4 model was obtained at the LARCASE using four sub-models representatives of aerodynamics, actuator, propulsion, and mass and inertia.
The first sub-model (aerodynamics) was set up according to the Fderivatives in-house code; this code was based on new aerodynamics methodologies added to DATCOM [Reference Anton, Botez and Popescu28]. The second sub-model (propulsion) was built using a two-stroke engine integration model relying on the operation of an internal combustion engine (Otto Cycle), and on the propeller analysis (Blade Element Theory) [Reference Kuitche, Botez, Viso, Maunand and Moyao29, Reference Romeo, Cestino, Pacino, Borello and Correa30]. Raymer and DATCOM techniques were used to implement the third sub-model (mass and inertia) [Reference Tondji and Botez31]. Finally, the fourth sub-model (a control surface actuation system) was designed using the servomotors’ characteristics, and the final UAS-S4 model was obtained by the sub-models integration [Reference Kuitche and Botez3].
In this way, the UAS-S4 flight dynamics related to both longitudinal and lateral motions was represented using several linear state-space models. Each state-space model expresses the linearised state variables about a specific equilibrium point corresponding to a certain range of altitudes and speeds. However, by increasing the operational range about an equilibrium point, the modeling error due to the linearisation also increases. In order to enhance the models’ accuracy, several equilibrium points can be considered, and consequently, several local linear models can be better fitted into the actual flight dynamics model. Therefore, a fuzzy logic approach is utilised for the UAS-S4 modeling.
2.2 UAS-S4 Fuzzy Logic Model
Basically, an aircraft nonlinear Flight Dynamics Model (FDM) can be represented through its affine system formulation [Reference Lin32] by the equation $ \dot{X} = \mathbb{F}(X) + \mathbb{G}(X) \delta $ , where the control input vector $\delta $ is adjusting the state vector variables $X$ using $\mathbb{F}: \mathbb{R}^{n} \rightarrow \mathbb{R}^{n} $ and $\mathbb{G}: \mathbb{R}^{n} \rightarrow \mathbb{R}^{n} $ functions, that are unknown. A simple nonlinear FDM was found to be more efficient than a complex nonlinear system for the design of a model-based controller, which was our main objective. The higher efficiency of the simple nonlinear FDM was due to its reduced computational complexity, while providing fast control signal calculations in real-time operations [Reference Ying33]. Therefore, the fuzzy logic approach was chosen, as it provided this procedure for approximating affine nonlinear systems [Reference Zeng, Keane and Wang34].
Fuzzy logic offers the type of models that can be used to support the impression of partial truths, where the truth concept may range between completely true and entirely false [Reference Zadeh35]. Fuzzy logic provides a tool for assembling several local linear models, relying on membership functions, with the objective of approximating a nonlinear model. The Takagi-Sugeno Fuzzy Logic modeling method is known as a practical and user-friendly technique for modeling real physical systems [Reference Takagi and Sugeno36] and was chosen in this study.
The Takagi-Sugeno Fuzzy Logic Model (T-S FLM) consists of a set of models that have been locally linearised about their equilibrium points. Based on the expert-defined fuzzy rules in Equation (4), the association of local models can approximate the actual nonlinear continuous-time flight dynamics model. According to the T-S procedure for generating rules, the $i$ th rule of the fuzzy model is defined as the following [Reference Takagi and Sugeno36].
where the state variables vector $X(t) \in {R^n}$ is controlled by the input $\delta (t) \in R$ for a $j$ number of defined rules. The state-space matrices for the UAS-S4 model should then be converted into their controllable Canonical form, as shown in Equation. (5).
The fuzzy logic model representation based on the first-order models relying on $j$ rules is [Reference Takagi and Sugeno36]:
It should be mentioned that ${\phi_i}(t) = \prod\nolimits_{h = 1}^n \Gamma_h^i\left( {X(t)} \right)$ activates the $i$ th rule by considering the collected grades $\Gamma_h^i\left( {X(t)} \right)$ that are associated with the membership of $X(t)$ in $\Gamma_h^i$ . An appropriate algorithm is further designed for flight dynamics control by utilising the fuzzy model presented in this section.
3.0 Flight dynamics control
Having effective control over a UAV’s flight dynamics would allow efficient flights in terms of their costs and safety. This section first defines the desired reference model for the chosen model-based control strategy by utilising the LQR controller that performed very well under ideal conditions for the UAS-S4 [Reference Yañez-Badillo, Kuitche and Botez18]. The controlled model specifications (using the LQR methodology) about the equilibrium point are considered as the reference specifications for the controlled model using the Robust Adaptive Fuzzy Logic Control (RAFLC) methodology.
3.1 Reference model
Basically, a reference model should define the desirable response of the controlled system to the input command. The design of the reference model is one of the basic aspects of an adaptive control strategy. In addition to offering performance index values (whether for frequency-domain or time-domain characteristics), the reference model should also satisfy its constraints, such as its relative degree and order.
According to the above-mentioned concerns regarding the reference model definition, the desired reference model specifications are determined using the Linear Quadratic Regulator (LQR) procedure applied around the equilibrium point. An LQR controls the state variables using an optimal state-feedback law, that is computed while minimiSing a fine-tuned cost function [Reference Boughari and Botez37]. The design of an LQR is based on the linear state-space model representation, as given in Equation (1). The LQR algorithm calculates the control signal while minimising the following energy-based cost function:
where $Q$ and $R$ are the weight matrices (positive-semi-definite or positive-definite), that clarify the importance of cost function related to the state vector and the control vector, respectively.
Consequently, the LQR control law is:
Following the state feedback gain ${\rm{{\rm K}}}$ and state variables vector $X$ values, the LQR procedure stabilises the flight dynamics of the closed-loop model with respect to the state-space variables usingEquation (9):
The feedback gain ${\rm{{\rm K}}}$ is computed by:
where matrix ${\mathcal{P}}$ is obtained by solving the following algebraic Riccati equation:
Next, the control block of the UAS-S4 model needs to be designed by taking into account the controlled reference model. The Fuzzy Logic Control (FLC) approach is employed in order to solve the challenge of model nonlinearities, as well as to outperform linear controllers.
3.2. Fuzzy Logic Controller (FLC)
Over the past two decades, the use of fuzzy logic for systems control has been developed for a variety of industrial applications. In most comparison studies, the FLC outperforms classical controllers in solving the challenges of nonlinearities, mathematical complexities, and in uncertainties removal [Reference Lin, Zhou, Lu, Wang and Yi38–Reference Radhakrishnan and Swarup40]. In fact, FLC allowed obtaining accurate inputs from approximate inputs through an intuitive converting process [Reference Babaei, Mortazavi and Moradi39].
Basically, the FLC implementation is done in three fundamental steps: fuzzification, fuzzy interface, and defuzzification [Reference Mehrjerdi, Saad and Ghommam41]. The fuzzification block converts crisp data into fuzzy data using proper membership functions. The prepared data is then fed to the Fuzzy Inference System (FIS), which processes the fuzzy data and performs the control tasks according to the IF-THEN rules. Finally, the computed fuzzy control signal is converted into its real signal values through the defuzzification block. The FLC signal is applied to the UAS-S4 flight dynamics, which is modeled using FLM. This control signal is computed as function of the error (the difference between the measured and the desired flight dynamics values). Figure 3 shows the concept of FLC utilised in the closed-loop architecture in charge of the UAS-S4 flight dynamics.
Regarding the Takagi-Sugeno Fuzzy Logic Model (T-S FLM) described in subsection 2.2, the UAS-S4 FLM should be controlled by use of a compatible FLC. Hence, the T-S Fuzzy Logic Controller (T-S FLC) is needed to be designed.
3.3. T-S Fuzzy Logic Controller
Takagi-Sugeno Fuzzy Logic Control (T-S FLC) method can manage nonlinearities and time-varying parameters while avoiding control algorithm complexity [Reference Tseng, Chen and Uang42]. T-S FLC proved its efficiency on nonlinear systems in terms of state variables regulation and reference model tracking [Reference Kamalasadan and Ghandakly43]. The T-S FLC is structured based on the classical feedback compensator theory [Reference Doyle, Francis and Tannenbaum44], that is established for each local model. The rule-based control law can be mathematically represented by Equation (12) [Reference Takagi and Sugeno36].
where the state variables are controlled by $\delta (t)$ , and rely on the reference signal $r(t)\;$ and adjustable gains denoted by ${K_i}_{1 \times n}$ and ${Z_i}_{1 \times 1}$ .
The T-S FLC output is given by Equation (13):
By considering $\acute{\phi}_{i}(t) = \prod_{h=1}^{n} \acute{\Gamma}_h^{i} (X(t)) $ , which activates the $i^{\text{th}}$ rule of the fuzzy controller based on the collected grades $\acute{\Gamma}_h^{i}(X(t))$ associated with the membership of $X(t)$ in $\acute{\Gamma}_h^{i}$ . With the aim of obtaining a zero-value tracking error $\acute{\phi}_i(t) = \phi_i(t)|Z_i^{-1}|$ , should be determined in order to formulate Lyapunov function for the system to become asymptotically stable; when the gain of the reference signal value was 1, the controller could fires the proper rule with the same collected grade in the fuzzy model.
The T-S control law can be reproduced, as shown in Equation (14):
Even though the FLC handles nonlinearities, it is affected by the adverse effects of parameters uncertainties. Since the concept of adjustable gains is supposed to overcome these problems, the modified Adaptive Fuzzy Logic Controller (AFLC) is employed, as it relies on adjustable gains. Additionally, we consider the other two main sources of uncertainties, namely external disturbance, and model imperfection. The robust adaptive configuration of the T-S FLC is our solution.
3.4. Adaptive T-S Fuzzy Logic Controller
In Control Systems Engineering, uncertainty is an issue that may appear due to a variety of reasons, and it can adversely affect controller performance. Uncertainty presence may reduce controller robustness, and may lead to systems dynamics instabilities. Therefore, an algorithm should control the nonlinear flight dynamics model while remaining efficient in the presence of uncertainties. To fulfill this objective, a reference model is defined by applying the T-S FLC. Then, the errors are measured by subtracting the UAS-S4 state variables values from the reference model’s state variables values [Reference Cho, Seo and Lee22]. Finally, using a Lyapunov function (which relies on the measured error) for guaranteeing the flight dynamics asymptotic stability, the adaptation laws for gain tuning are calculated. Equation (15) defines the reference model containing the desired state variables, as follows:
If ${k_i}_{1 \times n}$ and ${z_i}_{1 \times 1}$ are assumed to be the gains of the desired compensator corresponding to each fuzzy rule, which can regulate the closed-loop response, such that the UAS-S4 state variables exactly follow the reference model state variables, then ${A_r} = {A_i} - {B_i}{k_i}$ and ${B_r} = {B_i}{z_i}$ need to be satisfied. By rearrangingthese last formulations as ${A_i} = {A_r} + {B_i}{k_i}$ and ${B_r} = {B_i}{z_{}}$ , and then, by substituting them into Equation (6), the aircraft’s T-S fuzzy logic representation using the reference model is given in Equation (16).
The error is defined as $E(t) = X(t) - {X_r}(t)$ . This error is further obtained by subtracting Equation (16) from Equation (15). Therefore, the next Equation (17) represents this error.
By replying Equation (14) into Equation (17), the error can be obtained using next Equation (18):
In order to converge the error to zero, the following Lyapunov function for the stabilisation analysis and reference signal tracking was employed:
where $P = {P^T} \gt 0$ is positive-definite matrices and ${A_r}$ stability assumption is guaranteed by use of $A_{{r_i}}^TP + PA_{{r_i}} \lt - Q_{{i}} $ for all matrices $Q_{{i}} = Q_i^T \gt 0$ . In addition, ${\gamma_1}$ and ${\gamma_2}$ are positive constant parameters that are used to finely tune the gains. The gains of the fuzzy controller in Equation (13) can be adjusted via the following adaptation laws (based on FLC gains and their derivatives), obtained by solvingEquation (19) [Reference Cho, Seo and Lee22].
The stability theorem of adaptive gains is given in [Reference Cho, Seo and Lee22]. Uncertainties dues to the unknown controller’s parameters could affect the adaptive gain ${Z_i}$ , and may approach it to zero value. Since adaptive gain ${Z_i}$ appears in the denominator of Equation (20), in order to guarantee the model stability, the adaptation laws should be modified in cases when the denominator approaches to zero. Therefore, the modified tuning law for an adaptive fuzzy controller is represented in Equation (21) [Reference Hashemi, Botez and Grigorie45]:
With respect to the stability proof given in [Reference Cho, Seo and Lee22], by assuming a uniformly bounded reference input while analysing the stable reference model, the control law $(K_{i}, Z_{i}, \acute{\phi}_i)$ and tracking error $E$ were guaranteed bounded for all $j\;$ fuzzy logic rules. The convergence of the reference model was ensured, such that $lim_{t \to \infty } {E_j}(t) = 0$ , as the tracking error $E$ converges to zero. This assumption is clarified in the mathematical proof of the general theorem formulated for the designed robust adaptive fuzzy logic laws after Equation (26). Although the presented Adaptive Fuzzy Logic Controller (AFLC) can control nonlinear flight dynamics in the presence of uncertainties, that are dues to unknown controller’s parameters, it remains sensitive against other sources of uncertainties. Model imperfection and external disturbances are the two main causes of uncertainties that adversely affect controller performance, and both of them can be solved using robust control theory.
3.5 Robust Adaptive T-S Fuzzy Logic Controller
Robust control is a static approach that deals explicitly with uncertain parameters and disturbances. In other words, it is utilised to guarantee stability and to obtain robust performance while taking into account disturbances and modeling errors (both of which are assumed to be bounded) [Reference Chabir, Boukhnifer, Bouteraa, Chaibet and Ghommam46].
The uncertainties dues to external disturbances, such as wind shear, gust, and turbulence can be considered mathematically as bounded functions $d\left( {X,t} \right)$ , in which ${D_{{{n \times 1}}}} = {\left[ {0\;\;0\; \ldots 0\;\;1} \right]^T}$ .
Additionally, even if an aircraft is modeled by a skilled expert, relying on perfect aircraft data, uncertainties in modeling may be dues to other causes:
-
– Time-varying parameters, where a fixed controller can not always stabilise its state variables
-
– Ignoring high-order dynamics for the nominal model simplification
-
– Nonlinearities, where systems contain nonlinear dynamics, and models are represented approximately (such as our aircraft nonlinear dynamics, which is approximated using Fuzzy Logic modeling)
Eventually, uncertainties associated with modeling errors of system dynamics can be added mathematically into the state-space matrices of a T-S fuzzy model, as shown in Equation (23):
where the errors are bounded, such as $\|{\epsilon_A}_{i}\|_{\infty} \lt \varepsilon$ and $\|{\epsilon_{B}}_{i}\|_{\infty} \lt \varepsilon$ for $i = 1, \ldots ,j$ .
Equation (23) can be written under the following form:
and then by considering the uncertainties defined as $f(\epsilon,d) = \epsilon(X,\delta) + Dd(X,t)$ the model would be:
Following a procedure for computing adaptive gains similar to the ones used in the previous subsection, and based on a robust control strategy [Reference Dullerud and Paganini47], the modified adaptation laws are:
Theorem: Considering a UAV flight dynamics model represented by Equation (25); its desired reference flight dynamics model is given in Equation (15) (which respects $A_{{r_i}}^TP + PA_{{r_i}} \lt - Q_{{i}} $ Inequality), in which the control function is represented by Equation (13), which is tuned by the robust adaptive laws, shown in Equation (26). By assuming uniformly bounded reference input and stable reference model, signals corresponding to the control law $(K_{i},Z_{i},\acute{\phi}_i)$ and ${E_j}$ are guaranteed to be bounded for all fuzzy rules. The reference-model tracking convergence is ensured, so that $lim_{t \to \infty } {E_j}(t) = 0$ , as the tracking error $E$ converges to zero.
Proof. The stability analysis is done based on the designed adaptive laws, as seen in Equations (20) and (21), by use of the Lyapunov function, described in Equation (19). The conditions $\left| {{Z_i}} \right| \gt {Z_i}_0\;\;{\rm{or}}\;\;{Z_i} = {Z_i}_0\;\;{\rm{and}}\;{w_i}{\rm{\;sign}}\!\left( {{Z_i}} \right) \lt 0$ were considered, and $\dot V = - E_j^TQ{E_j}$ was obtained.
In the condition expressed by ${Z_i} = {Z_i}_0$ , when the Lyapunov function is represented with Equation (19), its time derivative is given by:
As $\left| {{z_i}} \right| \gt {Z_0},\;$ so that $\left( {z_i^{ - 1} - Z_0^{ - 1}} \right)sign\!\left( {z_i^{ - 1}} \right) \lt 0$ , therefore:
which means that $\dot V \lt 0$ . Hence, for both conditions shown in Equation (21):
it obtains:
Therefore:
while relying on the Barbalat’s lemma, $lim_{t \to \infty } {E_j}(t) = 0.$
Then, by considering that the adaptive laws contain a robust term represented by Equation (26) in the conditions expressed by $\;\left| {{Z_i}} \right| \gt {Z_i}_0\;\;{\rm{or}}\;\;{Z_i} = {Z_i}_0\;\;{\rm{and}}\;{w_i}{\rm{\;sign}}\!\left( {{Z_i}} \right) \lt 0$ , the Lyapunov function is expressed by Equation (19), therefore, its time derivative becomes:
We can determine, so that $6{\lambda_{max}}(P)\varepsilon \lt {\lambda_{min}}(Q)$ . Therefore:
If we consider that:
where:
and
Therefore, $V \le \dfrac{\beta }{\alpha }$ causes exponentially convergence of the Lyapunov function, and feasible stable region in order to guarantee the flight dynamics stability is:
In other words, adaptive gains guarantee the flight dynamics stability, as long as the amount of bounded uncertainties respect the threshold (the border of Equation (36) as the feasible stable region). Additionally, the leakage factor $\vartheta $ in the robust term should be carefully tuned based on a trade-off; a larger value for $\vartheta $ improves the controller robustness, while a smaller value provides more accurate reference model state variables tracking [Reference Blažič, Matko and Škrjanc48]. The mechanism of our designed T-S-based Robust Adaptive Fuzzy Logic Controller (RAFLC) block diagram is depicted in Fig. 4.
4.0 Results
The effectiveness of the designed RAFL controller is evaluated in terms of UAS-S4 state variables stabilisation and reference model state variables tracking. The efficiency of adaptation laws can be assessed by the convergence of the reference model’s state variables tracking error. The designed RAFL controller was utilised for all trim conditions and showed very good servo-accuracy performance. The numerical results corresponding to several trim conditions were utilised to demonstrate the controller’s functioning in details. By assuming that the aircraft is in the trim condition at the $speed = 45\;m/s$ , $altitude = 6,100\;m$ , and its mass is varying in time between $53{\rm{\;kg}}$ and $55\;kg$ , the trim for the local models of the UAS-S4 are obtained through the following two Fuzzy Logic rules:
Knowing that, the UAS-S4 Fuzzy model was designed using 216 local FDMs. If a reference model was not employed, we had to calculate the membership functions using state variables. But, since we first designed the desired reference model, and the UAS-S4 FDM was supposed to track the reference model, we utilised the tracking error for calculating membership functions (which were used for all trim conditions). Hence, we defined the membership functions such that:
The corresponding longitudinal and lateral state-space matrices are:
and the reference model state-space matrices for longitudinal and lateral flight dynamics are expressed by:
To analyse the designed controller effectiveness, the convergence of state variables (flight dynamics) for the reference model and controlled UAS-S4 model are evaluated during the flight dynamics stabilisation. Regarding the initial state variables vectors ${X_{{0}}} = {\left[ {0\;\;0\;\;0\;\;0.1} \right]^T}$ and ${X_r}_{{0}} = {\left[ {0\;\;0\;\;0\;\;0.08} \right]^T}$ , Fig. 5 depicts the Robust Adaptive Fuzzy Logic Controller (RAFLC) performance in terms of pitch angle, pitch rate, roll angle and yaw rate stabilisation while tracking those of the reference model, with respect to the control surfaces angles deflection limits ( $ - 20 \lt {\delta_e} \lt 15,\;\; - 40 \lt {\delta_a} \lt 40,\;\;and - 30 \lt {\delta_r} \lt 30\;$ ).
For the longitudinal flight dynamics study, Fig. 5(a) and 5(c) show that the RAFL controller can stabilise the UAS-S4 pitch angle and the pitch rate, respectively. Figure 5(b) shows the elevator deflection during the pitch angle stabilisation. For the lateral flight dynamics study, Fig. 5(d) and 5(f) illustrate the UAS-S4 roll angle and yaw rate regulation, respectively. Figure 5(e) shows the aileron deflection during the roll angle stabilisation.
State variables stabilisation using the RAFL control mechanism was performed very well, while the UAS-S4 state variables track the reference model’s state variables as well. Tracking the reference model state variables including pitch angle, pitch rate, roll angle and yaw rate are shown in Fig. 6 during stablisation.
Figure 6(a) indicates the pitch angle and pitch rate convergence during stabilisation. Figure 6(b) depicts the convergence error, that is expressed as the difference between the controlled UAS-S4 pitch angle and its reference pitch angle. Figure 6(c) shows the roll angle and yaw rate convergence towards stabilisation. The convergence error obtained between the reference model and the controlled UAS-S4 model for the roll angle is shown in Fig. 6(d).
It should be noted that this work is a part of an ongoing research project to design a novel aerial collision avoidance system. This project will predict the future trajectory of an aircraft, and if a conflict will detected, then the system will provide a new safe trajectory for the aircraft to follow [Reference Hashemi, Botez and Grigorie49]. According to the Traffic Collision Avoidance System (TCAS) criteria [Reference Munoz, Narkawicz and Chamberlain50], our UAS-S4 has to change its altitude using its elevator in order to avoid collisions. Hence, we analysed our RAFL controller performance in terms of reference pitch angle tracking. With this aim, soft time-varying bounded signals are considered as the controller reference inputs in order to to evaluate the controller’s performance. For evaluating this model-based RAFL controller, the tracking error (the error obtained when the controlled UAS-S4 state variables track the reference model state variables) is considered as the performance index. In this approach, a valid bounded reference input excites both the UAS-S4 and its reference model state variables, and the tracking error should converge to zero. Assuming the reference state as ${\theta_{{r}}} = 1.7\cos 0.5t\;,\;$ and initial condition given as ${X_{{0}}} = {\left[ {0\;\;0\;\;0\;\;0.2} \right]^T}$ and ${X_r}_{{0}} = {\left[ {0\;\;0\;\;0\;\;0.18} \right]^T}$ , the RAFL controller performance is shown in Fig. 7, where its task is to control the UAS-S4 state variables, such that they track the reference model state variables accurately.
As seen in Fig. 7(a) and 7(b), the designed controller for UAS-S4 is able to perform its task in terms of reference model state variables tracking.
The adaptive gains effectiveness is well identified when uncertainties are considered. We therefore incorporated the uncertainties dues to the unknown controller’s parameters $(f = \;0.02\cos t)$ , and the controller performance was quantified in terms of pitch angle as state variable. Figure 8 shows the controller effectiveness in terms of the reference model state variables tracking by the controlled UAS-S4 state variables (Fig. 8(a)), and tracking errors (Fig. 8(b)). Figure 8(a) shows that, even though the RAFL controller efficiency was slightly degraded in terms of integrated tracking error (especially at the extremums), the RAFL controller could still handle the unknown controller’s parameters uncertainties. Its performance is very good accordingly the reference model’s tracking error, as shown inFig. 8(b).
In addition to the uncertainties related to the controller, model external disturbances and modeling errors are other sources of uncertainties that the controller is designed to remove their adverse effects. By assuming Fig. 9 shows the efficiency of the controller when all above-mentioned uncertainties are considered. As shown in Fig. 9, the controlled UAS-S4 state variables (pitch angle and pitch rate) followed the reference model state variables quite accurately. Although the controller performance slightly decreased compared to the case of controller’s uncertainty (Fig. 8), especially at the extremums, the robust terms $\vartheta {K_i}\left\|{E_j}\right\|$ and $\vartheta {Z_i}\left\|{E_j}\right\|$ in the adaptation laws could handle all uncertainties dues to the controller parameters, such as model external disturbances and modeling errors.
The next challenge is the controller robustness threshold required to respect a feasible region for guarantying UAS-S4 stability. Figure 10 displays a visual representation of the uncertainties surpassing the feasible region. This figure shows three separate time varying regions. The first region $\left( {0 - 20\;sec} \right)$ shows the quality of the reference model state variables tracking (by controlled UAS-S4 state variables) when it is not affected by uncertainties. The second region $\left( {20 - 42\;sec} \right)\;$ depicts the controller performance when uncertainties (unknown controller’s parameters, external disturbances and modeling errors) are considered in which $f(\epsilon,d) = 0.05\ \text{cos}\ 0.9t + 0.01\ \text{cos}\ 7t $ , and indicates that the controller does manage the bounded uncertainties after a short initial adjustment period. The third region $\left( {42 - 50{\rm{\;sec}}} \right)$ illustrates the state variables trajectories when the uncertainties surpass their boundaries, and therefore, the controller can not guarantee the stability and convergence of the UAS-S4 state variables, as the uncertainties moved the state variables outside the feasible region.
For comparison purposes, the RAFLC and AFLC approaches were chosen in the flight dynamics control algorithm. As seen on Fig. 10, when uncertainties were dues to the external disturbances and model imperfection, the RAFLC approach could track the reference state variable with less fluctuations than the AFLC approach. The average time delays for the RAFLC and AFLC approaches were 0.3 sec and 0.01 sec, respectively. In real-time operations, these average time delays are acceptable. Therefore, it can be concluded that the RAFLC outperformed the AFLC, and has provided a stabler flight in presence of uncertainties.
In addition to the above approaches for controller performance evaluation, the controller effectiveness can be assessed based on the tracking error value. In this approach, the differences between the controlled UAS-S4 and its reference model state variables are measured; they are further considered for evaluation the RAFL controller performance. In details, by considering the sampling time (0.01 seconds), the Sum of Absolute Tracking Errors (SATE) while the controlled UAS-S4 state variables are tracking the reference model state variables (during 40 seconds) characterizes the performance index.
The SATEs for two types of reference models in three trim conditions are represented on Tables 2–4. Concretely, each individual reference model was stabilised using the LQR procedures by determining both proper weighting matrices ( ${\mathcal{Q}}$ and $R$ ). The stabilised reference model by assuming ${\mathcal{Q}} = 1$ and $R = 1$ is named moderate, and the stabilised reference model by assuming ${\mathcal{Q}} = 50$ and $R = 1$ is named rigorous.
According to the recorded tracking error for both pitch angle and pitch rate, it can be inferred that there is a proportional relationship between the SATE value and the reference model rigorousness. When the reference model is tuned such that it strictly concerns fast time-domain response, tracking the reference model state variables becomes more difficult for RALF controlled UAS-S4, and consequently, the tracking accuracy decreases.
Another observation is that although the robust adaptive fuzzy controller can guide the UAS-S4 state variables to track very well the reference model state variables, its accuracy degrades when large uncertainties occur. This inference is obtained from Table 3 that lists the SATEs for different uncertainties $f(\epsilon,d)$ in three flight conditions, and for two types of reference models.
For instance, in the second flight condition (Altitude = $3000\;m$ , Speed = $39\;m/s$ , Mass = $65 - 67\;kg$ ), by considering rigorous reference model ( ${\mathcal{Q}} = 50$ and $R = 1$ ), the pitch rate SATE is 27.63 $rad/s$ for smaller uncertainties ( $0.05{\rm{\;}}\sin 0.9{\rm{t}}$ ) and the pitch rate SATE is 28.52 $rad/s$ for larger uncertainties ( $0.07{\rm{\;}}\sin 0.9{\rm{t}}$ ).
Finally, according to the RAFLC architecture, adaptation weights are assigned to the adaptive laws in order to regulate the RAFL controller gain. The SATE for different adaptation weights values are listed in Table 4.
Table 4 shows that small values for the weights of adaptation laws result in lower SATE. For instance, in the first flight condition (Altitude = $6,100\;m$ , Speed = $45\;m/s$ , Mass = $53 - 55\;kg$ ), by considering Moderate reference model ( ${\mathcal{Q}} = 1$ and $R = 1$ ), the pitch angle SATE is 26.67 $\;rad$ if the adaptation weights are small ( ${\gamma_1} = {\gamma_2} = 0.0001$ if the adaptation weights are large ( ${\gamma_1} = {\gamma_2} = 0.001$ ), and pitch angle SATE is 25.96 $rad$ if the adaptation weights are small ( ${\gamma_1} = {\gamma_2} = 0.0001$ ). However, these weights must be carefully tuned, as if they would be too-small, they could cause the UAS-S4 state variables to drift outside the feasible region.
5.0 Conclusion
A Robust Adaptive Fuzzy Logic (RAFL) flight dynamics controller was designed for Hydra Technologies UAS-S4 Ehecatl. The UAS-S4 was mathematically modeled using the Takagi-Sugeno fuzzy logic method to design its corresponding controller. Adaptive gains were assigned to the fuzzy controller to ensure that it could perform very well despite uncertainties. For the adaptive control mechanism, a reference model was defined, which was stabilised through the LQR method. The numerical results show that there is an inverse relationship between the reference model rigorousness and the RALF controller performance. When the controlled UAS-S4 state variables track the reference model state variables, the tracking errors increase if the reference model strictly determines ideal time-domain response properties, such as rise-time or settling-time. The tuneable controller gains were adjusted utilising Lyapunov-based adaptation laws, that became robust against uncertainties. The controller’s performance was evaluated in terms of reference model state variables tracking for a variety of uncertainties. In-line with the requirements for cruise conditions, the RAFL controller was able to stabilise the UAS-S4 lateral and longitudinal flight dynamics, as well as the reference model state variables; the tracking error converged to zero. In addition, Sum of Absolute Tracking Errors (SATE) results proved that the RAFL controller could handle uncertainties that were dues to the controller’s unknown parameters, modeling errors, and external disturbances. Small values for the weights of adaptation laws resulted in lower SATE. Based on numerical studies, for higher values of uncertainties, the controller performance degraded slightly; however, the controller could maintain the UAS-S4 state variables in the asymptotically stable region. The robust control algorithms showed that if the uncertainties surpass their boundaries, the controller cannot guarantee the reference model state variables’ tracking. For further studies, we recommend the RALF controller development by utilising a fuzzy logic reference model to improve the RAFLC efficiency in order to reduce reference state variables tracking error.
Acknowledgements
Special thanks are dues to the Natural Sciences and Engineering Research Council of Canada (NSERC) for the Canada Research Chair Tier 1 in Aircraft Modelling and Simulation Technologies funds. We would also like to thankMrs. Odette Lacasse and Mr. Oscar Carranza for their support at the ETS, as well as to Hydra Technologies’ team members Mr. Carlos Ruiz, Mr. Eduardo Yakin and Mr. Alvaro Gutierrez Prado in Mexico.