1. Introduction
Spacecraft often have an attitude stabilization system. They can be either passive (e.g., spin-stabilized or gravity gradient-stabilized systems [
1]) or active. The most accurate active stabilization systems usually include momentum or reaction wheels. However, in some spacecraft flying in low Earth orbits, attitude stabilization is achieved using magnetorquers. These systems are composed of flat coils, which are activated by electric currents and securely positioned on the spacecraft, usually along three perpendicular axes. They function by utilizing the interaction between the magnetic dipole moment produced by these coils and the Earth’s magnetic field. Specifically, this interaction with the Earth’s field induces a torque that endeavors to orient the entire magnetic dipole moment in alignment with the direction of the field. Consequently, magnetorquers present the following strong points: (i) they offer simplicity, reliability, and affordability; (ii) they solely require renewable electrical power for their operation; (iii) they contribute to reducing overall system weight when compared to alternative torque actuators. However, magnetorquers come with significant drawbacks: (i) the control torque they produce is limited to the plane perpendicular to the Earth’s magnetic field; (ii) their maximum torque output is considerably lower compared to other types of torque actuators. As a result of these limitations, relying exclusively on magnetorquers for attitude control results in reduced pointing accuracy and slower convergence in comparison to alternative torque actuators [
2]. Attitude stabilization through magnetorquers has been explored as a viable choice, particularly for cost-effective micro- and nanosatellites and satellites encountering failures in their primary torque actuators [
3]. Paper [
4] provides an extensive review of results on several methods for active attitude control using magnetic actuators.
This paper focuses on active three-axis attitude stabilization of an Earth-pointing spacecraft with magnetorquers as the only torque actuators and without onboard momentum storage. The literature in this specific area of research is vast, and several works propose PD-like stabilization laws. Since a spacecraft with magnetometers is intrinsically a time-varying plant due to the variation in the geomagnetic field along the orbit, selecting the PD gains is not a straightforward task. In [
5], the scalar PD gains are selected to guarantee stability by considering the locus for the characteristic multipliers. Reference [
6] presents a semi-analytic approach for selecting scalar gains that optimize the time response. Paper [
7] proposes time-varying matrix gains that guarantee stability by solving linear–quadratic optimization problems. The same work also presents a method for designing constant matrix gains considering a time-invariant approximated model. However, the method does not guarantee stability, which must be checked separately. Work [
8] also determines time-varying gains by a linear–quadratic approach and extends it to the rejection of generic disturbance torques. A similar approach in discrete time is employed in [
9]. In [
10,
11], constant matrix gains are designed by solving a different linear–quadratic optimization problem by which stability is obtained. Paper [
12] proposes an adaptation mechanism for the gains to guarantee stability and also convergence to the nominal attitude for almost all initial conditions. A different PD-like stabilization law is presented in [
13], where the gains are determined through a heuristic optimization strategy without providing an analytical stability analysis. A reconfiguration method for a PD-like stabilization law in case of failure of a magnetometer is proposed in [
14]. A Proportional–Integral–Derivative (PID)-like stabilization algorithm is employed in [
15] to achieve more accurate pointing. However, similarly to before, the proposed method does not guarantee stability, which must be checked after having determined the gains. Reference [
16] proposes a more complex law designed by a robust backstepping method which achieves global asymptotic stability. Work [
17] presents a two-timescale control in which, first, the pitch axis is aligned to the orbit normal, and then the pitch rate is enforced to the desired value, thus achieving stability for the closed loop. Paper [
18] presents an algorithm based on a sequence of Riccati equations for which stability is not guaranteed.
All the designs presented in the cited works present limitations in rejecting the effects of some disturbance torques. This is probably a consequence of the fact that those designs are model-based, and models for those disturbance torques are not included in the design process. To overcome the above limitation, data-driven control can be a valid alternative. Indeed, in data-driven control, there is no necessity for a mathematical spacecraft model in the design process. It relies completely on the measurements coming from the Input/Output (I/O) data of the plant that have to be controlled. Data-driven control methods are divided into two main categories: online and offline data-driven methods. In offline methods, controller parameters are estimated through a learning process before implementation on the controlled plant. Several offline data-driven methods have been developed including iterative feedback tuning [
19], correlation-based tuning [
20], virtual reference feedback tuning [
21], and PID control [
22]. On the other hand, in online data-driven methods, only initial values are assigned to the controller parameters, which are updated online without employing any identification process. Several online data-driven methods were developed such as Simultaneous Perturbation Stochastic Approximation (SPSA) [
23], unfalsified control [
24], dynamic neural network-based control [
25], and model-free adaptive control [
26,
27,
28].
Online data-driven control was employed for three-axis stabilization of an Earth-pointing spacecraft with magnetorquers in [
29], in which dynamic neural networks were utilized. In this paper, the same type of attitude stabilization is performed by using a different online data-driven method known as Model-Free Adaptive Control (MFAC). The MFAC method is based on the dynamic linearization technique and a new concept called Pseudo Partitioned Jacobian Matrix (PPJM) [
26]. The PPJM is employed to dynamically linearize the nonlinear plant in real time, based on I/O measurement data. By estimating the PPJM, the controller output can be calculated. The MFAC method stands out as a feasible solution for the attitude stabilization of spacecraft with magnetorquers due to the following reasons: (1) no mathematical model of the spacecraft with magnetorquer is required, leading to the design of an attitude controller which is solely based on the available I/O measurement data; (2) when contrasted with other data-driven controllers, MFAC requires the tuning of few parameters and low computational effort, making it a practical and efficient choice; (3) MFAC is known for its adaptive structure, allowing it to handle variations in the spacecraft’s dynamics and environmental conditions; in fact, spacecraft operations can involve different variations such as those due to changing payloads and orbital conditions, and MFAC can adapt control actions based on real-time measurements; (4) some control methods require knowledge of bounds on the plant initial conditions which are unnecessary for MFAC; such a feature is advantageous for spacecraft control, where obtaining those bounds could be unfeasible; (5) MFAC has demonstrated successful implementation in various practical fields such as combustion systems [
30], combined spacecraft [
31], unmanned surface vehicles [
32], launch vehicles [
33,
34], air vehicle pitch channels [
35], moving mass controlled flying robots [
36], multiagent systems [
37], autonomous cars [
38], wastewater treatment processes [
39], wind turbine rotors with controllable flaps [
40], and satellites with large rotational components [
41].
The effectiveness of the MFAC design is evaluated through numerical simulations. Specifically through Monte Carlo campaigns, it is shown that the designed attitude controller is able to achieve three-axis stabilization in the orbital frame from an arbitrary tumbling condition. Moreover, the numerical study also reveals that the proposed control algorithm outperforms a model-based PD control in terms of pointing accuracy at the expense of higher energy consumption.
Employing MFAC for three-axis stabilization of an Earth-pointing spacecraft using only magnetorquers represents a novel approach. In [
31], the MFAC method is used for the attitude stabilization of a combined spacecraft that is fully actuated and is not affected by disturbance torques. The main differences compared to the attitude stabilization considered in [
31] are as follows: (i) torque actuation is obtained by using magnetorquers in place of reaction flywheels; (ii) disturbance torques are considered in evaluating the performance of the proposed method; (iii) stabilization is performed with respect to the orbital frame instead of an inertial frame. As a result, in all above aspects, the present work presents advancements with respect to [
31]. In [
41], a modified version of MFAC called model-free prescribed performance adaptive control is employed for the attitude stabilization of a fully actuated satellite with large misaligned rotational components.
This paper is organized into the following sections: The next section describes the attitude of an Earth-pointing spacecraft with magnetorquers.
Section 3 introduces the MFAC algorithm employed to stabilize the spacecraft’s attitude. Numerical simulations and evaluation of the obtained results are included in
Section 4. Concluding remarks end the paper. The paper includes an appendix which concisely recalls the theoretical framework of MFAC.
4. Results
This section presents the results of numerical simulations conducted to evaluate the effectiveness of the MFAC method in stabilizing the Earth-pointing attitude of a spacecraft equipped with magnetorquers. Furthermore, the performances achieved with MFAC are compared to those of a model-based control of the PD type.
For the generation of I/O data in numerical simulations, employ the standard model of a rigid spacecraft given by the following attitude kinematics equation
along with the following attitude dynamics equation
where
represents the inertia matrix of the spacecraft,
,
, and
denote the gravity gradient torque, the control torque generated by magnetic coils (see Equation (
1)), and the disturbance torque all resolved in
.
The relation between
and
is obtained by considering the equation
, in which, for the term
, the following holds true:
with
, where
n is the constant spacecraft orbital rate. Rotation matrix
is obtained from
through the following equation:
In the above equation,
indicates the three-dimensional identity matrix, and symbol
denotes the skew-symmetric matrix.
The model used for the gravity gradient torque resolved in
is defined as follows ([
1] Section 8.1):
where
represents the body coordinates of the unit vector associated with the
-axis, which are obtained as follows:
.
The major disturbance torques affecting a spacecraft flying in low Earth orbit are considered, and to generate data in the numerical simulations, the following models described in [
17] are adopted. The first of these is the residual magnetic torque, which is represented in body coordinates as follows:
in which
is the residual magnetic dipole moment from onboard electrical components in body coordinates. The aerodynamic torque is modeled as follows:
where
denotes the vector from the mass center to the pressure center resolved in
, and
represents the aerodynamic force exerted on the spacecraft, also in the
frame. The model for
is as follows:
in which
represents the coefficient related to drag,
denotes the area of the cross-section of the spacecraft,
corresponds to the density of the atmosphere at the altitude of the orbit, and
represents the body coordinates of the spacecraft’s velocity relative to the air, which is approximated using the spacecraft’s velocity. The model of the solar radiation pressure torque is as follows:
where
is the vector from the spacecraft’s mass center to the spacecraft’s solar pressure center resolved in
, and
is the solar radiation pressure force in body coordinates, which is given by
In the above equation,
is the constant related to the solar flux density,
c is the speed of light,
is a factor related to the reflectance,
is the sunlit surface area which is assumed constant considering the worst-case scenario, and
is the unit vector from the spacecraft to the Sun resolved in
. Note that
is obtained from
, which denotes the same unit vector resolved in
.
The numerical values of the parameters for the spacecraft model are obtained from [
17] and are reported in
Table 2.
The performances of the MFAC method are compared with those of the following control of the Proportional–Derivative (PD) type
where
and
are positive scalar gains. The considered PD control law is widely employed in practice for stabilizing the attitude of a spacecraft using only magnetorquers. Thus, it represents a good benchmark for comparing magnetic attitude stabilization methods.
Gains
and
are selected by employing the approach presented in [
5], which can be described as follows: Consider the model given by Equations (
9)–(
13) and neglect disturbance torques by setting
. Use the so-called axial dipole model for the geomagnetic field [
11,
42] given by
where
is the total strength of the axial dipole,
is the orbit radius,
is the orbit inclination, and
is the satellite argument of latitude at time
. The corresponding numerical values are reported in
Table 2. The resulting spacecraft model is periodic with a period equal to
. Thus, select
and
so that all characteristic exponents of the linearized closed loop have a modulus smaller than one to achieve asymptotic stability for the closed loop ([
43] Section 1.2.3). The selected values for
and
are reported in
Table 3.
The resulting characteristic exponents are indicated in
Table 4.
To validate numerically the selection of the gains
and
, the closed loop obtained by combining Equations (
9)–(
13) with Equations (
19) and (
20) is numerically simulated. Specifically, a Monte Carlo campaign of 40 simulation runs is executed with
. In each simulation, the initial quaternion
is randomly selected with a uniform distribution over all its possible values. The angular velocity at time
is randomly selected within the set
10 deg/sec with a uniform distribution. The initial value of the spacecraft argument of latitude
is randomly selected with a uniform distribution over
.
The three-axis alignment of the body frame to the orbital frame is evaluated through the principal angle of rotation (also known as the Euler angle of rotation) given by
The 40 time behaviors of
and of
obtained in the considered simplified scenario are represented in
Figure 2 and
Figure 3.
The time histories show that PD control is able to stabilize the nominal attitude even for large initial tumbling conditions.
Regarding the FFDL-MFAC algorithm described by Equations (
2)–(
8), to the best of the authors’ knowledge, a stability analysis is still an open problem ([
26] Section 5.4.1.3). Thus, the numerical values of the MFAC parameters are selected by trial-and-error and are reported in
Table 5.
The MFAC algorithm is validated numerically first considering the same simplified scenario as for the validation of PD control. As a result, a new Monte Carlo campaign of 40 simulation runs with the same initial conditions as in the previous campaign is executed with MFAC replacing PD. The corresponding 40 time behaviors of the principal angle of rotation and of
are represented in
Figure 4 and
Figure 5.
The time histories show that MFAC is also able to stabilize the nominal attitude even for large initial tumbling conditions.
The effectiveness of the MFAC algorithm is evaluated more thoroughly by running more realistic numerical simulations. In those simulations, the disturbance torques in Equations (
14), (
15) and (
17) are included. The geomagnetic field data are generated by using the International Geomagnetic Reference Field (IGRF) [
42,
44], which is more accurate than the axial dipole model in Equation (
20). Navigation errors are introduced by adding Gaussian noise to
and
with standard deviations equal to
and
deg/s, respectively. The magnetometer’s measurement noise is modeled as a Gaussian noise with standard deviation equal to
T. In each simulation, the initial quaternion
, the initial angular velocity
, and the initial value of the spacecraft argument of latitude
are all randomly selected as in the previous Monte Carlo campaign. In addition, the Earth’s angle of rotation at
denoted by
(the Earth’s angle of rotation is the angle between the vernal equinox axis and the axis on the equatorial plane from the Earth’s center to the Earth’s prime meridian) is randomly selected with a uniform distribution over
. Thus, a new Monte Carlo campaign with 40 simulation runs has been executed, and in such a scenario, the performances of the proposed MFAC method are compared with those of the following PD control:
where the values of
and
are kept as those indicated in
Table 3, and
denotes an estimate of the residual dipole moment
, which is determined through a Kalman filter [
11]. The term
partially compensates for the residual magnetic torque in Equation (
14), leading to an improvement in three-axis pointing accuracy.
Figure 6 displays a sample time behavior out of the 40 for the principal angle of rotation obtained using MFAC.
The initial conditions employed to generate the plot are indicated in
Table 6.
Figure 7 displays the corresponding time behavior of the principal angle of rotation obtained by using PD control in Equation (
22).
In these figures as well as in those that follow, the remaining 39 time behaviors are not showcased to obtain representations that can be read more easily. It occurs that in all 40 simulation runs, both MFAC and PD are able to effectively stabilize the nominal attitude.
To compare the performances of MFAC and PD control in terms of accuracy in three-axis alignment, the maximum value of the principal angle of rotation in the steady state is determined.
Table 7 reports the mean values and standard deviations of those maximum values.
The statistics show that MFAC leads to significant reductions in both the mean values and the standard deviations of the principal angle in the steady state. Thus, in this numerical study, MFAC is able to achieve better three-axis pointing accuracy than PD control, which implies that MFAC is able to better compensate for the disturbance torques.
Figure 8 showcases a sample time history out of the 40
obtained by using MFAC.
To evaluate the ability of both MFAC and PD control to make
converge to zero, for each simulation run, the maximum value of
is determined once a steady-state condition is reached.
Table 8 reports the mean values and standard deviations of those maximum values.
The statistics show that in this numerical study, PD and MFAC are able to achieve convergence to zero of with comparable accuracy.
Figure 9,
Figure 10 and
Figure 11 display a sample time behavior of the control magnetic dipole moment generated by magnetorquers using MFAC, out of the 40 time behaviors.
It is of interest to compare the performances obtained with MFAC and PD control in terms of the energy employed by magnetorquers to stabilize the spacecraft’s attitude. A rough and indirect measure of the latter energy is given by
where
denotes the final simulation time, which is set equal to 80 orbital periods.
Table 9 reports the mean values and standard deviations of
.
The statistics show that employing MFAC leads to a significant increase in the mean value of . Thus, in this numerical study, MFAC consumes significantly more energy to obtain substantially higher pointing accuracy.