Research Article  Open Access
Songming Jiao, Haiyue Gao, Xiaokun Zheng, Dengpan Liu, "Fault Tolerant Control Algorithm of Hexarotor UAV", Journal of Robotics, vol. 2020, Article ID 8829329, 16 pages, 2020. https://doi.org/10.1155/2020/8829329
Fault Tolerant Control Algorithm of Hexarotor UAV
Abstract
As the best representative of the current cuttingedge technology, unmanned aerial vehicle (UAV) is widely used in various fields such as electric power inspection, agriculture, forestry and plant protection, fire rescue, and film and television shooting. With the rapid development of UAV, the safety work of UAV has become more important. In order to improve the safety of hexarotor UAV during flight, a faulttolerant control scheme independent of basic control law and control distribution is designed in this paper. Firstly, the linear active disturbance rejection control (LADRC) was used as the basic control law for attitude control of hexarotor UAV. Secondly, in the case of actuator failure of hexarotor UAV, a fault observer was used to estimate fault information accurately. Then, on this basis, the control distribution matrix was adjusted to reduce the use of the faulty motor, and the purpose of faulttolerant control was achieved. Finally, simulation experiments and actual flight experiments were carried out to verify the effectiveness of the proposed scheme. Experimental results show that the proposed scheme can improve the robustness of the control system and the flight safety of UAV.
1. Introduction
In recent years, with the continuous progress of science and technology, unmanned aerial vehicles (UAVs) have also made rapid development, especially in the field of multirotor UAV. Multirotor UAV is an aircraft equipped with airborne equipment such as data processing and transmission systems, sensors, automatic control systems, and communication systems. It can perform certain steadystate control and flight and has certain autonomous flight capabilities [1]. Multirotor aircrafts have been widely used in agriculture, forestry, plant protection, power inspection, logistics, and transportation, which have greatly facilitated people’s production and life. Among them, the quadrotor UAV and the hexarotor UAV occupy a large proportion. However, due to the lack of redundancy of the rotor components of the quadrotor UAV, once the transmission failure occurs, the flight attitude changes abruptly, which will cause inestimable consequences in some application areas. As for the hexarotor UAV, due to the redundant actuators in the system, the optimized control algorithm can enable the hexarotor UAV to have good fault tolerance, greater load capacity, and higher stability, so as to complete more complex tasks. Therefore, it is of great significance to study the faulttolerant control of the hexarotor UAV.
The hexarotor UAV has the characteristics of high nonlinearity, strong coupling, and difficulty in modeling. To study the faulttolerant control of the hexarotor UAV, it is necessary to choose a basic control law with certain robustness. Chen et al. [2] proposed a UAV control system based on the integral sliding mode, and the control system has certain immunity. Ma [3] designed a UAV control system based on the active disturbance rejection controller and realized the attitude control of the UAV through the active disturbance rejection control (ADRC). As the ADRC controller does not rely on the precise mathematical model of the controlled object and is easy to implement, the control system is robust.
Next, equally important is the faulttolerant control. Cao et al. [4] took the missile as the research object and designed a faulttolerant control of the actuator based on compensation. Wang and Ni [5] proposed a fault diagnosis method of the actuator based on an adaptive observer, which provided relatively accurate fault information for faulttolerant control. Nguyen and Hong [6] proposed a conventional adaptive sliding mode control method for chattering and system uncertainty to realize faulttolerant control of UAV. In [7], a hardware circuit is designed to estimate the actuator fault for the hexarotor UAV. Finally, the control distribution matrix is calculated for different types of actuator fault, and the faulttolerant control is realized.
Based on the above analysis, this paper takes the “X” hexarotor UAV as the research object and proposes a faulttolerant control scheme for the hexarotor UAV based on control distribution.
The rest of this work is structured as follows: In Section 2, some related works on hexarotor UAV faulttolerant control strategies are presented. In order to carry out simulation experiments, we have established mathematical models of the hexarotor UAV under normal conditions and fault conditions. Then, Section 3 provides some technical details about the UAV used to deploy our proposal, highlighting the basic control law based on linear active disturbance control (LADRC) and faulttolerant control law based on control distribution. The main results are then presented in Section 4, which are the results of simulation experiments and actual flight experiments. Finally, Section 5 concludes this work and refers to future works.
2. UAV Modeling
2.1. UAV Modeling Normal Condition
The kinematics and dynamics models of the “X” hexarotor UAV were established under normal conditions. The simplified structure of “X” hexarotor UAV is shown in Figure 1. Since the flight environment and movement mode of the hexarotor UAV are relatively complex, the following assumptions are made to simplify the modeling work for the convenience of analysis [8]:(1)Assume that the mass of the hexarotor UAV is uniform, and the structure center of the hexarotor UAV is its centroid(2)It is assumed that the hexarotor UAV is a rigid body, that is, its basic structure and propeller will not deform during flight(3)It is assumed that the effects of the rotation and revolution of the Earth are not considered(4)Hexarotor UAVs fly at low speeds, so the effect of air resistance is ignored(5)Ignoring the gyro effect of the hexarotor
(a)
(b)
2.1.1. Dynamic Model
First of all, the coordinate system, pitch angle, roll angle, and yaw angle are defined. As shown in Figure 1(b), the xaxis of the body coordinate system points to the forward direction of the aircraft through the center of gravity of the body, the yaxis points to the left wing of the body through the center of gravity of the body, and the zaxis passes through the center of gravity of the aircraft, perpendicular to the xaxis and yaxis, pointing to the top of the aircraft.
The geodetic coordinate system is parallel to the geodetic horizontal plane pointing to the north, the yaxis is parallel to the geodetic horizontal plane pointing to the west, and the zaxis is perpendicular to the geodetic horizontal plane pointing upward. Pitch : the angle between the xaxis of the body coordinate system and the geodetic horizontal plane is positively downward. Roll : the angle between the zaxis of the body coordinate system and the geodetic vertical plane passing through the xaxis of the body coordinate system. When the plane flies to the right, the roll angle is positive. Yaw : the angle between the xaxis of the body coordinate system between the projection on the geodetic horizontal plane and the xaxis in the geodetic coordinate system. The yaw angle is positive when the nose turns left.
The hexarotor UAV has 4 control channels, a roll angle control channel, a pitch angle control channel, a yaw angle control channel, and an altitude channel. The deflection of the three attitude angles of the UAV is caused by the combined external torque, as reported in [9].
The lift generated by each rotor is proportional to the square of its angular velocity:where b is the lift coefficient and is the angular velocity of six motors.
The structure of the hexarotor UAV used in this paper is shown in Figure 1(a). The included angle between the rotors is 60°. Therefore, its roll, pitch, and yaw torques can be obtained separately.
Roll torque can be expressed aswhere is the distance between the center of rotors on the diagonal.
In equation (2), cos 60° is equal to 1/2, representing the torque component of motors 1, 2, 4, and 5 on the xaxis in the frame of the body.
Pitch torque can be expressed as
In equation (3), sin 60° is equal to /2, representing the torque component of motors 1, 2, 4, and 5 on the yaxis in the frame of the body.
Yaw torque can be expressed aswhere is the reverse torque coefficient.
From what has been discussed above, roll, pitch, and yaw torques can be expressed as
Equation (5) is the external closing torque of the hexarotor UAV. In equation (5), are roll torque, pitch torque and yaw torque, respectively.
From equation (5), we can get the following formula:
The torque balance experienced by the hexarotor UAV can be expressed as Newton–Euler’s formula as follows:
According to equations (5) and (7), it can be obtained thatwhere I is the torque of inertia of the hexarotor UAV about the triaxial axis of its carrier coordinate system, is the triaxial angular velocity of the hexarotor UAV about the carrier coordinate system, and V is the controlled quantity of three channels of roll, pitch, and yaw the amount.
Because the hexarotor UAV generally only performs smallangle motion, the Euler angle generated by the moment during flight is small, so the Euler angular velocity of the fuselage is approximately equal to the angular velocity of the fuselage coordinate system [10], that is,
In summary, the dynamic model of a hexarotor UAV can be expressed as
2.1.2. Kinematic Model
The main forces of the hexarotor UAV include the gravity of the aircraft itself and the lift generated by the rotation of each propeller. The combined direction of the six lifts is perpendicular to the surface of the propeller disc and opposite to gravity.
Therefore, the total lift of the hexarotor UAV is
From Newton’s second law of motion, F = ma, the kinematic model of the hexarotor UAV can be obtained as
is the position vector of the UAV in the geodetic coordinate system, is the position acceleration vector of the UAV in the geodetic coordinate system, is the triaxial gravity component of the hexarotor UAV in the geodetic coordinate system, and is attitude conversion matrix from the geodetic coordinate system to the body coordinate system.
There are three main kinds of attitude calculation algorithms that are widely used nowadays: the quaternion method, Euler angles, and rotation matrix method [11, 12]. The quaternion method is most widely used in the field of engineering. Its calculation is relatively small, and this method is also used in the UAV attitude calculation.
is the total lift force of all rotors of the hexarotor UAV.
In summary, the kinematic model of a hexarotor UAV can be expressed as
The mathematical model of a hexarotor UAV under normal conditions can be summarized by equations (10) and (14):
2.2. UAV Modeling under Fault Condition
The main fault types of the UAV are rotor fault, motor fault, sensor fault, control signal loss, and so on. Among them, rotor fault and motor fault are collectively referred to as actuator fault. Actuator fault is common and most important for UAV flight safety, so this paper mainly discusses the actuator fault of the hexarotor UAV.
When the hexarotor UAV is flying normally, the force efficiency of the actuator is 100%. When the actuator fails, the force efficiency of the UAV actuator is k. When k = 0, the actuator of the hexarotor UAV fails completely, and the efficiency is 0. When k = 1, the hexarotor UAV is faultless and flying normally. When 0 < k < 1, the actuator of the hexarotor UAV partly fails, and the output is insufficient.
Take the motor fault as an example. Suppose motor No. 1 is faulty. is the speed output of motor No. 1 without fault, which is constant, and is the speed output of motor No. 1 with fault. Then, the mathematical expression of the motor fault is
The lift and counter torque generated by the faulty motor at this time can be obtained as follows:where is the lift generated by the faulty motor at this time and is the counter torque generated at this time.
At this point, the torque balance equation iswhere is the triaxial acceleration of the UAV under fault state and is the input torque matrix of the UAV under the fault state.
When the actuator of the hexarotor UAV fails, it can be converted into the loss of control input of four channels including roll, pitch, yaw, and altitude [13]. Then, the mathematical model of the hexarotor UAV under the fault state is as follows:where are the control losses of the altitude, roll, pitch, and yaw channels.
3. Control Law Design
The control law design is mainly divided into two parts: basic control law design and faulttolerant control law design. These two parts are designed independently, which greatly simplify the faulttolerant control process of UAV.
3.1. Basic Control Law Design
The core of ensuring the stable flight of a hexarotor UAV under normal circumstances is to design a basic control law with certain robustness. As linear active disturbance control (LADRC) has the characteristics of not relying on the precise mathematical model of the controlled object and is easy to implement, this paper adopts the improved attitude control algorithm of LADRC to control the flight of UAV, so as to ensure the robustness of UAV in the flight process.
The LADRC controller is mainly divided into two parts: the transition processtracking differentiator (TD) and a linear extended state observer (LESO).
Firstly, this paper introduces the transition process.
In LADRC, we use a secondorder isovolumetric link instead of the tracking differentiator as the transition process. In PID control, when the input of the system is a step signal, the input “jumps.” However, the output of the system is dynamic inertia and cannot jump, so a transition process is arranged to convert the input from a jump to a slow change. Therefore, the secondorder isovolumetric link can fully meet the requirements of the transition process, effectively solving the contradiction between “fastness” and “overshooting” of the PID controller. The commonly used secondorder link is shown in equation (20). In the equation, T can be 1/50∼1/10 of the expected transition time.
Secondly, this paper introduces the LESO [14]. This is the core part of the LADRC, which can track the variables of the system in real time.
Generally, when ignoring the higherorder characteristics of a linear controlled object, its mathematical model is as follows:
The above formula can be transformed intowhere u is the input, y is the output, is the external disturbance, are the system parameters, and b is the control gain, .
The state space equation of the system is established to realize the realtime tracking of variables in the model:where are the state variables of the system, .
The linear extended state observer can be established as follows:
By selecting the appropriate observer gain, , , and , the linearly expanded state observer can achieve realtime tracking of each variable in the system, thus ensuring the stability of attitude control.
3.2. TolerantControl Law Design
Based on Section 2.2, the mathematical model of the hexarotor UAV is summarized. Based on this, this paper designs a faulttolerant control law to ensure the stable flight of the hexarotor UAV when the actuator fails.
The idea of controlling distribution is as follows:
Given the virtual control amount (torque), the actual input (motor speed) of each actuator is obtained through mapping to obtain the desired output. Figure 2 shows the basic structure of control distribution.
In Figure 2, R is the input of the entire control loop, which is the desired attitude we need; V is the virtual control amount, that is, roll, pitch, and yaw torque; and y is the output of the entire control loop.
According to Section 2.1, the control efficiency matrix A of the hexarotor UAV under normal conditions can be obtained, which is determined by the hardware mechanical structure of the hexarotor UAV, mainly by the wheelbase, lift coefficient, antitorque coefficient, and the included angle between the axes, .
According to equation (6),
For the quadrotor UAV, the control distribution matrix under normal circumstances can be obtained by simply inverting the control efficiency matrix. However, for a hexarotor UAV, the control efficiency matrix A is nonsingular, and the control assignment matrix of the hexarotor UAV cannot be obtained directly by inversion. Therefore, we obtain the normal control distribution matrix N of the hexarotor UAV by finding the pseudoinverse, .
Under normal faultfree conditions, the hexarotor UAV distributes the desired torque proportionally to the six motors through the control distribution matrix N. Upon the failure of the actuator, due to the insufficient output of the faulty motor, the torque required for flight cannot be achieved by using the normal pseudoinverse control distribution method.
According to the obtained fault matrix, we need to use the pseudoinverse weighting control algorithm to reduce the use of the fault motor and redistribute the remaining motor to compensate the control quantity which is lost due to the insufficient output of a motor. At this time,where is the fault matrix, .
We set the weighted matrix as W. If the fault matrix K is known, the control distribution matrix can be adjusted as
The above equation is the control distribution matrix adjusted according to the fault information.
4. Results and Discussion
4.1. Simulation Experiment Results
Based on the analysis and derivation in Section 3, a MATLAB simulation model for hexarotor UAV faulttolerant control is established on the basis of the faultfree simulation model. The effectiveness of the faulttolerant control scheme is verified by comparing the simulation control effects before and after the fault.
Due to the limitation of experimental conditions, the laboratory does not have some structural parameters. Therefore, the aerodynamic parameters such as the moment of inertia of the sixrotor drone involved in the simulation experiments in this paper mainly come from pertinent literature [15], lift coefficient, and antitorque coefficient given by the merchant. The main parameters are the mass of the hexarotor UAV, the distance between the center of the rotor and center of the mass, the lift coefficient, the antitorque coefficient, and the moment of inertia of the UAV when it moves around three axes. We set the mass of UAV as , the distance between the center of the rotor and the center of the mass as , the gravitational acceleration as , the lift coefficient as , and the antitorque as . The moment of inertia of the hexarotor UAV built in this paper is shown in Table 1.

In this experiment, it is assumed that the initial values of roll angle, pitch angle, and yaw angle are 0°, and the three expected attitude angles set are (15°, 15°, and 15°). If motor No. 1 fails and fails 50% and 70% of the time, the simulation test is conducted to verify whether the faulttolerant control law can stabilize the expected value set by tracking.
The simulation results are shown in the following figures.
Figures 3–5 are the simulation curves when motor No. 1 fails 50%.
(a)
(b)
(a)
(b)
(a)
(b)
When the actuator failure of the hexarotor UAV occurs, the three attitude angle change curves are shown in Figures 3–5. As shown in Figures 3 to 5, (a) is the simulation curve without faulttolerant control and (b) is the comparison curve of the simulation curve under nofault condition and faulttolerant control. It can be seen from the figures that when motor No. 1 of the hexarotor UAV fails 50%, that is, the power efficiency is 50%, and if there is no faulttolerant control, the output result is too oscillating and cannot reach final stability. Under the faulttolerant control scheme proposed in this paper, the hexarotor UAV can still track the expected value and reach the final stability.
Figures 6–8 are the simulation curves when motor No. 1 fails 70%.
(a)
(b)
(a)
(b)
(a)
(b)
When the actuator failure of the hexarotor UAV occurs, the three attitude angle change curves are shown in Figures 6–8. It can be seen from the figures that when motor No. 1 of the hexarotor UAV fails 70%, that is, the power efficiency is 30%, and if there is no faulttolerant control, the output result is too oscillating and cannot reach final stability. Under the faulttolerant control scheme proposed in this paper, the hexarotor UAV can still track the expected value and reach the final stability.
4.2. Actual Flight Experiment Results
Based on the simulation experiments, this chapter modified the APM source code according to the faulttolerant control scheme designed above and burned it into a hexarotor drone to verify the effectiveness of the faulttolerant control scheme.
Due to experimental conditions, this paper simulates motor failure by cutting off the rotor.
A simple hexarotor UAV propeller lift test is shown in Figure 9. The middle of the device consists of the remote control receiver, and one side consists of the propeller and the motor. By fixing the position of the throttle stick of the remote control and comparing the propeller lift without failure, the lift of the faulty propeller is obtained. After several experimental tests, the average value was obtained to obtain the power effect of the damaged propeller.
Figure 10 shows the flight experiment diagram when the propeller force effect is 50%. Instructions such as takeoff, hover, and attitude angle change are sent to the UAV through the remote control to observe the attitude change during the flight of the UAV, and then the flight data are analyzed through the MAVLINK flash log in the Mission Planner Earth station. In the Mission Planner ground station, the effect of the faulttolerant control algorithm was verified mainly through the comparison between the expected attitude angle and the realtime attitude angle, as well as the oscillation degree of IMU and other sensors.
(a)
(b)
Figures 11–13 are the actual following curves of the three attitude angles when the propeller power efficiency is 50%. In these figures, the red curves represent the desired attitude angle, and the green curves represent the realtime attitude angle of the hexarotor UAV. It can be seen from the figures that the hexarotor UAV can still track the changes of the 3 attitude angles well, and the vibration is small during flight.
Figure 14 shows the flight experiment diagram when the propeller force effect is 30%.
(a)
(b)
Figures 15–17 are the actual following curves of the three attitude angles when the propeller power efficiency is 30%. In these figures, the red curves represent the desired attitude angle, and the green curves represent the realtime attitude angle of the hexarotor UAV. It can be seen from the figures that the hexarotor UAV can also track the changes of the 3 attitude angles well, and the vibration is small during flight.
Finally, on the basis of the above experimental analysis, it is verified whether the faulttolerant control scheme can still keep the sixrotor UAV stable after the complete removal of a propeller. Figure 18 shows the flight experiment.
(a)
(b)
Figures 19–21 are the actual following curves of the three attitude angles when the propeller power efficiency is 0%. In these figures, the red curves represent the desired attitude angle, and the green curves represent the realtime attitude angle of the hexarotor UAV. It can be seen from the figures that the tracking effect of the UAV is not good during takeoff and landing, and the actual attitude angle deviates from the expected attitude angle. However, in the process of flight, the UAV can better track the change of the attitude angle.
5. Conclusions
Compared with the quadrotor, the hexarotor unmanned aerial vehicle (UAV) has redundant actuators and a larger load capacity, so it has a stronger antiinterference ability, higher safety, and is able to adapt to more severe flight environment and complete more complex tasks. Therefore, this paper takes the hexarotor UAV as the experimental platform to carry out a series of research works.
In this paper, the faulttolerant control technology of the hexarotor UAV in the case of actuator failure is studied, and the faulttolerant control method is verified by MATLAB simulation and actual flight experiments. This paper mainly completed the following work:(1)Firstly, this paper studied and established the dynamic and kinematic model of the UAV without fault, which laid a foundation for the attitude control experiment of the UAV.(2)Secondly, the dynamic and kinematic model of the UAV under fault condition was established, which laid a foundation for the faulttolerant control experiment of the UAV.(3)Then, the basic control law and faulttolerant control law were designed separately.(4)Finally, the effectiveness of the proposed faulttolerant control algorithm was verified by simulation experiments and actual flight experiments.
As future work, it is planned to improve the accuracy of the established mathematical models. Furthermore, the faulttolerant control algorithm will be improved to make it more effective when the UAV takes off and lands.
Data Availability
The data used to support the findings of this study are available from the corresponding author upon request.
Conflicts of Interest
The authors declare that they have no conflicts of interest.
Acknowledgments
This research was supported by the Special Funds for Basic Scientific Research Business Expenses of Central Universities in China (no. 2017MS129) and the National Natural Science Foundation of China (no. 61903033) and the Fundamental Research Funds for the Central Universities (no. 2020MS116).
References
 Q. F. Lin, C. Li, and H. J. Xi, Development Guide of Embedded Flight Control System for MultiRotor UAV, Tsinghua University Press, Beijing, China, 2017.
 Z. Q. Chen, C. L. Wang, and L. Yi, “Design of control system of quadrotor aircraft based on integral sliding mode,” Journal of System Simulation, vol. 27, pp. 2181–2186, 2015. View at: Google Scholar
 Z. Ma, “Application of active disturbance control technology in quadrotor,” North China Electric Power University, Beijing, China, 2018, M.S. thesis. View at: Google Scholar
 X. Y. Cao, C. H. Hu, and J. F. Qiao, “Research on active fault tolerant control of missile actuator based on fault compensation theory,” Electronics Optics & Control, vol. 20, pp. 30–34, 2013. View at: Google Scholar
 X. L. Wang and M. L. Ni, “Fault diagnosis of nonlinear system based on adaptive observer,” Aerospace Control and Application, vol. 34, pp. 33–37, 2008. View at: Google Scholar
 N. P. Nguyen and S. K. Hong, “Faulttolerant control of quadcopter UAVs using robust adaptive sliding mode approach,” Energies, vol. 12, no. 1, p. 95, 2018. View at: Publisher Site  Google Scholar
 M. Wu, “Research on fault safety system of sixrotor UAV,” Nanjing University of Information Science & Technology, Nanjing, China, 2015, M.S. thesis. View at: Google Scholar
 A. Rodic and G. Mester, “Modeling and simulation of quadrotor dynamics and spatial navigation,” in Proceedings of the 2011 IEEE 9th International Symposium on Intelligent Systems and Informatics, pp. 23–28, Subotica, Serbia, September 2011. View at: Publisher Site  Google Scholar
 Y. Li, Z. Q. Chen, and Z. X. Liu, “Application of active disturbance rejection technique in attitude control of fourrotor flight,” Journal of Harbin Institute of Technology, vol. 46, pp. 115–118, 2014. View at: Google Scholar
 C. S. Yang, Z. Yang, D. Z. Xu, and L. Ge, “Trajectory tracking control of new sixrotor aircraft,” Systems Engineering and Electronics, vol. 34, pp. 2098–2150, 2012. View at: Google Scholar
 J. Yi, X. Zhang, Z. Ning, and Q. Huang, “Intelligent robot obstacle avoidance system based on fuzzy control,” in Proceedings of the 2009 First International Conference on Information Science and Engineering, pp. 3812–3815, Nanjing, China, Decemeber 2009. View at: Publisher Site  Google Scholar
 C. Ha, Z. Zuo, F. B. Choi, and D. Lee, “Passivitybased adaptive backstepping control of quadrotortype UAVs,” Robotics and Autonomous Systems, vol. 62, no. 9, pp. 1305–1315, 2014. View at: Publisher Site  Google Scholar
 X. Xing, X. Chen, L. Huang, and D. Fan, “Study on active fault tolerant flight control systems for quadrotor UAV with actuator failures,” Xibei Gongye Daxue Xuebao/Journal of Northwestern Polytechnical University, vol. 36, no. 4, pp. 748–753, 2018. View at: Publisher Site  Google Scholar
 D. Yuan, X. J. Ma, and Q. H. Zeng, “Research on frequencyband characteristics and parameters configuration of linear active disturbance rejection control for secondorder system,” Control Theory and Application, vol. 30, pp. 1630–1640, 2013. View at: Google Scholar
 S. B. Li, “Research on control technology of micro multirotor,” Nanjing University of Aeronautics and Astronautics, Nanjing, China, 2013, M.S. thesis. View at: Google Scholar
Copyright
Copyright © 2020 Songming Jiao et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.