0% found this document useful (0 votes)
181 views

Stellite Dynamics

The document provides an overview of spacecraft attitude sensors and actuators. It describes different types of sun sensors including sun presence sensors that detect the presence of the sun in a field of view and analog/digital sun sensors that provide information on the sun's position. It also discusses horizon sensors, magnetic field sensors, star sensors, and gyroscopes. The document outlines methods for attitude determination including geometrical, algebraic, and statistical methods. It examines various actuators for attitude control including thrusters, inertia/reaction wheels, control moment gyroscopes, and magnetic actuators.

Uploaded by

Neetu Sharma
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
181 views

Stellite Dynamics

The document provides an overview of spacecraft attitude sensors and actuators. It describes different types of sun sensors including sun presence sensors that detect the presence of the sun in a field of view and analog/digital sun sensors that provide information on the sun's position. It also discusses horizon sensors, magnetic field sensors, star sensors, and gyroscopes. The document outlines methods for attitude determination including geometrical, algebraic, and statistical methods. It examines various actuators for attitude control including thrusters, inertia/reaction wheels, control moment gyroscopes, and magnetic actuators.

Uploaded by

Neetu Sharma
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 76

Course Notes

Spacecraft Attitude Dynamics and Control




Politecnico di Milano
Prof. Franco Bernelli Zazzera




Part 2:
Attitude determination and control systems

Spacecraft Attitude Dynamics and Control Course notes

Note for the reader

These short notes are in support of the course Attitude dynamics and control, they are not
intended to replace any textbook. Interested readers are encouraged to consult also printed
textbooks and archival papers.

Technological evolution provides continuously upgraded and improved sensors and actuators used
for attitude determination and control of spacecraft. These notes, therefore, report some basic
concept and operating principle of the most common sensors and actuators, and the reader is
encouraged to consult the catalogues of the manufacturers to collect information of the actual
functional schemes.
Among others, the following websites, existing when these notes were written (May 2011), are
good references: www.aeroastro.com, www.astrofein.com, www.ball.com, www.dynacon.ca,
www.honeywellaerospace.com, www.northropgrumman.com, www.oss.goodrich.com, www.ssc.se,
www.sodern.fr, www.selexgalileo.com, www.sunspace.co.za, www.teldix.de, www.zarm-
technik.de.


Acknowledgments

I must really thank Ivan Ferrario and Mauro Massari, former students in my class, whose patient
work gave the first impulse to the preparation of the current notes.

Spacecraft Attitude Dynamics and Control Course notes

Index

Spacecraft attitude sensors .............................................................................................................. 1
Sun sensors ................................................................................................................................. 1
Sun presence sensors ............................................................................................................... 2
Analog and digital Sun sensors ................................................................................................ 4
Use of Sun presence sensors on board simple spin satellites .................................................... 9
Horizon sensors (Earth sensors) ................................................................................................ 12
Magnetic field sensor ................................................................................................................ 15
Star sensors ............................................................................................................................... 19
Use of GPS sensors for attitude determination ........................................................................... 22
Gyroscopes ............................................................................................................................... 24
Mechanical gyroscopes ......................................................................................................... 24
Laser gyroscopes ................................................................................................................... 26
Piezoelectric gyroscopes ........................................................................................................ 27
Attitude determination .................................................................................................................. 28
Geometrical methods................................................................................................................. 28
Algebraic methods .................................................................................................................... 30
Statistical methods .................................................................................................................... 32
Actuators for spacecraft attitude control ........................................................................................ 35
Thrusters for attitude control ..................................................................................................... 35
Use of thruster on spinned satellites ....................................................................................... 35
Inertia and reaction wheels ........................................................................................................ 37
Control moment gyroscopes ...................................................................................................... 42
Magnetic actuators .................................................................................................................... 44
Example of control system based on inertia and reaction wheels ................................................... 47
General control problem ................................................................................................................ 51
Minimum time maneuvers ............................................................................................................. 56
Nonlinear control with constant thrust actuators ............................................................................ 61
Passive damping systems .............................................................................................................. 65
Spin rate damping ......................................................................................................................... 70
Active control with magnetic actuators ...................................................................................... 70
Passive control with yo-yo device ............................................................................................. 70

Spacecraft Attitude Dynamics and Control Course notes
1
Spacecraft attitude sensors

Sun sensors

Sun sensors are normally based on materials that produce an electric signal when illuminated by
Sun radiation. Measuring the electric output, in general a current, it is possible to evaluate the Sun
incidence angle with respect to the surface illuminated.




SWcos cos I I
0
= =

where S is the sensor surface, is a coefficient and W the intensity of the incident radiation.

Sensors are normally built using a series of surfaces with appropriate geometry. Three major
categories are identified:

Sun presence sensors, that essentially detect the presence of the Sun only in a narrow portion of
the surrounding space
Sun sensors, the most used ones, that provide information on the position of the Sun with a wide
field of view
Fine Sun sensors, that provide a precise position of the Sun within a narrower field of view

Every sensor has a well defined field of view (FOV) and a reference axis that defines the local zero
angles. The sensor provides a measure of the relative position of the Sun in the sensor reference.
This measurement has to be transformed into information in the satellite reference through a
rotation, knowing the orientation of the sensor reference with respect to the principal inertia
reference (typically).
Z


Field of View


Sensor


Y

Satellite

X


Spacecraft Attitude Dynamics and Control Course notes
2
The Sun sensor can be calibrated according to the mission of the satellite. For geocentric orbits the
sensor will always see the Sun under an apparent angle of 0,53 degrees, that is the apparent Sun
diameter at 1 AU, while for interplanetary orbits the angle depends on the position. Normally, Sun
sensors are calibrated for use in geocentric orbits.
Sun sensors are widely adopted. They are used not just for attitude determination purposes, but also
for instrument pointing, solar panel pointing and/or thermal requirements verification.

Sun presence sensors

Sun presence sensors provide a sort of binary information: the Sun is detected or it is not detected in
the sensor field of view, which is usually restricted. The cosine law is not applicable in this case,
due to the presence of shields or support structures. It is common practice to adopt configurations
with more than one photocell, as in the following picture.



When the Sun moves, either one, both or no photocell is illuminated. Comparing the output signal
of the two photocells we can then have the information of the Sun presence and a rough indication
of the position.

One alternative geometry uses the principle of refraction in a prismatic configuration.





If nsin =1, with n indicating the refraction index of the prism, in the condition of the above figure
radiation does not hit the photocell since it is refracted. As the angle varies, on one photocell the
incidence will be greater than and on the other smaller, therefore on one photocell radiation will
be totally reflected and on the other partially absorbed, providing an electric output.

A further geometry is the following:

Spacecraft Attitude Dynamics and Control Course notes
3

mirror
photocell
mirror






photocell



As the Sun moves from the sensor axis, the reflecting surface is more and more illuminated up to
the point when the Sun image is completely on the reflecting surface. From this condition the output
would be constant even for further Sun inclination, the sensor is saturated.

We can now look at a binary sensor:






Slit




Photocell


When the Sun ray passes through both slits, it means the Sun is in the plane of the slits and in a
definite region of that plane, as seen in the following figure:


Spacecraft Attitude Dynamics and Control Course notes
4
Analog and digital Sun sensors

Sensors providing the position of the Sun can be divided into two main categories: analog sensors
and digital sensors. We start by considering the analog sensors.

Using the cosine law it is not possible to distinguish positive angles from negative ones.
Furthermore, small errors in the measurement close to the sensor zero (vertical) will deliver large
errors in the evaluation of the Sun angle, since the variation of the cosine is small close to zero
angles.


I







The problem can be limited by adopting two photocells inclined with respect to the zero-axis of the
sensor:
+

-




1 2


schield


Looking now at the intensity of the output current of the two photocells, within the limits
guaranteed by the presence of the shields, we have:

I



2 1


-


Taking now the difference of the two:

Spacecraft Attitude Dynamics and Control Course notes
5
I








The combined output curve is expressed as:

( ) ( ) sin sin sin 2 sin sin cos cos sin sin cos cos cos cos = = + + = + k

where the constant 2sin depends on the sensor geometry. The output signal is then sinusoidal, and
for small angles it can be approximated by a linear function. If the angle becomes large, then the
useful operating field of view becomes smaller, since the output can be considered reliable only
when both photocells are hit by Sun radiation.

With a two-cell sensor we can retrieve the information on the Sun position in one plane, while to
obtain the position in space a four-cell configuration has to be adopted, as depicted in the following
figure.

2 1
3 4


The sensor box or shield produces a shadow on each photocell, and the sensor will provide reliable
information only when all 4 cells are illuminated. For each cell we have:

( ) , f A
n i cA I
0
0
=
=


A
0
is the illuminated area and it is a function of the Sun direction and the sensor geometry. In fact,
the product i n is known from the Sun distance, so that each output will be proportional to A
0
which
in turn can be evaluated as a function of the Sun position.

There exist also digital Sun sensors, which provide directly binary information dependent on the
Sun position. To understand the sensor principle of operation, start looking at a classical binary
table:

Spacecraft Attitude Dynamics and Control Course notes
6
Analog Binary Analog Binary
0 0000 8 1000
1 0001 9 1001
2 0010 10 1010
3 0011 11 1011
4 0100 12 1100
5 0101 13 1101
6 0110 14 1110
7 0111 15 1111

The corresponding sensor can be built by using four sensor strips with appropriate mask. In the
following figure the red zones correspond to bit set to 1.

Sensor zero
















LSB MSB


The photocells have all the same properties but their masks are different. When the cells are placed
at the bottom of a box with one slit, the Sun produces a line of light that hits each photocell in the
same position, generating a signal according to the mask of the series of photocells. This signal can
be interpreted as a binary signal. The cell with the finest grid is the least significant bit (LSB), while
the cell with the coarse grid is the most significant bit (MSB).



This sensor provides a meaningful signal only when the Sun is in a plane orthogonal to the top slit,
otherwise some photocells might not be hit by radiation and their output would become not
dependent on the Sun angle. To avoid this, the sensor includes always a Sun presence sensor with
Spacecraft Attitude Dynamics and Control Course notes
7
disposition orthogonal to the top slit, as in the figure below, and the output of the Sun presence
sensor triggers the decoding of the sensor signal.



At 1 AU distance, the Sun is seen under an apparent angle of approximately 0.5 degrees, so this is
the thickness of the light line hitting the photocells. The finest grid should then have a 0.5 degrees
sequence. The LSB is then providing a change in the output at every 0.5 degrees change in the Sun
position. The overall sensor field of view (FOV) is then a function of the number of strips (bits) of
the sensor, since each additional bit doubles the field of view. With 7 bits we have 64 degrees FOV,
with 8 bits 128 degrees FOV, that is the maximum since it is useless to go beyond 180 degrees.

To decode the output signal, a threshold has to be defined above which the signal is interpreted as 1,
below which it is interpreted as 0. The threshold can be made automatic and position-independent
by including a further photocell strip, of width half the width of the other strips and with no cover
grid, called Automatic Threshold Adjust (ATA).

LSB MSB ATA



Comparing the output signal of the ATA with the other photocells, each bit is set to 1 if the ATA
has a lower output; it is set to 0 if the ATA has a higher output. This because the output of the ATA
is always half the maximum output of any other photocell, due to the half width of the ATA,
irrespective of the position of the Sun. In fact, calling j the grid spacing of the LSB, k the width of
the LSB and k/2 the width of the ATA, we have:

=
=
cos xk I
cos
2
jk
I
lsb
ata



Spacecraft Attitude Dynamics and Control Course notes
8
where x is the portion of the LSB illuminated by the radiation. If I
ata
>I
bit
, then k/2>x and the bit is
set to 0 because the LSB is illuminated by less than half. On the contrary, if I
ata
<I
bit
, then k/2<x and
the bit is set to 1 because the LSB is illuminated by more than half. This procedure does not suffer
from the changes of the output due to the cosine law and any variation in the intensity of the
incident radiation. In a similar way, all bits are compared to the ATA to decode them and set them
to 0 or to 1.

When any bit strip is illuminated exactly for half the maximum, then any measurement error can
trigger the detected output to 1 or to 0, in a rather random way. This is a great problem when a
series of bits are in this condition, such as between the decimal value 7 and 8. In this case, any
measurement noise can trigger any bit to 1 or to 0, so the actual decoded signal would not look like
0111 (decimal 7) or 1111 (decimal 8), but it could be any combination of 0 and 1, including 0000
(decimal 0) and 1111 (decimal 15). This is obviously a huge error, and to avoid this situation the
binary code has to be modified in order to avoid having to consecutive integer numbers differing by
more than 1 bit. This appropriate code is called Gray code.

Analog Binary Gray
0 0000 0000
1 0001 0001
2 0010 0011
3 0011 0010
4 0100 0110
5 0101 0111
6 0110 0101
7 0111 0100
8 1000 1100

The grid spacing of the Gray code is twice as large as the classical binary code, but is has a
symmetric configuration so that the resolution is not changed. With this code, random errors due to
misinterpretation of bits are limited to 1 sensor unit, in this case 0,5 degrees.

LSB MSB ATA


Spacecraft Attitude Dynamics and Control Course notes
9
By placing one additional grid besides the LSB, but shifted by half unit, the sensor resolution can be
improved. Once the basic bits are interpreted, a further analysis of the LSB and the additional bits
provides a further half unit of resolution (one quarter of degree) if only one further bit is added, and
a quarter unit resolution in the case of two added bits. This has the effect of providing resolutions
up to approximately 1/8 of degree. For higher resolution, specific and mission dependent solutions
must be implemented.



In order to have a full 180 degrees FOV, at least two sensors must be used with overlap of their
individual FOVs.



Use of Sun presence sensors on board simple spin satellites

The following example shows the possibility to use a Sun presence sensor to infer the Sun angle
when mounted on a simple spin satellite. Consider the simple spin satellite with a two-slit Sun
presence sensor mounted on the lateral surface. At every rotation, a signal is produced by the sensor
if the Sun is in the sensor FOV.


I








t

t


Spacecraft Attitude Dynamics and Control Course notes
10
The Sun angle can be calculated by the analysis of the time interval between two consecutive
electric pulses produced by a pair of two-slit sensors, with relative inclination .

2 1





Looking at the celestial sphere centered on the satellite, we can draw the following geometry of the
problem:

FOV 1 I
1
FOV 2



Sun

T
O I
2


A B




t
o

t
1



The reference system is centered on the sensor and the equator is orthogonal to the sensor itself.
Notice that the line of sight of sensor 1 is orthogonal to the equator. The interval T is connected to
the spin angular velocity of the satellite, while the interval depends on the spin angular velocity
and on the slit relative inclination . Consider the spherical triangle OABS:

S





O B


equator
A


We have:
Spacecraft Attitude Dynamics and Control Course notes
11

2

AB
T / 2
=
=
=
=



Using the cosine theorem for spherical triangles we evaluate . Hence, measuring and it is
possible to evaluate the Sun angle , considering that some limitations to the general FOV of the
sensor exist due to the relative inclination between the two slits (angle ).

Starting from the measurement , the equations to solve the problem are:

( ) sin
tg

tg

=
|

\
|


( ) sin
tg
cotg

=

In a simulation environment, it is also possible to analyze and predict the sensor output, so
evaluating the time interval as a function of the problem geometry, with the following equation

( ) tg tg sin

1
=

This is useful to define the minimum sampling time of the signal, sufficiently lower than the
interval . Considering also some possible construction and mounting errors for the sensor, the
above equation should be modified as:

( ) ( )
( )
tg
sin
cos tg tg
cotg
2
2
2
+
(

+ +
=



where:

error on the relative angle between slits (not known)
alignment error of slit 1 and spin axis
in-plane rotation angle error of slit 1

In general, the simplest equation is used as a solution method, while the more complete model is
used only to model the sensor and infer the possible operating errors, in connection also with the
sampling frequency of the signals.

Spacecraft Attitude Dynamics and Control Course notes
12
Horizon sensors (Earth sensors)

If the spacecraft is orbiting close to an extended body, such as a planet, the information on the
presence of the planet within the FOV of a sensor is not sufficient to have information on the
satellite attitude. To do so, the precise position of the center of the planet has to be evaluated.
Horizon sensors work by analyzing the areas of the FOV that are not illuminated (deep space)
compared to the illuminated areas (planet), and in general do not work in the visible spectrum to
reduce the effects of interferences. It is common practice to design infrared sensors, for which the
ratio of the Earth radiation compared to Sun radiation is only 1 to 400 (it is 1 to 30.000 in the
visible spectrum). For Low Earth Orbits, the Earth can occupy 40% of the celestial sphere. One
option to calculate the planet center position is to detect two planet chords, assuming the planet is a
sphere.

B
A C
O
D


The sensor must be capable of detecting 4 points on the horizon, and associate the points to build
the two chords. In general the sensor has a narrow field of view (2 degrees), but it can scan the
horizon to produce the required output. When the sensor FOV is on the planet, the output is non-
zero, when the sensor FOV is in deep space the output is zero.







trigger


A B t


Given a reference frame on the satellite, position of points A and B is known, and in similar way
positions of points C and D and then the planet center. There are obviously some critical issues,
since the boundary of the planet (points A and B) might not be so neat due to the transient nature of
the sensor output induced by planet atmosphere. This can be solved by choosing an appropriate
trigger level of the signal, above which we consider the signal as correct and below which we
assume there is no signal. Points A and B will then correspond to the adopted trigger value. This
value should be not fixed, but allowed to vary as a function of the peak signal or on the average of
the signal itself, in order to consider also seasonal changes in the radiation emitted or day/night
transitions. It is also to notice that the intensity of the sensor signal is not constant, due to change in
the distance from ground as the sensor scans the horizon.
Spacecraft Attitude Dynamics and Control Course notes
13
The center of the Earth can be detected using spherical geometry. Assuming the Earth is a perfect
sphere, knowledge of the orbit altitude provides the information of the Earth apparent radius, and so
that only one chord becomes necessary. In the following picture the case of scanning above the
equatorial plane is illustrated.


C meridian intercepting the planet center
C

scan track
A D B /2

O E A

Earth disc E
O

celestial sphere


For the spherical triangle CAEO we know CA and angle C

. Arc AE is the apparent radius of the


Earth, known from the altitude, and calling the inclination of the scan direction with respect to the
satellite horizon we have:

( )
AE
AD arc sensor by detected
2
t
2

latitude CA
=
= = =
= =


From spherical triangle geometry we then have:

CE which from
sin sin
cos cos cos
cos
2

1
=
|
|

\
|
=





This type of sensor is rather heavy due to the presence of precise scan mechanism, that must
guarantee a scan velocity much higher that the spin velocity of satellite.

Different sensor architecture, adopted in Earth pointing missions, is based on the continuous
detection of the Earth disc, in the sensor FOV, and in the evaluation of its center position still by
detecting the position of two orthogonal diameters with 4 detectors.

Spacecraft Attitude Dynamics and Control Course notes
14
Z
1
4 3
Y
2


When the Earth is in the center of the FOV, the four detectors have all the same output, so that:

( ) ( )
( ) ( ) 0 4 3
0 2 1
=
=


When the image of the Earth is not centered, the four detectors have different outputs and taking
appropriate differences we have direct information of the misalignment angles:

( ) ( )
( ) ( )
z
y
to al proporzion y 4 3
to al proporzion z 2 1
=
=


y
Sensor x
z



For simple spin or dual spin satellites, with nominal angular momentum aligned with the z axis,
measurement of
z
is always required since the z equation is decoupled from x and y equations. The
x and y equations are instead coupled, so that measuring only
x
or
y
we can in any case
reconstruct the satellite attitude with a state observer. Therefore this sensor, that measures the two
angles
y
and
z
, is suitable for a full state observation in the linear satellite dynamics model.
This sensor is not capable of detecting rotations around the yaw axis (x), and furthermore the
optical head must be designed in order to have a FOV that is twice the Earth apparent radius.
Therefore this sensor is commonly used only for circular orbits, at constant altitude, and on Earth
pointing satellites.

Spacecraft Attitude Dynamics and Control Course notes
15
Magnetic field sensor

This sensor can provide the measurement of one vector. It has to be coupled with a mathematical
model of the magnetic field and to the knowledge of the position of the satellite in order to provide
attitude information.

B
m
measured




B=A B
m

A is the attitude matrix


It is not simple to measure a constant magnetic field; in fact typically the rate of change of the flux
of the magnetic field vector can be measured by a coil. Indicating with dove
B
the flux of the
magnetic field and the magnetic permeability, we have

=
dt
d
I
B


This could be in principle obtained by having one coil rotating around a defined axis

Axis of rotation


B



For a constant B vector the measurement would be sinusoidal



and the derivative of the measured signal is the projection of the B vector onto the coil axis, rotating
inside the satellite. This procedure is complicated and provides a measurement not directly useful
for attitude determination purpose, therefore alternative sensors are built, called fluxgate
magnetometers.

Consider two nuclei of ferromagnetic material, with two coils winded as shown in the figure below

Spacecraft Attitude Dynamics and Control Course notes
16
H
p1

I
p
nucleus 1
V
p
nucleus 2

H
p2

H
est
V
s




On the left side the coil, called primary coil, is winded in such a way to produce on the two nuclei
exactly the same magnetic induction but with opposite sign. Since the voltage at the secondary coil
(on the right) is

( )
dt
B B d
V
2 1
s
+
=

In the case of zero external magnetic field the voltage would be zero. If the external magnetic field
is non-zero, it is added to the induction due to the primary coil and the voltage at the secondary coil
would be non-zero.
The coils create a magnetic induction field that generates the magnetic field B. This is normally a
nonlinear mapping, which for sake of clarity will be modeled as linear with saturation, neglecting
nonlinearity and hysteresis.

B
H


The current flowing in the primary coil is usually generated with a triangular wave form, so that the
generated magnetic induction will also have a triangular waveform.

dt
dH
dt
di
L V = =

It will be clear later on that the triangular waveform as input generates a pulsed output, easy to
convert into a magnetic field measurement.

Define the following input to the primary coil
Spacecraft Attitude Dynamics and Control Course notes
17
I
p
t


The two magnetic induction in the two nuclei are

H
p1
H
p2




t t




Adding the effect of the external magnetic field we get to

H
1
H
2
Sat.
H
est


The magnetic field in the two nuclei becomes, considering nucleus saturation

B
1
B
2

We can now add the two magnetic fields generated, to analyze what is included in the secondary
coil on the right part of the sensor.

Spacecraft Attitude Dynamics and Control Course notes
18
B
1
+B
2
zone where B
1
or B
2
is saturated
zone where B
1
and B
2
are not saturated




zone where both B
1
and B
2
are saturated


The voltage at the secondary coil is the derivative of the flux of the magnetic field vector induced
V
s


The spacing between the impulses is related to the component of the external magnetic field in the
direction of the coil axis. The amplitude of the impulse is instead depending on the peak current in
the primary coil.
Since the principle of operation of this sensor relies on the saturation of the two nuclei, the value of
the current in the primary coil must consider the expected value of the external magnetic field. In
case no saturation of the two nuclei occurs, or if one nucleus is permanently saturated and the other
never saturated, then the sensor would produce no meaningful output.
Using three pairs of nuclei, as shown below, we can measure the components of the magnetic field
along three orthogonal directions, so the B vector.



Notice that this measurement is taken in a body axes frame (B
x,y,z
), while the mathematical model of
the magnetic field produces a vector expressed in a local horizontal frame (B
r,,
). Detecting the
rotation that maps one vector onto the other leads to the attitude determination in the local
horizontal frame. In principle, we can think about looking for the solution to this problem
Spacecraft Attitude Dynamics and Control Course notes
19

=

z
y
x
, , r z , y , x
e
e
e
AB B

If the error vector is small, the matrix A is one mapping between B
x,y,z
and B
r,,
. There is however
no guarantee that the resulting A matrix is orthogonal, and there is always uncertainty in the
rotation around the direction of the measured B. This is the reason why the sensor is always coupled
to another measurement in order to provide reliable attitude determination.

Star sensors

The best precision attainable with Sun sensors is approximately 1/8 of degree, and in addition the
Sun might not be always visible if the orbit has a phase in eclipse. Star sensors allow improving the
accuracy of attitude determination and, with appropriate choice of the stars observed, no eclipse
problem arises. On the other hand, star sensors are extremely expensive, in terms of constructions
and in terms of operations to be performed on board for data processing.

Star sensors have to perform the following operations:

Phase 1: data acquisition
Phase 2: correct positioning in space of the acquired data
Phase 3: interpretation of the data acquired (star identification) that requires analysis of a star
catalogue
Phase 4: attitude determination

The interpretation of the data is an extremely consuming activity in terms of computation resources.
It requires the comparison of the sensor data with a map of the stars, available on board the sensor,
in terms of light intensity (magnitude of the star) and radiation spectrum.

Star sensors are intrinsically precise sensors, but to achieve maximum accuracy the sensor has to be
also extremely sensible, so that spurious radiation can deteriorate the performances and the
operating lifetime of the sensor. A Sun presence sensor can be used to switch off the star sensor
when its FOV is too close to the Sun, and light shields can also be used to limit interference with
other sources of light (even Earth radiation can be source of disturbances).

Modern sensors are built with a matrix sensor (CCD), on which the star image is projected



It is pointed out that, even with narrow FOV, the stars captured by the sensor might be numerous. If
the sensor has tilting capacity it can detect one star and tack it so that it is always in the center of the
FOV. This sensor is called star tracker.

Spacecraft Attitude Dynamics and Control Course notes
20
A different possibility is to keep the sensor fixed on the satellite and to reconstruct the map of the
observed sky, in what is called a star mapper sensor. In this case the problem is to have a
sufficiently fine CCD sensor.

Attitude determination requires first the identification of the stars observed; now we look at how
this process can be completed.

Assume to have S stars in the catalogue and observations available, the goal is to associate each
observation (in the sensor reference frame) with one star of the catalogue (in the inertial frame).

n n
A
n
3 3
A
3
2 2
A
2
1 1
A
1
S O O

S O O

S O O

S O O





M M M

reference inertial O
reference local O

i
i


The process requires a first guess estimation of the attitude matrix A, to refine after the correct
association of the observed stars with the catalogue.

Y
Y
O
S
X
X



Once the observed star is rotated in the catalogue system (O), the distance between O and S is
used to correct the estimation of the attitude A, but this operation is correct only if we are sure that
O is the correct image of S and not of a different star. To have a higher probability of success, the
identification can be based also on relative geometry of a set of stars.

Spacecraft Attitude Dynamics and Control Course notes
21
S
2
O
1
O
2

S
1
S
3
O
3
O
4
S
4


First, the star closer to O
1
is searched until one is found. If the association is correct, the remaining
image stars should be immediately associated to the respective catalogue stars. This is called direct
matching of stars. Some problem might arise in the case represented in the case O
2
in the above
figure, where a multiplicity of stars can be associated to the observation, or the case O
3
in the above
figure, where no stars in the catalogue are sufficiently close to the observation (no identification).
The worst case is however the case 4 above, where the wrong star in the catalogue is closer to the
observation, leading to an erroneous association. If the search area is enlarged (increase of
neighborhood ), the situation of O
3
is improved, leading to possible correct association, but as a
general rule the number of uncertain associations or wrong associations might increase as
increases. The optimal search radius maximizes the probability to have, for each observed star, a
unique and correct association with the catalogue.

P P P








Correct No association Uncertain and wrong


P

ok


The optimal value of depends on the completeness of the catalogue and on the density of stars of
the same magnitude in the observed area. Sky areas with a diffuse radiation can create problems
since the sensor can erroneously associate one star to a portion of image, even if this is only diffuse
background radiation.
Spacecraft Attitude Dynamics and Control Course notes
22
A different method can be used if a circular scan of a portion of sky is performed, and if this image
strip is compared to the catalogue. The correct attitude would match the highest number of image
stars to the stars in the catalogue. This method is useful only if stars on the strip are not uniformly
distributed, and if at least the altitude of the scan is known to reduce the search space within the
catalogue.


Use of GPS sensors for attitude determination

GPS sensors can be used to determine attitude, provided at least 3 antennas are available.

GPS signal wavefront


S

wavelength

slave baseline b master


Slave and master are two antennas mounted on the satellite. If their distance b is known we can
detect its orientation in space. Taking the projection of b on the direction S of the incoming GPS
signal, we have the path difference of the signal received by the two antennas.

b S
T


The position of the GPS satellite is known, so that direction S is known in geocentric coordinates if
we know the position of the master antenna. Measuring the path difference

b S r
T
=

and transforming the vector S from geocentric to body frame:

b A S r
AS S
T T
=
=


Spacecraft Attitude Dynamics and Control Course notes
23
the unknown is the rotation matrix A. Notice that most of the times instead of measuring r we
measure a phase difference:

= r 2/

The problem can be solved if we have at least three independent measurements, that requires the
use of at least two different baselines (3 antennas) receiving signals from at least two GPS satellites.
In this case the available measurements are:

2 satellite GPS 2 baseline b A S r
1 satellite GPS 2 baseline b A S r
2 satellite GPS 1 baseline b A S r
1 satellite GPS 1 baseline b A S r
2
T T
2 22
2
T T
1 12
1
T T
2 21
1
T T
1 11
=
=
=
=


Note that two baselines are required; having three GPS satellites in view of one single baseline
would not allow to determine the rotation around the baseline. To determine the attitude, the
following function can be minimized:

( )

= =
=
S . N
1 i
b . N
1 j
J
T T
i ij
b A S r J

Note that when considering phase differences, the integer number of wavelengths K has to be
correctly determined:

( ) +

+ =
2
K r

In addition, proper account of the measurement noise must be taken. This noise can have various
sources, among which reflection of incoming signal is predominant.

Experiments performed to date have guaranteed a precision in the order of some fraction of degree.

Spacecraft Attitude Dynamics and Control Course notes
24
Gyroscopes

Mechanical gyroscopes

Gyroscopes, or gyros, are used to measure angular velocities. The classical gyro is a mechanical
sensor, with a spinning rotor and one degree of freedom in the rotor support mechanism.

armature
O = Z (output)



r


S = Y (spin)


I = X (input)


The rotor spins around the S axis, while the support mechanism and the armature are free to rotate
around axis O. The angular momentum in the XYZ body axes is then:

support armature rotor J
rotor I
z J y I h
Z
R
z R R T
+ +
+ =
&


We can write the Euler equation of the system, as:

M h h = +
&


where is the composition of the angular velocity of the body on which the sensor is mounted,
typically the satellite, and the relative angular velocity between gyro and satellite:

=
&
z
y
x


The rotor angular velocity
r
does not appear since the rotor is totally free inside the armature.

The Euler equations are then written as:

( )

= +
=
= +
z x R R z
y z x R R
x z R R z y
M I J
M J I
M I J
& &
&
&
& &

Spacecraft Attitude Dynamics and Control Course notes
25
The third equation is used to evaluate the angular velocity
x
while the first two equations can be
used to determine the support reaction forces. If M
z
is zero, from the third equation we evaluate
x

by measuring the second derivative of the output angle . In general, to avoid having a constant
acceleration at the output axis, a restrain torque is present. Assuming this has the general
viscoelastic form, we have:

=
&
c k M
z


The third equation then becomes:

x R R z
I k c J = + +
& & &


The steady state solution is then:

k
I
x R R
=
r r
x
I
k


=

Measuring the steady state rotation of the output axis we measure the angular velocity component
along the input axis. This instrument is known as RATE GYRO (RG). In a similar way, if we avoid
using an elastic support and have only a viscous torque at the output axis, the steady state output
will be a constant angular rate, which can still be used to measure the angular velocity along the
input axis:

c
I
x R R
=
&

r r
x
I
c


&
=

This sensor is known as RATE INTEGRATING GYRO (RIG).
The transient terms in the output equation have an influence on the response time of the sensor,
since the assumption is made that measures are taken at steady state.

Three gyros can be used to measure the three components of the angular velocity. It is pointed out
that, since the measure implies a rotation of the output axis and therefore also of the input axis, it is
almost impossible to measure directly the angular velocity in principal axes. To avoid this, and
measure the angular velocity along a fixed reference frame, a control torque M
z
can be applied at
the sensor output axis such that the output angle is zero. In this condition, the angular velocity is
measured by measuring the control torque M
z
, and the measure is always corresponding to the same
input axis.

( )
( )
R R
z
x
x R R z
I
M
I M

=
=


An alternative solution to keep the input axis I fixed is to rotate the whole support platform, which
in this case becomes an inertial platform. Measuring the rotation angles of the platform with respect
to the satellite we would directly retrieve the information of the inertial attitude of the satellite.

Spacecraft Attitude Dynamics and Control Course notes
26
The precision of the gyro depends on the term I
R

R
; the larger it is, the smaller is the full scale of
the sensor but the sensor would be more precise. Furthermore, the bandwidth of the sensor depends
on J
z
, since

z
J
k
=

To have a fast sensor we need a high bandwidth and so to reduce J
z
and as a consequence also I
R
.
Also,
R
can be increased, but this can be a problem above a certain limit due to friction and
dissipation.
The mechanical gyro is suitable to measure relatively high angular velocities, for low velocities the
nonlinearities and the internal friction make the measurement highly uncertain.


Laser gyroscopes

A conceptual scheme of a laser gyroscope can be reduced to an optical path in which a signal is
injected by a transmitter. The same signal is then retrieved by a receiver at the end of the optical
path. For simplicity, the description will assume a circular optical path.
- +
+
-

R


The transmitter produces two signals (+ and -) in two opposite directions of the optical path. Since
the gyroscope is rotating, the receiver, collocated with the transmitter, will receive the two signals at
different time instants since the two signals will have travelled for different lengths.

( )
( )R t 2 ct
R t 2 ct
+ +

+ =
=


The instants in which the signals are received are then:

R c
R 2
t
R c
R 2
t

=
+

=
+



Measuring the time difference we compute the angular velocity:

Spacecraft Attitude Dynamics and Control Course notes
27

( )
( ) ( )
( ) ( )
A 4
c t
c
A 4
c
R 4
R c
R 4
R c
R c R 2 R c R 2
t t t
2
2 2
2
2 2 2
2
2 2 2



=

+
= =
+


This instrument is known as RING LASER GYRO (RLG). If the optical path is made of a fiber
optic, it is possible to wind the fiber optic for more than one winding, improving the instrument
sensitivity. This instrument is known as FIBER OPTIC GYRO (FOG). These gyroscopes measure
the angular velocity in a reference frame fixed with the satellite, and are not subject to friction and
motion problems.

Piezoelectric gyroscopes

One further scheme of angular velocity sensor is based on the use of piezoelectric materials. Two
forks made of piezoelectric materials are used. If subject to an electric field, the fork is deformed,
while if deformed it produces an electric signal.




driving piezoelectric material
fork



sensing
fork



If the sensor rotates with velocity , and the two prongs are electrically driven in phase opposition,
the Coriolis force, perpendicular to and the tip velocity, generates a torque. The torque is
transmitted to the base prongs that, due to their deformation, generate a second electric signal that
can be measured.

r c
v 2 F =

F
c
v
r
M
c
v
r
F
c


Also this sensor measures the angular velocity along a fixed direction, and has no moving parts.
However, as in part also true for laser gyros, it is extremely sensitive to temperature oscillations,
which cause a thermal deformation that has an effect on the scale factor of the sensor.
Spacecraft Attitude Dynamics and Control Course notes
28
Attitude determination

The sensors in general provide either a measure of one angle or of a direction in space, which must
be converted into an attitude determination of one axis, for some simple spin satellites, or of three
axes. Attitude determination methods are classified as geometric methods, algebraic methods or
statistical methods.

Geometrical methods
Let suppose that one angle of the Sun or of Earth is known in the principal inertia reference, then
the orientation in space of the sensor axis can be determined as a circle on the celestial sphere. This
means the optical axis of the sensor has been placed on a geometrical locus.

celestial sphere



Sun


locus of possible attitude


This because any rotation by the angle starting from the great circle would rotate the optical axis
of the sensor to match the direction of the Sun. If a second measurement of the same kind, referring
to a different celestial body, is available, the intersection of the two cones provides the attitude of
one axis of the satellite in inertial reference. Two solutions are obtained.





Sun

Earth


possible solutions


If the satellite is spinning, taking two sets of measurements with a given time separation it is
expected that the orientation of the spin axis will not change. The real solution will then be the one
that moves less in the inertial space, while the two circles will rotate around this point, since the
relative geometry of the satellite with respect to Sun and Earth will change. The solution depends in
the end on sensor geometry.

Spacecraft Attitude Dynamics and Control Course notes
29
In the real situation, the intersection is not between two lines, but between two narrow strips with
amplitude given by the measurement errors. The exact orientation of the spin axis will then be
determined inside a small square surface.



error on error on

possible axis orientation


The error on the identified position of the spin axis is then higher than the error on a single
measurement. If in addition the two strips do not intersect orthogonally, along one direction the
error can be greatly amplified:



This situation depends on the relative position of the two detected celestial bodies, and the worst
situation corresponds to the two bodies in the equatorial plane of the satellite. Notice that this event
is totally independent from the sensor precision, and to minimize it the only solution is the
appropriate selection of the celestial bodies to detect.

A second alternative is based on the measurement of one absolute angle and one relative angle
between two celestial bodies. The shape of one locus will be still a circle on the celestial sphere,
while the second locus is rather complex.



satellite Earth

Sun



Spacecraft Attitude Dynamics and Control Course notes
30
null


The actual shape of the second locus depends on . The null point is a singular condition that
appears when the angle is equal to the angle .

Algebraic methods
Knowledge of two angles (two scalar measurements) allows detecting the orientation of one axis in
space. The complete knowledge of the attitude is yet undetermined, and requires at least one further
scalar measurement to fix the phase of the reference frame around the detected axis.

With the exception of the GPS sensor, that can provide directly the attitude in the GPS reference
system, or the fixed Earth sensor that provides the two small angles
y
and
z
, from which a state
observer can reconstruct the complete attitude, the general case requires measures of two or more
directions in space (celestial bodies) to correctly determine the attitude.

Calling s
i
the unit vectors measured by the sensors, in body-fixed frame, v
i
the unit vectors of the
same celestial bodies but referred to an inertial frame or in any case a given reference frame, the
following holds:

i i
Av s =

The solution in terms of A requires at least two independent measurements, and the method of
solution can differ for the cases with two measurements (s
1
and s
2
), three measurements (s
1
, s
2
and
s
3
) or more than three measurements. The simplest case refers to 3 measurements:

[ ] [ ]
3 2 1 3 2 1
v v v A s s s =

If the measurements are independent, V is non-singular so that:

1
SV A
AV S

=
=


V is invertible provided that v
i
are independent, which means that the 3 measurements v
i
refer to
non-coinciding directions in space. This means that the selection of the target celestial bodies must
be appropriate, and some degrees of freedom can also be exploited in order to improve the
numerical accuracy of the solution. The best condition refers to 3 orthogonal measurements.

In case the number of measurements available is greater than 3:
Spacecraft Attitude Dynamics and Control Course notes
31

[ ] [ ]
4 3 2 1 4 3 2 1
v v v v A s s s s =

The system is redundant, so that if we want to make use of all available measurements the solution
requires the evaluation of the pseudo inverse of matrix V:

( ) A VV SV
AVV SV
1
T T
T T
=
=


( )
1
T T *
VV V V

=
*
SV A =

An alternative method would require the selection of the best three measurements and revert to the
previous method; nevertheless using all available measurements can provide a better filtering of
random errors.

In case only two measurements are available, the solution can be obtained with the following
algorithm. Call the two measurements p and q, and call a and b their corresponding directions in
inertial space. Associate the measurement p to unit vector s
1
and the corresponding direction a to
unit vector v
1
. Two orthogonal frames can then be associated to the measurements and to the
reference directions as follows:

2 3
2
1
2 3
2
1
v a v
b a
b a
v
a v
s p s
q p
q p
s
p s
=

=
=
=

=
=


Since by construction the 3 unit vectors s
1
, s
2
, s
3
and v
1
,v
2
, v
3
are orthogonal, we can write:

T 1
T 1
SV SV A
V V
= =
=



To minimize errors, vector p should be measured with the maximum possible precision and q
should be as orthogonal to p as possible. If p and q are almost aligned, as could be the case with one
Earth sensor and one magnetometer in proximity of the poles, the attitude could not be determined.

Some filtering of the errors can be provided if we take:

Spacecraft Attitude Dynamics and Control Course notes
32
2
q p
q
2
q p
p
*
*

=
+
=


And then start the attitude determination algorithm. In practice, this method detects first of all the
plane containing the two measurements and then the perpendicular direction to the plane.

Statistical methods
Alternative methods to determine the attitude need at least two vector measurements and knowledge
of the relative precision of the sensors, in order to build and minimize a suitable weighted error
function:

=
=
N
1 i
2
i i i
Av s
2
1
J

where N is arbitrary and
i
is a constant identifying the sensor precision, more precise sensors are
associated to the higher
i
parameters. In the following, without loss of generality, it will be
assumed that the vector of weights is normalized to 1

=
=
N
1 i
i
1

The real solution is the one minimizing J. In this approach, we take for granted the impossibility to
solve exactly the problem when measurement errors are considered, so we try to find the optimal
solution that minimizes the cumulative sum of errors. A minimum of two independent
measurements are needed.

( )

=
+ =
N
1 i
i
T
i i
T T
i i
T
i i
Av 2s Av A v s s
2
1
J

Since A is a rotation matrix, A
T
A is identity matrix, and since s
i
and v
i
are unit vectors the first two
terms are equal to 1, so that:

( )

=
=
N
1 i
i
T
i i
Av s 1 J

The optimal solution minimizes J(A), and therefore maximizes

( ) ( )
T
N
1 i
i
T
i i
AB tr Av s J
~
= =

=


where tr indicates the trace operator and B matrix is

Spacecraft Attitude Dynamics and Control Course notes
33

=
=
N
1 i
T
i i i
v s B

A direct solution in terms of direction cosine matrix is quite problematic due to the presence of the
constraint A
T
A=I. A simpler solution can be sought if we replace A by its representation in terms of
quaternions

( ) [ ] + = q 2q q q 2 I q q q A
4
T T 2
4


In this case the cost function to maximize becomes

Kq q J
~
T
=

where the matrix K, square of order 4, is assembled as

[ ]
ij
N
1 i
T
i i i
b v s B = =

=
square matrix of order 3
B B S
T
+ = square matrix of order 3
[ ]
T
21 12 13 31 32 23
b b , b b , b b z = vector of order 3
( ) B tr = scalar
(


=
z
z I S
K
T
square matrix of order 4

To maximize function J
~
, the constraint 1 q q
T
= must be added with the associated Lagrange
multiplier , and then the function ( ) 1 - q q - Kq q G
~
T T
= is maximized with no constraints.
Evaluating the gradient of G
~
and equating the gradient to zero we have

q Kq =

so that, back substituting into the expression of J
~
we have

q q Kq q (q) J
~
T T
= = =

The maximum value of the cost function is then associated with the maximum eigenvalue of the K
matrix. As a consequence the optimal attitude, from a statistical point of view, is the eigenvector
associated to the maximum eigenvalue of matrix K.
In a normal operating condition, with all sensors operational, it should be expected that the errors in
attitude determination are rather small, which means that we expect the cost function J to be close to
zero. In this condition, function J
~
will be close to one, so that we expect that the maximum
eigenvalue of K is close to 1. With this assumption, we can avoid the evaluation of eigenvalues and
eigenvectors of matrix K, and try to solve an approximate problem that leads to the evaluation of
the Gibbs vector giving the satellite attitude. To do so, rewrite the equation Kq=q in partitioned
form, considering the form of matrix K. We have the following two equations

Spacecraft Attitude Dynamics and Control Course notes
34
( )
4 MAX 4
T
MAX 4
q q q z
q zq q I S

= +
= +


Dividing the first equation by q
4
and taking the approximation
MAX
=1, we have

( ) 0 z g I I S = +

that represents a linear system with unknown vector g and coefficient matrix (S-I-I). Solving this
linear system we evaluate the approximate Gibbs vector that provides the satellite attitude.
Spacecraft Attitude Dynamics and Control Course notes
35
Actuators for spacecraft attitude control

Thrusters for attitude control

The simplest way to create torques is to create a set of forces with direction not aligned with the
center of mass, and this can be obtained by mass expulsion techniques. Jet thrusters pose some
operational problems due to the ignition transient, and besides it is not simple to finely control the
magnitude of the force, so these devices are not used for fine attitude control. In addition, for
control quite often the force needed is rather small (milli Newton-meters), while chemical thrusters
produce forces in the order of at least some Newton. To make them compatible with attitude
control, they are switched on and off with a given modulation, but this enhances the problems due
to ignition transients and can cause mechanical ware of the thruster.

These problems can be solved by adopting electric propulsion thrusters, based on electrodynamic
acceleration of a suitable ionized propellant, that need de-ionization immediately after expulsion to
avoid charging electrically the spacecraft. These thrusters can be easily modulated in amplitude,
have a high specific impulse (over 3000) that allows a reduced propellant consumption. The thrust
produced can be in the order of a few Newton down to 10
-6
Newton, so they are well suited to fine
control actions. Unfortunately, electric thrusters are extremely power consuming, more or less 90%
is devoted simply to keep it ready to use and only 10% is due to the thrust produced, therefore
electric propulsion units are often coupled to extremely large solar panels.

With conventional (chemical) thrusters it is not possible to control the amplitude of the thrust; they
are either switched on or off. The transient delay and the presence of hydraulic circuits make the
actual thrust profile quite different from the ideal one, requiring a careful calibration for proper
command selection.

F
ideal
real



t


Use of thruster on spinned satellites

In case of spinning satellites, to control the spin velocity the thrusters must be located on the side of
the satellite and the thrust direction must be orthogonal to the angular velocity:

M I = &


Spacecraft Attitude Dynamics and Control Course notes
36
Control of the direction of the spin is more critical. It requires thrust in the same direction of the
angular velocity, but shifted with respect to the satellite centerline. In this case the ignition delay
does not affect the magnitude of the angular velocity (or, the angular momentum), but affects the
direction of the velocity. In fact, due to satellite spin, a delay in the application of the control force
implies that in inertial space the force is applied with a different line of action, so the torque applied
has a different direction in inertial space and hence the different final direction of and h.

i d cos FR dM
t
=
=

F(t)
R
F(t+t) C(t+t)
Ci
C(t)


If the force is constant, and applied for a rotation angle equal to 2, also the torque will be constant,
orthogonal to the average force direction and directed along the centerline of the rotation,
characterized by the angle:

i sin FR 2 i d cos FR 2 M
0
TOT

= =

In general, to know the direction of the resulting torque the exact thrust profile must be known, in
order to evaluate the average direction of the thrust.
If the thruster is switched on for one full spin rotation of the satellite, thus for equal to , M
TOT

will be zero. The net effect is null even if some propellant has been expelled. The maximum effect
is obtained for equal to /2, so that the thruster should be switched on and off every half spin
rotation. This is however not efficient, since at the beginning and end of the thrust the effects would
tend to be opposite. The efficiency of the process can be evaluated by taking the ratio of the impulse
of the torque applied divided by the impulse of the force.
Since:

=
d
dt

and since the maximum torque is equal to FR, the torque impulse is:

= =


sin
FR 2 d
cos FR 2 dt cos FR 2 I
0
t
0
c


while the force impulse is:

= =
=

FR 2 d
F R 2 Fdt R 2 RI
Fdt 2 I
0
t
0
F
t
0
F


Spacecraft Attitude Dynamics and Control Course notes
37
The ratio of the two gives an indication of the efficiency of the process, as:

=
sin
RI
I
F
c

I
c
/RI
F


1







This tells us how much torque we are obtaining along the average direction compared to the total
torque applied. If tends to zero the efficiency tends to 1. It is obvious that the torque obtained is
low, but with a repeating sequence of short pulses, one per rotation, the total torque obtained can be
high.


Inertia and reaction wheels

These actuators are based on acceleration and deceleration of spinning rotors. Normally, when the
nominal condition is with zero angular velocity the actuator is called Reaction Wheel (RW); those
that have a non-zero nominal velocity are called Inertia Wheels (IW). In some cases the distinction
between the two categories is not evident, and all actuators can be classified as RW. A further class
of actuators is based on wheels that spin at a constant rate but can be tilted around an axis
orthogonal to the spin axis, and their principle of operation is that of gyroscopes. These actuators
are called Control Moment Gyroscopes (CMG). All these actuators can be considered as one family
of actuators; all can only exchange angular momentum with the satellite but not produce a net
torque. Looking at the equations for a dual spin satellite with no external torques applied, in fact, we
can write:

r r z z
r r r
I I
M I
=
=
& &
&


The torque M
r
is in general provided by an electric motor that has its typical operational curve. One
possible curve is the following:

M


Spacecraft Attitude Dynamics and Control Course notes
38

Despite the variability of electric motor characteristic, it is commonly accepted that there is a
velocity for which the torque falls to zero, this is called saturation speed. When the wheel reaches
this speed it can provide no additional torque, either positive or negative, and requires a special
desaturation mechanism to make it again operational. An approximation of the characteristic curve
can be the following:

M



In general, actuators are operated in order to keep them within the speed range for which the torque
is constant, so that the actuator can be somehow modeled as a linear device if commanded by a
current in the armature.
If the torque required by the control is more or less periodic, then appropriate sizing of the actuator
can be made in order to have it always within the linear functioning regime. If the torque required is
the combination of a periodic component and a secular component, it will be inevitable to reach the
saturation speed. Desaturation mechanisms must apply a net torque to the satellite; therefore they
can be based on thrusters or on magnetic torquers. In case the secular component of disturbances is
persistent, several desaturation maneuvers will be required.
Considering that desaturation maneuvers are studied apart with specific models, the general
problem of control with RW, IW or CMG can be modeled by writing the appropriate set of Euler
equations, including the effects of the n actuators in the expression of the angular momentum

r
h A I h + =

Matrix A is composed by 3 rows and as many columns as number of actuators. Each column
represents the direction of the axis of rotation of the wheel. Vector h
r
has as many elements as
actuators, and represents the angular momentum of each actuator around its spin axis.
Assuming as usual that the term I considers the presence of the rotors with no relative velocity,
and that T represents the disturbance torque, the dynamics becomes:

T h A h A h A I I I
r r r
= + + + + +
& & &
&

Additional equations for the relative dynamics of the rotors must be added to the system:

r r r
M h A h A = +
& &


We can now analyze the individual terms of the equation:

I
&
exists only for CMG, and can be neglected if these are small compared to the
satellite
Spacecraft Attitude Dynamics and Control Course notes
39
r
h A
&
exists only for CMG, and indicates the relative attitude rotation in the
spacecraft body frame
r
h A
&
in general it exists for RW and IW, not for CMG since these have often
constant spin velocity
r
h A exists for any actuator, could be neglected for RW since they are
characterized by nominal h
r
= 0

To simplify the solution of the control problem, the four terms can be grouped together in one term.
Upon the determination of the control torque required, a separate equation can be solved including
the actuator terms to infer the effective control command for the actuator. We can consider one
example in which we have only RW.

=
=
= + + +
r r r
r r c
r r
M I
h A h A M
T h A h A I I
&
&
&
&


We can write the equation for the evaluation of the control law as:

c
M T I I + = + &

Any linear control design technique can be used to calculate M
c
after which M
r
can be evaluated,
i.e.,
r r r
I h = &
&
with the following procedure:

( )
r c
*
r
r c r
h A M A h
h A M h A
+ =
=
&
&


where A
*
is the pseudo inverse matrix of A, in the general case, and becomes the inverse only if 3
actuators are used. Notice that the pseudo inverse can be calculated as

( )
1 , 3
T
3 , n 1 , n
n , n
n , 3
T
3 , n
1 , 3
T
3 , n 1 , n n , 3
T
3 , n
1 , 3 1 , n n , 3
y A x A A
y A x A A
y x A
=
=
=


Assuming ( )
n , n
n , 3
T
3 , n
A A is invertible:

( ) ( ) ( )
( )
1 , 3
*
3 , n 1 , n
1 , 3
T
3 , n
1
n , n
n , 3
T
3 , n 1 , n
1 , 3
T
3 , n
1
n , n
n , 3
T
3 , n 1 , n
n , n
n , 3
T
3 , n
1
n , n
n , 3
T
3 , n
y A x
y A A A x
y A A A x A A A A
=
=
=




In general 3 rotors are enough to solve exactly the control problem, in practice a fourth rotor is
added for redundancy with a geometry that allows a full control capacity even with one rotor failed.
Spacecraft Attitude Dynamics and Control Course notes
40
This means that the 4 rotors have distinct rotation axes, and any combination of 3 rotors would
allow the invertibility of the rotor A matrix.
The two most popular configurations are with 3 rotors aligned with the principal axes and the fourth
with equal components along the three axes, or a full pyramid configuration with no actuator
aligned with any of the principal axes. In this second configuration no direction is privileged, and
the pyramid parameters can be tuned to have different control capacity along the three axes, this can
be useful if the disturbances are not uniform along the principal axes.








Three axes and diagonal pyramid


Analyze now the configuration with 3 rotors aligned with the principal axes and the fourth with
equal components along the three axes:

(
(
(

=
3 / 1
3 / 1
3 / 1
1
0
0
0
1
0
0
0
1
A

We can extract any of the actuators, and the remaining three will guarantee the invertibility of A.
The pseudo-inverse is:
(
(
(
(

=
3 2 / 1
6 / 5
6 / 1
6 / 1
3 2 / 1
6 / 1
6 / 5
6 / 1
3 2 / 1
6 / 1
6 / 1
6 / 5
A
*


And the system is solved as:

( )
e
*
r c
*
r
M A h A M A M = + =

Assume now that the control torque must be aligned with the x-axis, we see that multiplying A
*

with the required torque {1,0,0}
T
we have a control command for each actuator in the system, not
simply the actuator aligned with x. In this case, the norm of the wheel control vector M
r
is

Spacecraft Attitude Dynamics and Control Course notes
41
36
30
12
1
36
27
M
3 2 / 1
6 / 1
6 / 1
6 / 5
M
0
0
1
M
r
r
c
= + =

=


Using the pyramid configuration, with all actuators with equal components along the principal axes
we have instead:

y
z
2 1
y x
3 4
x

3
1
a
a
a
a
a
a
a
a
a
a
a
a
a
A
=
(
(
(

=

The pseudo-inverse is:
4
3
b
b
b
b
b
b
b
b
b
b
b
b
b
A
*
=
(
(
(
(

=


Assume now that the control torque must be aligned with the x-axis, we see that multiplying A
*

with the required torque {1,0,0}
T
we have the same control command on all actuators, with
different signs. The norm of the wheel control vector M
r
is:

4
3
M
r
=
Spacecraft Attitude Dynamics and Control Course notes
42

The norm is lower than the previous case, so this configuration is preferred. In case one rotor fails,
as example rotor number 4, we still have control capability since:

(
(
(
(
(
(
(

2
3
2
3
0
0
2
3
2
3
2
3
0
2
3
A
1
3 , 2 , 1


Any torque component is provided by activating two rotors with equal acceleration.
As a general rule, adoption of IW can be preferred to RW since there are minor friction problems.
In addition, a suitable configuration of IW can provide a non-zero nominal angular momentum,
useful for passive attitude stability. In this case, it must be remembered that the overall rotor angular
momentum must be aligned with the satellite angular momentum, so for some geometries of the
actuator set the nominal angular velocities of the actuators might not be the same.
Considering the pyramid configuration seen above, if all rotors have the same velocity then the only
nonzero component of h is along axis z, and we can control the satellite exactly as if we had one IW
along axis z and 2 RW along axes x and y. Accelerating rotors 3 and 4 and slowing rotors 1 and 2
the net effect is equivalent to a RW along axis y, slowing rotors 2 and 3 and accelerating rotors 1
and 4 the net effect is equivalent to a RW along axis x. Accelerating all rotors together the effect is
equivalent to IW along axis z.
Notice that, due to dynamic coupling, it is not always required to have one actuator for each axis,
since 2 actuators can guarantee controllability of the system and a third actuator can be used for
redundancy.

Control moment gyroscopes

Control moment gyroscopes (CMG) generate a torque by gyroscopic effect. A rotating disc is tilted
around one axis orthogonal to the spin axis of the disc, obtaining a torque long the third axis of an
orthogonal frame. The angular momentum is then exchanged with the satellite not by a variation in
the spin of the actuator, but by changing its relative orientation within the satellite. This effect
allows on one side to obtain torques in general higher than those obtained with RW, but on the other
side the evolution of the actuator configuration can create some singularity problem for specific
configurations.
Following the same steps as shown for the RW, we can formulate the general control problem with
CMG actuators as
T h A h A I I
r r
= + + +
&
&

=
= + + +
r r c
r r
h A h A M
T h A h A I I
&
&
&

c
M T I I + = + &
r c r
h A M h A =
&


Spacecraft Attitude Dynamics and Control Course notes
43
The problem is solved when the matrix A
&
is evaluated. With the aid of one example we will show
that the evaluation of A
&
can be reformulated as the evaluation of a vector of tilt angle rates, which
is easier to solve.
Assume a configuration with 4 CMG, whose nominal orientation makes the nominal angular
momentum zero and whose tilt directions are along the 4 sides of a pyramid, as in figure

h
1

h
2

h
3

h
4

tilt axis 2

z




y


x


Calling the tilt angle of the 4 CMG and the inclination of the pyramid, assuming all CMG have
the same spin speed and therefore the same angular momentum h
r
we can write

(
(
(


= =
r
r
r
r
4 3 2 1
4 3 2 1
4 3 2 1
r CMG
h
h
h
h
cos sin cos cos sin cos
sin cos cos sin cos cos
sin sin sin sin sin sin sin sin
h A h



(
(
(

= = =
4
3
2
1
4 3 2 1
4 3 2 1
4 3 2 1
r r CMG
sin cos cos sin cos cos
cos cos sin cos cos sin
cos sin cos sin cos sin cos sin
h B h A h




&
&
&
&
& & &


The control equation can then be reformulated as

[ ]
r c
*
r c r
h A M B B h A M h A + = = =
& & &

Spacecraft Attitude Dynamics and Control Course notes
44
Magnetic actuators

Magnetic actuators generate a torque by inducing a magnetic dipole in a coil that is surrounded by
the Earths magnetic field. The magnetic dipole generated can be modeled as:

intensity current I
coil of area S
windings of number n
ty permeabili magnetic
I nS D
=
=
=
=
=


Torque is then given by the vector product of this dipole moment and the external magnetic field:

B D M =

The effectiveness of these actuators varies with the orbit height, due to the change in the external
magnetic field, and can typically provide torques in the range 10
-3
10
-6
Nm. They can be
customized by changing the number of windings and/or the area of the coils.

The torque generated is perpendicular to the magnetic dipole generated D and to the external
magnetic field B, so that it is never possible to generate three independent components of the
control torque. However, if the satellite dynamics is coupled on two axes, typically x and y, the
availability of control along z and along a second axis guarantees complete controllability.

D B B D M = =

Expanding matrix notation we have:

(
(
(

z
y
x
x y
x z
y z
z
y
x
D
D
D
0 B B
B 0 B
B B 0
M
M
M


The control command is D so that we should write:

[ ] M B D
1
=

Unfortunately [ ] B is a singular matrix, so D cannot be evaluated through this procedure. This
reflects the fact that it is not possible to provide three independent components of the control
torque. A solution can be found if the dynamics is written in a reference system in which B is
aligned with axis z, so that it can be made explicit that the control torque is in the x-y plane of this
new reference. This method is quite tedious since it requires a continuous change of reference, and a
further transformation of the commands from the rotated reference to the principal axes, in which
the actuators are physically located. We can instead reformulate the problem in order to require only
2 components of control, along z and y for example, and write:
Spacecraft Attitude Dynamics and Control Course notes
45

(
(
(

z
y
x
x y
x z
y z
z
y
D
D
D
0 B B
B 0 B
B B 0
M
M
0


Assuming furthermore that D
x
= 0 we get to:

x
z
y y x z
x
y
z z x y
B
M
D D B M
B
M
D D B M
= =
= =


Now, we notice that the first equation produces still a residual torque M
x
:

x
y
y
x
z
z xr
B
B
M
B
B
M M =

This residual is not required by the control, it is due to the interaction between B and D necessary to
produce M
y
and M
z
. In general, this control structure is used driving to zero the component M
z
and
using the pitch component of the magnetic field. It is then necessary to add one additional actuator
to provide control along the pitch axis z, decoupled from the x and y:

z
y
x
z
x
y
B
M
D
B
M
D
=
=


Passive stability along z can be provided by gravity gradient or by a RW or IW, in such a case the
control can be modeled as:

(
(
(

z
y
x
x y
x z
y z
z
y
x
h
0
0
0
D
D
0 B B
B 0 B
B B 0
M
M
M
&


or:

(
(
(

z
y
x
x y
z
z
z
y
x
h
D
D
1 B B
0 0 B
0 B 0
M
M
M
&


The control allocation matrix is now nonsingular, so that the actuator commands can be calculated
in order to have three independent components of control torque:

Spacecraft Attitude Dynamics and Control Course notes
46

(
(
(

z
y
x
z y x
z
z
y
x
M
M
M
B B B
0 0 1
0 1 0
B
1
h
D
D
&


If the magnetic field component B
z
is nonzero the problem can be solved.

A different alternative to evaluate D leads to an approximation of the control problem. We can
write:

( )
( ) ( )B B D D B B M B
B D B M B
B D M
=
=
=


Now, we can assume that D is generated in such a way to be always perpendicular to B so that:

0 B D =
Therefore we can evaluate D:

2
c
2
B
M B
D D B M B

= =

However we also have:

( ) B M B
B
1
M
c
2
eff
=

and this effective control is equal to the desired control only if the desired control M
c
is really
orthogonal to B, which also means that if D is orthogonal to B we can only calculate the component
of control torque M that is orthogonal to B and to D:

B
D M
e
M
c


This because, having used the vector product to find the solution, this is limited to the plane
perpendicular to B, so the method is effective only when the control torques required are by their
nature almost perpendicular to the magnetic field.

Spacecraft Attitude Dynamics and Control Course notes
47
Example of control system based on inertia and reaction wheels

We can now consider one example of control system with one IW along the pitch axis (z) and two
RW along the roll and yaw axes (x and y). The Euler equations are in this case:

=
= + + +
c r
d r r
M h
M h h I I
&
&
&


We have 6 equations and each rotor is along one of the principal axes, so A is an identity matrix.
Assuming we want to control the attitude and not the angular velocity, we must add equations for
the attitude kinematics:

( ) 0 , , f = &

We can consider the case for which we refer the attitude to the LVLH frame. The nominal condition
is a constant angular velocity around the pitch axis, one rotation per orbit, and a nominal angular
velocity for the IW. The remaining nominal parameters are zero. The kinematic equations are then:

(
(
(

n 1
1
1
z
y
x
x y
x z
y z
z
y
x
&
&
&


Since along x and y we have RW, h
rx
=h
ry
=0 in nominal conditions. The linearized equations are:

( ) ( )( ) ( )
( ) ( )( ) ( )

= +
= + + +
= + + + + +
dz rz z z
dy y x rz ry y
2
x z x x y y
dx x y rz rx x
2
y y z y x x
M h I
M n h h n n I I n I
M n h h n n I I n I
&
& &
&
&
& & & &
&
&
& & & &

=
=
=
cz rz
cy ry
cx rx
M h
M h
M h
&
&
&


Now we reformulate the problem inserting the control, getting to the equations:

( ) ( )( ) ( )
( ) ( )( ) ( )
c r
cz z z
cy y x rz y
2
x z x x y y
cx x y rz x
2
y y z y x x
M h
M I
M n h n n I I n I
M n h n n I I n I
=

=
= + +
= + + + +
&
& &
& & & & &
& & & & &


The design of the controller can be based on classical transfer function techniques. For the pitch
axis (z) the transfer function is

Spacecraft Attitude Dynamics and Control Course notes
48
( )
( )
( )
2
z cz
z
z
z
cz
z
2
s I
1
M
s
s G
I
M
s s
=

=
=


The block diagram of the controller is:


zref
+ M
cz

z

H(s) G(s)
-



The closed loop transfer function becomes:

( )
( ) ( )
( ) ( )
( )
zref
z

s
s G s H 1
s G s H
s F =
+
=

In order to define H(s), we should first define the performances required by F(s). In addition to the
above scheme, we introduce the transfer function between a disturbance torque and the attitude
angle, that is:

( )
( )
( ) ( )
( )
T
s
s G s H 1
s G
s F
z
d
=
+
=

To evaluate H(s), we can assume a PD-like control, since the system dynamics is of second order:

( )
( )
p d
z
cz
p d cz
K s K
s
M
) s ( H
K s K M
+ =

=
+ =


We then have:

( )
( )
( )
( )
( )
p d
2
z
p d
2
z
p d
2
z
p d
2
z
p d
2
z
p d
K s K s I
K s K
s I
K s K
1
s I
K s K
s I
K s K
1
s I
1
K s K
s F
+ +
+
=
+
+
+
=
+
+
+
=

This is actually a second order system characterized by:

z
d
z
p
I
K
2
I
K
=
=

Spacecraft Attitude Dynamics and Control Course notes
49

is the closed loop natural frequency of the pitch oscillations and is the damping. The ideal
damping would be around 0.7, but in order to reduce the control action a damping in the order of
0.3 can be accepted. The natural frequency can be related to the orbital frequency n, imposing that
steady-state is reached within a specific fraction of orbit period. A choice of = 20n is commonly
accepted as a good solution. With these assumptions, the steady state error angle can be evaluated
by using the final value theorem:

(s)d(s) sF lim
d
0 s
z

=

where d(s) is the Laplace transform of the disturbing torque. Maximizing the disturbance,
considering it as constant, we have:

( )
( )
( )
p p d
2
z
2
z
p d
2
z
d
0 s
z
K
1
K s K s I
1
s I
K s K
1
s I
1
s F lim
s
1
s d
=
+ +
=
+
+
= =
=



This relation can also be used to tune the proportional gain in order to reach a specified steady state
error. The performance of the IW can then be analyzed:

c r
M h =
&


Taking the Laplace transform of the IW with the control:

( ) ( ) s K s K s I
p d r r
+ =

The above equation can be used to check if the IW reaches saturation.

To study the control for x and y axes we can make some simplifying assumptions in order to design
the controller with Laplace transform techniques. Consider M
cx
=0, and assume only
y
is measured,
as could be done with a fixed head Earth sensor that does not provide
x
:

( ) ( )( ) ( )
( ) ( )( ) ( )

= + +
= + + + +
cy y x rz y
2
x z x x y
2
y
x y rz x
2
y y z y x
2
x
M n s h n ns I I n s s I
0 n s h n ns I I n s s I


The transfer function is then:

Spacecraft Attitude Dynamics and Control Course notes
50
( )
( )
( ) ( ) ( ) [ ] { }
( )( ) ( ) ( ) [ ]
2 2
rz
3
y z rz
3
z x rz
4
y z x z
2
rz
2
z y x rz x
2
z x x rz y y z y
2
y x
rz
2
y z
x
2 4
2
y
n h n I I h n I I h n I I I I E
h I I I n h I n I I I n h I I I I n D
I I C
n h n I I B
I A
E Ds Cs
B As
s G
+ + =
+ + + =
=
+ =
=
+ +
+
=


The transfer function can be manipulated so that the terms depending on h
rz
are explicitly taken into
account. In this context, these should be considered constant, in the nominal condition.

( ) [ ] ( )
( ) ( ) s M s H
s g sh s f h e ds cs bs as
cy y
ry rz
2 3 4
y
=
= + + + + +


For this system a PD control might not be appropriate to impose specified performances, but a
fourth order compensator can be designed and target performances reached.

Spacecraft Attitude Dynamics and Control Course notes
51
General control problem

We have seen that when the actuators are IW or RW we can write:

r
h A M
&
=

The question now is how to evaluate M in a general case. Assuming the satellite is inertial pointing,
Euler equations assume a particularly simple form, since no nominal value of angular velocity is
present. Equations are decoupled:

3 , 2 , 1 i I M
i i
= = &

Linearizing the system, we have three second order decoupled equations:

i i
I M = & &

Lack of a nominal angular momentum forces to have three independent actuators for the three axes;
otherwise the system would not be controllable. Each equation represents a linear second order
system, so that we can assume a simple PID control would allow obtaining the desired system
performances:

( ) ( ) = = PID f M

In some cases the integral term might not be required, in case a steady state error is allowed
provided it is small or in case no constant component of disturbance torque is present.
When the satellite is far from equilibrium, its dynamics should include also the coupling terms due
to angular velocities, so that we must write:

+ = I I M &

To consider the coupling terms I the control torque should be evaluated as:

= & I M
c


and then the nonlinear terms can be considered as a correction to the control torque as:

+ = I M M
c


In case of a dual spin satellite the problem is formulated as:

dynamics nonlinear Ah h A I I M
r r
+ + + =
&
&
equation control Ah h A I I 0
r r
+ + + =
&
&
function rol pseudocont ) , PID( I M
c
= = &
equation actuator Ah h A I M
r r c
=
&

[ ] command actuator Ah I M A h
r c
*
r
=
&

Spacecraft Attitude Dynamics and Control Course notes
52
If, besides nonzero angular velocities, we consider also large angular rotations, the error angles
definition depends on the sequence of rotations considered. A general solution of the control
problem must then be sought for, starting from the definition of direction cosine matrix.
Call A
S
the satellite attitude matrix in an inertial frame, and assume the target attitude is given by
matrix A
T
:
(
(
(

=
(
(
(

=
(
(
(

=
(
(
(

=
T
T
T
T 33 T 32 T 31
T 23 T 22 T 21
T 13 T 12 T 11
T
S
S
S
S 33 S 32 S 31
S 23 S 22 S 21
S 13 S 12 S 11
S
Z
Y
X
a a a
a a a
a a a
A
Z
Y
X
a a a
a a a
a a a
A


Each row of A
S
and A
T
represents one reference axis, either satellite or target. Our goal is to have:

I A A
T
T S
=

In actual conditions, the error in the attitude is expressed as:

e
T
T S
A A A =

where A
e
is the attitude error. We want now to relate the attitude error A
e
with the control torque, in
order to make A
e
=I.
[ ]
(
(
(

=
(
(
(

=
T
T S
T
T S
T
T S
T
T S
T
T S
T
T S
T
T S
T
T S
T
T S
T
T
T
T
T
T
S
S
S
T
T S
Z Z Y Z X Z
Z Y Y Y X Y
Z X Y X X X
Z Y X
Z
Y
X
A A

To reach the zero error, the extra diagonal terms must vanish to zero. 0 Y X
T
T S
= means that X
S
and
Y
T
must become orthogonal, since this is the representation of the dot vector product. This
condition can be obtained if the satellite rotates around its z body axis; so that we can say that the
torque acting around the satellite body axis Z
S
must take the form:

( )
T
T S z zS
Y X f M =

The actual control law is still undefined. The same must apply to the other extra diagonal terms of
the attitude error matrix. If we want 0 Z X
T
T S
= the torque must be around the satellite body axis Y
S
,
in the general form:
( )
T
T S y yS
Z X f M =

Finally, to have 0 X Y
T
T S
= we need a torque around the satellite body axis X
S
, so that:

( )
T
T S x xS
Z Y f M =

Spacecraft Attitude Dynamics and Control Course notes
53
It is remarked that a similar result would be obtained by considering the terms below the diagonal,
so that ( )
T
T S z zS
X Y f M = and the same for M
yS
and M
xS
.
To understand how the control functions can be designed, consider the case of small errors. In this
case the error can be expressed in linearized form as:

(
(
(




=
1
1
1
A A
x y
x z
y Z
T
T S


In the case of decoupled motion or small rotations, we can write:

( )
z dz z pz z
K K PD M + = = &

It is noticed that
z
corresponds to
T
T S
Y X in the case of large errors, or to a
12e
. We can then
generalize the control function as:

z dz e 12 pz zs
K a K M + =

The derivative should rigorously depend on the derivative of a
12e
, or
T
T S
Y X , but since it is mostly
used to introduce viscous damping any term with zero final value and sign opposite to the actual
velocity can be used, so that
z
can be a further candidate, in some cases easier to use for control.
We can then evaluate K
p
and K
d
for the linear approximation of the dynamics and simply extend the
validity of the control law as follows.

+ =
+ =
+ =

+ =
+ =
+ =
z dz 21e pz zs
y dy 31e py ys
x dx 23e px xs
z dz z pz z
y dy y py y
x dx x px x
K a K M
K a K M
K a K M
K K M
K K M
K K M
&
&
&


The same can be designed adopting the terms below the diagonal, obtaining for each different case
a different transient response in case of large initial errors:

z dz e 21 pz zs
K a K M + =

We can finally try to have an intermediate situation, for which:

( )
( )
( )

=
=
=
T
T S
T
T S z zS
T
T S
T
T S y yS
T
T S
T
T S x xS
X Y Y X f M
X Z Z X f M
Y Z Z Y f M

In this case, since
z e 21 e 12
2 a a =

Spacecraft Attitude Dynamics and Control Course notes
54
we must divide by 2 the proportional gain if it was evaluated on the basis of a control proportional
to :
( )
( )
( )

+ =
+ =
+ =
z dz 21e 12e
pz
zs
y dy 13e 31e
py
ys
x dx 32e 23e
px
xs
K a a
2
K
M
K a a
2
K
M
K a a
2
K
M


It is also remarked that a
12e
-a
21e
is proportional to the z component of the Euler axis of the attitude
error matrix. It is likely that this final form of control will try to get the satellite rotating around the
Euler axis of the attitude error, so that the transient response might be faster that in the previous
formulations. One further option requires writing the terms a
12
and a
21
as a function of the
quaternions, respectively 2(q
1
q
2
+q
3
q
4
) and 2(q
1
q
2
-q
3
q
4
), so that the control functions become:

( )
( )
( )

+ = + =
+ = + =
+ = + =
z dz e 4 e 3 pz z dz e 4 e 3
pz
zs
y dy e 4 e 2 py y dy e 4 e 2
py
ys
x dx e 4 e 1 px x dx e 4 e 1
px
xs
K q q K 2 K q q 4
2
K
M
K q q K 2 K q q 4
2
K
M
K q q K 2 K q q 4
2
K
M


Notice that the quaternions are relative to the attitude error.
As the satellite approaches the target condition, the dynamics becomes automatically linear. If at
steady state we want a nonzero value for one angular velocity component, around that specific axis
the control function must be modified as:

( )
( )
i i di 4e ie pi is
i i di i pi i
K q q 2K M
K K M
+ =
+ = & &


Angular velocity can be expressed as a function of quaternions. From the quaternion kinematics
we know that:
q
2
1
q = &
This can be reformulated as:
=

(
(
(
(

= Q
q q q
q q q
q q q
q q q
q
z
y
x
3 2 1
4 1 2
1 4 3
2 3 4

and the angular velocity is:
q Q 2
*
& =

where Q
*
is the pseudo inverse of Q, that is also equal to Q
T
due to its structure. It is easy to verify
that:
Spacecraft Attitude Dynamics and Control Course notes
55
I Q Q
T
=
Spacecraft Attitude Dynamics and Control Course notes
56
Minimum time maneuvers

The adoption of the classical control techniques is feasible if the system performances are to be
evaluated in terms of bandwidth, transient response or steady state error. In some cases, the optimal
performances are provided in the form of minimum time or minimum fuel maneuvers. In these
cases the controller has to be designed on different basis. To minimize maneuver time, the optimal
performance requires minimizing the cost function that includes explicitly time and system
dynamics (as a constraint):

( )

+ =
f
0
f
0
t
t
t
t
dt Bu Ax x dt J min &

This problem has an exact, analytical solution only in some very special case. The rotation around
one principal axis is one of these cases. For small rotations, the dynamics and the cost function
become:

=
=
f
0
d
1
J
d
dt
dt
d
I M
&
&
&
& &


To minimize maneuver time, we must maximize & . We assume the available torque is limited to a
maximum value:

I
M
u = = & &

If the torque is sufficiently high the maneuver will be fast, but in cases in which the torque is
limited the solution of the minimum time problem becomes of interest.
Integrate the dynamics to get:

2
0 0
0
ut
2
1
t
ut
+ + =
+ =
&
& &

The first equation is used to calculate time:

( ) ( )
( ) ( )
2
0 0 0 0
2
0 0 0
0
0
u 2
1
u
1
u 2
1
u
u
t
+ =

+

+ =

=
& & & & &
& & & & &
& &


The phase plane plot ( ) , & of the constant torque maneuver is then a family of parabolas, whose
concavity depends on the torque limit:
Spacecraft Attitude Dynamics and Control Course notes
57
&
u<0 u>0



The arrows indicate that each parabola is followed with a specified direction. If for instance motion
starts from the origin with M>0, then 0 > & & and & will increase. By increasing the input u the
parabolas are more open. Taking the extreme approximation of infinite torque, parabolas would be
replaced by vertical lines, so that the maneuver would be impulsive, with a change in & associated
to a constant . On the contrary, if u=0 we would have a phase portrait given by horizontal lines,
with no change in & . In general, phase plane maneuvers are designed in order to have both
0
& and
f
& equal to zero, that is to say rest-to-rest maneuvers. In addition, since the origin of the phase
plane is arbitrary, either
0
or
f
is set to zero.

We can now design a maneuver in the phase plane assuming impulsive torques. This is the case of
maneuvers performed by using high thrust propulsive systems.

&

1 M>0 start

M>0

0
M<0
start
end 3 2


Starting from point 0 to end in the origin, if we apply a positive torque we would reach point 1, but
here & is positive and we would de part from the desired attitude. We must then start with a
negative torque, to reach point 2, switch off the controller to keep & constant until point 3 is
reached and then provide a positive torque to reach the target final attitude. Of course, should the
initial attitude be negative all the maneuver has to be performed in the opposite way. Notice also
that the vertical arcs of the phase plane are traced in almost zero time, since the torque is assumed
infinite, and are equivalent to impulsive maneuvers. The total maneuver time depends then only on
the horizontal arcs of the phase plane trace. In theory, we would like to have & as high as possible
to minimize maneuver time, so that the horizontal arc would be drawn in a short time. The major
issue in this case is thruster synchronization, since with high & even a small time error would mean
to reverse the control (point 3 in the example) in a different point on the phase plane, so the target
attitude would not be reached.

We can now consider a more realistic case, with bounded maximum torque.

Spacecraft Attitude Dynamics and Control Course notes
58
&

M>0 with u
max

end M>0 with u<u
max






start
M<0


We will consider only the parabolas corresponding to u
max
so that & is the maximum possible and
time is minimum. The problem is to find the position in which the torque has to be switched in sign.
If the maneuver is completed according to the control logic:

( ) = sign u u
max


once on the axis & the sign of changes so that the phase plane portrait would look like in the
following figure:

&
-
0

0



There is evidently a limit cycle, the system would behave like an undamped second order oscillator.

Change the control logic to:
( ) + = & k sign u u
max


so that the switch in the sign of the control torque is along an inclined straight line. We would like k
to be positive in order to have a negative inclination of the switching line:

Spacecraft Attitude Dynamics and Control Course notes
59
&





0





line =
k
1
&


Reaching the switching line, u changes its sign, so that the phase plane trace is switched to a
parabola with reversed axis; as the number of torque switches increases, the trace gets closer and
closer to the origin. k is then an index of the damping in the oscillations. However, rigorously, an
infinite number of switchings are needed to reach exactly the origin in a general case.

If we draw the two parabolas that pass through the origin, corresponding to positive and negative
torque, since for
0
& equal to zero we have:

2
u 2
1
= &
we can consider the following switching curve:

|

\
|
= & &
u 2
1
sign u u
max


The phase plane portrait of the maneuver will then be:

&



Switching line
0



It can be shown that this is the minimum time maneuver. If the initial and final velocities are zero,
the satellite accelerates at the maximum level for half the rotation, then decelerates at same level for
the second half of the rotation. The sign of the control torque becomes a function of and & .

Finally, if we want to consider a minimum fuel maneuver we should fix a maximum maneuver
time. This can be seen as a minimum time maneuver with one intermediate coast arc (at constant
& ) if the allowed maneuver time is greater than the minimum maneuver time for the same rotation.

Spacecraft Attitude Dynamics and Control Course notes
60
&

0



In this case, the switching from one parabola to the other occurs in a finite time. Notice that if t
max
is
equal to the minimum time we would reduce the coast arc to zero and find again the minimum time
solution. Fixing t
max
becomes equivalent to fixing
max
& .

The process just show is valid only if the rotation is around one principal axis; in other cases, the
complete set of Euler equations should be used as system dynamics (and optimization dynamic
constraint) and a closed form solution can no longer be found.
Spacecraft Attitude Dynamics and Control Course notes
61
Nonlinear control with constant thrust actuators

Considering the dynamic behavior of a satellite projected in the phase plane, it is possible to set up
a nonlinear controller decoupled for each axis. The control is based on a combination of the angle
and its derivative d. In particular, a nonlinear switch called Schmitt trigger activates the
controller on the basis of the value of a variable +d. Assume, for example, that the value of
+d is greater than a given limit u
on
. In this case the actuators would be switched on until the
same variable +d falls below a second limit u
off
.


u
on

-u
on

u
off

-u
off

U

2
s I
1


1+s

&
+ =

c

+
-
Schmitt trigger


The values of u
on
, u
off
can be determined considering the maximum allowable angular error
max
,
the maximum admissible angular rate d
max
and the time constant . With reference to the
following figure, we must first of all consider the two parabolas passing from the points (
max
,0),
corresponding to the controlled dynamics with the maximum torque.

&


max

&

max

&

max

max

on
u =
off
u =
on
u =
off
u =
l



Intersect the two parabolas with the horizontal lines at d
max
, to identify
1
, the angle error at which
the controller must be switched on in order to prevent the error from getting larger than
max

c
2
max
max 1
2u
d
=

Spacecraft Attitude Dynamics and Control Course notes
62
u
c
= M/I is still the control command. The switching curve to activate the controller must intercept
the point (
1
, d
max
) and have a slope equal to 1/. The value of can be tuned according to some
performance requirements. The values of u
on
and u
off
are then evaluated as:

u
on
= d+
1

u
off
= d+
1


With symmetry considerations, the switching values for negative errors are determined. On the
phase plane, in ideal conditions with no disturbance torque and sensor error, the satellite phase
portrait must converge to a limit cycle bounded by the values
max
/+
max
and d
max
/+d
max
.
The transient response for large initial errors will still converge to the same final limit cycle,
provided the time constant is selected with the correct sign. The parameter has an influence on
the way the phase portrait converges to the limit cycle.



Considering the inevitable presence of sensor errors and delays in the activation of the actuators, the
switching of the control will not be exactly on the desired switching lines. This means that the real
limit cycle in the phase plane will be slightly different from the ideal one, as shown in the following
example.
Spacecraft Attitude Dynamics and Control Course notes
63
-0.1 -0.05 0 0.05 0.1
-0.03
-0.02
-0.01
0
0.01
0.02
0.03
Diagramma effettivo nel piano di fase

/
d
t

max
-
max
d
max
-d
max


One alternative to the previous technique is based on the so called PWPF modulator (Pulse-
Width-Pulse-Frequency Modulator). This varies both the width of the control pulse (the duration of
the control action) and the frequency of the switchings. This is obtained as shown in the scheme
below, with the integration and filtering of the desired control action until the switching threshold
u
on
is reached.

u
on

-u
on

u
off

-u
off

U
s 1 +
k

+
-
PWPF modulator
-u
max

u
max

U
c

actuator
command
control
torque
U
c

U
E
U
in



When the PWPF modulator provides a real control torque to the satellite, the torque is subtracted
from the request of the controller before being passed to the integrator. Since in principle the
supplied torque U is greater than the desired control U
in
, the integrated signal will reverse its sign so
that after a short period of time the PWPF modulator will switch the controller off. In this condition
the initial behavior of the PWPF modulator is restored, until the following switch on of the
controller. The time separation of two consecutive control pulses depends on the control law
designed, while the duration of the control pulses depends on the maximum torque provided by the
actuators U
c
. To understand the principle of operation, assuming a constant control request U
in
, the
behavior of the PWPF modulator is the following.
Spacecraft Attitude Dynamics and Control Course notes
64

0 1 2 3 4 5 6 7 8 9 10
0
0.5
1
t
c
o
n
t
r
.
0 1 2 3 4 5 6 7 8 9 10
-0.5
0
0.5
1
t
E
0 1 2 3 4 5 6 7 8 9 10
0
0.5
1
t
U
c
0 1 2 3 4 5 6 7 8 9 10
0
0.5
1
t
U


Spacecraft Attitude Dynamics and Control Course notes
65
Passive damping systems

It is possible to make a distinction between attitude maneuver control and stability augmentation
control. Maneuver control systems in general allow also controlling the stability of the system,
while stability augmentation control systems do not allow controlling maneuvers, since they are
passive systems. There are in fact some passive systems that can improve the stability of the
satellite.
We can see two examples of passive or semi-active systems for the stability augmentation of
nutation (conical motion of the spin axis) and libration (pendulum oscillations about the pitch axis)
motion. These systems do not allow the execution of rotational maneuvers, in some cases they can
even represent obstacles to maneuvers.
In general, nutation damping mechanisms base their effect on viscous damping created by the
relative rotation of a viscous fluid within the spacecraft.

To model the damping mechanism, we can consider a dual spin satellite with nominal spin velocity
around the z axis. Nutation appears as coupled oscillations around x and y axes, that can be damped
with the aid of a fluid ring around x axis. Due to coupling of x and y equations, damping
oscillations around x axis also damps oscillations around y axis.

Z
Y
X


Considering the fluid ring at the same rate of a reaction wheel, we can write the following
equations:

( ) ( )
( )
( )
( )
( )

= + +
=
= + +
= + +
= + + +
+ + + + =
0 c I
0 I
0 I I I I I
0 I I I I I
0 I I I I I
k I I j I i I I h
f x f f
r r
y f f y x x y r r z z
z f f x r r z x z x y y
f f y r r y z y z x x
r r z z y y f f x x
&
&
& &
&
& &


where c is the viscous damping of the fluid, which creates a relative torque between fluid ring and
satellite.
Linearizing the equations we obtain:

Spacecraft Attitude Dynamics and Control Course notes
66
( )
( )
( )

=
= +
= + +
= + +
= + + +
0 I
0 I I
0 c I
0 I I I I I
0 I I I I I
r r
r r z z
x f f f
z f f x r r z x z x y y
f f y r r y z y z x x
&
& &
&
&
& &


The last two equations represent the motion around axis z, while the first three represent a damped
motion in which the damping depends on c.
The root locus, as a function of c, has the following trace on the complex plane:

Im
Re


It can be clearly seen that an increase in the coefficient c does not mean a continuous increase in the
system damping, there is in any case an optimal value of c that maximizes damping. If
z
is zero
and I
f
<<I
x
,I
y
,I
z
then the optimal value of c is:

y x
r r f
I I
I I
c

=

It can be seen that each satellite has its optimal value of c, depending on the inertia moments of the
spacecraft. This means also that the optimal fluid is spacecraft-dependent. Since it is not always
possible to adapt the fluid properties to the satellite, then optimality can be obtained by proper
selection of the fluid quantity, through parameter I
f
.

Popular damping configurations are realized through two partial fluid tubes containing a ball free to
move inside the tube, increasing the damping:

z
y


Alternatively, a pendulum configuration can be adopted:
Spacecraft Attitude Dynamics and Control Course notes
67

z
y



A semi-active system to damp nutation, generated as a consequence of a spin axis reorientation
maneuver, can act on or on h. To act on h a system based on thrusters can be set up, in order to
align with h and cancel nutation. This is realized by generating an impulse (activating the
thruster) when the phase is correct, so that the torque M aligns and h:

F
h
R

M


It is also possible to design a two-step maneuver, designed in such a way that at the end of the
second step and h are aligned:


h h h h



impulse impulse



To damp libration oscillations, passive systems must damp
z
:

0 n K 3
z
2
p z
= + & &
y

z
x


Angular velocity is
z
n + & . In this case a system based on absolute angular velocity is not useful,
since this will never change sign if
z
n > & for any value of the angular rate
z
& . So, a system based
Spacecraft Attitude Dynamics and Control Course notes
68
on
z
& only must be designed. For this, a permanent magnet immersed in a viscous fluid is suitable,
if the permanent magnet tends to remain aligned with the radial direction.

Also for the libration damping a semi-active system can be designed:

x
y


Moving the tip mass along the radial direction we control the gravity gradient torque and so the
libration oscillations.
One interesting semi-active damping mechanism is based on the conservation of angular
momentum, in a configuration where the tip mass can be moved closer to the satellite body, starting
from a given position. In the initial configuration, angular momentum is:

( )
0 z z 0
n I h + = &

With the mass closer to the satellite angular momentum is instead:

( )
1 z r 1
n I h + = &
Since h is constant:
( ) ( )
1 z r 0 z z
n I n I + = + & &
Furthermore, since I
r
<I
z
:
1 z 0 z
1 z 0 z
n n
<
+ < +
& &
& &

Assuming 0
0 z
< & we have:
0 z 1 z
< & &

and the amplitude of oscillations, in the rotating orbit frame, is reduced.

Looking at the motion in the phase plane we have:

z
&
2 z
&

Undamped oscillation
3 z
&



z


1 z
&


0 z
&


Spacecraft Attitude Dynamics and Control Course notes
69
If the tip mass is repositioned at its original distance when
z
& is positive, we have
2 z 3 z
< & & . Notice
that
2 z
& is simply the opposite of
1 z
& , with same amplitude but changed in sign. So, considering
negative
0 z
& we have:

( ) ( )
( ) ( ) ( ) ( )
3 z z 1 z r 3 z z 2 z r
1 z r 0 z z
n I n I n I n I
n I n I
+ = + + = +
=
& & & &
& &


If we impose
2 z
& to be zero, then:

( )
r
r z
1 z
I
n I I
= &
from which:
( )
( )
( )
2n
2n I
I
I
I 2I
n I
I
n I I
n I n I
z0 z
r
r
z r
r
r
r z
r z0 z
&
&

=
|
|

\
|
=
|
|

\
|
=


This provides the value of I
r
, i.e. the closest position of the tip mass, required to damp the libration
oscillations in only 2 maneuvers.

This maneuver, in the most favorable case, is completed in half libration oscillation, and in the
worst case in 1.5 libration periods, that has a frequency in the order of ( ) 1 K n 3
p
. Since there are
1.7 oscillations in one orbit, the overall maneuver is completed in more or less one orbit.
Spacecraft Attitude Dynamics and Control Course notes
70
Spin rate damping

Active control with magnetic actuators

Active spin damping can be achieved with a feedback of the rate of change of the external magnetic
field B
m
on a set of magnetic torquers.

m b
B k m
&
= ,

This control is effective provided the spin rate of the satellite is sufficiently high, so that a change in
the magnetic field is really caused by the spin and not by the change in satellite position along the
orbit.
B B k B m M
m b c
&
= = .

The magnetic field can be represented in the principal axes of the satellite:

orb rot
B A B =

and taking the derivative of the magnetic field in principal axes we have:

orb rot orb rot orb rot
B A B A B A B
& & & &
+ =

The rate of change of the magnetic field is the sum of two terms, one due to the rotation of the
satellite and one due to its change in position. We can assume that for high spin rates the term due
to the change in position is negligible. Recalling that

[ ]A A =
&

we also have:
[ ]B B =
&


Evaluating the rate of change of the kinetic energy of the satellite I E
k
&
&
= , considering the
satellite dynamics, the control law and the relation between magnetic field and its derivative we get
to:
( ) ( ) B B k B B k B m M E
T
b
T
T
b
T
c
T
k
& & & &
= = = ,

which is negative, showing the spin rate of the satellite is reduced.

Passive control with yo-yo device

Passive control based on the so called yo-yo device is useful whenever, right after launch, the
spacecraft must reset its spin speed due to launch. The mechanism is able to cancel the residual spin
velocity, after which the spacecraft can start normal operation and precise control. The mechanism
is based on the principle of conservation of angular momentum and kinetic energy, through a
symmetric deployment of two small masses.
Spacecraft Attitude Dynamics and Control Course notes
71
Assume as example a cylindrical shape and a spin axis aligned with the cylinder axis, labeled with
z. If we have two tethers winded around the satellite, with a tip mass, the masses are fixed to the
satellite during launch and released after launch. As the masses are released, the tethers are
deployed remaining tangent to the satellite lateral surface.

y

z
m x
R

y
j
k

x


Consider the rotating frame (j,k) in which j defines the point of contact of the tether with the
satellite; call the angle between the x axis and the j axis, identifying the deployment angle, and &
the angular velocity of the rotating frame with respect to the body frame. The initial condition is:

( )
( )
2
mR 2 I T
mR 2 I h
2
0 2
z 0
0
2
z 0

+ =
+ =


where I
z
is the inertia moment of the satellite only and mR
2
is the contribution to inertia due to one
tip mass. In a generic time instant, the mass m has a velocity:

+ =
+ =
=
&
&
z
r r v
k R j R r

( )
( )

= + +
+
=
z z
z
R R R
R
v
& &
&


The angular momentum of one mass, aligned with z, will be:

( ) ( ) ( )
( ) ( )
2 2
z
2 2
z
2
m
2
z
2
z
2
m
R R
2
m
v v m
2
1
T
m R R m v r h
+ + = =
+ + = =
&
&


Due to conservation of h and T with time, we can equate the initial condition to the generic
condition to have:

( ) ( ) ( )
( ) ( ) ( )
2
z
2 2
z
2 2
z z
2
0 2
z 0
z
2
z
2
z z 0
2
z 0
2
mR 2
2
I
2
mR 2 I T
mR 2 I mR 2 I h
+ + +

+ =
+ + + = + =
&
&


Spacecraft Attitude Dynamics and Control Course notes
72
The two equations can be solved for the variables
z
and & , so that the deployment speed and the
satellite angular velocity can be determined:

( ) ( ) ( )
( ) ( ) ( )
2
z
2 2 2
z
2 2
z z
2
0
2
z
z
2 2
z
2
z 0
2
z
mR 2 mR 2 I mR 2 I
mR 2 mR 2 I mR 2 I
+ + + = +
+ + + = +
&
&


To simplify the analysis, we can introduce a nondimensional parameter that indicates the ratio of
the inertia of the masses to the overall system inertia:

( )
2
2
z
mR 2
mR 2 I
a
+
=

The equations become:
( )
( )
( ) ( )
( ) ( )
( ) ( )
( )( ) ( )
( )( ) ( )
( ) ( )
0
z z 0
2
z
2
z 0 z
2
2
z
2
z 0 z 0
z
2
z 0
2
z
2 2
z
2
0
z
2
z 0
2
z
2 2
z
2
0
z
2
z 0
a
a
a
a
a a
a a
=
+ = +
+ = + +

+ = +
+ =

+ =
+ =

+ + =
+ + =
&
&
& &
&
&
&
&
&
&


We therefore see that the tether is deployed with constant angular velocity, equal to the initial
satellite spin velocity. At this point we can substitute:

( ) 0 t
0 0
= =

so that the following is obtained:

( ) ( )
( )
0 2 2
0
2 2
0
z
2 3
0 0
2 2
0 z
0 z
2 2
0 z 0
t a
t a
t a a t
t a

+

=
= +
+ =

Now, since:

=
=
R L
t
0


with L indicating the length of the deployed tether, we can calculate:

Spacecraft Attitude Dynamics and Control Course notes
73
0 2 2
2 2
z
L R a
L R a

=

We can calculate either the time or the length of tether deployed that lead to
z
=0:

a R L
a
t
0
=

=


It is interesting to notice that the length of the tether does not depend on the initial velocity, so the
system works correctly even in presence of large uncertainties in the spin rate. Notice also that, in
order to have a non-zero final velocity there is a strong dependence on the initial velocity, so in this
case errors are not corrected. This is the main reason why this system has been adopted only to
cancel completely the spin.

You might also like