Professional Documents
Culture Documents
https://doi.org/10.1007/s42496-020-00062-2
ORIGINAL ARTICLE
Received: 21 April 2020 / Revised: 15 September 2020 / Accepted: 8 October 2020 / Published online: 23 October 2020
© The Author(s) 2020
Abstract
This paper considers a feedback control law that achieves attitude stabilization for Earth-pointing spacecraft using only
magnetorquers as torque actuators. The control law is proportional derivative (PD)-like with matrix gains, and it guarantees
asymptotic stability. The PD matrix gains are determined through the numerical solution of a periodic linear quadric regulator
problem. A case study shows the effectiveness of the considered control law, and specifically of the gain selection method,
in a simplified simulation scenario.
13
Vol.:(0123456789)
F. Celani
16
Table 1 Notation
vi , vo , vb Vector of components of Euclidean vector v�⃗ w.r.t. frames Fi , Fo , and
Fb , respectively
q Quaternion representing rotation of Fb w.r.t. Fo
qv , q4 Vector part and scalar part of q
C(q) Attitude matrix corresponding to q (see Eq. (1))
v× skew-symmetric matrix corresponding to v = [v1 v2 v3 ]T (see Eq. (2))
𝜔
��⃗bo Angular velocity of Fb w.r.t. Fo
𝜔
��⃗bi Angular velocity of Fb w.r.t. Fi
𝜔
��⃗oi Angular velocity of Fo w.r.t. Fi
n Orbital rate
ẑ o Unit Euclidean vector corresponding to the zo-axis of Fo
J = diag[Jx , Jy , Jz ] Inertia matrix of the spacecraft
e3 See Eq. (8)
mcoils Vector of magnetic moments
b�⃗ Geomagnetic field at spacecraft
q̄ q̄ = [0 0 0 1]T set-point for q
In×n n × n identity matrix
⃗r Vector from the Earth center to the satellite center of mass
Rorbit Radius of circular orbit
Roi Rotation matrix from Fi to Fo
Rx See Eq. (19)
Rz See Eq. (20)
13
Gain Selection for Attitude Stabilization of Earth‑Pointing Spacecraft Using Magnetorquers 17
Moreover, since a circular orbit is considered, then (see [10, Sect. 1.4.1]) then
𝜔ooi = [0 − n 0]T where n is the constant orbital rate, and ( )× ( )×
consequently ̇
C(q)𝜔 o
= − 𝜔bbo C(q)𝜔ooi = − 𝜔bbo 𝜔boi
oi
(12)
=𝜔boi × 𝜔bbo = (C(q)𝜔ooi )× 𝜔bbo
𝜔boi = C(q)𝜔ooi (5)
Thus, from Eqs. (6)–(12) obtain
( ( )×
2.3 Attitude Dynamics J 𝜔̇ bbo = −J(C(q)𝜔ooi )× − 𝜔bbo J
)
The attitude dynamics can be expressed in body frame as +(JC(q)𝜔ooi )× − (C(q)𝜔ooi )× J 𝜔bbo
( )×
− C(q)𝜔ooi JC(q)𝜔ooi (13)
J 𝜔̇ bbi = −𝜔bbi × J𝜔bbi + Tgg
b b
+ Tcoils + Tdist (6) ( )×
+ 3n2 C(q)e3 JC(q)e3
where J = diag[Jx , Jy , Jz ] is the inertia matrix of the space- − (C(q)bo )× mcoils + Tdist
craft, Tgg
b
is the gravity gradient torque, Tcoils
b
is the external
torque induced by magnetic coils, and Tdist is a disturbance Let bi be the geomagnetic field at spacecraft expressed in
torque. inertial frame Fi and let Roi be the rotation matrix that trans-
The gravity gradient torque in body coordinates is given by forms vectors of coordinates in Fi into vectors of coordinates
(see [15, Sect. 6.10]) in Fo . Note that bi and Roi vary with time at least because of
the spacecraft motion along the orbit. Then
b
Tgg = 3n2 ẑ bo × Ĵzbo (7)
bo (t) = Roi (t)bi (t) (14)
where ẑ bo denotes
the unit vector corresponding to the zo-axis
which shows explicitly the dependence of bo on t. To study
of Fo resolved in body frame which can be expressed as
Eq. (13) it is important to characterize the time-dependence
ẑ bo = C(q)e3 of bo (t) , which corresponds to characterizing the time-
dependence of bi (t) and Roi (t) . By adopting the so-called
where dipole model of the geomagnetic field (see [14, Appendix
H]), and letting Rorbit denote the radius of the circular orbit,
⎡0⎤ obtain:
e3 = ⎢ 0 ⎥ (8)
⎢ ⎥
⎣1⎦ 𝜇 [ (( i )T i ) i ]
bi (t) = 3 m 3 m ̂ i (t) .
̂ (t) r̂ (t) r̂ (t) − m (15)
Rorbit
The spacecraft is equipped with three magnetic coils aligned
with the Fb-axes which generate the following magnetic con- In equation (15), 𝜇m is the total dipole strength, ri (t) is the
trol torque spacecraft position vector resolved in Fi , and r̂ i (t) is the
( )× vector of the direction cosines of ri (t) . The components of
b
Tcoils = mcoils × bb = − bb mcoils (9) vector m
̂ i (t) are the direction cosines of the Earth magnetic
dipole expressed in Fi , which is set equal to
where mcoils is the vector obtained by stacking the magnetic
moment of the three coils, and bb is the geomagnetic field at ⎡ sin(𝜃m ) cos(𝜔e t + 𝛼0 ) ⎤
the spacecraft expressed in Fb . Clearly, the relation between ̂ i (t) = ⎢ sin(𝜃m ) sin(𝜔e t + 𝛼0 ) ⎥,
m (16)
bb and bo is given by ⎢ ⎥
⎣ cos(𝜃m ) ⎦
bb = C(q)bo (10) where 𝜃m is the dipole coelevation, 𝜔e = 360.99 deg/day is
the Earth average rotation rate, and 𝛼0 is the right ascension
For what follows, it useful to rewrite Eq. (6) in terms of 𝜔bbo
of the dipole at time t = 0 . We use 𝜇m = 7.746 1015 Wb m
instead of 𝜔bbi . For that purpose note that from (4) and (5) it
and 𝜃m = 170.0 deg as reported in [9].
follows that 𝜔bbi = 𝜔bbo + C(q)𝜔ooi where 𝜔ooi = [0 − n 0]T is
To characterize the time dependence of bi (t) in (15), one
constant. Thus, the following holds
needs to determine an expression for ri (t) which is the space-
̇
𝜔̇ bbi = 𝜔̇ bbo + C(q)𝜔 o
(11) craft position vector resolved in Fi . Define a coordinate sys-
oi
tem xp , yp in the orbital plane, whose origin is at the center
Since of the Earth, and with the xp axis coinciding with the line
of nodes. Then, the position of satellite centre of mass is
̇
C(q) = −(𝜔bbo )× C(q) given by
13
F. Celani
18
Thus, in the latter simplified scenario bo (t) is periodic with Then, the restriction is given by the reduced order system
period Torbit = 2𝜋∕n. obtained considering the following equation
[( )1∕2 ]
q̇ v = 21 1 − qTv qv I3×3 + q×v 𝜔bbo (26)
13
Gain Selection for Attitude Stabilization of Earth‑Pointing Spacecraft Using Magnetorquers 19
along with the equations obtained from Eqs. (13) and (23) quadratic regulator problem formulated in [8]. In fact, in
replacing C(q) with Cv (qv ) which is given by [8] the time horizon is limited to only one orbital period
( ) ( ) ( )1∕2 × whereas the effective maneuvering time can easily involve
Cv qv = 1 − 2qTv qv I + 2qv qTv − 2 1 − qTv qv qv (27) several orbital periods. In addition, the cost function adopted
in [8] includes a penalty of the state at time t = Torbit which
Considering that bo changes with time (see Eq. (14)), does not seem to have a clear physical meaning. Moreo-
the linear approximation of the latter restriction around ver, compared to the linear quadratic method presented in
(qv , 𝜔bbo ) = (0, 0) can be represented as the following linear [17], the proposed approach has the advantage of adopting
time-varying system (see also [8, 17]) constant matrix gains Kp and Kd rather than time-varying
ẋ = Ax + B(t)u (28) ones which simplifies the practical implementation of the
control law.
subject to state-feedback
u = −Kx (29)
3.1 Solution to the Periodic Linear Quadratic
In the above equations x = [qTv (𝜔bbo )T ]T Regulator Problem
� � � �
0 1
I 03×3 � �
A = 3×3 2 3×3 B(t) = Reference [13] shows that a matrix K that solves the periodic
−1 o × 2 K = Kp Kd
A21 A22 −J ((b (t)) ) linear quadratic regulator problem just formulated, can be
⎡ −8n2 𝜎x 0 0 ⎤ determined by solving an equivalent simpler optimization
A21 =⎢ 0 6n2 𝜎y 0 ⎥ problem which can be formulated as follows. Consider the
⎢ ⎥ dynamic matrix of the closed-loop system in Eqs. (28) (29)
⎣ 0 0 2n2 𝜎z ⎦
� � which is equal to A(t)
̄ = A − B(t)K and denote by 𝛷Ā (t, 𝜏)
⎡ 0 0 n 1 − 𝜎x ⎤
the corresponding transition matrix which is the solution of
A22 =⎢ 0 0 0 ⎥
⎢ ⎥ the following matrix differential equation
⎣ −n(1 + 𝜎z ) 0 0 ⎦
Jy − Jz Jz − Jx Jx − Jy 𝜕𝛷Ā
𝜎x = 𝜎y = 𝜎z = ̄
(t, 𝜏) = A(t)𝛷Ā (t, 𝜏) 𝛷Ā (𝜏, 𝜏) = I6×6
Jx Jy Jz 𝜕t
Moreover, denote by 𝛹Ā the monodromy matrix associated
For selecting matrix gains Kp and Kd (or equivalently matrix
to A(t)
̄ which is given by 𝛹Ā = 𝛷Ā (Torbit , 0) . Then, it can be
gain K), set the coelevation angle of the magnetic dipole that
shown that K is an optimal point of the following optimiza-
generates the geomagnetic field to 𝜃m = 180 deg in which
tion problem
case bo (t) is periodic with period Torbit = 2𝜋∕n (see Eq. (21)).
( )
As a consequence, system in Eq. (28) is periodic with period min trace P0 X0
Torbit , too. Then, matrix gain K is chosen so that the closed- K
loop system given by Eqs. (28) (29) is asymptotically stable where P0 is the solution of the following discrete-time Lya-
and control (29) minimizes the following quadratic perfor- punov equation
mance index
{ ∞ } P0 = 𝛹ĀT P0 𝛹Ā + W (30)
[ T ]
∫0
T
E x (t)Qx(t) + u(t) Ru(t)
in which W is obtained by solving the following periodic
Lyapunov differential equation
where Q is a 6 × 6 positive semidefinite matrix, R is a 3
( )T ( )
× 3 positive definite matrix, and the expectation operator Ż = Ā Torbit − t Z + Z Ā Torbit − t + Q
̄
E{⋅} is taken over the set of possible initial state x0 which
is assumed to be a random variable having zero mean and with initial condition Z(0) = 06×6 and setting W = Z(Torbit ) .
known covariance X0 = E{x0 x0T } [13]. Note that parameter Matrix Q ̄ appearing in the previous differential equation is
X0 can be used by the designer that has some a priori knowl- given by Q ̄ = Q + K T RK . The considered optimization prob-
edge on the stochastic distribution of the initial state x0 . If lem is well defined if all eigenvalues of 𝛹Ā are within the
this type of information is not available, usually one sets open unit disk in the complex plane which is equivalent to
X0 = 𝜎02 I6×6 in which 𝜎0 > 0 is a design parameter. Clearly, requiring that closed-loop system in Eqs. (28) (29) is asymp-
matrices Q and R represent design parameters, too. totically stable [1]. In fact, the latter condition guarantees
that the solution P0 of Eq. (30) exists and is unique. As a
Remark 1 The periodic linear quadratic regulator problem result, from a numerical point of view it is necessary to start
considered in this work compares favorably to the linear the optimization procedure with an initial guess for K that
13
F. Celani
20
13
Gain Selection for Attitude Stabilization of Earth‑Pointing Spacecraft Using Magnetorquers 21
q1
0
(dashed lines)
-0.5
0 2 4 6 8 10 12 14 16 18 20
0.2
0
q2
-0.2
-0.4
0 2 4 6 8 10 12 14 16 18 20
1
3
0
q
-1
0 2 4 6 8 10 12 14 16 18 20
1
0.8
q4
0.6
0 2 4 6 8 10 12 14 16 18 20
orbital period
Thus, for simplicity, the simulation is performed using a The scope of the considered numerical study is limited.
constant residual dipole equal to m0 = [0 0 3 ⋅ 10−4 ]T A m2 . In fact, a more accurate study could consider a more realis-
Note that the residual dipole torque is usually the largest tic model for the geomagnetic field, a time-varying residual
among the disturbance torques acting on a nanosatellite fly- magnetic dipole, additional disturbance torques such as
ing in a low Earth orbit. Thus, for simplicity other distur- those due to aerodynamic drag and solar radiation pressure,
bance torques such as those due to aerodynamic drag and and errors in attitude determination and in angular veloc-
solar radiation pressure, are not included in the simulation. ity sensors (see [3]). However, such more complete study
Corresponding simulation results are reported in Figs. 2, goes beyond the scope of this work whose focus is mostly
3, 4. theoretical.
Plots of the Euler angles are included even if redundant
since they are useful to quantify the error in steady-state.
5 Conclusion
In nominal conditions convergence to the desired attitude
is achieved within 5 orbital periods. Simulations with per-
This work studies the problem of attitude stabilization of
turbed conditions show that the proposed attitude control
an Earth-pointing spacecraft using only magnetorquers.
system is able to compensate for the considered perturba-
A PD-like control law with matrix gains is employed. The
tions to a significant extent. As a matter of fact, in steady-
matrix gains selection is based on the numerical solution
state the maximum roll, pitch, and yaw error are, respec-
of a periodic linear quadratic problem. The periodic linear
tively, about 2°, 4°, and 5°.
quadratic problem adopted in this paper compares favora-
The time histories of mcoils in Fig. 5 show that the required
bly under several aspects to other linear quadratic regula-
maximum magnitude for the magnetic dipole generated by a
tor problems employed in existing works for gain selection.
single coil is lower that 4 10 -3 A m 2. Such a magnitude can
A case study illustrates the effectiveness of the proposed
be easily achieved by Tigrisat that can generate dipoles up to
method considering a simplified simulation scenario. More
0.22 A m2 for mcoils x and 0.696 A m2 for mcoils y and mcoils z3
accurate simulation environments are not considered since
that would go beyond the scope of this work whose focus is
mostly theoretical.
3
Personal communication by Dr. S. Carletta.
13
F. Celani
22
(deg)
conditions (dashed lines) 0
-50
0 2 4 6 8 10 12 14 16 18 20
50
(deg)
0
-50
0 2 4 6 8 10 12 14 16 18 20
100
(deg)
-100
0 2 4 6 8 10 12 14 16 18 20
orbital period
-2
b
-4
0 2 4 6 8 10 12 14 16 18 20
-3
10
(rad/s)
0
bo y
b
-2
0 2 4 6 8 10 12 14 16 18 20
-3
10
5
(rad/s)
0
bo z
b
-5
0 2 4 6 8 10 12 14 16 18 20
orbital period
13
Gain Selection for Attitude Stabilization of Earth‑Pointing Spacecraft Using Magnetorquers 23
(A m )
nominal conditions (solid lines)
2
4
and in perturbed conditions
(dashed lines) 2
coils x
0
-2
m
0 2 4 6 8 10 12 14 16 18 20
10 -3
(A m )
2
2
0
coils y
-2
m
0 2 4 6 8 10 12 14 16 18 20
-3
10
m coils z (A m2 )
-2
0 2 4 6 8 10 12 14 16 18 20
orbital period
Funding Open access funding provided by Università degli Studi di 4. Lovera, M., Astolfi, A.: Spacecraft attitude control using magnetic
Roma La Sapienza within the CRUI-CARE Agreement. actuators. Automatica 40(8), 1405–1414 (2004)
5. Lovera, M., Astolfi, A.: Global magnetic attitude control of
inertially pointing spacecraft. J. Guidance Control Dyn. 28(5),
Compliance with ethical standards 1065–1067 (2005)
6. Ovchinnikov, M., Roldugin, D., Ivanov, D., Penkov, V.: Choosing
Conflict of interest The author declares that he has no conflict of inter- control parameters for three axis magnetic stabilization in orbital
est. frame. Acta Astronautica 116, 74–77 (2015a)
7. Ovchinnikov, M., Roldugin, D., Penkov, V.: Three-axis active
Open Access This article is licensed under a Creative Commons Attri- magnetic attitude control asymptotical study. Acta Astronautica
bution 4.0 International License, which permits use, sharing, adapta- 110, 279–286 (2015b)
tion, distribution and reproduction in any medium or format, as long 8. Psiaki, M.L.: Magnetic torquer attitude control via asymptotic
as you give appropriate credit to the original author(s) and the source, periodic linear quadratic regulation. J. Guidance Control Dyn.
provide a link to the Creative Commons licence, and indicate if changes 24(2), 386–394 (2001)
were made. The images or other third party material in this article are 9. Rodriquez-Vazquez, A.L., Martin-Prats, M.A., Bernelli-Zazzera,
included in the article’s Creative Commons licence, unless indicated F.: Spacecraft magnetic attitude control using approximating
otherwise in a credit line to the material. If material is not included in sequence Riccati equations. IEEE Trans. Aerosp. Electron. Syst.
the article’s Creative Commons licence and your intended use is not 51(4), 3374–3385 (2015)
permitted by statutory regulation or exceeds the permitted use, you will 10. de Ruiter, A.H.J., Damaren, C.J., Forbes, J.R.: Spacecraft dynam-
need to obtain permission directly from the copyright holder. To view a ics and control: an introduction. Wiley, Chichester (2013)
copy of this licence, visit http://creativecommons.org/licenses/by/4.0/. 11. Sidi, M.J.: Spacecraft dynamics and control. Cambridge Univer-
sity Press, Cambridge (1997)
12. Teofilatto, P., Testani, P., Celani, F., Nascetti, A., Truglio, M.: A
nadir-pointing magnetic atitude control system for Tigrisat nano-
References satellite. Proceedings of the International Astronautical Congress,
IAC 6, 4818–4829 (2013)
1. Bittanti, S., Colaneri, P.: Periodic systems: filtering and control. 13. Viganò, L., Bergamasco, M., Lovera, M., Varga, A.: Optimal peri-
Springer-Verlag, London (2009) odic output feedback control: A continuous-time approach and a
2. Celani, F.: Robust three-axis attitude stabilization for inertial case study. Int. J. Control 83(5), 897–914 (2010)
pointing spacecraft using magnetorquers. Acta Astronautica 107, 14. Wertz JR (ed) (1978) Spacecraft attitude determination and con-
87–96 (2015) trol. Kluwer Academic
3. Colagrossi, A., Lavagna, M.: Fully magnetic attitude control sub- 15. Wie B (2008) Space vehicle dynamics and control. American
system for picosat platforms. Adv. Space Res. 62(12), 3383–3397 institute of aeronautics and astronautics
(2018)
13
F. Celani
24
16. Wiśniewski, R., Blanke, M.: Fully magnetic attitude control for Publisher’s Note Springer Nature remains neutral with regard to
spacecraft subject to gravity gradient. Automatica 35(7), 1201– jurisdictional claims in published maps and institutional affiliations.
1214 (1999)
17. Yang, Y.: An efficient algorithm for periodic Riccati equation with
periodically time-varying input matrix. Automatica 78, 103–109
(2017)
13