Research Article  Open Access
Optimal OnOff Attitude Control for the Brazilian Multimission Platform Satellite
Abstract
This work deals with the analysis and design of a reaction thruster attitude control for the Brazilian Multimission platform satellite. The threeaxis attitude control systems are activated in pulse mode. Consequently, a modulation of the torque command is compelling in order to avoid high nonlinear control action. This work considers the PulseWidth PulseFrequency (PWPF) modulator which is composed of a Schmidt trigger, a firstorder filter, and a feedback loop. PWPF modulator holds several advantages over classical bangbang controllers such as close to linear operation, high accuracy, and reduced propellant consumption. The Linear Gaussian Quadratic (LQG) technique is used to synthesize the control law during stabilization mode and the modulator is used to modulate the continuous control signal to discrete one. Numerical simulations are used to analyze the performance of the attitude control. The LQG/PWPF approach achieves good stabilizationmode requirements as disturbances rejection and regulation performance.
1. Introduction
One of the intentions of this work is to support the ongoing Brazilian multimission platform (MMP) satellite project [1]. The project takes into consideration a special platform satellite which can supply multimissions capabilities supporting different payloads to lift up on the platform. Applications including Earth observation, communication, scientific experiments, and surveillance are few examples of suitable use of the MMP satellite. The MMP adopted pulse or onoff reaction thruster for attitude maneuvers, therefore, modulating continuous command signal to an onoff signal is a required task. Selecting the properly method to modulate the control command signal is a key assignment. The aim of this work is to provide smoother control for improved pointing requirements with less thruster activation or propellant consumption. The fuel is a deciding factor of the lifetime of the spacecraft and reduced propellant consumption is highly required, specially, regarding a multimission spacecraft wherein different payloads are being considered.
In this paper a pulsewidth pulsefrequency (PWPF) modulator is considered as a feasible option for the MMP reaction thruster modulation due to advantages over other types of pulse modulators as bangbang controllers which has excessive thruster actuation [2, 3]. The PWPF modulator translates the continuous commanded control/torque signal to an onoff signal. Its behavior is a quasilinear mode which is possible by modulating the width of the activated reaction pulse proportionally to the level of the torque command input (pulsewidth) and also the distance between the pulses (pulsefrequency). A PWPF modulator is composed of a Schmidt trigger, a lag network filter, and a feedback loop. The PWPF design requires iterative tuning of lag filter and Schmidt trigger. The optimal parameters achievement is based on the static (test signals) and dynamic (feedback signals) simulation results. The optimality is in respect to either the number of firings or spent fuel. The work in [3–5] provides good guidelines for the PWPF tuning task.
The PWPF is synthesized with a Linear Quadratic Gaussian (LQG) controller which is designed for the MIMO attitude system. The LQG controller, refered to as , allows a tradeoff between regulation performance and control effort. In order to reduce the control effort or fuel consumption, an iteratively searching of the tradeoff can be carried out. Nevertheless the controller has to attempt all the involved requirements and specifications. A previous study of the LQG approach applied to the MMP satellite is presented in [6]. The reaction attitude control system is applied to the stabilization mode of the MMP. The paper is divided into 5 sections. Section 2 presents the nonlinear model of the satellite, assumed a rigid body, its linearization around the operation point, and the developed virtual reality model of the satellite for visualization purposes. Section 3 presents a brief description of the PWPF modulator and design of the LQG controller, which includes the description of the LQG controller and provides the tuning parameters range for the PWPF modulator. Section 4 presents the numerical simulation for the reaction thruster attitude control system during the stabilization mode. Regulation, filtering, and disturbance rejection are investigated and discussed. Conclusions are presented in Section 5 based on the obtained results.
2. Problem Formulation
In this section we describe the mathematical model of the attitude motion, including kinematics, dynamics, and the linerization of the satellite model around LHLV reference frame. Based on that linear model the LQG controller is designed for the stabilization mode.
2.1. Satellite Attitude Model
The attitude of the satellite will be defined in this work by the orientation of the body frame (coincident with the three principal axes of inertia) with respect to the orbital reference frame , also known as LocalVerticalLocalHorizontal (LVLH) [7]. The origin of the orbit reference frame moves with the center of mass of the satellite in orbit. The axis points toward the center of mass of the Earth, axis is in the plane of the orbit, perpendicular to , in the direction of the velocity of the spacecraft. The axis is normal to the local plane of the orbit, and completes a threeaxis righthand orthogonal system. Figure 1 illustrated the LVLH reference frame.
The attitude is represented by the direction cosine matrix between body frame and reference frame. During the stabilization mode only small angular variations are considered, in this case the Euler angles parametrization is an appropriate choice due to the guarantee of nonsingularity. Thus, by using Euler angles in an asymmetric sequence 321 (zyx) for describing a rotation matrix, one finds [7, 8]
For a rotating body the elements of the direction cosine matrix change with time, this change relative to any reference frame fixed in inertial space can be written as follows [9]:
where is the angular velocity of the body frame relative to the inertial frame, expressed in the body frame, is the skewsymmetric operator given by
According to [10] the angular velocity can be expressed as function of the mean orbital motion and the derivatives , thereafter the kinematics of the rigid body is expressed by
since large slewing maneuvers of the satellite are not considered, it is save to approximate , , . According to (2.4) for small Euler angles, the kinematics can be approximated as
The dynamics of a satellite attitude, equipped with six onesides thrusters is modelled by using the Euler equations. Furthermore, the attitude dynamic is written in the body frame, it yields
where is the momentum of the rigid body, is the satellite inertia matrix, and are the external torques acting in the system including perturbation and thruster actuation. Using , (2.6) becomes
where represents all the disturbance torques, for example, atmosphere drag, gravity gradient, and so on, and represents the control torques used for controlling the attitude motion. The control torques about the body axes, , , and provide by the thrusters are , respectively. The thruster reaction system is discussed in detail in the following section. The torque effect caused by the gravity gradient is taken into account and it is included in the linearization process. An asymmetric body subject to a gravitational field experience a torque tending to align the axis of the least moment of inertia with the field direction [8]. For small angle maneuvers, the model of the gravity gradient torque is approximated as [8, 9]
Substituting (2.4) into (2.6) and adding the control and gradient gravity torque, we linearize the satellite attitude model. Moreover, the linearization is performed around the LHLV orbital frame, it is thus adopted for the stabilization mode. Afterwards the attitude model can be represented in the state space form [6, 10]
with states , and inputs is the state matrix, is the input matrix, is the output matrix, and is the direct transmission matrix. In the particular problem they are given by
It is worth to note that row and yaw axes belong to a multiinput and multioutput (MIMO) system and the pitch axis could be dealt as a single input and single output system (SISO) by assuming a tachometry feedback control. Although the controller is project over the linear model, the nonlinear model is used in the simulations.
2.2. Virtual Reality Model of the Spacecraft
In this work a Virtual Reality (VR) model are developed as a visualization tool. The purpose is to visualize the simulations giving a fast and a visual feedback of the simulation models over time. The model is produced by using the virtual reality model language (VRML) format which includes a description of 3dimensional scenes, sounds, internal actions, and WWW anchors. It enables us to view moving threedimensional scenes driven by signals from the dynamic model, that is, attitude dynamics. The VR model was created with the use of VRealm builder tool, a more detailed description can be found in [11]. Figure 2 shows the basic structure representation of the spacecraft's bus. The payload is not illustrated.
3. Thruster Attitude Control System
In this section the controller design based on the Linear Quadratic Gaussian (LQG) technique is briefly described, afterwards the PWPF modulator is presented in details.
3.1. LQG Controller Design
The Linear Quadratic Gaussian (LQG) or control consist of a technique for designing optimal controllers. The approach is based on the search of the tradeoff between regulation performance of the states and control effort [12]. The referred optimality is expressed by a quadratic cost function and allows the designer to shape the principal gains of the return ration, at either the input or the output of the plant, to achieve required performance or robustness specifications. Moreover the method is easily designed for MultiInput MultiOutput (MIMO) systems. The controller design takes into account disturbances in the plant and measurement noise from the sensors. Formally, the LQG approach addresses the problem where we consider a linear system model perturbed by disturbances , and measurements of the sensor corrupted by noise which includes also the effects of the disturbances by measurement environment. The statespace model representation of the linear or linearized system with the addition of the disturbance effects can be mathematically expressed by in our problem , , , and are given by (2.10). The matrix is the disturbance balance matrix. The disturbance and measurements noises are assumed both white noises. The principle of the LQG is combine the linear quadratic regulator (LQR) and the linearquadratic estimator (LQE), that is, a steadystate Kalman filter. The separation principle guarantees that those can be design and computed independently [13].
3.1.1. LQR Problem
The solution for the optimal state feedback controller is obtained by solving the LQR problem. Namely the LQR optimal controller automatically ensures a stable closeloop system, and achieves guarantee levels of stability and robustness for minimal phase systems, for example, multivariable margins of phase and gain. The LQR approach gives the optimal controller gain, denoted by , with linear control law:
which minimizes the quadratic cost function, given by
where is positive definite, and is semipositive definite, these are weighting or tuning matrices that define the tradeoff between regulation performance and control efforts. The first term in (3.3) corresponds to the energy of the controlled output () and the second term corresponds to the energy of the control signal. The gain matrix for the optimization problem is obtained by solving the algebraic matrix Riccati equation:
The optimal control gain is then obtained by
The closeloop dynamics model is obtained by substituting (3.5) into (3.1), and taking , as follows
which corresponds to an asymptotically stable system.
In order to adopt the LQR formulation the whole state of the process has to be measurable. In this case it is necessary to estimate the absent states, so the estimated states are denoted by . Notice that the output matrix in our case is , it means that the whole state is measurable. Physically, the angular rates are obtained from the gyros and the attitude/orientation from the solar sensor. Nevertheless, because of the presence of noise, an estimation is advice in order to produce better and reliable information about the real states. The estimation is performed by employing the steadystate Kalman filter.
3.1.2. Kalman Filter Design
The Kalman filter is used to obtain the estimated state . The filter equation in view of the attitude model is given by
where is the Kalman filter gain. The optimal gain minimizes the covariance of the error between real and estimated states, by defining the state estimation error as , the cost function is given by [13]
We assume that the disturbances affecting the process and are zeromean Gaussian whitenoise process with covariances and , respectively. The process and measurement noises are uncorrelated from each other. The gain is obtained solving the algebraic matrix Riccati equation:
The optimal estimator gain is then obtained by
and the error dynamics is given by
where is asymptotically stable. From (3.6) and (3.11) the openloop transfer function for the LQG controller is found as follows:
where is the transfer function of the attitude model, in this case is a matrix of transfer functions.
3.2. PulseWidth PulseFrequency Modulator
The control signals from the LQG controller are of continuous type. However, pulse thruster devices can provide only onoff signals generating nonlinear control action. Nonetheless, those can be used in a quasilinear mode by modulating the width of the activate reaction pulse proportionally to the level of the torque command input. This is known as pulsewidth modulation (PW). In the pulsewidth pulsefrequency (PWPF) modulation the distance between the pulses is also modulated. Its basic structure is shown in Figure 3.
The modulator includes a Schmitt trigger which is a relay with dead zone and hysteresis, it includes also a firstorderfilter, lag network type, and a negative feedback loop. When a positive input to the Schmitt trigger is greater than , the trigger input is . If the input falls below the trigger output is . This response is also reflected for negative inputs in case of two sidethrusters or those thruster that produce negative torques (clockwise direction). The error signal is the difference between the Schmitt trigger output and the system input . The error is fed into the filter whose output signal and it feeds the Schmitt trigger. The parameters of interest for designing the PWPF are: the filter coefficients and , the Schmitt trigger parameters , , it defines the hysteresis as , and the maximal/minimal . The PWPF modulator can incorporate an additional gain which will be considered separately from the control gain.
In the case of a constant input, the PWPF modulator drives the thruster valve with onoff pulse sequence having a nearly linear duty cycle with input amplitude. It is worth to note that the modulator has a behavior independent of the system in which it is used [3]. The static characteristics of the continuous time modulator for a constant input are presented as follows:
(i)ontime (ii)offtime (iii)modulator frequency (iv)duty cycle (v)minimum pulsewidth (PW)where the following internal parameters are also defined: dead zone , saturation level , normalized hysteresis width , and normalized input .
In order to determine the range of parameters for the PWPF modulator, static and dynamic analyses are carried out. The static analysis involves test input signals, for example, step, ramp, and sinusoidal signals. The dynamic analysis uses plant and controller. Afterwards the choice is based upon the number of firings and level of fuel consumption results. The number of firings gives an indication of the lifetime of the thrusters. Table 1 presents the obtained results for the particular problem.

3.3. Specifications and Tuning Schemes
The specification of the requirements for the attitude control system are determined by the capabilities of the MMP satellite to attempt some desired nominal performance for the linked payload. Considering the stabilization mode the following specifications are given in terms of time and frequency domain:
(i)steady state error less than 0.5° degrees for each axis;(ii)overshoot less than ;(iii)short rise time or fast response against disturbances;(iv)stability margins gain GM 6 db and PM 60° for each channel.For the control design, it is necessary to check the limitations and constraints imposed by the plant. In this sense the optimality of the LQG only holds for the following assumptions: the matrix must be stabilizable and must be detectable. In the case of the attitude model, both conditions are satisfied. The next step is to design a controller which achieves the required system performance. During the stabilization mode, it is desired attenuation of the effects of disturbances acting on the satellite and accomplishment of regulation to maintain the satellite in the required attitude. Moreover the output has to be insensitive to measurements errors. Unfortunately there is an unavoidable tradeoff between attenuation disturbances and filtering out measurement error. This tradeoff has to be kept in mind during the design of the controller. In the case of attitude model, the disturbances acting in the system belong to the spectrum at low frequencies, note that the regulation signals belongs also to spectrum at low frequencies. On the other hand, the measurement noises and unmodeled system terms are concentrated at high frequencies. In order to fulfill the specifications, tuning of LQG gains and PWPF gains have to be careful performed. The nature of the tuning is an iterative process which turns out less arduous with the use of a computational tool, in this work the Matlab package is used. In the following, the obtained weights for LQG controller and PWPF modulator are presented.
3.3.1. LQR Tuning
The first choice for the tuning matrices and is taken from the Bryson's rule, selecting and diagonal matrices with the form
where and are the states input signals boundaries, respectively. The rule is used to keep the states and inputs below some boundaries. It is advised to avoid large control signals which from the engineering point of view are unacceptable. On the other hand, the controller has to fulfill all the system specifications and the LQR formulation does not directly allow one to achieve standard control system specifications. Nevertheless those can be achieved by iteration over the values of the weights of and in the cost function till it arrives at satisfactory controller. For the proposed reaction attitude control system the boundaries for the states are kept 5° in attitude , and degree per second for the rates. The boundary for the input signals are Newton meter. The result weighting matrices for the controller which achieved satisfactory controller are
The control tuning matrices and were obtained through iterative process following expectable requirements, for example, allowed (nonsaturation) control effort and reasonable stabilization time.
3.3.2. Filter Tuning
The tuning weight matrices and for the Kalman filter are obtained considering large compared to . It corresponds to weighting the measurements less than the dynamics model. This also leads to a reduction of the poles values for . The relative magnitude of and is determined iteratively till achieves satisfactory gain in terms of filtering and smoothing of the measurement vector signal . The matrices values are given by
where , , and . Note that the precision for the rate measurements is bigger than for the attitude measurements, and the tuning values for the dynamic noise in the attitude are selected as zeros.
3.3.3. Selected PWPF Parameters
In order to compose the entire reaction thruster attitude control system and to achieve the desire performance the parameters for the PWPF are selected from the optimal range. Table 2 presents those PWPF parameters.

Next section presents the performance of the reaction thruster attitude controller during the stabilization mode. Filtering noise, rejection of impulse disturbances, and regulation performance are analyzed.
4. Numerical Simulation and Results
The reaction thruster attitude control is tested through numerical simulations. The tuning matrices schemes presented in Section 3 are used to obtain the controller and observer gains. They are able to attempt pointing requirements (0.5°) and reasonable margins of stability for the attitude control system during the stabilization mode. Table 3 includes the values of principal momentum of inertia without payload [1]. Although several simulations over a wide range of initial condition for attitude were performed, just one case is shown.

4.1. Noise Filtering
In order to filter the noise in the measurement the steadystate Kalman filter is applied. The estimated and measurement attitude is shown in Figure 4, on the left side. The errors and the respective 3 sigma boundary results are shown on the right side of Figure 4. The steadystate Kalman achieves good estimation of the real attitude with a standard deviation . The estimation results present smoother profile compare to the measurements which is favorable wish for the control system.
(a)
(b)
(c)
(d)
(e)
(f)
4.2. Short Slew Maneuver during Stabilization Mode
Although a set of different initial conditions are simulated and analyzed, we present only the case when the satellite has a displacement of degrees for each axis in attitude with respect to LHLV orbital frame. To regulate or stabilize the satellite a short maneuver is needed. The attitude profile is shown in Figure 5. The simulation time corresponds to quarter of the orbital period minutes. The satellite executes the maneuver in approximately seconds.
(a)
(b)
The duty cycle generated by the PWPF modulation is shown in Figure 6. The duty cycle for row, pitch, and yaw angles are the same order of magnitude. The maximal spent time to complete a close path is quasi seconds and it occurs in row direction. The specification of pointing accuracy is achieved, less than degrees. In fact reading out Figure 6 the maximal errors in row, pitch, and yaw are , , and degrees, respectively. It shows a high accurate performance of the reaction thruster which is possible by modulating the control signal using the PWPF modulator.
Figure 7 shows the control command, executed by LQG controller, and the modulation during the slew maneuver. The thrusters’ profile present small pulsewidth modulation () which leads small impulses and hence less fuel consumption. Positive torques are executed by 3 of thrusters and negative ones by another 3 thrusters.
(a)
(b)
(c)
(d)
4.3. Disturbance Rejection During Stabilization Mode
In order to test the action of the controller against disturbance effects (e.g., atmospheric drag) or uncertainties in the system (e.g., sloshing), simulations considering impulse disturbance signals acting in the system are carried out. Figure 5 presents the results obtained for the attitude. It shows a maximal error in attitude of degrees which fulfill the desired precision specification. The attitude control system is capable of respond fast to the disturbance effects, less than 60 seconds for an exogenous pulse of 1 Newton. The control signal command and the PWPF modulation results are presented in Figure 8. The results are satisfactory in terms of accuracy and fuel since the modulation of the pulsewidth is kept small.
(a)
(b)
(c)
(d)
It is worth to note that the use of magnetic coils actuators or reaction wheel devices can zero the error residue, for example, duty cycle, by a damped actuation. This actuation will be very small because of the level of accuracy in attitude achieved by the thruster actuation.
5. Conclusions
The obtained onoff thruster reaction attitude control system based on the LQG/PWPF modulation is optimal with respect to regulation, (i.e., minimizing the quadratic cost function of states and control signals), and propellant consumption. The optimality for fuel is obtained through offline simulations varying the parameters of the PWPF modulator till less fuel consumption is achieved. This work presents the set of optimal parameters for the PWPF modulator by considering static and dynamic analysis.
The LQG design is an efficient way to achieve exponentially stability, moreover it allows to weight the magnitude of input signal , restricting the torque commands till acceptable performance is achieved. The weighting matrices for tuning the optimal LQG controller are presented and discussed in this work. The previous work, see [6], using the LQG design, demonstrated successfully, the applicability and suitability of the controller for the stabilization mode. However, in the foregoing work the required onoff modulation was not taken into consideration. It is worth to note that the LQG controller is able to stabilize the system even for large initial attitude displacements within nonlinear dynamics. It shows how resistent the controller is in face of internal changes in behavior.
The obtained results demonstrate the feasibility of combining LQG/PWPF modulator in an unique controller for onoff thruster reaction attitude control system. Stability remains by adding the PWPF modulator and reasonable accuracy in attitude is achieved, that is, magnitude of the duty cycle. Practical aspects are included in this study as filtering and presence of external impulsive perturbations. The advantages of less spent propellant shall contribute to the MMP project, specially, a satellite conceived to be used on a large number and different types of missions, in the context of an everadvancing Brazilian space program.
Acknowledgments
The authors acknowledge the support of Conselho Nacional de Desenvolvimento Cientifico e TecnológicoCNPq, Coordenação de Aperfeiçoamento de Pessoal de Nivel Superior CAPES (Brazil), and Fundação de Amparo à Pesquisa do Estado de S. PauloFAPESP (São Paulo, Brazil).
References
 AEB—Agência Espacial Brasileira, “National space activities program PNAE 1998–2007,” Report Brazilian Space Agency, AEB, Brasilia, Brazil, 1998. View at: Google Scholar
 Q. Hu and Y. Liu, “A hybrid scheme of feedforward/feedback control for vibration suppression of flexible spacecraft with onoff actuators during attitude maneuver,” International Journal of Information Technology, vol. 11, no. 12, pp. 95–107, 2005. View at: Google Scholar
 T. D. Krovel, Optimal tunning of PWPF modulator for attitude control, M.S. thesis, Department of Engineering Cybernetics, Norwegian University of Science and Technology, 2005.
 T. D. Krovel, “PWPF modulation of thrusters on the microsatellite SSETI/ESMO,” Tech. Rep., Department of Engineering Cybernetics, Norwegian University of Science and Technology, 2005. View at: Google Scholar
 R. S. McClelland, Spacecraft attitude control system performance using pulsewidth pulsefrequency modulated thrusters, M.S. thesis, Naval Postgraduate School, Monterey, Calif, USA, 1994.
 A. C. Santana, L. S. MartinsFilho, and G. Arantes Jr., “Attitude stabilization of the PMM satellite using a LQGbased control strategy,” Tendências em Matemática Aplicada e Computacional, vol. 9, no. 2, pp. 321–330, 2008. View at: Google Scholar  MathSciNet
 J. R. Wertz, Ed., Spacecraft Attitude Determination and Control, Reidel, Dordrecht, The Netherlands, 1978.
 M. H. Kaplan, Modern Spacecraft Dynamics and Control, John Wiley & Sons, New York, NY, USA, 1976.
 B. Wie, H. Weiss, and A. Arapostathis, “Quaternion feedback regulator for spacecraft eigenaxis rotations,” Journal of Guidance, Control, and Dynamics, vol. 12, no. 3, pp. 375–380, 1989. View at: Publisher Site  Google Scholar  MathSciNet
 G. Arantes Jr., Estudo comparativo de técnicas de controle de atitude em três eixos para satelites artificias, M.S. thesis, INPE, S. José dos Campos, Brazil, 2005.
 LIGOS, “VRelam Builder: User's Guide and Reference,” Ligos Corporation, 1997. View at: Google Scholar
 J. B. Burl, Linear Optimal Control, Prentice Hall, Upper Saddle River, NJ, USA, 1998.
 B. D. O. Anderson and J. B. Moore, Optimal Control: Linear Quadratic Methods, Dover, Mineola, Tex, USA, 2007.
Copyright
Copyright © 2009 Gilberto Arantes Jr. et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.