Abstract

The paper describes the development of a microsatellite attitude determination and control subsystem (ADCS) and verification of its functionality by software-in-the-loop (SIL) method. The role of ADCS is to provide attitude control functions, including the de-tumbling and stabilizing the satellite angular velocity, and as well as estimating the orbit and attitude information during the satellite operation. In Taiwan, Air Force Institute of Technology (AFIT), dedicating for students to design experimental low earth orbit micro-satellite, called AFITsat. For AFITsat, the operation of the ADCS consists of three modes which are initialization mode, detumbling mode, and normal mode, respectively. During the initialization mode, ADCS collects the early orbit measurement data from various sensors so that the data can be downlinked to the ground station for further analysis. As particularly emphasized in this paper, during the detumbling mode, ADCS implements the thrusters in plus-wide modulation control method to decrease the satellite angular velocity. ADCS provides the attitude determination function for the estimation of the satellite state, during normal mode. The three modes of microsatellite adopted Kalman filter algorithm estimate microsatellite attitude. This paper will discuss using the SIL validation ADCS function and verify its feasibility.

1. Introduction

The purpose of the satellite project is to establish indigenous capability for spacecraft development, including the design, analysis, manufacturing, assembly, integration, tests, and in-space validation. The paper is relevant to the design and implement of the attitude determination and control subsystem (ADCS) for a microsatellite simulation in software. The simulation of the system in software, settle SIL, is the aim of the paper. In a satellite mission, the ADCS plays an important role as it provides the attitude information of the satellite and stabilizes the satellite. The design of the ADCS is typically divided into several phases, including simulation of the system in software, implementation into hardware, realization and implementation of coding in hardware, and the verification test of the system. SIL for research development easy and do not have to spend too much hardware funding; it is suitable for students in the lab as a topic of special purpose.

Micro-satellite Attitude Determination and Control Subsystem Design and Implementation: Software-in-the-loop Approach.

To support the satellite mission, the ADCS is required to provide the in-orbit attitude control and determination functions. The attitude control function includes the stabilization and detumbling control of the satellite to the prerequisite value, while the attitude determination function is to facilitate the estimated attitude information. ADCS will also operate and record the pertinent data after the separation of satellite from the launcher.

SIL is on a mathematical model, in theory, to complete the preliminary microsatellite ADCS design. The SIL platform contains a dynamic simulator and a real-time microcontroller, as well as some interfacing circuitry. The dynamic simulator is capable of performing simulation of the space environment, orbit dynamics, attitude dynamics, and sensor/actuator models. The controller/estimator of ADCS is a realization of the embedded microcontroller for attitude determination and control. In this paper, the requirements of AFITsat ADCS will be briefly reviewed. The design and implementation of AFITsat ADCS will also be described [13]. Furthermore, the design of the ADCS design can then be verified by the SIL test and the performance of the ADCS can be observed from the simulation results.

In designing the ADCS, the satellite environment, dynamics, control, and estimation functions are simulated through a SIL simulation endeavor. SIL simulation is a virtual platform which can provide the simulation of the satellite working environment, satellite dynamics, and ADCS instruments including attitude sensors and actuators. Besides offering a flexible working platform for the early design stage of ADCS, SIL also eases the modification of the design by modulized all the models. The attitude determination filter and attitude control law are verified through this SIL. After the simulation of ADCS in software, the ADCS algorithm has to be implemented in the ADCS on board microcontroller. To fully develop a verifiable ADCS algorithm, a processor-in-the-loop (PIL) test is developed. PIL test is a way to bridge the gap between the simulation results and the final system construction. It increases the realism of the simulation and provides access to hardware features that are currently not available in the software-only simulation. PIL enables the testing of the actual control and estimation codes running on the microcontroller in the verification environment.

This paper is organized into six sections, which are introduction, ADCS design, ADCS verification, verification results, and conclusions, respectively. In Section 2, the satellite model and space environment are briefly reviewed. The dynamics and kinematics models of the satellite are derived. Moreover, the design of attitude controller and filter are described. The verification methods and platform setups are addressed in Section 3. Section 4 reviews nonlinear robust control law. Section 5 is brief introduction of the algorithm of unscented Kalman filter (UKF) and attitude rate estimator is described. After that, the results from ADCS simulation and verification test are provided and discussed in Section 4. At last, the paper is concluded with the summary and some remarks for the future research are depicted.

2. ADCS Design

2.1. Satellite Model

The dynamics of the spacecraft in inertial space are governed by Euler’s equations of motion [46] where is the moment of inertia which is symmetric: with being the moment of inertia along the -axis and moment of inertia uncertain elements are expanded around the nominal point in th direction with uncertainty, , the inertia moment decrease progressively in submodes transition, is the vector of angular rates of the satellite in body frame, and is the satellite angular rates in the th axis, the moment acting on satellite which consists of control torque applied to the satellite and disturbance torques , including gravity gradient force, air resistance force, and magnetic disturbed force various sources.

is a corresponding opposing skew matrix.

The kinematic update of the satellite is realized by using the quaternion representation. The following vector set of differential equations is used: where is the attitude quaternion vector , , for convenient. The derivative of quaternion in (3) can also be arranged as with

2.2. Environment Model

The space environment must be considered in modeling and analyzing the motion of spacecraft. The space environment models including magnetic field model, Earth’s upper atmosphere model, and sun position model are described in the following. In the magnetic field model, the International Geomagnetic Reference Field (IGRF) is an attempt by the International Association of Geomagnetism and Aeronomy (IAGA) to provide a geomagnetic field mathematical model [7]. In the SIL design, the latest IGRF model, IGRF 2010, is adopted.

Models of the upper atmosphere are usually based on either empirical or theoretical work. The main concern is about the total atmospheric density in upper atmospheric, which will affect the satellite attitude. The atmospheric density is determined by a modified analytical expression of the Jacchia-Roberts theory [8]. For microsatellite which is planned to operate at the altitude of 550 km, the atmospheric density is about  kgm−3.

By knowing the Sun’s orbit and position with respect to the satellite, the eclipse/shadowing status of satellite can be determined. The microsatellite ADCS is concerned with the satellite solar eclipse because the sun sensor reading is affected. To this end, the sun position model is also incorporated.

Satellites are subject to many types of disturbances which will affect the attitude of the satellite in space. The dominant sources of attitude disturbance torques are the gravity-gradient torque, aerodynamic torque, and magnetic disturbance. The gravity gradient torque is one of the largest sources of disturbance that would affect the low earth orbit satellite. In orbit, any object which is nonsymmetrical with finite dimensions will be subjected to a gravitational torque due to the variation in the Earth’s gravitational force over the object. The gravity-gradient torque act on the satellite can be expressed as follows: where is the earth’s gravity constant and is the location of the satellite mass center relative to the earth center in body frame [4, 8]. For the microsatellite operation, the gravity-gradient torque is computed. The magnitude is of the order 10−7 Nm.

The interaction of the upper atmosphere with the surface of satellite will produce a torque about the center of mass. The aerodynamic torque is given by the following equation: with

In the above, as the microsatellite is of rectangular shape, there are six surfaces that need to be considered. The location of the th plate is denoted by . The corresponding force due to the impact of molecules on the surface is denoted by . This force component is a function of the drag coefficient , atmospheric density , magnitude of the translational velocity of the satellite , area of the plate , unit normal vector of the surface , and the unit vector of the velocity vector . The magnitude of the aerodynamic torque acting on the microsatellite is computed to be of the order 10−8 Nm.

Finally, magnetic disturbance torques result from the interaction between the satellite’s residual magnetic field and the earth geomagnetic field. The dominant source of the residual magnetic field is the spacecraft magnetic moments. This instantaneous magnetic disturbance torque due to the spacecraft effective magnetic moment and the geocentric magnetic field can be described as follows [913]: where is the sum of the internal residual magnetic dipole moment and is the geomagnetic flux intensity in body frame.

The magnetic field of microsatellites in orbit coordinates frame is as shown in Figure 1.

3. Attitude Control

Attitude control is the process of changing the orientation of satellite. This process is vital because a satellite will always experience internal and external disturbance torques. The attitude control in microsatellite is mainly concerned about the attitude stabilization. Approaches of attitude control have been discussed in this.

3.1. Production of Satellite Thrust [1416]

The satellite exercise frame is as in Figure 2. Four thrusters are put in plane, including angle, the jet moves toward direction, and lines to be a square distance . Fuel is put the jet plane distance, and direction is toward satellite center, in Figure 3.

The , , and , respectively, represent the jet including angle, jet relative distance, and the uncertainty of the fuel gravity position.

The following is production from the thruster: where

3.2. Pulse-Width Modulation Rules [1722]

The controller requires a continuum of positive and negative thrust values, which are physically impossible with the four fixed thrusters. This requirement can be met by pulse-width modulating the thrusters. The four thrusters span the three-dimensional control space when generating a positive thrust along the satellite -axis. The thruster commands are all biased upwards so that each thruster receives a positive thrust command. Each thruster can be commanded on for a variable time during each control system sample period, with a resolution of 50 msec. The variable thrust level from the linear control signal is realized by turning on each thruster for less than the full sample period, such that the impulse of the thruster matches the commanded impulse.

The procedure to convert the controller to pulse-width modulation is as follows.(1)The thruster commands .(2)Convert from variable thrusts for the fixed total sample period to fixed thrusts for variable times: = (sample time/thrust magnitude) ×  .(3)Limit on-times to ± half the sample period.(4)Compute a bias term; add the bias to all on-times such that at least one thruster is on for the complete sample period.

According to the PWM duty rule, the duty period can be divided into two modulations: off-modulation and on-modulation. In this project, an on-modulation is adopted. Microsatellite attitude control pulse-width modulation block diagram is as shown in Figure 4. Figure 5 shows PWM processing; from the control flow chart of pulse-width on/off modulation algorithm, there is at least one thruster that works in the off-modulation, while there is at least one thruster that does not work in the on-modulation. In Figures 4 and 5, , represents the maximum amplitude of the thruster, sampling time.

4. Nonlinear Robust Control Law

The microsatellite kinematic equation is described by where

In the attitude control design, it is desired that the system is stable and the excursions of the angular rate and control input are minimized. This motivates the use of the following penalty function to be minimized: where , , and are weighting coefficients introduced for the trade-off between performance and control effort. The function is defined as .

The attitude control problem can then be formulated as where is the state and is the disturbance. The , , and are uncertain smooth vector fields and mappings. Denote , for small perturbations; , , , , , , and can be expressed as

4.1. Nonlinear Robust Control Theory

Consider a nonlinear state-space system

where is the state vector, is the exogenous disturbance to be rejected, and is the penalized output signal. We assume that , , and are functions and is the equilibrium point of the system; that is, .

Given a positive number , system (18a) and (18b) has a finite —gain less than if, for all with ,

Lemma 1. Assume that , , and in (15). If is zero-detectable and there exists a positive-definite function such that the following Hamilton-Jacobi partial differential inequality holds [2325] then the system has a finite gain less than . Once is found, the control signal can be synthesized as where .

Theorem 2. Consider that the nonlinear uncertain system (17) and the uncertainty of system parameters satisfy the following equation [26, 27]: where , , and , , are known vector, for which we assume that there exist scale functions with described by with . Under this assumption, if system (15) satisfies the following conditions(i) is zero-state detectable;(ii)there exists a smooth function such that the following Hamilton-Jacobi partial differential inequality has a smooth positive solution where and is a neighborhood of origin in , then by the following state feedback law the closed-loop system of (15) has a robust -performance.

5. Kalman Filter

Attitude determination involves a two-part process: estimation of a vehicle’s orientation from body measurements and known reference observations and filtering of noisy measurements. The Kalman filter (KF) is essentially a set of mathematical equations that implement a predictor-corrector type estimator so that it can minimize the estimated error covariance. However Kalman filter is only applicable for linear systems and not suitable for the nonlinear satellite dynamic system. The UKF (unscented KF) is a standard state estimation scheme for nonlinear system. The UKF extends the scope of Kalman filter to nonlinear optimal filtering problems by unscented condition estimation which means it is based on the input unscented system and the output measuring data to estimate the unpredictable interior condition. Unscented condition estimation is important in scientific research and constructional applied field. The attitude determination algorithm implemented in microsatellite is UKF. The UKF starts with a given initial estimate for the state and its error covariance matrix. In order to obtain the optimal estimates of the real system, UKF will predict the system state recursively by measurement update and propagation update. The propagation update will be propagated as the prior state and covariance for the next time step. In the design of the microsatellite attitude estimation scheme, several different filter formulations have been assessed. In its simplest form, the states of the UKF include the satellite quaternion and angular rates (both in satellite body frame) [28, 29]:

Based on the discussions in Section 2, the following process and measurement models can be established:

The variables in the above equation will be described.is a system condition vector in the   moment. is unscented system model. is a dynamic mixed signal in the moment. is a measuring dynamic vector in the moment. is a unscented system measuring model. is dynamic measuring mixed signal in the moment.

The measurement vector is denoted by . The measurements that are used for attitude determination in the microsatellite ADCS include sensor readings of three-axis gyroscope, sun sensor, and three-axis magnetometer. The process noise and the measurement noise are assumed to be zero-mean white noise. The process noise covariance matrix and the measurement noise covariance are given by and , respectively.

The system error covariance matrix is as follows:

The measuring error covariance matrix is as follows:

Here, and are independent and unrelated:

5.1. Unscented Kalman Filter Processing [30, 31]

(1)Producing standard points and calculation value: The parameter is a scaling parameter defined as The positive constants , , are used as parameter of the method; a priori and a posteriori estimates of the state are denoted by and .(2)Time updating:condition predicted value: condition predicted average: covariance matrix: (3)Observation updating:observation measurement predicted value: observation measurement predicted average: and update: (4)Calculating Kalman gain value: (5)Updating estimated value to measurement value: (6)Updating condition error covariance matrix:

5.2. Unscented Kalman Filter Flow Chart

The flow chart of the UKF is as shown in Figure 6.

6. The SIL Test of Microsatellite ADCS

The SIL test of microsatellite ADCS is conducted to verify the function of each module. To this end, the Labview [32] with is used to facilitate the simulation.

SIL system is divided into two parts: one is for the host computer and the other is the on-board computer (real-time controller NI cRIO-9014, National Instruments) [33], Ethernet connection between the Host computer and on board computer with a group and as for satellite attitude simulation tests. Host computer simulates microsatellite dynamic equations of motion, in orbit on the environment (environmental disturbance torque, 10 orders of the Earth’s magnetic field) and attitude measurement sensing element mathematical model. The on-board computer not only is a real-time hardware system to replace the satellite attitude controller but also simulated satellite attitude control element mathematical model (on/off modulator PWM, thruster). Host computer with on-board computer through the Ethernet connection into a loop, they linked for the satellite attitude (angle, angular velocity) and a control command. The SIL test can be conducted in a subsystem level or closed-loop system level. In SIL testing, the system under consideration is composed of six functional blocks as depicted in Figure 7. The function of each block is described as follows [2831].(1)Satellite Attitude and Orbit Information. It provides three main functions including the computation of satellite attitude and angular rates, satellite position and velocity, and coordinate frame transformation.(2)Sensor Model. Three types of sensors are modelled and simulated in this block, including magnetometer, sun sensor, and gyro.(3)Disturbance Torques. Three types of disturbance torques are considered, including the aerodynamics torque, gravity gradient torque, and magnetic disturbance torque.(4)Attitude Determination. This block provides the function of attitude estimation by using UKF.(5)Attitude Control. This block executes the attitude control function.(6)Attitude Determination Error. This block calculates the state error estimated by the UKF.

The attitude determination and control functions are controlled by switches and can be enabled or disabled anytime during the SIL test.

6.1. Parameters of Experimental

The parameters of microsatellite are shown in Table 1 and initial conditions of microsatellite are shown in Table 2.

In the next step, we will use the satellite parameters of Tables 1 and 2 of the initial conditions to simulate the satellite attitude response.

6.2. Experimental Results

In this section, we will implement the SIL simulation using Table 1 parameters of microsatellite and initial conditions of microsatellite of Table 2. Figures 8(a) to 8(b), using the Matlab/Simulink simulation results. Then, the SIL simulation results are as shown in Figures 9 to Figure 10.

7. Conclusions

In this paper, the satellite attitude determination and control techniques are studied and the verification results are presented. The ADCS is designed with the aid of software and being tested in SIL simulation for the verification of the ADCS model. The results of SIL show that the attitude estimation errors are within 3°and the UKF error can converge after 240 seconds even though the initial attitude error is large. The designed ADCS can fulfill the mission requirement by achieving attitude determination error of less than 5°.

In the future, some additional subjects will be investigated. The sensors, magnetometer, and sun sensor should undergo calibration tests in order to increase the precision of the simulated sensor model. The classic Kalman filter (UKF) was superseded by unscented Kalman filter that can be used as the algorithm for attitude estimation.

Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

Acknowledgment

This work is a contract by ROC National Science Council under Contract NSC101-2221-E-344-002, ROC National Space Organization NSPO-S-099135 Academic Research Grants, and the Air Force Command 2012 of Academic Research Grants.