Volume 2023, Issue 1 6651286
Research Article
Open Access

Cascaded Control System Design for Quadrotor UAV through Relay with Embedded Integrator-Based Automatic Tuning Approach

Ayaz Ahmed Hoshu

Corresponding Author

Ayaz Ahmed Hoshu

School of Engineering, RMIT University, Melbourne, VIC 3000, Australia rmit.edu.au

Department of Electronic Engineering, Quaid-e-Awam University of Engineering, Science and Technology, Campus Larkana 77150, Pakistan quest.edu.pk

Search for more papers by this author
Ghulam E Mustafa Abro

Ghulam E Mustafa Abro

Electrical and Electronic Engineering, Universiti Teknologi PETRONAS, Seri Iskandar, 32610 Perak, Malaysia utp.edu.my

Search for more papers by this author
Musaed Alhussein

Musaed Alhussein

Department of Computer Engineering, College of Computer and Information Sciences, King Saud University, P.O. Box 51178, Riyadh 11543, Saudi Arabia ksu.edu.sa

Search for more papers by this author
Irfan Ali Tunio

Irfan Ali Tunio

Department of Electronic Engineering, Quaid-e-Awam University of Engineering, Science and Technology, Campus Larkana 77150, Pakistan quest.edu.pk

Search for more papers by this author
Khursheed Aurangzeb

Khursheed Aurangzeb

Department of Computer Engineering, College of Computer and Information Sciences, King Saud University, P.O. Box 51178, Riyadh 11543, Saudi Arabia ksu.edu.sa

Search for more papers by this author
Anwar Ali

Anwar Ali

Department of Electronic and Electrical Engineering, Faculty of Science and Engineering, Swansea University Bay Campus Swansea, UK

Search for more papers by this author
First published: 10 October 2023
Academic Editor: Shaoming He

Abstract

Due to their enormous characteristics and applicability, quadrotor unmanned aerial vehicles (UAVs) have enjoyed much popularity lately. However, designing a stable control strategy for quadrotors still remains one of the major concerns mainly due to the requirement of an accurate system model. They are naturally underactuated systems, with complex and nonlinear dynamics as well as interaxes couplings. Considering the dynamical complexities of these vehicles, one of the efficient methods is to utilize the relay feedback experiments and automatic tuning approach to tackle these issues. This paper investigates the employment of the relay with embedded integrator approach, wherein the quadrotor dynamics are estimated effectively with minimal parameters as compared to previously utilized relay with hysteresis technique. Frequency sampling filter (FSF) is further utilized for the extraction of the needful data through the signals obtained using the relay experiments, followed by the estimation of the plant dynamics. PID controllers have then been developed using the approximated quadrotor models. Which are used in the proposed cascade control structure for the quadrotor. The demonstrated results and analysis present the efficacy of designed control system technique for the quadrotor UAV.

1. Introduction

Multirotor UAVs are regarded as one of the most revolutionary inventions in the present era [1, 2]. They have enjoyed a great attention and applicability in a vast variety of applications lately [3, 4], as they offer numerous characteristics such as controllability, maneuverability, simple design, economy, and vertical take-off and landing (VTOL) capability [5, 6]. Quadrotor UAVs have turned out to be the most popular out of all the available multirotor configurations [7]. Consequently, quadrotor UAVs are extensively explored over the past three decades in order to advance them mainly in terms of configuration, modelling, and control [811]. Quadrotor UAVs are considered as an underactuated system as they offer four control inputs to control the six degrees of freedom [12]. The complex nonlinearities and interchannel couplings are also the issues that require attention when designing the control system for these rotorcrafts [5, 13]. Additionally, when operated outdoor, quadrotors are susceptible to atmospheric turbulences [14, 15]. As well, during the indoor operation, the airflow of the propellers reflected from the shelters and walls also causes the external disturbance [16]. Furthermore, when multiple multircopters operate in the closer proximity to one another, the downwash from one another also causes an impact over the flight performance. Therefore, considering these attributes of the quadrotors, design of the stable and robust control system has been considered as the most challenging task.

The cascade control structure technique is proposed in this paper to realize the control system solutions for the quadrotor UAV, wherein PID controllers have been used in the cascaded control loop. Several control strategies have been designed for the multirotor UAVs over the years, such as [1721]. PID controllers are supposed to be the most vastly utilized controllers in the quadrotor control system because of their simplified structure and ease of practical implementation [22, 23]. Due to these reasons, presently the majority of the mainstream commercial autopilot flight controllers are using PID controllers as their main control algorithm, i.e., micropilot [24], ardupilot [25], paparazzi autopilot [26], AfroFlight Naze32, and Multiwii SE V2.0. During the design of the control algorithm for the quadrotor, appropriate tuning of the parameters of respective controllers has been one of the most challenging tasks. The quadrotor dynamics are defined through a set of nonlinear equation [27]. It would be a very complex to design the controller for quadrotor through conventional methods that utilize dynamic model of the plant. Furthermore, these physical parameters of the quadrotor are usually determined with the help of certain experimentation, which in turn is supposed to be difficult and time-consuming. Also, these parameters may vary as per operating conditions [28]. Additionally, in the quadrotor’s physical model, dynamics for the sensor and actuator are often neglected. Also, the quadrotor model is mostly linearized to simplify the designing process of the controller that is performed at the cost of loss of few dynamical details [29]. Hence, taking into account, all the aforementioned hitches, the PID controllers designed through model-based design approach do not necessarily ensure the desired quadrotor control performance.

An alternate method has been proposed in this paper in which the dynamics of UAVs are estimated using response data obtained experimentally from the multirotor through relay feedback system. Relay with hysteresis mechanism is used previously for this purpose in [30, 31], wherein two parameters are required to execute the required mechanism such as hysteresis and relay amplitude. The hysteresis parameter is mainly required for the filtration of noisy signal. The relay with an embedded integrator method has been proposed in this paper. One of the major features of the relay with an integrator approach is the simplification of the identification of the dynamics that otherwise need the information of the complex and higher-order models [32]. The major theme of opting for the relay with embedded integrator approach is to make sure that the determined information of the plant is encompassed within medium and lower range of frequencies. Moreover, the effect of high-frequency measurement noise is minimized due to the presence of the embedded integrator, and the need to use a hysteresis for the noise is reduced.

FSF is used to estimate the system dynamics through the system responses obtained through the relay feedback system. Then, on the basis of the estimated system model, PID controllers have been tuned automatically through the well-established set of tuning rules proposed in [32]. The contributions of this paper are summarized as follows:
  • (1)

    Robust and stable control solution has been featured for the quadrotor UAV through the automatically tuned cascade control algorithm

  • (2)

    PID controllers have been designed through the automatic tuning approach that is based on the relay with the embedded integrator technique and system identification. Which incorporates all of the actual quadrotor dynamics that include actuators, sensor dynamics, and gyroscopics

2. Dynamic Model of Quadrotor and Control Architecture

Body-fixed and earth-fixed frames are the couple of frames referred to as references that are employed to study the quadrotor dynamics. In the earth-fixed frame, Euler angles described as roll, pitch, and yaw are denoted as η = [ϕθψ]T. Here, roll angle (ϕ) is the rotation around the x-axis, and similarly, pitch angle (θ) and yaw angle (ψ) are the rotations around the y-axis and z-axis. Then, in the body-fixed frame, the quadrotor’s angular velocity can be described as Ω = [pqr]T. Here, p, q, and r are the angular velocities of the quadrotor in the body-fixed frame for three attitude axes (roll, pitch, and yaw). Figure 1 illustrates the configuration of the quadrotor. Subsequently, the acceleration of rotation for the quadrotor’s attitude axes in the body-fixed frame can be defined by equations of motion as follows [33]:
(1)
Details are in the caption following the image
Quadrotor UAV model.
Ixx, Iyy, and Izz denote the moments of inertia for each x-, y- and z-axes. Jr and ω account for the inertia and velocity of the rotor, respectively, while Jrqω and Jrpω express the propellers’ gyro effect. Moreover, the equations above express the angular velocities of the quadrotor in the body-fixed frame, which are subsequently converted into the earth-fixed frame through
(2)
In this equation, N expresses the transformation matrix and is defined as
(3)
Moreover, thrust and drag torques of each rotor can be expressed as
(4)
where Qi and Ti are the drag and thrust of each rotor. kd and Qi account for the coefficient for thrust and drag, respectively. ωi represents the speed of rotation for each rotor. The moments for the attitude axes (roll, pitch, and yaw) are produced through the control of the thrust difference produced individually by each of the four rotors. Which are represented as τx, τy, and τz for roll, pitch, and yaw, whereas the total thrust as T. These are expressed as
(5)
The dynamics of the motor would also have an impact over the quadrotor’s, especially under turbulences. Therefore, they have also been employed in the quadrotor model and are subsequently estimated using a transfer function of first order as [32]
(6)

In this equation, εm and rwv denote the motor’s constant for time and steady-state gain, respectively.

2.1. Control System Structure

Quadrotor is termed as an underactuated system that additionally offers coupled dynamics and nonlinearities. Also, the strong coupling among multiple input-output channels is supposed to be challenging when designing the control system for the quadrotors. The controlled variables in the quadrotor system are three torques to provide angular position control, whereas the altitude control is performed through force (f). The stable and robust tracing of the desired signals such as ϕ, θ, and ψ is used to be the main objective of the quadrotor control system as well as to tackle any unwanted disturbances.

Cascaded control system using PID controllers has been proposed in this paper to feature the control solution to the aforementioned problems associated with the quadrotor. In the cascaded control structure, the multirotor system dynamics are decomposed in the several simpler and smaller subsystems. For which, a separate PID controller is tuned for each of the decomposed subsystem totally based upon the concerned subsystem dynamics. Which in turn provides the effective resolution towards the control issues of the systems, which exhibit complexity in the dynamics [34]. The attitude control system is supposed to be the heart of the quadrotor control structure as it is responsible to maintain the desired 3D orientation of the unmanned vehicle [35]. For the quadrotor cascaded control design, dynamics of the attitude system are broken down as inner loop that deals with angular rate and outer loop that deals with angular position. The proposed structure of the quadrotor cascaded attitude control system is depicted in Figure 2. In the inner loop control system, PID controllers attain the angular rate control. While in the outer loop, PD controllers are utilized to provide the control algorithm for the angular position of the quadrotor. Due to the existence of an integrator already in the system dynamics of the outer loop, as presented in Equation (2), the integral term from the PID has not been employed in the outer loop control system. Consequently, the addition of an integral controller in the control system of outer loop would lead to the oscillatory response.

Details are in the caption following the image
Cascaded control system for quadrotor attitude control.

3. Estimation of the System Dynamics and Controller Design

3.1. Relay with Embedded Integrator

The setup of the relay feedback experiment with the embedded integrator is presented in Figure 3.

Details are in the caption following the image
Relay feedback experiment with embedded integrator.

The incorporation of the integrator into the relay process is actually from the perspective of the identification of the system fundamental frequency (ω1). This type of relay feedback system provides fundamental frequency that intersects the imaginary axis when observing the frequency response at the Nyquist plot. The relay embedded with an integrator leads to the fundamental frequency that exhibits larger time period. This helps the user to negate the hectic process of selecting the appropriate hysteresis parameter in the relay with hysteresis experiments. Also, the system’s frequency response is held into the lower and medium range of frequencies that subsequently prevent the signal from high-frequency noises.

From Figure 3, let us assume that yss and uss are the output and steady-state signals of the unknown system. The integral error is then determined as
(7)
The first-order approximation of this equation, at the ti time interval, would be
(8)
Subsequently, the integral error e(ti) can now be determined as
(9)
Consider the steady-state gain to be positive. The relay with embedded integrator mechanism can be defined as follows:
(10)
where a and ε are the amplitude of the relay and hysteresis, respectively. The relay feedback experiments are performed over the quadrotor model through the mechanism presented in Figure 3. The obtained response for the roll attitude axis has been presented in Figure 4, where the amplitude of the relay is set as 20°/sec, whereas the hysteresis is kept at the lowest possible value of 0.01. The proposed quadrotor configuration is symmetric across the roll and pitch axes. Consequently, the dynamics for both axes would be identical. Therefore, the relay feedback experiments are not repeated for the pitch axis. The estimated model obtained from the roll axis experiments would be used for the pitch attitude axis as well. The yaw axis response for the relay system is depicted in Figure 5. The relay parameters for the yaw axis are set as similar to the roll axis experiments.
Details are in the caption following the image
Roll axis response for the relay feedback experiment for inner loop. Key: dashed lines: relay output; solid lines: roll rate.
Details are in the caption following the image
Yaw axis response for the relay feedback experiment for inner loop. Key: dashed lines: relay output; solid lines: yaw rate.

3.2. Frequency Response Analysis

The objective of frequency response analysis is to analyze the data obtained through relay feedback experiments and to extract the information from that data. Which leads to estimation of the dynamics of the related model. Both input and output signals acquired through the relay experiments are analyzed as periodic in nature. Therefore, FSF would be effective to use for the extraction of the useful data from the set of both periodic input and periodic output signals [36, 37].

The periodic input signal represented as (u(k)) and the periodic output signal represented as (y(k)) that are successfully obtained using relay feedback experiments possess the fundamental discrete frequency as ωd = 2π/N. The N in this expression represents the period indicated as number of samples. Accordingly, output is expressed utilizing frequency sampling filter model, relating to the input signal as
(11)
Here, l = 1, 2, 3..⋯N, while G(0) and account for the frequency response points of the system. v(k) is measurement noise at output, which is considered the Gaussian distributed possessing variance (σ2) and zero mean. Furthermore, fl(k) is output vector of the frequency sampling filter, while f0(k) is the frequency sampling filter output at a frequency of zero. These are formulated as
(12)

q−1 in this expressions represents back shift operator that is formulated as q−1x(k) = x(k − 1).

When dealing with perfect periodic signals such as u(k) that have period N, Fourier analysis [38] indicates that it will only be possessing the odd frequencies in number and magnitude would be decaying as the number increases. Because of the noise effects and nonlinearities, it has not been practically often for the u(k) signal to be realized as perfectly periodic. Accordingly, by neglecting the higher frequency terms, the output signal is defined as
(13)
Moreover, the vector possessing complex parameters and the correlating regressor vector are also defined as
(14)
The   in this expression indicates the transpose of complex conjugate. The recursive least square (RLS) algorithm has been employed for the calculation of the vector having estimated frequency parameters that are represented as and formulated as
(15)
Subsequently, the frequency response of the plant is obtained via the relation of the closed-loop system’s frequency response and the information of KT.
(16)
Hence, the open loop system’s frequency response is then determined as follows:
(17)
Supposedly, the system is being operated under the faster sampling environment; the discrete time frequency response would then be closely approximating to the continuous time frequency response Gp(jω1). Where ω1 is the fundamental frequency and is defined as ω1 = ωd/ΔT. Hence, it can be expressed as
(18)
A single frequency from the frequency response would be enough for the calculation of the gain (Kp) and time delay required to estimate the integrating time delay model for the plant. That is supposed to be as
(19)
The time delay element in this model is utilized for the estimation of the time constants related to system mainly from the actuator and sensor. Let us assume that the integrating time delay model’s frequency response has been equivalent to the approximated Gp(jω1) that leads to
(20)
Through the (20), Kp is determined as
(21)
Here, . Time delay approximation is obtained through the comparison of the phase angle over both sides of (20). Which is expressed as,
(22)
Initially, the FSF is used for the extraction of useful information from the relay experiment response obtained from the roll axis system. The frequency response of the inner closed-loop system can now be estimated as follows:
(23)
Accordingly, the inner loop plant frequency response is then approximated as follows:
(24)
The frequency sampling filter also provides the fundamental frequency that is determined as ω1 = 3.67 radians. Kp and d are then obtained through (21) and (22). Accordingly, with the help of inner loop frequency response and fundamental frequency information, these are calculated as Kp = 0.669 and d = 0.134. Which results into the formation of the estimated integrator plus delay model of the inner plant as
(25)
Subsequently, the similar procedure is repeated for the yaw axis identification, where the frequency responses have been estimated as
(26)
For the yaw inner loop, the fundamental frequency is calculated as ω1 = 2.98 radians. Moreover, integrator plus time delay model for the yaw attitude axis plant is identified as
(27)
Hence, the overall estimated model for the attitude system of the quadrotor is presented as
(28)
where Gp(s), Gq(s), and Gr(s) are the estimated transfer functions for the roll, pitch, and yaw axes of the quadrotor, respectively. It can be noted that the estimated transfer function of the roll axis has also been assigned to pitch axis. The proposed quadrotor configuration is symmetric across the roll and pitch axes. Consequently, the dynamics for both axes would be identical. Hence, the identified roll axis transfer function would be used to design the control system for the pitch axis as well.

3.3. PID Controller Design

After obtaining the integrating time delay models, the PID controllers have been tuned on the basis of the estimated attitude models. The controller parameters were acquired through the set of well-established, simple, and robust tuning rules presented in [39, 40]. For these tuning rules, the values of the PID controllers are determined utilizing normalized parameters as presented below.
(29)
Assuming that the damping coefficient (ξ) is 1, the normalized parameters are then formulated as [32]
(30)
(31)
(32)
where β represents the scale factor, which has been chosen according to the requirement of the closed-loop time constant that is described as τcl = βd.

The inner loop plant of the quadrotor exhibits the dynamics that are faster. Hence, to achieve the quicker closed-loop response, a comparatively low-performance factor would be required. Hence, it is chosen to be β = 2. Accordingly, the PID parameters for the inner loop (roll rate) control system have been determined through (30)–(32) as Kc = 1.566, τI = 2.0281, and τD = 0.1018, whereas, for the yaw rate control, the PID controller values are determined as Kc = 8.170, τI = 1.031, and τD = 0.051.

After designing the inner loop PIDs, the controller parameters for the outer loop PIDs are tuned utilizing an approach that is illustrated in Figure 6. Since the dynamics of the plant in the outer loop are already known that are consisting of the integrator, such that, they achieve the angle position with the help of angular rate as illustrated in the given figure. Additionally, the inner loop systems have already been estimated. The approximated model depicting the plant in the outer plant can be obtained using the integrator plus delay system as [32]
(33)
where τcl denotes the closed-loop time constant and the d accounts for the inner loop time delay. While the integrating term in the above equation has been through the plant of outer loop, the delay time is practically through the approximation of the closed-loop inner subsystem. Therefore, for the controlled closed-loop inner, Kp is opted as 1.
Details are in the caption following the image
Quadrotor attitude control for roll axis possessing approximated dynamics of inner loop.

For the cascade control algorithm, to achieve closed-loop stability and robustness, it is required for the outer loops to possess the response time much slower than the subsequent inner loops for the robust and stable cascade control system [32]. Therefore, the outer loop time constant is chosen to be twice of the delay time, and β is opted as 4. In this way, the PID controller’s outer loop parameters are calculated as Kc = 1.566, τI = 2.028, and τD = 0.101 for the roll attitude axis. Similarly, values for the PID controllers to be used for the yaw attitude axis are obtained as Kc = 1.028, τI = 3.089, and τD = 0.155.

4. Validation

To validate the proposed idea, the PID controllers tuned and designed based on the relay with integrator mechanism are implemented over the quadrotor model under simulation environment. The model specifications of the quadrotor are presented in Table 1. The control system is implemented in the cascaded structure as presented in Figure 2. Atmospheric turbulences that are modeled based on the Dryden turbulence model [41] are injected into the model of the system as well that are demonstrated in [34, 42]. The attitude control performance to track desired roll axis is presented in Figure 7. It is observed from the measured roll angular response that the reference command for the roll axis has been traced efficiently without exhibiting any steady-state error. While the stable response of the quadrotor for the roll angular rate to achieve the required roll angle has been presented in Figure 8, it can further be observed that the control signals produced by outer control loops serve as reference signal for the related inner loop, as also depicted in Figure 8. Therefore, the set point command for roll angular rate in Figure 8 depicts the response of control system from the outer loop. In the similar approach, the efficacy of the designed and implemented control system for the remaining attitude axes such as pitch and yaw has also been analyzed in Figures 9-1112.

Table 1. Quadrotor UAV model parameters.
Parameter Value
Ixx 3.4 × 10−4 kgm2
Iyy 3.4 × 10−4 kgm2
Izz 4.5 × 10−4 kgm2
α 9.5 × 10−7
kd 2.4 × 10−9
r 0.3 m
εms 70 ms
rwv 1
m 0.7 kg
g 9.8 m/s2
Details are in the caption following the image
Angular response for roll axis. Key: dashed lines: reference signal; solid lines: actual response.
Details are in the caption following the image
Angular rate response for roll axis. Key: dashed lines: reference signal; solid lines: actual response.
Details are in the caption following the image
Angular response for pitch axis. Key: dashed lines: reference signal; solid lines: actual response.
Details are in the caption following the image
Angular rate response for pitch axis. Key: dashed lines: reference signal; solid lines: actual response.
Details are in the caption following the image
Angular response for yaw axis. Key: dashed lines: reference signal; solid lines: actual response.
Details are in the caption following the image
Angular rate response for yaw axis. Key: dashed lines: reference signal; solid lines: actual response.

Moreover, comparison is performed in order to examine the superiority of the presented relay with embedded integrator-based automatic tuning approach over the conventional model-based PID controller design approach that is presented in [34]. The model-based PID controller is designed for the roll attitude system and is implemented over the quadrotor system. The comparison analysis is presented in Figure 13. It has been analyzed in the demonstrated results that the control performance of the relay-based autotuned control system provides superior attitude response compared to the model-based control system. An improved overall time response including both transient as well steady-state performance is experienced by the autotuned PID control system. Especially when implemented experimentally, the autotuned control system would prove to be even superior over its conventional counterpart control system. Due to the fact that it incorporates almost all of the actual dynamics of the quadrotor including sensors, actuators, and gyroscopics.

Details are in the caption following the image
Figure 13 (a) Relay-based autotuned control system
Comparison of the control performance.
Details are in the caption following the image
Figure 13 (b) Model-based control system
Comparison of the control performance.

It is evident from the analysis of the demonstrated results that the proposed control system, based on cascaded PID control mechanism that has been tuned via the automatic tuning method based on the relay with integrator technique, is providing the required attitude performance with efficacy through keeping a better overall time response of the system including both transient and steady-state responses, since it exhibits minimal overshoots and is providing control operations at an improved rise and settling time.

5. Conclusions

A robust and stable control design approach for the quadrotor UAV has been presented. Cascaded control structure has been proposed to offer the control solutions to the dynamically complex underactuated quadrotor system. PID controllers for the each cascaded control structure stage are designed through the automatic tuning approach. Wherein the automatic tuning approach is based on the actual data acquired through the relay with an embedded integrator approach. The major theme of opting for the relay with embedded integrator approach is to make sure that the determined information of the plant is encompassed within the low and medium range of frequencies. Moreover, the effect of the measurement noise associated with the high frequencies is minimized due to the presence of the embedded integrator, and the need to use a hysteresis for the noise is reduced. The proposed cascaded PID control system designed through relay with an integrator-based automatic tuning approach is implemented over the actual quadrotor model. The results and observations demonstrated in this paper suggest that the designed control strategy is able to achieve the robust and stable attitude performance with an improved transient and steady state response.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

This research is funded by the Researchers Supporting Project Number (RSPD2023R947), King Saud University, Riyadh, Saudi Arabia.

    Data Availability

    Data used to support the findings of this study are included within the article.

      The full text of this article hosted at iucr.org is unavailable due to technical difficulties.