Networked Systems with Complexities and Their Applications to Engineering
View this Special IssueResearch Article  Open Access
Wei Wang, Hao Ma, Min Xia, Liguo Weng, Xuefei Ye, "Attitude and Altitude Controller Design for QuadRotor Type MAVs", Mathematical Problems in Engineering, vol. 2013, Article ID 587098, 9 pages, 2013. https://doi.org/10.1155/2013/587098
Attitude and Altitude Controller Design for QuadRotor Type MAVs
Abstract
Micro air vehicles (MAVs) have a wide application such as the military reconnaissance, meteorological survey, environmental monitoring, and other aspects. In this paper, attitude and altitude control for QuadRotor type MAVs is discussed and analyzed. For the attitude control, a new method by using three gyroscopes and one triaxial accelerometer is proposed to estimate the attitude angle information. Then with the approximate linear model obtained by system identification, Model Reference Sliding Mode Control (MRSMC) technique is applied to enhance the robustness. In consideration of the relatively constant altitude model, a Linear Quadratic Gaussian (LQG) controller is adopted. The outdoor experimental results demonstrate the superior stability and robustness of the controllers.
1. Introduction
Recently, a new class of flight vehicles called micro air vehicles (MAVs) which have a great potential for military, industrial as well as civilian applications, has been gaining tremendous attention.
Since 1990s, with the development of the Micro Electro Mechanical Systems (MEMS) technology, the single rotor helicopter has been the favorable platform for MAVs research. However, the limitations such as complexity, instability, and payload limitation slowed the trend down. Meanwhile, the multirotor vehicle especially the QuadRotor type MAVs become more attractive. The QuadRotor, compared with single rotor helicopter and dualrotor vehicle, has excellent capabilities of superior payload, low cost, and simple construction. As a result, it can be widely used in military reconnaissance, meteorological survey, environmental monitoring, delivering light goods in emergency, and other aspects [1]. Normally, the QuadRotor needs to fly autonomously to accomplish such difficult missions. However, there are many technical problems caused by their small size and structure, especially the installment failure of the communication apparatus and sensors. Until now, great achievements have been made in solving these difficulties by research groups and institutions, such as MIT, Ascending Technology, Microdrones, Draganfly, Heudiasyc University, Pennsylvania University, and Chiba University [2–6]. Various types of control techniques have been attempted such as back stepping (BS) control, nonlinear control, and robust control [7]. Recently, the autonomous flight control of QuadRotor is driven to a maturity stage and the attention of MAV research is transferred to visionbased stunt flight, indoor obstacle avoidance, SLAMbased control, or the development of novel structure MAVs [8–11]. However, the stability of the attitude controller in jamming environment becomes a main limitation with these deeper research continues.
In this paper, system dynamics for attitude and altitude control as well as the control algorithms of a typically QuadRotor type MAV are discussed. With the historical flight data of the vehicle obtained by experiments, the mathematical model is determined by system identification tools in Matlab. For the attitude control, instead of using the IMU unit or the extended Kalman filter (EKF), we select three gyroscopes and a triaxial accelerometer to estimate the attitude angle by Kalman flitre. The main advantages of this method are the low price and less computation which will promote the industrialization process. In consideration of the parameter uncertainties, model errors, and other interference, we apply the MRSMC to pursue good robustness. As to altitude control, we propose to use barometer and accelerometer instead of the widely used GPS to improve the precision. Then a modelbased controller by optimal control methodology is designed.
2. Controlled Object
Our research platform is a 4channel radio controlled QuadRotor type MAV designed by our research group. The vehicle airframe is constructed by carbon fiber which can provide significant stiffness and rigidity while keeping the weight down. The lift results from four AKE brushless motors. In order to drive these brushless motors, Pentium18A UltraPWM brushless controllers which support 50 Hz–500 Hz PWM signal communication are selected. By using the brushless controllers, the maximum rotational speed can reach about 8000 rpm and acquire about 1 Kg payload with four APC1245 propellers. The flight time is about 20 minutes with a threecell2100 mAh LiPo battery without payload. Figure 1 shows an overview of our platform and the specification is shown in Table 1.

The embedded control system consists of three gyroscopes, one triaxial accelerometer, one barometer, one 12 bit ADC chip MCP3204, and one Arm7 micro controller. The gyroscope ADXRS610 and triaxial accelerometer ADXL335 from Analog Devices Corporation are used to stabilize the attitude of the vehicle. The MPX5100Ap barometer together with the accelerometer is used for altitude control.
The running process of the embedded control system is as follows. Firstly, the Arm7 receives digital sensor data from ADC chip and control instruction from a 72 MHz PPM receiver. Then run the control program to draw a control output for each axis, respectively. At last, the summarized rotational control instructions are sent to the motor drivers to complete the specified movement. All the processing is done at a frequency of 400 Hz. The configuration of the overall system can be seen in Figure 2. In order to monitor the vehicle state and record the flight data, a wireless modem XBeepro whose communication range can reach 1.6 Km with its maximum power of 63 mW is used to accomplish the communication between the MAV and the ground station.
3. Attitude Modeling and Controller Design
For the and directions, the autonomous flight control can be divided into three loops of attitude (Roll, Pitch), velocity, and position. This chapter mainly illustrates the attitude modeling and controller design which is the foundation of the study. In order to achieve attitude control, the attitude dynamics must be reviewed at first. Therefore, the relevant theoretical derivation and system identification are applied to acquire the mathematic model. In view of the necessity of robustness, a novel sliding mode controller combined with the model following control theory is proposed.
3.1. Attitude Modeling
The tuning of rotational speed of every rotor leads to one degree of freedom of the MAV; coupled motion and nonlinearity are very obvious. Therefore, it is quite difficult to analyze such system. In this research, we neglect the coupled motion and gain an approximate linear attitude model. Plus, the Roll attitude model is the same as Pitch owing to the symmetry structure, and the modeling is conducted aiming at roll angle only.
As an assumption, no coupling exists and the variation range of attitude angle is small. The following relationship between the torque around the center and the obtained roll angle can be described as [12, 13] where is a torque vector, is a moment of inertia, and is the Euler angle of attitude. Assuming that the transfer function between the instruction value and the torque actually obtained is the firstorder inertial system. Then the transfer function is given
Here, represents the control input; and are the parameters of the inertial system.
In general, the angular is estimated by the IMU sensor. In this research, we propose one accelerometer and three gyroscopes to estimate the angle. In particular, the accelerometer measures not only dynamic acceleration but also gravity. The relationship can be represented as where is the acceleration of gravity, is the measured acceleration, and is the dynamic acceleration.
Considering that the air resistance exits and the coefficient is , the mass of the plant is . Then the force equilibrium equation of the vehicle is written as the following form:
Thereby, the transfer function from the attitude angle to the dynamic acceleration is derived as
The following block diagram in Figure 3 gives a more concise expression of the previous equations.
Consequently, the complete dynamic state model which governs the MAVs is formed by selecting angular acceleration, angular velocity, angle, dynamic acceleration as the state variables and angular velocity, measured acceleration as the output
The unknown parameters mentioned previously are determined by the system identification tool in Matlab with the historical flight data supplied. To verify the model accuracy, a comparison of the real plant model and the simulated model output for the same control instruction is conducted in Figure 4. The similar shape of the curves indicates the high accuracy of the identified model.
(a)
(b)
3.2. MRSMC Controller Design
Considering the nonlinearity and the strong coupling of the real QuadRotor model, it is of great importance to design the controller with good robustness in both stability and performance. Hence, the MRSMC technique is adopted to enhance the robustness.
The basic idea of MRSMC is to minimize the tracking error of state variables between the vehicle and the reference model in sliding mode. The block diagram of MRSMC is shown in Figure 5. Sliding mode control (SMC) is well known for its reliable performance which can be proven by its wide range of application. In this paper, the MRC structure is introduced to provide the reference variables so that the servo problem and the regulator problem are separated. Thereby, the task of the feedback controller is just to drive the error between the output of the process and the output of the reference model to zero. In view of the antidisturbance performance, the sliding mode control (SMC) is selected as the feedback controller [14].
3.2.1. Design of the Reference Model
To generate the reference signals, a specified reference model whose states variables correspond directly to the identified model is built
Here is the reference input. By setting , , the error dynamics of the state variables can be computed by subtracting (7) from the plant model
Making the system satisfies the following conditions:
Then
To ensure the output tracks , the DC gain must be adjusted to 1. When the time variable tends to infinity, the following equation is obtained:
The output can be given as
So and can be computed by is determined by adjusting in Matlab simulation
In this work, the parameters are chosen as , and . Figure 6 shows the step response of the reference model. The model output can track the reference well in about 1 second with little overshoot, so the desired performance of the reference model is obtained.
3.2.2. Design of the SMC Control Loop
To design the feedback controller, the sliding mode control technique is proposed because of its high robustness to exogenous disturbances and parametric uncertainties.
Considering that the control goal is to make the real plant output angle to track the angle of the reference model. Thus, a novel state is introduced to enhance the tracking performance
And the expansion system can be given as with .
The switching function is selected as
When the state variables are subject to the sliding surface, , the equivalent input is derived
Substituting into (16) as the control input, (19) is obtained:
The previous system described by (19) gains stability by stabilizing zeros. Then the optimal feedback gain is selected as hyper plane to stabilize it where is the solution of the following Riccati equation and satisfied the condition of :
The nonlinear term of SMC is selected as with being the witching gain and being a switching function. In this paper, instead of using a sign function which is too critical for practical use, we choose the following smoothing function to avoid chattering: where is the weight of smoothing function. The main advantage of this method is that the smoothing function can avoid making the gain high while sustaining sufficient robustness around the switching line. This method is called the quasisliding mode.
Then the control input can be acquired:
Because only part of the state variables can be measured, a Kalman filter is introduced to estimate the attitude angle and unobservable state variables. The Kalman filter has three main functions: provide the state variables for controller, estimate the attitude angle information, filter the sensor noise. Therefore, the calculation is greatly reduced and makes the attitude controller running at the 400 Hz frequency become possible. The simulation result of MRSMC is shown in Figure 7.
(a)
(b)
(c)
(d)
4. Altitude Modeling and Controller Design
The altitude results from the lift of four rotors, so the model can be easily obtained. Then the LQG controller based on optimal control is designed.
4.1. Altitude Modeling
The altitude of the vehicle is controlled by the rotational speed of four rotors. The control input is proportion to the rotation speed . In consideration of the delay caused by the control loop and the motor load, the power is proportion to rotation speed . Therefore, the following equation can be obtained:
The relations of power and acceleration, velocity, and position can be represented as is the altitude, , , is roll and pitch angle, is the air resistance, is the mass of the plant. The QuadRotor MAV is mainly moving at a low speed and the lean angle is about 20 degree. Ignoring the air resistance, the linearization of (26) can be given as
From (25) and (27), we can get the following transfer function:
As stated in earlier chapters, the unknown parameters are determined by identification and the system’s time history response is analyzed in Figure 8 to verify the accuracy of the identified model.
4.2. Optimal Controller Design
The altitude model is insensitive to the outer interference, so it is not difficult to obtain a relative stable model and the LQG control method is applied. LQG is a preferable design method for servo system based on the optimal control technique.
To strengthen the controller performance in tracing, a new state variable is constructed as the integral value of the tracing error. Therefore, the extended system is extracted where , .
The quadratic form criterion function is defined:
The optimal control goal is to determine control input to minimize the quadratic form criterion function.
In view of (30), the Hamiltonian function is
Then the adjoint equation and boundary condition can be obtained:
With condition is positive, the control input is obtained
Assuming the relationship between state valuables, can be described as
When the time variable tends to infinity, the matrix becomes a constant, and it can be obtained from the Riccati equation
The feedback gain can be given as follows and the control input is obtained accordingly:
Since the controller is designed based on state feedback, it is necessary to obtain all the state conditions. In the altitude model obtained previously, the acceleration and the altitude variable can be observed by the onboard sensors, and there is still one state variable that is unavailable. Then a Kalman filter is designed to estimate the unavailable state variable, and it can also filter the noise in the meanwhile. Therefore, the control performance is improved.
5. Experiments and Experimental Results
In order to verify the performance of our platform as well as the properties of attitude and altitude controller, outdoor flight experiments are carried out. The operator sends the reference instruction to the QuadRotor by using a 72 Mhz PPM Propo. The flight data is transmitted to the ground station by the XBeepro wireless model.
5.1. Attitude Experiments
Firstly, a flight test of letting the MAV keep hovering and highspeed moving is performed. Figures 9 and 10 show the demonstration result. From Figure 9, it is obvious that the output angle trajectory tracks the reference angle well. Some beating points around 10 s and 20 s may be caused by external forcelike gust, but it can regain the stability soon. Figure 10 presents the comparison result of the Roll angle velocity and the related acceleration by Kalman estimation and measured from sensors. It shows that the estimated smooth lines keep the trend of the original sensor data and the good filter result is obtained.
(a)
(b)
(a)
(b)
As to the system’s robustness, a comparison experiment is conducted between LQG and MRSMC technology for attitude control with a 300 g payload. But when the LQG controller is installed, the flight performance degrades badly and the operation of the vehicle becomes a difficulty. Therefore, only the MRSMC robust experiment is carried out successfully. The corresponding plots can be seen in Figure 11. The tracking performance is acceptable considering the heavy payload and it shows that the MRSMC is insensitive to model change, so the good robustness is obtained.
5.2. Altitude Experiments
In the altitude test, a step signal of 5 m is given to the MAV after hovering stably for some time in a fixed altitude. Result from the flight test is shown in Figure 12. The realtime experimental result follows simulation result well and the outputs successfully tracks the reference input in about 5 s with a 0.5 m overshoot. The controller also has a good stability by stable control input.
(a)
(b)
6. Conclusion
In this research, a brief introduction is given to the QuadRotor, which is selected as our controlled object. Then the attitude and altitude control is discussed. For the attitude, MRSMC is proposed due to its insensitiveness to parametric uncertainties, model errors, and outer disturbances. Whereas in altitude control, the modelbased optimal controller is designed. To verify the performance of the controllers, the hovering control and guidance control are conducted in flight experiments. By using MRSMC, the attitude controller also obtains good robustness. In the future, we will focus on velocity and position control, so that the fully autonomous flight will be accomplished.
Acknowledgment
This work was supported by the scientific research fund of Nanjing University of Information Science & Technology.
References
 K. Nonami, F. Kendoul, S. Suzuki et al., Autonomous Flying Robots: Unmanned Aerial Vehicles and Micro Aerial Vehicles, Springer, 2010.
 L. Doitsidis, S. Weiss, A. Renzaglia et al., “Optimal surveillance coverage for teams of micro aerial vehicles in GPSdenied environments using onboard vision,” Autonomous Robots, vol. 33, no. 12, pp. 173–188, 2012. View at: Google Scholar
 “Ascending Technologies GmbH,” http://www.asctec.de. View at: Google Scholar
 http://www.draganfly.com/.
 W. Wang, K. Nonami, and Y. Ohira, “Model reference sliding mode control of small helicopter X.R.B based on vision,” International Journal of Advanced Robotic Systems, vol. 5, no. 3, pp. 235–242, 2008. View at: Google Scholar
 F. Kendoul, “Nonlinear hierarchical flight controller for unmanned rotorcraft: design, stability, and experiments,” Journal of Guidance, Control, and Dynamics, vol. 32, no. 6, pp. 1954–1958, 2009. View at: Publisher Site  Google Scholar
 A. Drouot, E. Richard, and M. Boutayeb, “Nonlinear backstepping based trajectory tracking control of a gun launched micro aerial vehicle,” in Proceedings of the AIAA Guidance, Navigation, and Control Conference, 2012. View at: Google Scholar
 V. Ghadiok, J. Goldin, and W. Ren, “On the design and development of attitude stabilization, visionbased navigation, and aerial gripping for a lowcost quadrotor,” Autonomous Robots, vol. 33, no. 12, pp. 41–68, 2012. View at: Google Scholar
 H. Yu and R. Beard, “A visionbased collision avoidance technique for micro air vehicles using locallevel frame mapping and path planning,” Autonomous Robots, vol. 34, no. 12, pp. 93–109, 2013. View at: Google Scholar
 X. B. Wang, C. Song, G. R. Zhao et al., “Obstacles avoidance for UAV SLAM based on improved artificial potential field,” Applied Mechanics and Materials, vol. 241, pp. 1118–1121, 2013. View at: Google Scholar
 G. R. Flores, J. Escareño, R. Lozano et al., “Quadtilting rotor convertible MAV: modeling and realtime hover flight control,” Journal of Intelligent & Robotic Systems, vol. 65, no. 1, pp. 457–471, 2012. View at: Google Scholar
 W. Wang, F. Wang, Y. Zhou et al., “Modeling and embedded autonomous control for quadrotor MAV,” Applied Mechanics and Materials, vol. 130, pp. 2461–2464, 2012. View at: Google Scholar
 F. Kendoul, D. Lara, I. FantoniCoichot, and R. Lozano, “Realtime nonlinear embedded control for an autonomous quadrotor helicopter,” Journal of Guidance, Control, and Dynamics, vol. 30, no. 4, pp. 1049–1061, 2007. View at: Publisher Site  Google Scholar
 T. Li, Y. Zhang, and B. W. Gordon, “Nonlinear faulttolerant control of a quadrotor uav based on sliding mode control technique,” in Proceedings of the 8th IFAC Symposium on Fault Detection, Supervision and Safety of Technical Processes, vol. 8, no. 1, pp. 1317–1322. View at: Google Scholar
Copyright
Copyright © 2013 Wei Wang 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.