Professional Documents
Culture Documents
Control de Attitude y Aterrizaje
Control de Attitude y Aterrizaje
Y T
zY
Y
where ν(ω) = 0 ω T and ⊗ is an operator between two
zY
T T
yY quaternions qi = ηi i , i = 1, 2, defined as follows:
yY
η1 −Ti η2
ƌ TĚ ,Ĩ y
q1 ⊗ q2 = .
y 1 η1 I3 + S(1 ) 2
K
K
IĚ
\Ě y
K z z
z
TĚ 2.2 Hovering Control Problem
y z
;ĂͿ ;ďͿ
This paper focuses on hovering control of a drone above
a 6-DOF moving deck. We assume that the desired tra-
Fig. 1. Coordinate frames and hovering problem descrip- jectory and attitude of the deck are determined by the
T
tion nonlinear functions pd (t) = [xd , yd , zd ] ∈ R3 and γd (t) =
T
[φd , θd , ψd ] ∈ R3 with respect to time t, respectively,
Notations: Throughout this paper, R, Rm and Rn×m where pd (t) and γd (t) are 4th continuous differentiable.
denote the spaces of real numbers, real m-vectors and real Therefore, we can define the velocity and angular velocity
n × m matrices, respectively. The terms · p and · ∞ of the deck as vd (t) = ṗd and wd (t) = γ˙d , respectively.
denote the p-norm and infinity norm, respectively.
Hovering control aims at tracking the position of the
2. PROBLEM FORMULATION moving deck and keeping a constant heaving distance
to the deck. This process is very important for a drone
2.1 Dynamic Model of Drone landing on a moving deck safely. The most desirable
control is that the controlled drone can track the deck
while keeping the same attitude as that of the deck.
To describe the motion of a drone and a 6-DOF moving
However, it is noted that the second equation of (1) is
deck, three reference frames are defined as shown in Fig.
underactuated, which means that as the drone flies along
1(a): the inertial reference frame {I} fixed to the earth
the desired trajectory pd , its desired attitude R∗ must
surface, the platform body-fixed frame {B} attached to the
satisfy the following functional controllability constraint
deck surface and the drone body-fixed frame {Q} attached
by neglecting disturbance df :
to the drone’s gravity center.
M ge3 − M p̈d
The drone is described by the following dynamic model: R ∗ e3 = . (5)
uf
ṗ = v
M v̇ = −uf Re3 + M ge3 + df Obviously, the moblie platform has its own intrinsic at-
(1) titude Rd (γd ) that usually cannot satisfy the constaint
Ṙ = RS(ω)
condition (5). Since position plays a major role in landing
J ω̇ = S(Jω)ω + uτ + dτ
control, this paper will study how to make the drone track
where p = [x, y, z]T ∈ R3 and v = [vx , vy , vz ]T ∈ R3 the position of the deck while achieving the best attitude
denote the position of the gravity center of the drone and matching.
its velocity in the inertial reference frame {I}, respectively,
uf ∈ R is the scale translational control force, uτ ∈ R3 To make the descent of the drone smooth, a descenting
is the attitude control torque, M > 0 ∈ R and J = function H(t) is defined. It is conveniently designed to be
J T > 0 ∈ R3×3 are the mass and the inertia matrix of a smooth sigmoid function. An example will be given in
the drone, respectively, df ∈ R3 and dτ ∈ R3 are the Section 4. Denote H0 = H(t0 ) be the initial height and
bounded unknown disturbances, g = 9.8 is the acceleration Hf = H(∞) be the final height of the drone in the heave
of gravity, e3 = [0, 0, 1]T , S(·) ∈ R3×3 is a skew symmetric of the deck as shown in Fig. 1(b).
matrix regarding a vector x = [x1 , x2 , x3 ]T ∈ R3 given as It is noted that, to keep the heaving distance Hf , the
desired position z ∗ of the drone in the inertial frame needs
0 −x3 x2
S(x) = x3 0 −x1 , (2) to follow the following trajectory:
−x2 x1 0 Hf
z∗ = + zd . (6)
and R ∈ SO(3) is the rotation matrix from {Q} to {I}, cos(θd )
where SO(3) is the special orthogonal group of 3rd order:
Therefore, the hovering control problem can be solved if
SO(3) = {R ∈ R3×3 : RT R = RRT = I3 , |R| = 1}. (3) the drone can track the desired trajectory p∗d described as
The element of SO(3) can be parametrized by a unit Hf e3
T p∗d = pd + H(t)e3 + . (7)
quaternion as q = η T through Rodrigues formula: cos(θd )
R(q) = I3 + 2ηS() + 2S()2 , while keeping an attitude satisfying the constraint (5).
where η ∈ R and ∈ R3 are the scalar and vector
components of the unit quaternion q. See more details in 3. HOVERING CONTROLLER DESIGN
(Shuster (1993)). Then the kinematic equation (the third
equation of (1)) can be replaced by the following equation: In this section, an inner-outer loop control strategy will be
1 1 −T introduced to design the hovering controller. The structure
q̇ = q ⊗ ν(ω) = ω, (4)
2 2 ηI3 + S() of the inner-outer loop control is shown in Fig. 2.
246
IFAC OOGP 2018
Esbjerg, Denmark. May 30 - June 1, 2018 Shaobao Li et al. / IFAC PapersOnLine 51-8 (2018) 245–250 247
247
IFAC OOGP 2018
248
Esbjerg, Denmark. May 30 - June 1, 2018 Shaobao Li et al. / IFAC PapersOnLine 51-8 (2018) 245–250
Let the translational motion control law in the form as the quaternion qc∗ corresponding to Rc∗ can be obtained
uf = Fc (ẑ1 , ẑ2 ), (23) based on the quaternion algebra (Shuster (1993)).
and the desired attitude Rc∗ satisfying functional control- Based on the third equation of (1), the desired angular
lability constraint is given by velocity ωc∗ corresponding to Rc∗ is calculated by
Fc (ẑ1 , ẑ2 ) ωc∗ = GRc∗T Ṙc∗ e3 + ψ̇d e3 ,
Rc∗ e3 = . (24)
Fc (ẑ1 , ẑ2 ) where G is the matrix with the first, second and third rows
given by [0, −1, 0], [1, 0, 0] and [0, 0, 0], respectively, and ψ˙d
With the new translational motion control law (23), sys- is the angular velocity of the deck in yaw.
tem (19) is changed into
Define the quanternion error q̃ and the angular velocity
ż1 = z2 error ω̃ as
(25)
M ż2 = −uf (R − Rc∗ )e3 − κ (ẑ1 , ẑ2 ) + df .
q̃ = qc∗−1 ⊗ q (31)
Then, we have the following results. ω̃c = ω − ω̄c , (32)
Theorem 2. Consider the drone system (1) tracking the where ω̄c = R(q̃)T ωc∗ . Then, the attitude error system can
desired trajectory p∗d described in (7). Design a high-gain be
written as
observer in the form of (9) with the ploynomial s2 +λ1 s+1 1 0
being Hurwitz by choosing proper constant λ1 . Assume q̃˙ = q̃ ⊗
2 w̃c
that there exists a constant χ∗ > 0 such that uf (R − ˙
J ω̃c = Λ(ω̃c , ω̄c )ω̃c + S(J ω̄c )ω̄c − JR(q̃)T ω̇c∗ + uτ + dτ
Rc∗ )e3 ∞ ≤ χ∗ . Under the translational motion control (33)
law (23) with κ (ẑ1 , ẑ2 ) and Fc (ẑ1 , ẑ2 ) given in (21) and with Λ(ω̃c , ω̄c ) defined as
(22), respectively, and k1 , k2 , γ1 and γ2 satisfying Λ(ω̃c , ω̄c ) = S(J ω̃c ) + S(J ω̄c ) − S(ω̄c )J − JS(ω̄c ).
γ2 γ1 γ2 144k1 Remark 3. q̃ = [±1, 0, 0, 0]T are both the equilibriums of
< , 4k1 γ1 < , < 1, (26)
k2 4 4M k2 the first equation of (33), because q̃ = [±1, 0, 0, 0]T denote
system (25) is ISS with respect to the input −uf (R − the same attitude in the 3D space.
Rc∗ )e3 +df , without restricions on the initial states and the
Referring to the hybrid control method proposed in (May-
input. In particular, the states of system (25) are bounded
hew et al. (2011)), the attitude control law is designed as
by the following asymptotic bound
6M 3M uτ = JR(q̃)T ω̇c∗ − S(J ω̄c )ω̄c − k3 h˜
− k4 ω̃c , (34)
z1 p ≤ v2 p , z2 p ≤ v2 p , (27) where ˜ is the vector component of q̃, k3 and k4 are postive
k1 k2 k2
constants, and h ∈ {−1, 1} is a variable governed by
where v2 = (uf (R−Rc∗ )e3 +(κ(z1 , z2 )−κ (ẑ1 , ẑ2 ))+df )/M .
ḣ = 0, hη̃ > −ζ
(35)
Proof. Rewrite (25) in the form as h+ ∈ sgn(η̃), hη̃ ≤ −ζ
ż1 = z2 where η̃ is the scalar of q̃, ζ ∈ (0, 1) is the hysteresis
M ż2 = −κ(z1 , z2 ) − uf (R − Rc∗ )e3 (28) threshold, and sgn(η̃) is defined as
+(κ(z1 , z2 ) − κ (ẑ1 , ẑ2 )) + df sgn(η̃), |η̃| > 0
sgn(η̃) =
{−1, 1}, η̃ = 0.
Let χ(R, Rc∗ ) = −uf (R−Rc∗ )e3 . System (28) can be viewed
as a special case of system (C.1) in Appx C of (Isidori et al. The attitude control law (34) is effective to handle the
(2012)) with n = 2, q1 (t) = 1, q2 (t) = M 1
, v1 = 0 and unwinding phenomenon (Bhat and Bernstein (2000)) and
v2 = (χ(R, Rc∗ ) + (κ(z1 , z2 ) − κ (ẑ1 , ẑ2 )) + df ) /M . noise induced chattering (Mayhew et al. (2011)).
It is noted that the inequalities (12) and (13) imply that Then, we have the following theorem:
there exists a constant κ∗ > 0 such that κ(z1 , z2 ) − Theorem 4. Given the attitude error system (33), under
κ (ẑ1 , ẑ2 )∞ ≤ κ∗ . Therefore, there exists a constant the control law (34), system state x̃ = [q̃ T , ω̃cT , h]T is
v2∗ > 0 such that v2 ∞ ≤ v2∗ . globally uniformly ultimately bounded. In particular, if
dτ ≡ 0, system (33) is asymptotically stable.
Directly using the Lemma C.2.1 in (Isidori et al. (2012)),
d Fc (ẑ1 ,ẑ2 )
this theorem can be proved. Remark 5. Equation (24) implies Ṙc∗ e3 = dt |Fc (ẑ1 ,ẑ2 )| .
Then, ω̇c∗ is computed by
3.3 Attitude Control ω̇c∗ = GṘc∗T Ṙc∗ e3 + GRc∗T R̈c∗ e3 + ψ̈d e3
d Fc (ẑ1 , ẑ2 ) d2 F (ẑ1 , ẑ2 )
= GS(ωc∗ )T Rc∗T + G 2 c + ψ¨d e3 .
In order to satisfy χ(R, Rc∗ )∞ ≤ χ∗ , an attitude control
dt |Fc (ẑ1 , ẑ2 )| dt |Fc (ẑ1 , ẑ2 )|
will be designed to make R track Rc∗ . Note that the
rotation matrix Rc∗ is a mapping [φ∗c , θc∗ , ψc∗ ]T → Rc∗ , 3.4 Stability of the Closed-Loop System
and have the relationship described in XYZ convention
as shown in (30). Therefore, through (24) we can fix ψc∗ Combing Theorem 2 and Theorem 4, we can further obtain
and θc∗ . ψc∗ can be chosen randomly, but in order to achieve the stability of the whole closed-loop control system.
the best matching attitude with the deck, the thrid Euler Theorem 6. Consider the drone system (1) and the desired
angle of the desired attitude is fixed by ψc∗ = ψd . In this trajectory p∗d described in (7). Under the scalar trans-
way, the desired attitude of the drone is determined, and lational motion controller (21) with γ1 , γ2 , k1 and k2
248
IFAC OOGP 2018
Esbjerg, Denmark. May 30 - June 1, 2018 Shaobao Li et al. / IFAC PapersOnLine 51-8 (2018) 245–250 249
cos(θc∗ ) cos(ψc∗ ) − cos(θc∗ ) sin(ψc∗ ) sin(θc∗ )
Rc∗ = cos(φc ) sin(ψc∗ ) + cos(ψc∗ ) sin(φ∗c ) sin(θc∗ )
∗
cos(φc ) cos(ψc∗ ) − sin(φ∗c ) sin(θc∗ ) sin(ψc∗ )
∗
− cos(θc∗ ) sin(φ∗c ) (30)
sin(φ∗c ) sin(ψc∗ ) − cos(φ∗c ) cos(ψc∗ ) sin(θc∗ ) cos(ψc∗ ) sin(φ∗c ) + cos(φ∗c ) sin(θc∗ ) sin(ψc∗ ) cos(φ∗c ) cos(θc∗ )
x/m
0 p*
d
uniformly ultimately bounded. -10 p
0 5 10 15 20 25 30 35 40
This theorem is obviously based on the ISS property in 10
y/m
Theorem 2 and the globally uniformly ultimately bounded 0
z/m
0
the estimation errors of the high-gain observer. Since small -10
0 5 10 15 20 25 30 35 40
δ can enhance the accuracy of the high-gain observer, the time/s
tracking errors of the drone can also mitigated by choosing
small δ. Fig. 5. The position trajectory of the drone.
4. SIMULATION STUDIES 1
0 q*
c
-1 q
0 2 4 6 8 10
2 1
x
1
0 0
-1
-2 0 2 4 6 8 10
0 10 20 30 40 2
1
0
2 -1
y
0 2 4 6 8 10
0 1
-2
3
0
0 10 20 30 40 -1
0 2 4 6 8 10
time/s
1
z
0
-1 Fig. 6. The attitude trajectory of the drone.
0 10 20 30 40
time/s
u (N/m)
60
Fig. 3. The position estimation error of the high-gain 40
20
f
observer. 0 5 10 15 20
u (N/m) u (N/m) u (N/m)
50
0
1
x
x
-50
v
0 0 5 10 15 20
-1
20
0 10 20 30 40
0
y
1 -20
y
v
0 0 5 10 15 20
-1 10
0 10 20 30 40 0
z
-10
1 0 5 10 15 20
z
v
0
time/s
-1
0 10 20 30 40
time/s
Fig. 7. The translational motion control force and attitude
control torques of the drone.
Fig. 4. The velocity estimation error of the high-gain π − cos(2t)
6−5 cos( 30 t)
observer. pd (t) = π
−0.5−4 sin( 30 t) , γd (t) = 0.05 sin(2t) ,
sin(0.8t) − cos(2t)
In this section, a numerical example is presented to verify
the effectiveness of the proposed control solution. The respectively. The descending function H(t) is defined as
dynamic model of the drone is given by (1) with system Hf − H0
H(t) = H0 + , (36)
parameters: M = 3.25kg, J = diag(0.032, 0.032, 0.164), −6(2t−10)
1 + e 10
and df and dτ being the Gaussian white noises with
where, the initial height H0 of the drone is determined by
maximum aplitude of 1.5N and 0.05Nm, respectively.
its initial position in Z axis. The drone is desired to hover
The position trajectory and Euler angles of the 6-DOF at the height Hf = 1m above the deck. Then, the desired
deck follow the following nonlinear functions: position trajectory p∗d in (7) is obtained.
249
IFAC OOGP 2018
250
Esbjerg, Denmark. May 30 - June 1, 2018 Shaobao Li et al. / IFAC PapersOnLine 51-8 (2018) 245–250
10 ACKNOWLEDGEMENTS
5 15
10 This work is partially supported by the National Natural
0 5
y/m
-5 0 Science Foundation of P. R. China under Grant 61403334
x/m
and the Natural Science Foundation of Hebei Province
Fig. 8. The tracking trajectory of the drone in 3D. under Grant F2017203109.
REFERENCES
10
Behtash, S. (1990). Robust output tracking for non-linear
x/m
0
-10 systems. International Journal of Control, 51(6), 1381–
0 10 20 30 40 1407.
10
Bhat, S.P. and Bernstein, D.S. (2000). A topological ob-
struction to continuous global stabilization of rotational
y/m
5
0 motion and the unwinding phenomenon. Systems &
0 10 20 30 40 Control Letters, 39(1), 63–70.
10 Cao, N. and Lynch, A.F. (2016). Inner–outer loop control
z/m
250