Adaptive control-optimization of a small scale quadrotor helicopter/ Mazu matmenu keturiu rotoriu sraigtasparnio adaptyviojo valdymo optimizavimas.
Jin-song, Li ; Lian, Yang ; Le-tian, Wang 等
1. Introduction
Recently, small scale unmanned aerial vehicles (UAV) have been
expected by many fields such as geological exploration, agricultural
spraying, atmospheric monitoring, disaster early warning, and target
acquisition. For these missions, an autonomous flight control of the
copter is indispensable. This autonomous flight control system requires
many technologies such as obstacle avoiding as well as attitude and
position controlling. The study related to copters controls and usages
are now very popular all over the world.
There are many different types of small unmanned copters, such as
traditional helicopter, the twin-rotor or tandem-rotor helicopter, the
coaxial rotor helicopter and four-rotor helicopter. Although the
traditional helicopter, single main rotor or one tail rotor small-scale
helicopter, is popular and has been studied widely, yet its characters
of complex dynamics and structure, high price and hard to control,
instability and easily to crush make it difficult to use by common
users. The quadrotor helicopter shares all the merits of the traditional
helicopters, such as taking-off and landing vertically, moreover, it has
four fixed-pitch rotors mounted at the four ends of a simple cross
frame. Owing to the symmetry, this vehicle is dynamically elegant,
inexpensive, and simple to design. It is an omni-directional vehicle,
and has almost no constraints on its motion. It can be flown in tight
spaces and does not require large safety distances to operate. These
characteristics make the quadrotor helicopter a good candidate to be
utilized in the real life.
There are two methods in modeling the quadrotor helicopter, one is
based on Newton-Euler formalism [1, 2], the other is built on the
LaGrange method [3, 4]. And the methods in controlling the quadrotor
helicopter are proportional-integral-derivative (PID) control [5], fuzzy
control [6], back stepping control [7], sliding mode control [8] and
adaptive control [9], etc. Among them, the adaptive control has wide
application with parameter self-adjusting function and can be used in
combination with other control methods.
In reference [10], an adaptive sliding mode controller using input
augmentation in order to account for the underactuated property of the
helicopter; in reference [11], adaptive fuzzy controller has been
designed, using alternate adaptive parameters in the adaptation scheme
for quadrotor helicopter robust to wind buffeting; in reference [12],
image based visual servoing had been used in the quadrotor control, in
which adaptive backstepping control generates input signals for
propellers to track the reference velocity accurately even under
uncertain effects. But these methods are difficult to achieve, because
of still needing accurate mathematical model, or requiring a large
amount of the sensor and the observer, or the structure of the
controller is still very complex.
In view of the above problems and based on the research in
reference [13], the current paper is trying to use Newton-Euler
formalism in modeling the quadrotor helicopter; and adaptive
control-optimization (ACO) is used in the design of translation and
attitude controller in quadrotor helicopter for the first time. The
method is simple in algorithm, and the model of control object is less
dependent, as well as controller structure is not complicated.
Simulation and actual flight test shows that the robustness and
real-time is superior to the common adaptive (CA) controller. The method
belongs to the author's original research in the application of
quadrotor helicopter control, and there is no reference to existing
literature.
2. Quadrotor helicopter
Quadrotor helicopter is a kind of non-coaxial multi-rotor flying
saucer which can realize vertical takeoff and landing. It is composed of
landing gear, base, 2 support frames, four motors and screw propeller,
that is shown in Fig. 1.
[FIGURE 1 OMITTED]
Compared with classical helicopter using single main-rotor, its
structure is more compact. 2 brackets are orthogonal to each other, 4
rotor symmetrically mounted on the 2 brackets (the distance between 4
rotor and the centre of quadrotor helicopter are same), two front rear
rotors on one bracket rotate clockwise (positive pitch) while two rotors
on the other orthogonal bracket rotate anticlockwise (reverse pitch),
which can be offset against torsional moment and does not need special
reaction torque propeller. Besides whatever positive pitch or reverse
pitch, the lift is upward, so quadrotor helicopter can produce 4 times
as much as the single rotor lift.
3. Quadrotor helicopter dynamics model
In order to achieve the purpose of attitude and position control,
this paper establishes the displacement and rotational dynamics model of
quadrotor helicopter based on Newton-Euler formalism and rigid body
mechanics theory. In order to describe the dynamic model of quadrotor
helicopter, two coordinate systems are set up, which are shown in Fig.
2.
[FIGURE 2 OMITTED]
3.1. Translation kinematic model
Define [T.sub.[theta]], [T.sub.[delta]], [T.sub.[psi]] as the
translation matrix of [theta], [delta], [psi] with respect to the body
coordinate system. And they can be described as:
[MATHEMATICAL EXPRESSION NOT REPRODUCIBLE IN ASCII] (1)
Define the transformation matrix from the body coordinate system to
the earth coordinate system as:
[A.sub.BE] = [T.sub.[theta]][T.sub.[delta]][T.sub.[psi]]. (2)
According to Newton-Euler Equation, we can get:
[MATHEMATICAL EXPRESSION NOT REPRODUCIBLE IN ASCII], (3)
where m is the mass of model, the translation in the earth
coordinate system, [f.sub.1], [f.sub.2], [f.sub.3] is the three
coordinate components of the lift force in the earth coordinate system.
Furthermore, there is a relationship as shown:
[MATHEMATICAL EXPRESSION NOT REPRODUCIBLE IN ASCII]. (4)
Define F as the sum of [F.sub.1], [F.sub.2], [F.sub.3], [F.sub.4]
using Eqs. (3) and (4), the translation kinematics and dynamics equation
can be described by:
[MATHEMATICAL EXPRESSION NOT REPRODUCIBLE IN ASCII]. (5)
3.2. Rotation kinematic model
Similarly, the angular velocities [x.sub.4], [x.sub.5], [x.sub.6]
in the body coordinate system can be described by Euler angels [theta],
8, y which is shown:
[MATHEMATICAL EXPRESSION NOT REPRODUCIBLE IN ASCII]. (6)
According to assumptions and Newton-Euler Equation, we can get:
[MATHEMATICAL EXPRESSION NOT REPRODUCIBLE IN ASCII] (7)
where l is the distance from the center of the model to the center
of any of the rotors (the action point of lift force); [lambda] is a
scale factor between yaw torque and the lift force; [I.sub.44],
[I.sub.55], [I.sub.66] is angular moment with respect to axes in the
body coordinate system.
Define [M.sub.[delta]] as the control torque of the rotors which
generate the roll angle, [M.sub.[theta]] as the control torque of the
rotors which generate the pitch angle, [M.sub.[psi]] as the yaw angle
control torque due to adjusting the rotor speed, which is proportional
to the lift force. So there is a matrix U, and:
[MATHEMATICAL EXPRESSION NOT REPRODUCIBLE IN ASCII]. (8)
Taking [I.sub.44] = [I.sub.55] into consideration, using Eqs. (6),
(7) and (8), the rotation dynamic equations of the quadrotor helicopter
can be described:
[MATHEMATICAL EXPRESSION NOT REPRODUCIBLE IN ASCII]. (9)
3.3. Rotor lift model
This paper use the lift test experiment and MATLAB numerical
fitting method for obtaining the numerical relationship between the
input signal and lift, and it obtained good application effect.
Do secondary fitting on the curve by MATLAB, we can get:
PWM = 1105 - 260 x [F.sub.t] + 22.23 x [F.sup.2.sub.t], (10)
where PWM is the input signal which the positive pulse width is 1-2
ms, [F.sub.t] is the lift generated by rotors. With above equation, it
can be easily to get the rotor lift value through PWM.
4. ACO controller
4.1. Kernel algorithm of the controller
This paper introduces a kind of adaptive optimal control method,
which is used to control the translation and attitude of quadrotor
helicopter. The control theory about the controller is deduced as
follows.
Supposing a controlled system in Eq. (11):
y(n) = W x x(n), (11)
where x(n) is the state of the system, y(n) is the output of the
system, W is the weighted coefficient.
Supposing the error between the desired state [x.sub.dk](n) and the
output [y.sub.k](n) is [e.sub.k](n) in Eq. (12):
[e.sub.k](n) = [x.sub.dk](n)- [y.sub.k](n), (12)
where k is the number of samples.
Define [[??].sub.k] as the error gradient estimate of the system,
where:
[[??].sub.k] = [nabla][[e.sup.2.sub.k]] =
2[e.sub.k][nabla][[e.sub.k]]. (13)
According to Eqs. (11) and (12), we can get:
[nabla][[e.sub.k]] = -[x.sub.k]. (14)
So the error gradient estimate of the system can be obtained:
[[??].sub.k] = -2[e.sub.k][x.sub.k] (15)
and
[W.sub.k+1] = [W.sub.k] - [mu][[??].sub.k], (16)
where [mu] is the variable of algorithms.
According to Eqs (15) and (16), we can get:
[W.sub.k+1] = [W.sub.k] + 2m[e.sub.k][x.sub.k]. (17)
By [W.sub.0] and [x.sub.0], we can obtain [W.sub.1]. Followed by
analogy, [W.sub.m] can be obtained and [y.sub.m](n) can be calculated
finally:
[y.sub.m](n) = [W.sub.m] x [x.sub.m](n), (18)
where m = 1,2,3, ... k + 1, ....
Based on the control theory above, we can get the structure of
adaptive optimal controller, which is shown in Fig. 3. Compared on
simulation and actual flight experiments (section 5), we can get that
its performance is superior to the adaptive controller designed by
traditional method.
[FIGURE 3 OMITTED]
4.2. Controller design
There are four indirect control input F, [M.sub.[delta]],
[M.sub.[theta]], [M.sub.[psi]], and six outputs: three translation
positions and three angle attitudes in quadrotor helicopter. Although
the system is an under-actuated system, it can realize controllable
completely by using a few input signals to control the majority of
output variables (decoupling method), and the channel control structure
completing the function is shown in Fig. 4. Where the inputs are the
[x.sub.id], i = 3, 4, 5, 6, [[delta].sub.d], [[theta].sub.d],
[[psi].sub.d]. The feedback achieved by sensors are [x.sub.i], i = 3, 4,
5, 6 and [delta], [theta], [psi]. Specific design is described as
follows.
[FIGURE 4 OMITTED]
4.2.1. Translation controller
With Eqs. (3), (4), and (5), the Eq. (19) can be expressed with the
pseudo-control variables [[tau].sub.1,2,3]:
[MATHEMATICAL EXPRESSION NOT REPRODUCIBLE IN ASCII] (19)
where [[tau].sub.1], [[tau].sub.2], [[tau].sub.3] corresponding
expectations are [[tau].sub.1d], [[tau].sub.2d], [[tau].sub.3d].
According to section 4.1, suppose [[tau].sub.kd] = [d.sub.k](n),
[e.sub.k] = [d.sub.k] - [y.sub.k] = [t.sub.kd] - [W.sub.k] x
[F.sub.k], then:
[MATHEMATICAL EXPRESSION NOT REPRODUCIBLE IN ASCII] (20)
Solve (20) by ACO method (13)~(18), we can get:
[MATHEMATICAL EXPRESSION NOT REPRODUCIBLE IN ASCII]. (21)
Supposing [[[[theta].sub.0], [[delta].sub.0], [[psi].sub.0]].sup.T]
= [[0,0,0].sup.T], m = 1, then
[MATHEMATICAL EXPRESSION NOT REPRODUCIBLE IN ASCII]
obtained by selecting suitable parameters for iterative. Among
them, m is iteration times.
4.2.2. Rotation controller
Supposing:
[MATHEMATICAL EXPRESSION NOT REPRODUCIBLE IN ASCII] (22)
according to Eq. (6), we can get:
[MATHEMATICAL EXPRESSION NOT REPRODUCIBLE IN ASCII]. (23)
According to section 4.1, we can get:
[MATHEMATICAL EXPRESSION NOT REPRODUCIBLE IN ASCII]. (24)
According to ACO method (13)~(18), we can get:
where M is:
[MATHEMATICAL EXPRESSION NOT REPRODUCIBLE IN ASCII], (25)
where [x.sub.4], [x.sub.5], [x.sub.6] can be acquired by sensors,
[mu], [W.sub.n] and [[tau].sub.4n,5n,6n] can be achieved by iteration
with suitable control parameter [mu] Among them n is iteration time.
4.2.3. Channel distributor controller
With the Eq. (10), we can get:
[F.sub.i] = 261 + [square root of 88.92[PWM.sub.i] - 30135.6/44.46,
(26)
where i = 1,2,3,4.
With the Eq. (8), we can get:
[MATHEMATICAL EXPRESSION NOT REPRODUCIBLE IN ASCII]. (27)
While l = 0.24m, suppose [lambda] = 2.703 x [10.sup.-2], and we can
get the values of F, [M.sub.[delta]], [M.sub.[theta]], [M.sub.[psi]] by
solving (26) and (27).
5. Simulation
As ACO controller has been discussed in the fourth section, and in
order to verify its advantages to CA controller, this section uses
Matlab-simulink to simulate and compare this two control methods. The
initial state of attitude angle ([delta], [psi], [theta]) in quadrotor
helicopter are (0.4 rad, 0.4 rad, 0.5 rad), the desired steady-state
value are(0, 0, 0), and it is given a drop signal at 6s and returned to
0 at 10 s. The initial state of (x, y, z) are (0, 0, 0), in which the
expected translation at x, y axis direction are 1 m; at z axis
direction, its translation stays in 3 m for a period of time, and then
drop down to the steady state value 2 m. Simulation parameters of ACO
controller are shown in Table. Comparison of simulation results between
ACO controller and CA controller is shown in Figs. 5 and 6.
[FIGURE 5 OMITTED]
Fig. 5 shows the comparison results of attitude angle simulation
between two controllers, as can be seen from the graph, as to roll
angle, the overshoot of ACO controller is only half of that of CA
controller, and adjusting time is 5 s less than CA controller; as to
yaw, the overshoot of ACO controller is about half of that of CA
controller, and adjusting time is 3 s less than CA controller; as to
pitch angle, the overshoot of ACO controller is about 2/3 of that of CA
controller, and adjusting time is 1s less than CA controller. Therefore,
either overshoot or adjust the time from the attitude control, the ACO
controller is dominant.
Fig. 6 shows the comparison results of translation simulation
between two controllers, as can be seen from the graph, as to
translation at direction of x axis and y axis, the overshoot of ACO
controller is about 1/3 of that of CA controller, and adjusting time is
4s less than CA controller; as to translation at direction of z axis,
the overshoot of ACO controller is about half of that of CA controller,
and adjusting time is 4 s less than CA controller. Therefore, either
overshoot or adjust the time from the translation control, the ACO
controller is dominant and has better robustness.
[FIGURE 6 OMITTED]
6. Experiment analysis
Hardware system of quadrotor helicopter is designed and built to
test and further validate the reliability of simulation results in this
section. The hardware system consists of power unit, an inertial
measurement unit (IMU), airborne navigation positioning unit, wireless
communication unit, height measuring device, the rotor speed measuring
unit and embedded micro controller unit (ARM). Two experiments are done
to analyze and compare actual control effect of ACO and CA controller in
this section.
Hovering control experiment is done to compare the actual attitude
control effect of two controllers, let quadrotor helicopter vertical
rise from (0, 0,0) in the body coordinate system, then hover at (0, 0,
1.5 m) in the earth coordinate system. Crosswind of about level 4
(moderate breeze) is pulsed on the quadrotor helicopter all the time
(common disturbance in actual flight). When quadrotor helicopter is
controlled by ACO control, system can return the balance state in 5 s;
and by CA control, it would take 8-9 s at least for recovery.
The flight tracking line of "8" shape is designed in
translation control experiment. Beginning from (0, 0, 0.6 m) in the
earth coordinate system, the flying curve followed by (0.6 m, 0.6 m, 0.6
m), (0, 1.2 m, 0.6 m), (-0.6 m, 1.8 m, 0.6 m), (0, 2.4 m, 0.6 m), (0.6
m, 1.8 m, 0.6 m), (0, 1.2 m, 0.6 m), (-0.6 m, 0.6 m, 0.6 m),and finally
back to (0, 0, 0.6 m).
[FIGURE 7 OMITTED]
[FIGURE 8 OMITTED]
The hovering and "8" shape flight tracking route of
quadrotor helicopter are shown as Figs. 7 and 8.
There are certain steady-state errors of angle and translation
caused by the sensor noise in the experiment, and in addition, there are
many other unavoidable factors generating steady-state error, just like
vibration on the body produced by the rotation of four rotor motors,
communication and control delay. But despite these interferences, ACO
control method can limit the steady-state error in a small range, the
overshoot at every turning point is small, the regulating time returning
to the "8" line is short, flight path is stable and smooth,
fitting of the tracking line and controller robustness are better. The
overshoot of CA control method at every turning point is larger, the
regulating time returning to the "8" line is longer, flight
path is not so smooth, fitting of the tracking line and controller
robustness are worse than that of ACO.
7. Conclusions
This paper establishes the kinematics model of quadrotor helicopter
by Newton Euler method, and obtains rotor lift model through experiment.
For the first time attitude and displacement control of quadrotor
helicopter is achieved by ACO method in practical systems. Results of
simulation and experiment show that ACO method can meet the stability
and rapidity requirement of quadrotor helicopter control and has better
robustness and real-time performance. In the follow-up work, the
improved ACO control method will be used to reduce the steady-state
error further and realize stabile control on attitude and translation of
quadrotor helicopter.
Received June 15, 2012
Accepted September 05, 2013
References
[1.] Guerrero, J.A.; Castillo, P.; Salazar, S.; Lozano, R. 2012.
Mini rotorcraft flight formation control using bounded inputs, Journal
of Intelligent & Robotic Systems 65(1-4): 175-186.
http://dx.doi.org/10.1007/s10846-011-9575-3.
[2.] Oner ,K.T.; Cetinsoy, E.; Sirimoglu, E.; Hancer, C.; Unel, M.;
Aksit, M.F.; Gulez, K.; Kandemir, I. 2012. Mathematical modeling and
vertical flight control of a tilt-wing UAV, Turkish Journal of
Electrical Engineering and Computer Sciences 20(1): 149-157.
[3.] Castillo, P.; Lozano, R.; Dzul, A.E. 2005. Modeling and
control of mini-flying machines, Springer, London.
[4.] Bouabdallah, S.; Noth, A.; and Siegwart, R. 2004. PID vs. LQ
control techniques applied to an indoor micro quadrotor, In IEEE/RSJ
International Conference on Intelligent robots and systems, Sendai,
Japan 3: 2451-2456 (Institute of Electrical and Electronics Engineers
Inc.).
[5.] Salih, A.L.; Moghavvemi, M.; Mohamed, H.A.F.; Gaeid, K.S.
2010. Flight PID controller design for a UAV quadrotor, Scientific
Research and Essays 5(23): 3660-3667.
[6.] Erginer Bora; Altug Erdinc 2012. Design and implementation of
a hybrid fuzzy logic controller for a quadrotor VTOL vehicle,
International Journal of Control, Automation and Systems 10(1): 61-70.
http://dx.doi.org/10.1007/s12555-012-0107-0.
[7.] Yu Yali; Jiang Changhong; Wu Haiwei. 2010. Backstepping
control of each channel for a quadrotor aerial robot, International
Conference on Computer, Mechatronics, Control and Electronic
Engineering, Changchun, China 5: 403-407.
[8.] Besnard Lenaick; Shtessel Yuri B.; Landrum Brian 2012.
Quadrotor vehicle control via sliding mode controller driven by sliding
mode disturbance observer, Journal of the Franklin Institute-Engineering
and Applied Mathematics 349(2): 658-684.
http://dx.doi.org/10.1016/j.jfranklin.2011.06.031.
[9.] Nicol, C.; Macnab, C.J.B.; Ramirez-Serrano A. 2011. Robust
adaptive control of a quadrotor helicopter, Mechatronics 21(6): 927-938.
http://dx.doi.org/10.1016/j.mechatronics.2011.02.007.
[10.] Lee, D.; Kim, H. Jin; Sastry, S. 2009. Feedback linearization
vs adaptive sliding mode control for a quadrotor helicopter,
International Journal of Control, Automation, and Systems 7(3): 419-428.
http://dx.doi.org/10.1007/s12555-009-0311-8.
[11.] Coza, C., Nicol, C., Macnab, C.J.B.; Ramirez-Serrano, A.
2011. Adaptive fuzzy control for a quadrotor helicopter robust to wind
buffeting, Journal of Intelligent & Fuzzy Systems 22(5-6): 267-283.
[12.] Kim Suseong; Lee Deawon; Kim H. Jin. 2011. Image based visual
servoing for an autonomous quadrotor with adaptive backstepping control,
2011 11th International Conference on Control, Automation, and Systems
(ICCAS), Gyeonggi-do, South Kore, 532-537.
[13.] Li Jin-song; Cao Xi; Yan Guo-zheng; Song Li-bo 2011. Research
on small unmanned four-rotor control based on AIC, In IEEE Second
International Conference on Digital Manufacturing & Automation,
Zhang jiajie, China, 1011-1014.
Li Jin-song *, Yang Lian **, Wang Le-tian ***
* Engineering Training Center, Shanghai Jiao Tong University,
Shanghai, People's Republic of China, E-mail:
[email protected]
** School of Electronic Information and Electrical Engineering,
Shanghai Jiao Tong University, Shanghai, People's Republic of
China, E-mail:
[email protected]
*** Engineering Training Center, Shanghai Jiao Tong University,
Shanghai, People's Republic of China
http://dx.doi.org/10.5755/j01.mech.19.5.5533
Table
The controller parameters in simulation
[W.sub.0] [mu] [[delta].sub.0], [[psi].sub.0],
rad rad
[O.sub.3x3] 0.001 0.4 0.4
[W.sub.0] [[theta].sub.0], [x.sub.0],
rad m
[O.sub.3x3] 0.5 0
[W.sub.0] [[gamma].sub.0], [Z.sub.0],
m m
[O.sub.3x3] 0 0