Abstract

The attitude control has been recognized as one of the most important research topics for spacecraft. If the desired attitude trajectory cannot be tracked precisely, it may cause mission failures. In the real space mission environment, the unknown external perturbations, for example, atmospheric drag and solar radiation, should be taken into consideration. Such external perturbations could deviate the precision of the spacecraft orientation and thereby lead to a mission failure. Therefore, in this paper, a quaternion-based super-twisting sliding mode robust control law for the spacecraft attitude tracking is developed. The finite time stability based on the formulation of the linear matrix inequality (LMI) is also provided. To avoid losing the control degree of freedom due to the certain actuator fault, a redundant reaction wheels configuration is adopted. The actuators distribution associated force distribution matrix (FDM) is analyzed in detail. Finally, the reference tangent-normal-binormal (TNB) command generation strategy is implemented for simulating the scenario of the space mission. Finally, the simulation results reveal that the spacecraft can achieve the desired attitude trajectory tracking demands in the presence of the time-varying external disturbances.

1. Introduction

Sliding mode control (SMC) techniques have been a popular research topic of the control theory in recent years such as adaptive super-twisting SMC [13], fractional-order sliding mode control [4], finite time control [5], robust backstepping SMC [68], and model predictive SMC [9]. The superior robustness to the matched perturbations is one of the features of the SMC. However, the price of the robustness is the chattering effect of the control signal. It causes application difficulty for practical implementations [10]. The ways to attenuate the chattering phenomenon include the following [1113]: (i) replacing the discontinuous switching function with a saturation function or a sigmoid function, (ii) applying an adaptive law to adjust the switching gain dynamically, and (iii) using the higher-order SMC techniques. Nevertheless, skill (i) results in losing the robustness to the disturbances. Even though approach (ii) can estimate an adequate magnitude of the switching gain with respect to perturbations [14, 15], the estimation of the switch gain could increase monotonically due to the absence of perfect sliding motion in practice. For (iii), the gain/stability determinations are quite challenging.

The high-order SMC approach can drive the sliding variable and its consecutive derivations to zero in the presence of the matched perturbations. However, the main challenge of the high-order SMC is that it uses the information of the high-order time derivatives of the sliding variable [1618]. Among the higher-order SMC techniques, it is worth remarking that the second-order SMC such as the super-twisting algorithm only needs the feedback information of the sliding variable in control process. The super-twisting algorithm was firstly proposed by Dr. Levant in 1993 [19]. A quadratic Lyapunov function proposed in [20] is considered in the proof of the finite-time convergence property. The successive researches include [2124]. Owing to the superior properties, the super-twisting algorithm has been applied in several studies, including quadrotor [25, 26], industrial emulator [27], and mobile wheeled inverted pendulum [28]. For this reason, the robust continuous super-twisting sliding mode algorithm will be adopted for the attitude tracking control design in this paper.

The reaction wheel driven based system is actuated by means of generating the reaction torque from the wheel. The reaction wheel has been widely applied in the most dynamics systems. In literature [2931], the reaction wheels are used in the attitude tracking control demands. The works in [32, 33] use the reaction wheel to address the balancing control of the inverted pendulum. The main objective of this paper is to apply the super-twisting algorithm for the attitude control of the spacecraft via using four reaction wheels as the actuated source. The attitude representation includes several approaches, eor example, Euler angles, Rodrigues parameters, and quaternion [34]. To avoid singularity, the quaternion-based control is considered. The quaternion-based control has been proposed in several studies [30, 35, 36]. However, it assumes that the scalar component of error quaternion does not equal zero to guarantee that the matrix is invertible. This assumption leads to the controllers containing a singularity when . It should be noted that one of the reasons to use quaternion-based control is to obtain the full attitude tracking task and avoid any singularity limitations. As a result, in this paper, a quaternion-based super-twisting sliding mode algorithm is adopted in the controller design such that the robust performance can be guaranteed. The asymptotic stability proof of the nonlinear reduced-order dynamics by means of an analytic solution will be addressed without imposing assumptions.

Regarding the organization of this article, in Section 2, the governing equations of attitude dynamics based on the quaternion kinematics and the redundant reaction wheels configurations are derived. The configuration is introduced from [30, 37, 38]. To obtain the feasible reaction torques, the FDM is reformulated as a square and invertible matrix, which minimizes the control energy cost [30]. In Section 3, a robust, continuous super-twisting sliding mode algorithm is considered in the controller design so that the spacecraft can handle the external perturbations in the real and complex space environment. The stability problem will be reformulated as a feasibility problem of a LMI and therefore the finite time stability can be achieved in the sense of Lyapunov. In Section 4, the reference TNB command generation strategy is proposed to verify the tracking performance of the spacecraft. In Section 5, the numerical simulation is carried out and the results reveal that the spacecraft can track the desired attitude trajectory in the presence of time-varying disturbances.

The contributions of this paper are summarized as follows: (i) realizes the super-twisting sliding mode algorithm as a robust, continuous quaternion-based attitude controller for the attitude trajectory tracking demands of a spacecraft with the redundant reaction wheels; (ii) proposes a modified version of LMI which has higher degrees of freedom for finding the decision variables and it can satisfy the convergence performance by requirement; (iii) derives the analytic solution of the nonlinear reduced-order dynamics; and (iv) presents a reference TNB command generation strategy so that the feasibility of the controller can be verified.

2. Reaction Wheels Driven Based on Spacecraft Dynamics Modeling

2.1. Geometry Configuration Analysis

From the perspective of practical realization, to avoid losing a degree of freedom of control in space due to certain actuator faults, the redundant reaction wheels configuration is adopted [30, 37, 38]. The dynamic configuration is shown in Figure 1. To formally derive the governing equations of the attitude dynamics, we firstly define the coordinate system as follows: (i) the body frame denoted as , which is fixed in the body of the spacecraft to represent the attitude of the spacecraft, and (ii) the auxiliary rotation frame denoted as , which is fixed in the -th reaction wheel to describe the relative rotation of -th reaction wheel to spacecraft.

Taking the first reaction wheel as an example, the geometry mapping relation between and is explained in Figures 2 and 3, respectively. Referring to Figure 2, the body frame rotates about the -axis with an angle , and the new frame is denoted as . From the rotation property, the mapping relation between and can be constructed as

Regarding Figure 3, the frame rotates about negative -axis with an angle , and then the new frame is obtained. Again, from the rotation property, we have the mapping relation between and :

On the basis of previous illustrations, the mapping relation between and can be derived by combining (1) and (2):

In general, the mapping relation between and can be formulated aswhereand , .

2.2. Attitude Dynamics

To avoid the singularity problem in the Euler approaches, the quaternion-based attitude representation is considered. Let be the unit quaternion and let be the angular velocity of spacecraft; then the quaternion kinematic equations are given by

The above equations can be rewritten in a compact matrix form:where

The symbol represents a cross product matrix of vector , which is defined as

In the following, the kinetic equations based on the redundant reaction wheels configuration will be derived. Let , , be the relative rotational speed of each reaction wheel to the spacecraft; then the angular velocity of each reaction wheel with respect to is given by

The angular momentum of spacecraft relative the body frame is

Assume that the reaction wheels are perfect circle plate. Hence, the moment of inertia matrix of -th reaction wheel with respect to is

The angular momentum of each reaction wheel relative frame can be constructed:

Mapping onto spacecraft body frame yields

The total angular momentum of the system (spacecraft and reaction wheels), , is the summation of and , which is

The term

Define the following:(i)Equivalent moment of inertia matrix of the system:(ii)Force distribution matrix (FDM):(iii)Axial moment of inertia matrix:

Combining (17)–(20), equation (16) can be further simplified towhere . The Euler equation of motion is given byin which the total external torque is equal to the summation of the external control torques and the external disturbance torques . Substituting (21) into (22) yields

Define the control torque and the reaction torque as

Hence, (23) can be further simplified as

In this paper, is considered.

2.3. Actuator Analysis

From (24), we have

Once is designed for the attitude trajectory tracking demands of the system dynamics (6), (7), and (25), it is desired to obtain each reaction torque . However, FDM (19) is a nonsquare matrix, so the inverse does not exist. To obtain the FDM with a special matrix structure, the two following geometry constraints are imposed [30]:or, equivalently,

From (27), we have the following FDM:and then the following static optimization problem is formulated [30]:subject to

To formally address the problem, refer to [39], and define the Lagrangian together with the Lagrange multiplier as follows:

Let and be the optimal solution. The first-order necessary condition to minimize isand

From (33), it is implied that

Combining (34) and (35), the distribution matrix can be augmented as

The inverse mapping is

Hence, when is designed for the system dynamics (6), (7), and (25), the reaction torque for each reaction wheel can be obtained by inverse mapping (37). Moreover, it can be guaranteed that the reaction torque is an optimal value to minimize the performance index (30).

Because the reaction wheels are actuated by servo motors, that is, the reaction torques are generated by servo motors, the following linear dynamic equation is considered:

From the definition, (24) and (38) becomewhere the parameters and are considered. is the control input voltage.

Conclusively, is first designed for the system dynamics (6), (7), and (25). Secondly, inverse mapping (37) is used to obtain the optimal reaction torque of each reaction wheel to minimize the energy cost (30). Finally, apply (39) to obtain the corresponding control voltage . In the following, the discussion focuses on how to design so that the desired trajectory can be achieved in the presence of time-varying disturbances.

3. Super-Twisting Sliding Mode Controller Design

3.1. Super-Twisting Sliding Mode Algorithm

The design process of sliding mode control includes two steps: (i) A sliding variable is designed so that the stability of the reduced-order dynamics can be guaranteed. (ii) Seeking the robust, continuous control law to guarantee the sliding mode occurs in a finite time in the presence of the time-varying external disturbances. In the following, the super-twisting sliding mode algorithm [19] is introduced.

The super-twisting sliding mode algorithm is one of the outstanding robust control algorithms which handles a system with a relative degree () equal to one. Based on the algorithm, the closed-loop sliding dynamics is designed aswhere is the sliding variable; is state vector; is an unknown time-varying perturbation and it is assumed that ; the gain pair is to be designed so that the sliding mode can occur in a finite time.

In fact, the more general representation of (40) is to express it as the following state-space form. Letwhich implieswhere and . Since (42) is nonlinear, consider the following variable transformation [20]:

Taking the time derivative yieldswhich can be rewritten in the matrix form aswhere and . Disturbance transformation satisfies

For system (45), the stability problem is proven in the following. It is shown that the stability issue can be reformulated as a feasibility problem in terms of the LMI.

Theorem 1. (See[21, 22, 25]). Suppose that there exist symmetric and positive definite matrices and so that the following LMI,is feasible, where , , and and are provided in (45). Then the quadratic form,is a strict Lyapunov function for system (45) and the trajectory reaches the origin in a finite time.

Proof of Theorem 1. Applying the Rayleigh inequality, is bounded bywhere represents the Euclidean norm of . For (48), taking time derivative givesAccording to (46), the following inequality is satisfied:which guaranteesHence, (50) can be rewritten aswhere .
Based on (47) and (49), (53) can be further simplified toAgain, from (49), the following inequality can be deduced:Based on (55), it can be concluded that (54) satisfiesFor (56), one haswhich impliesHence, reaches zero within a finite time described bywhere is the initial condition of and is given by (56). Based on the appropriate gain pair selection, the LMI equation (47) can be established. As a result, the finite time stability as shown by (59) can be achieved.
In Theorem 1, we suppose that the LMI (47) is negative definite. Theorem 2 is similar to [21, 22, 25] and is presented for the feasibility of LMI (48) in Theorem 1.

Theorem 2. Consider the LMI given by (47); there exists a feasible solution , so that the LMI (47) can be established if and only if the parameters and in satisfyor Furthermore, the additional constraints for (60) and and for (61) must also be satisfied.

Proof of Theorem 2. If the LMI (45) is feasible, then the -gain of the following system,must be less than or equal to ; that is,The above statement is the so-called bounded-real condition [40]. In order to find proper in (62) so that condition (63) can be satisfied, calculateand its derivativeThe extreme point can be obtained by setting (65) equal to zero. Checking for the second-order sufficient condition , it can be deduced that can be reached, whenSubstituting (66) into (64) yieldsThus, combining (63) and (67) shows that ifthen the LMI (47) is feasible. Moreover, to avoid the singularity of (67), the constraints for (68) and and for (69) are made.

Remark 1. Notice that system (62) is not a transfer function of system (45); it is the corresponding linear system of LMI (47). More details can be found in [40].

3.2. Controller Design

The control objective is to design a robust control torque such that the spacecraft can achieve the arbitrary attitude trajectory tracking demands in the presence of time-varying disturbances.

For this reason, let be the desired quaternion and let be the desired angular velocity. Define the tracking error vectors and as follows [36]:where represents the quaternion multiplication. Based on (70), the quaternion-based error dynamics of (6), (7), and (25) is given by

Select the sliding surface aswhere ; is a positive parameter to be designed.

Suppose that the sliding motion is fulfilled in a finite time ; it gives

From (71), (72), (74), and (75), the nonlinear reduced-order dynamics can be obtained:

The term “reduced-order” means that the system error dynamics described by (71)–(73 with order 7 “reduced” to subsystem (76) and (77) with order 4. In order to analyze the stability of the reduced-order dynamics, apply the identity of unit quaternion:

Equation (76) can be decoupled as

Then, consider the following variable transformation:which implies

Substituting (79) yieldswhich implies

Clearly, equation (83) is a linear ordinary differential equation. Its solution is given bywhere is an integration constant. Apply the inverse mapping from (80); we get

Let be the initial condition; we have

Hence, the analytic solution of (79) can be obtained:

Observing (87), it can be deduced that (i) the singularity occurs as an improper sliding gain is chosen such that . Thus, the sliding gain is designed so that . (ii) as from (87) and as from the identity of the unit quaternion (78). Observing (70), it can be found that and imply and . That is, the nonlinear reduced-order dynamics (76) and (77) are asymptotically stable. It is different and more outstanding than [30, 35, 36]; the assumption that is not made. In the following, how to enter the sliding mode in a finite time in the presence of external disturbances by means of the robust control law will be discussed.

In order to introduce , taking the time derivative about (74) yieldswhere

Based on the super-twisting sliding mode algorithm [21], the following robust control law is designed:in which the gain matrices are denoted as

Substituting (90) into (88) yields the closed-loop sliding dynamics:where and is a sign function defined as follows:

According to the stability criteria derived from Theorems 1 and 2, the following gains are chosen:where , .

4. Spacecraft Reference Command Generation

4.1. Reference Quaternion Generation from TNB Frame

In this section, we are going to illustrate how to obtain the reference quaternion from the TNB frame. The procedures are as follows:(1)Reference orbital trajectory: Consider the governing equations of the orbital motion [41]:where is the position vector and its magnitude is ; is the gravitational parameter. The reference orbital trajectory can be obtained by integrating (95) in a given initial condition.(2)Construction of the TNB Frame: According to geometry kinematics, the TNB frame can be constructed by the trajectory information. Let be the velocity vector and let be the acceleration vector. The unit tangent vector can be computed byThe unit normal vector can be obtained bywhere is the normal acceleration and is the tangential acceleration. Based on the definition of TNB frame, the binormal vector is(3)Reference Quaternion: Based on the rotational property, the direction cosine matrix (DCM) can be composed by , , and ; that is,

Applying the quaternion kinematics, the reference quaternion is

4.2. Reference Angular Velocity Generation

To generate a feasible command trajectory, the following property is proposed [35].

Property 1. The matrix defined in (9) has the following properties:By using Property 1, from (8), the angular velocity and its time derivative can be expressed asHence, the formula of the desired angular velocity associated with the desired quaternion iswhere

5. Numerical Simulation

According to [42], the numerical data are considered and summarized as follows.(i)Moment of inertia of the spacecraft and reaction wheels is as follows:(ii)The external disturbance is chosen as(iii)Initial conditions are the following [41]: (km); (km/s); (degree/sec); ; and gravitational parameter (N-/kg).(iv)The control gains are

The sampling rate is 400 Hz. Total time span is 4.17 hours. The simulation results are shown in Figures 47. For convenience, only the transition response is shown.

With regard to Figure 4, it is demonstrated that the spacecraft tracks the reference TNB attitude trajectory successfully. The attitude of the spacecraft with respect to the global frame is represented as . The response of quaternion tracking errors is shown in Figure 5. It can verify the derivation of analytic solution (87) that the scalar component and the vector component as and they satisfy the constraint . Figure 6 illustrates the response of the sliding variable. It can be found that the converging speed of the sliding variables is fast even though the spacecraft is under the environment with the time-varying external disturbances. The evolution of the reaction torques is shown in Figure 7. It can be seen that the control signal is smooth and there is no chattering phenomenon. We can deduce that the controller based on the super-twisting sliding algorithm can be realized in the spacecraft attitude control problem.

6. Conclusion

In this study, the attitude dynamics based on the redundant reaction wheels configuration of the spacecraft is derived. To achieve full degree of freedom attitude tracking control, the quaternion kinematics is introduced. For practical realization purpose, the nonsquare FDM is reformulated as a square, invertible matrix by means of solving a static optimization problem. The robust, continuous super-twisting sliding mode algorithm is adopted in the attitude controller design to guarantee robust performance in the presence of exogenous disturbances. Furthermore, the corresponding finite time stability based on the LMI is provided in the sense of Lyapunov. Asymptotic stability of the nonlinear reduced-order dynamics is proven by means of an analytic solution without imposing any limitation in quaternion. In a space mission with this scenario, the TNB command generation strategy is presented. Finally, the simulation results verify that the spacecraft can achieve the arbitrary attitude trajectory tracking demands in the presence of the time-varying external disturbances.

Data Availability

No data or software is included in the submission.

Conflicts of Interest

The authors declare no conflicts of interest.

Acknowledgments

This work was supported by the Ministry of Science and Technology under Grant nos. MOST 107-2221-E-006-114-MY3 and MOST 108-2923-E-006-005-MY3.