Mathematical Problems in Engineering

Volume 2014, Article ID 187345, 11 pages

http://dx.doi.org/10.1155/2014/187345

## Direct Self-Repairing Control for Quadrotor Helicopter Attitude Systems

College of Automation Engineering, Nanjing University of Aeronautics and Astronautics, Nanjing 210016, China

Received 12 December 2013; Accepted 28 February 2014; Published 31 March 2014

Academic Editor: Rongni Yang

Copyright © 2014 Huiliao Yang 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.

#### Abstract

A quadrotor helicopter with uncertain actuator faults, such as loss of effectiveness and lock-in-place, is studied in this paper. An adaptive fuzzy sliding mode controller based on direct self-repairing control is designed for such nonlinear system to track the desired output signal, when any actuator of this quadrotor helicopter is loss of effectiveness or stuck at some place. Moreover, using the Lyapunov stability theory, the stability of the whole system and the convergence of the tracking error can be guaranteed. Finally, the availability of the proposed method is verified by simulation on 3-DOF hover to ensure that the system performance under faulty conditions can be quickly recovered to its normal level. And this proposed method is also proved to be better than that of LQR through simulation.

#### 1. Introduction

Quadrotor helicopter is one kind of electric VTOL. Compared with the conventional rotor helicopter, quadrotor can generate more lift force and its structure is more compact. Especially, its four rotors can counteract the reaction torque mutually, so the propellers against reaction torque are not needed [1]. Due to these properties, it makes quadrotor monitor and detect the targets close to the ground so that it has broader military and civilian prospect.

On the other hand, quadrotor, which is the underactuated system with 6-DOF and 4 outputs, has the properties of multivariety, nonlinearity, strong coupling, and sensitivity to disturbance. Once it has some faults, it may lead to the loss of performance of flight, even loss of control. Thus, self-repairing control is born.

Self-repairing control, which utilizes the redundancy of the control system under normal working condition to improve the adaptability to the fault of the flight control system, can avoid catastrophes and make the faulty aircraft operate safely. Then, self-repairing control consists of the direct one and the indirect one. Direct self-repairing control does not need accurate system parameters, while system parameters and several control strategies are the necessity in indirect self-repairing control.

As is known to all, attitude control is the key point of the whole flight control. In addition, the attitude and position of quadrotor helicopter have the direct coupling. Therefore, the research on attitude controller with the capability of self-repairing from fault is imperative.

Recently, research on the flight control of mini quadrotor helicopter has got some achievements. For instance, Bouabdallah from EPFL has developed several control methods, such as PID, LQR, and Backstepping, based on OS4 [2], one kind of mini quadrotor helicopter, and realized the control on attitude during flight. But Altug from University of Pennsylvania has designed the controller of the quadrotor helicopter HMX4 [3] based on Backstepping and, moreover, actualized the autonomous hover control with the help of vision orientation. Afterwards, vertical takeoff and landing of quadrotor helicopter based on neural network control were achieved by J. Dunfied. Then, Wang has focused on the robust control method based on [4], which can guarantee the tracking performance and noise immunity of quadrotor helicopter.

However, the existing works on fault diagnosis and fault-tolerant control of quadrotor helicopter are quite few at present. A Backstepping fault-tolerant controller for quadrotor helicopter system based on the estimation of compound interference and partial FDI was proposed in [5]. And one kind of robust fault detection module with observer based on model was designed to reconfigure control law in [6]. In addition, a state estimator for fault detection is proposed in [7] to reconfigure the structure of controller for quadrotor so that it can recover some of control performances when a fault occurs. Yet there is still some weakness in the articles above; firstly, the models of quadrotor are obviously inaccurate. Then, the control strategies are somewhat complicated, which should contain fault identification; thus, it is difficult for application.

The need for effective and realizable fault-tolerant control for quadrotor helicopter with uncertain actuator faults motivates this research. In this paper, we develop an attitude system for quadrotor based on an adaptive fuzzy sliding mode tracking control to compensate the actuator fault such as loss of effectiveness and lock-in-place. The main contributions of this paper are as follows.(1)The nonlinear model of quadrotor helicopter is put forward in detail, while the linear model ignoring the nonlinear factors such as gyroscopic effect is inaccurate when designing the fault-tolerant control system.(2)An adaptive fuzzy sliding mode controller without fault identification is designed to track the desired output signal so that quadrotor can finish its mission safely even when any actuator of this quadrotor is loss of effectiveness or stuck at some place.

The rest of this paper is organized as follows. In Section 3.2, the stability of the whole system is guaranteed by Lyapunov stable principle. In Section 4, the proposed method is verified by simulation on 3-DOF hover and also proved to be better than the LQR method which is often used in the attitude system of quadrotor. Finally, conclusions follow in Section 5.

#### 2. Modeling Process

##### 2.1. System Model

The attitude and position of quadrotor helicopter are operated by the rotor’s rotation rate, without the auto bank unit. The structure schematic is shown in Figure 1.

Three attitude angles are controlled in these principles shown in Figure 2: the roll moment is generated by the difference between the speed of right and left rotor so that the roll angle changes. In the same way, the pitch angle is controlled by the front and back rotor. While the yaw angle changes, the rotors in the diagonal rotate in the same speed and the speed of rotors in different diagonal differs.

To limit the complexity of the dynamics modeling, the following assumptions are adopted [8].(1)The whole structure is rigid and symmetrical.(2)Thrust and drag forces are proportional to the square of propellers speed rotation.(3)The variable range of attitude angles is small (generally less than ).

Under these assumptions, using the Newton-Euler Equation, the dynamics equations are written in the following way: where is the position of the centre of mass with respect to the inertial frame, is the total mass of this structure, and is a constant inertia matrix of quadrotor with respect to the body fixed frame. That is, where represent rotational inertia of the roll axis, pitch axis, and yaw axis, respectively. represents the angular velocity of quadrotor expressed in the body fixed frame such as where are roll, pitch, and yaw angles, respectively. When the attitude angles are small, .

There are some details about all terms in (1) and (2) below.

In (1), firstly, represents the total lift generated by the four rotors and the expression is where , , , and , which are the lift generated by right rotor, left one, front one, and back one, respectively. Then is the lift coefficient, and represent the rotation speed of right rotor, left one, front one, and back one, respectively.

Secondly, , the total drag, can be described by where are the component of drag coefficient in , and axis, respectively.

Then, is the gravity, which is

In (2), firstly, , the moment of lift, when decomposed into each axis of the body fixed frame, can be described by where is the distance between the axis of any rotor and the centre of mass and is the coefficient of drag moment.

Secondly, represents the total pneumatic friction torque, whose expression is where are the component of pneumatic friction coefficient in , and axis, respectively.

Next, is the resultant moment under gyroscopic effect and can be defined as where is the moment of inertia of the rotor; moreover, .

In conclusion, the dynamic model of quadrotor helicopter can be written as where defined previously are the inputs of this system.

To simplify the representations, we define

Due to the limit of the power of each electromotor, there exists a maximum rotation speed for each rotor. It is assumed that each is equal because of the property of symmetry in the quadrotor helicopter. Therefore, the inputs meet the following conditions:

In addition, the dynamic of the DC-electromotor which drives rotors is shown below: where is the internal resistance of electromotor and are the electric torque constant, mechanical torque constant, and load constant torque, respectively. Then, denotes the solid friction.

Based on this analysis, let , be the state and the control input vectors, respectively. The state equation of this system can be written in the following affine nonlinear representation: where with

##### 2.2. Actuator Fault Model

According to report of research, the actuator of the helicopter can be easily damaged. In view of quadrotor helicopter, when the actuator fault occurs, the rotation speed of rotors will be abruptly changed so that the attitude system of quadrotor will vary rapidly or even lose control.

In this paper, we consider actuator faults including loss of effectiveness and lock-in-place. When any actuator has failed, we can denote a general actuator fault model as [9] where , , , and . denotes the percentage of the remaining effective part of the corresponding actuator. denotes the applied control vector, while () is used to describe the lock-in-place fault. If and , no fault occurs in this actuator. When and , the corresponding actuator loses partial effectiveness. The case of , means that the actuator is stuck at some unknown place where is the constant value. The considered faults can be synthesized by Table 1.

Inspired from [10], we can define another input vector so that the number of the output which will be given in the next section is equal to that of the input.

Thus, we design the control vector instead of . However, the applied input can be achieved by where is the generalized inverse matrix of .

To attain the control objective, we propose to use a proportional actuator structure as follows [11]: where represents the proportional actuation gain matrix and is adaptive fuzzy controller that we proposed.

Using (18), (19), and (20), the system (15) can be described by where ,.

#### 3. Direct Self-Repairing Control Strategy

The direct adaptive fuzzy control based on sliding mode is proposed to actualize self-repairing control in this paper. Adaptive fuzzy sliding mode control combines the advantages between adaptive fuzzy control and sliding mode control, which can not only adjust the adaptation law on line when uncertain function exists but also ensure the robustness of the considered nonlinear system.

The control block diagram is shown in Figure 3.

We consider the output of this quadrotor helicopter attitude system as .

Then, the dynamic equation of the output can be rewritten in the following form:

Our task is to design a robust adaptive fuzzy controller based on sliding mode. There is no couple between each output vector, so we can consider the sliding surface in the state error space as where and with with the desired output signal denoted by .

The time derivative of (23) can be written as where is given as follows:

If the functions and are known, to achieve the control objective, one can use the following ideal nonlinear control law:

Effectively, when we select the control input as , (25) simplifies to

Here we design a Lyapunov function as . Then we have , which indicates that the sliding mode defined can be achieved.

Thus, we can conclude that as ; therefore, converges to zero, and the whole system is stable.

##### 3.1. Adaptive Fuzzy Control Law

However, when the actuators of quadrotor helicopter have faults, the functions and are unknown so that the ideal controller designed previously cannot be used.

To overcome this problem, we propose to use an adaptive fuzzy system to approximate this ideal control law. Moreover, the parameters of this fuzzy controller are updated by the error between the fuzzy controller and the desired one.

According to the approximation theorem [12], there exists an optimal input based on fuzzy control approximating uniformly the ideal control law (27) such that

Then the fuzzy approximation error is where is an unknown parameter vector which minimizes the approximation error on a compact set . And is the matrix of fuzzy basis function suitably selected.

In this paper, we assume that the fuzzy controller proposed satisfies the universal approximation property over the compact set , which is assumed to be large enough so that the state variables remain inside it under closed-loop control. Therefore, it is reasonable to assume that the fuzzy approximation error is bounded for all .

##### 3.2. Parameter Adaptation Law

In the preview, we recall that the parameter vector is unknown. So the parameter estimate based on a gradient descent adaptation algorithm will be developed in this subsection.

To design a suitable adaptation law, our goal is to minimize the approximation error between and .

Hence, the parameter estimate is obtained according to the following theorem.

Theorem 1. *The adaptive fuzzy control law
**
equipped with the following adaption law:
**
where are positive constant parameters, guarantees the stability and the robustness of the system with actuator failures (18).*

*Proof. *Firstly, the estimate error should be defined by

Then, we substitute the proposed control law (31) to (25), and the derivative of sliding surface changes to be
where , denoted to be the error between desired input and actual input.

Then, another Lyapunov function is designed by the following form:

Obviously,

Substituting (32) and (34), we can get

using the inequalities

Equation (37) can be bounded as

Using the fact that the control gain matrix is positive definite, so there exists a positive constant such that ; then, let another positive constant denote so that ; moreover, we select to be positive, and this leads to

Since the desired parameter vector is a constant vector, is assumed to be bounded. Also we can define a positive constant bound as

Then the inequality of is simplified to

By quoting a theorem in [10], we can prove that the parameter error vector and the tracking error vector are bounded. Furthermore, due to the bound of , we can also conclude that the state vector is bounded as well. Therefore, this adaptive fuzzy control system based on sliding mode for quadrotor helicopter is stable and has good performance of tracking.

#### 4. Simulation Results

In this paper, we take the 3-DOF hover helicopter shown in Figure 4 which is produced by Quanser Company as the research object to simulate the operation of quadrotor helicopter attitude system. The 3-DOF hover helicopter consists of electric motors, rotors, helicopter body, power-supply module, encoders (sensors), and so forth. In the existing software platform, we can design the direct adaptive fuzzy sliding mode control system under the circumstance of MATLAB REAL-TIME. With the help of Quanser’s supporting software, the block diagrams of MATLAB Simulink can be directly encoded into C language which downloads to real-time simulation system from supporting PIC card through the parallel port [13]. After that, we can do the simulation experiment to verify the practicability of the control method proposed.

According to the user’s guide of Quanser Hover, the system parameters are given by

Furthermore, to illustrate the superiority of the method proposed, system dynamic performance under the adaptive fuzzy sliding mode control will be compared with that under the LQR method when these three cases occur: normal, the loss of effectiveness of actuators, and lock-in-place fault.

The design procedure of LQR is shown below.

Firstly, the affine nonlinear model of quadrotor helicopter should be linearized. Next, we can select suitable weight matrices , , where , . The control matrix is achieved by using LQR commands in MATLAB, which is

Hence, the LQR controller is described by , where is the desired state vector.

In all simulation cases, the desired rolling angle, pitching angle, and yawing angle are selected to be square wave with the amplitude and square wave with the amplitudes and , respectively.

Three fuzzy systems in the form of (29) are used to generate the control signals , , and . Each system has the input as , , and , respectively. For each input variable in, seven Gaussian membership functions which give 49 fuzzy rules are defined as where .

In addition, the time of simulation and step size are set to be 30 s and 0.001 s, respectively. The other design parameters used in this simulation are chosen as follows: (1)When no fault happened in this system, the simulation curves on adaptive fuzzy sliding mode controller and LQR controller are shown in Figure 5.

From Figure 5, it can be seen that the system can track the desired output well with the help of both controllers and has good dynamic performance. However, as for yawing angle, under the adaptive fuzzy controller based on sliding mode, the system can track signal almost without error while LQR controller cannot achieve that, which demonstrates that the proposed adaptive fuzzy controller has a better tracking performance than LQR controller when the system is healthy.(2)We suppose that the system is subject to loss of effectiveness at 10 s in input , and this may lead to the changes of pitching angle and yawing angle. The rest of the simulation settings are the same. Thus, we can get the simulation curves under adaptive fuzzy sliding mode controller and LQR controller shown in Figure 6.

Refer to Figure 6; the conclusion is that, when the loss of effectiveness occurred in , the system nearly has no influence and still tracks the signal very well with the help of adaptive fuzzy sliding mode controller. But the performance of LQR controller falls with the obvious tracking errors. So the superiority of adaptive fuzzy controller is proven again.(3)Suppose that a lock-in-place fault occurs in at 10 s. The rest of the simulation settings are unchanged. The simulation curves under adaptive fuzzy sliding mode controller and LQR controller are given in Figure 7.

We can obtain the same conclusion from Figure 7.

Without the loss of generality, another case is set to indicate that adaptive fuzzy sliding mode controller still works and is better than LQR controller when the actuator fault occurs in other inputs.(4)We suppose that the system loses effectiveness at 10 s in input . The rest of the simulation settings are unchanged. Then the simulation curves under both controllers are given in Figure 8.

*Remark *. Compared with the related work in [6, 13], the good features of this paper are in 3 aspects: (1) fault diagnosis is not needed in the proposed method so that it can be easier to be applied to the engineering practice; (2) even without the process of fault diagnosis, the proposed control system can still deal with a variety of actuator faults such as loss of effectiveness and lock-in-place; (3) the dynamic performance of the attitude system based on adaptive fuzzy sliding mode control when fault occurs is more smooth.

To sum up, when the actuator faults such as loss of effectiveness and lock-in-place occur in the attitude system of quadrotor helicopter, under the adaptive fuzzy sliding mode controller, this system can still track the desired output signal very well and return to the normal performance very rapidly, which implies that the whole system has the certain capability of self-repairing.

#### 5. Conclusion

In this paper, firstly, we built the affine nonlinear model for the quadrotor helicopter attitude system, which is MIMO. With the consideration of unknown actuator faults such as loss of effectiveness and lock-in-place, an adaptive fuzzy controller based on sliding mode has been proposed to realize the direct self-repairing control for this attitude system. Through a series of simulations, it has verified the availability of the proposed method which can make the system recover from the actuator faults and has good tracking performance.

#### Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

#### Acknowledgments

This work is supported by the National Nature Science Foundation of China under Grants 61273171 and 61304112, Natural Science Foundation of Jiangsu Province (BK20131364), the Fundamental Research Funds for the Central Universities (no. NE2014202), and the Foundation of Graduate Innovation Center in NUAA (kfjj130109).

#### References

- B. Nie, H. Ma, J. Wang, and J. Wang, “Study on actualities and critical technologies of micro/mini quadrotor,”
*Electronics Optics and Control*, vol. 14, no. 6, pp. 113–1117, 2007. View at Google Scholar - S. Bouabdallah, A. Noth, and R. Siegwart, “PID versus LQ control techniques applied to an indoor micro Quadrotor,” in
*Proceedings of the IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS '04)*, pp. 2451–2456, IEEE, New York, NY, USA, October 2004. View at Scopus - E. Altug,
*Vision Based Control of Unmanned Aerial Vehicles with Applications to autonomous Four Rotor Helicopter Quadrotor*, University of Pennsylvania, Philadelphia, Pa, USA, 2003. - S. Wang,
*Research of Quadrotor Control*, Harbin Institute of Technology, Harbin, China, 2006. - C. Yang, Z. Yang, X. Huang, and D. Xu, “Distributed Fault-tolerant control for Quadrotor,”
*Journal of Applied Sciences*, vol. 31, no. 3, pp. 321–330, 2013. View at Google Scholar - X. Gong, C. Peng, and Y. Tian, “Reliable attitude stability control of Quad-rotor based on fault-tolerant approach,” in
*Proceedings of the IEEE International Conference on Mechatronics and Automation*, pp. 1015–1020, IEEE, New York, NY, USA, 2012. - F. Sharifi, M. Mirzaei, B. W. Gordon, and Y. Zhang, “Fault tolerant control of a quadrotor UAV using sliding mode control,” in
*Proceedings of the 1st Conference on Control and Fault-Tolerant Systems (SysTol '10)*, pp. 239–244, New Jersey, NJ, USA, October 2010. View at Publisher · View at Google Scholar · View at Scopus - C. Pedro, L. Rogelio, and E. D. Alejandro,
*Modeling and Control of Mini-Flying Machines*, Springer, New York, NY, USA, 2005. - X. Tang, G. Tao, and S. M. Joshi, “Compensation of nonlinear MIMO systems for uncertain actuator failures with an application to aircraft control,” in
*Proceedings of the 41st IEEE Conference on Decision and Control*, pp. 1245–1250, New York, NY, USA, December 2002. View at Scopus - S. Labiod and T. M. Guerra, “Direct adaptive fuzzy control for a class of MIMO nonlinear systems,”
*International Journal of Systems Science*, vol. 38, no. 8, pp. 665–675, 2007. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet - P. Li and G.-H. Yang, “Fault tolerant control for unknown nonlinear systems with actuator failures: an adaptive fuzzy approach,” in
*Proceedings of the American Control Conference (ACC '08)*, pp. 4330–4335, usa, June 2008. View at Publisher · View at Google Scholar · View at Scopus - L. Wang,
*Adaptive Fuzzy Systems Ad Control Design and Stability Analysis*, Prentice Hall, Englewood Cliffs, NJ, USA, 1994. - Quanser Consultiing,
*3D Hover System*, Quanser inc, 2005.