with the non negative weights a
i
submitted to restric-
tion
∑
n
i=1
a
i
= 1 (Shuster and Oh, 1981). This opti-
mization problem can be conveniently simplified ex-
pressing it in terms of the quaternion
¯
q, an alternative
attitude representation defined as:
¯
q =
Q
q
=
sin(θ/2)n
cos(θ/2)
(5)
and related with an attitude matrix A by:
A(
¯
q) = (q
2
− QQ
T
)I+ 2QQ
T
+ 2q
˜
Q (6)
In terms of quaternions, the solution of this op-
timization problem is given by an algorithm known
as Q-method, which consists of a simple generalized
problem of eigenvalues and eigenvectors described by
(Keat, 1977; Shuster and Oh, 1981)
K
¯
q
opt
= λ
max
¯
q
opt
, (7)
where the optimal quaternion
¯
q
opt
that minimizes the
cost function L(A) is the eigenvector associated to
maximum eigenvalue λ
max
of the matrix K, given by
K =
S− σI Z
Z σ
, (8)
where σ =
∑
n
i=1
a
i
w
i
v
i
, S =
∑
n
i=1
a
i
(w
i
v
T
i
+ v
i
w
i
)
T
,
and Z =
∑
n
i=1
a
i
w
i
× v
i
.
7 INTEGRATION
Considering spatial applications, both the power reg-
ulation and the attitude estimation must be integrated
in an unique, compact and low consumption onboard
platform, which should read analog signals, compute
the present satellite attitude, and perform the power
control and energy management. This platform must
still execute other complementary functions of the
satellite such as telemetry, command, control, com-
munication and error analysis. In this context, an in-
teresting high performance and low cost option is a
DSP-based platform, which combines a high process-
ing speed processor, great amount of memory and
several peripheral devices for real time digital pro-
cessing signal, such as A/D converters, I/O ports,
PWM modules, parallel and serial communication in-
terfaces, and special modules to read encoders, coun-
ters, timers, etc. The programming uses high level
language, presenting several tools to develop complex
algorithms such as FFT (Fast Fourier Transform), fil-
ters and other indispensable functions for the satel-
lite operation, such as attitude estimation and control,
power regulation and management, auto-diagnose,
communications, fail analysis, and data storage.
Figure 9: Experimental implementation.
8 EXPERIMENTAL RESULTS
The Q-method algorithm is experimentally imple-
mented using C language in a starter kit module based
in the Texas Instruments DSP TMS320F2808. A pho-
tography of this practical implementation is presented
in the Fig. 9. While reference vectors v
1
and v
2
are
considered fixed and its values are directly inserted in
the code, the observation vectors w
1
and w
2
are ac-
quired using sample rate superior to 10 Hz. The vec-
tor w
1
is the magnetic field produced by Helmholtz
coils, which is measured using the magnetometer cir-
cuit presented in Fig 8, while the vector w
2
is emu-
lated by potentiometers. The experimental results of
implementation considering two static known situa-
tions are shown in the table I, where is observed that
this DSP platform can provide satisfactory attitude es-
timations for this satellite application.
9 FINAL DISCUSSION
This paper presents a proposal to acquire the az-
imuthal position of the sun using the own power pho-
tovoltaic supply of an artificial satellite. Consider-
ing a box shape satellite, where all sides are cov-
ered by photovoltaic modules, the components of the
azimuthal position of the sun correspond to summa-
tions of the light-generated currents by opposite pho-
tovoltaic modules, which can be evaluated from the
operation of the SSR power converter. In the even-
tual absence of a photovoltaic module, photovoltaic
cells or photodiodes can substitute it in the satellite
configuration. This information about the sun po-
sition and the measurement of other known vector,
such as the Geomagnetic Field, can be used to esti-
mate the attitude, allowing the integration of two of
the more important subsystems for the operation of
an artificial satellite. The integration of these subsys-
tems can be implemented in a DSP platform, which
would realize data acquisition, power regulation, bat-
tery management, attitude determination and others
important satellites functions. The simulation results
EVALUATION OF SUN POSITION USING THE PHOTOVOLTAIC GENERATION - An Application for Attitude
Estimation in Box-Shape Satellites
181