Academia.eduAcademia.edu

Stable Design of Attitude Control for a Spacecraft

2012

that is equal 38% in comparison with the allowable reaction wheel capacity. the spacecraft and orients it to desired attitude is present d in this paer. This attitude control system is assumed to have four reaction wheels with optimal arrangement. The reaction wheels are located in square pyramidal configuration. Control system inputs are attitude parameter in the quaternion form and the angular velocity of spacecraft and reaction wheels. The controller output is the torque required to eliminate error. In this study, actuators (reaction wheels) are modeled and required torque for attitude maneuver is converted to voltage of actuators. Armature voltage and armature current is limited to 12 volts and 3 amps respectively. Also, each wheel has an angular velocity limit to 370 rad/sec. Numerical simulations indicate that the spacecraft reaches desired attitude after 34 seconds and show the reliability of mentioned configuration with respect to actuator failure. The results show that in c...

IAA-AAS-DyCoSS1-07-11 AAS 12-352 STABLE DESIGN OF ATTITUDE CONTROL FOR A SPACECRAFT Mostafa Bagheri,* Mansour Kabganian† and Reza Nadafi‡ The three-axis attitude control design based on Lyapunov stability criteria to the spacecraft spacecraftand andorients orientsit itto to desired attitude is presented in this stabilizing the desired attitude is presented in this papaper. This attitude control system is assumed to have reaction wheels per. This attitude control system is assumed to have four four reaction wheels with with optimal arrangement. The reaction wheels are located in square pyramidal optimal arrangement. The reaction wheels are located in square pyramidal conconfiguration. Control system inputs are attitude parameter the quaternion figuration. Control system inputs are attitude parameter in theinquaternion form formthe and the angular velocity of spacecraft and reaction The controller and angular velocity of spacecraft and reaction wheels.wheels. The controller output output is the torque required to eliminate In this study, actuators (reacis the torque required to eliminate error.error. In this study, actuators (reaction tion wheels) are modeled and required for attitude maneuver is conwheels) are modeled and required torque torque for attitude maneuver is converted to verted toofvoltage of actuators. voltage and armature is limited voltage actuators. ArmatureArmature voltage and armature current current is limited to 12 to 12and volts and 3respectively. amps respectively. Also,wheel eachhas wheel has an angular volts 3 amps Also, each an angular velocity velocity limit to limit to 370 rad/sec. Numerical simulations indicate that the spacecraft reaches 370 rad/sec. Numerical simulations indicate that the spacecraft reaches desired desired attitude after 34 seconds and show the reliability of mentioned configuattitude after 34 seconds and show the reliability of mentioned configuration ration with respect to actuator failure. The results show that in case of failure with respect to actuator failure. The results show that inattitude case ofbut failure one of one reaction wheel, the spacecraft can reach desired needsofmore reaction wheel, the spacecraft can reach attitude but needs more time. time. Moreover, results demonstrated the desired controller robustness against parameMoreover, results demonstrated It theiscontroller robustness parameter variter variation and disturbances. robust against with against up to 350% change in ation and disturbances. It is robust againstagainst with updisturbance to 350% change spacecraft spacecraft moment of inertia and robust up to in 0.0094 N.m moment of inertia andcomparison robust against up reaction to 0.0094wheel N.m capacity. that is equal that is equal 38% in withdisturbance the allowable 38% in comparison with the allowable reaction wheel capacity. INTRODUCTION Attitude determination and control system (ADCS) is an important subsystem of a spacecraft which plays an important role in the spacecraft missions. The controller algorithm is essential part of ADCS subsystem that commands the actuators. Many spacecrafts are placed in low earth orbits (LEO) in recent years. Since these spacecrafts are close to earth, effect of orbital disturbances is enormous. 1,2 Using attitude controllers for stabilization and tracking desired trajectory has increased in the second half of the twentieth century. The first studies were on the passive controller for stabilization. 3 But in order to achieve better performance and accuracy, active attitude control is used. 4 Active control of spacecraft attitude has been addressed by various researchers since the sixties of the 20th century. The reaction wheel (RW) is the most common actuator for rotational control of spacecrafts since it has a simple structure. Also, for accurate attitude control systems and moderately fast maneuvers, RWs are well suited because they allow continuous and smooth control with comparatively low disturbing torques and used to provide torques about three body axes. * Department of Mechanical Engineering, Student, Amirkabir University of Technology, Tehran, Iran 158754413 † Department of Mechanical Engineering, Professor, Amirkabir University of Technology, Tehran, Iran 158754413 ‡ Space Science and Technology Institute, Instructor, Amirkabir University of Technology, Tehran, Iran 158754413 777 RWs consist of a DC motor with a flywheel assembled on its axis to provide a higher moment of inertia. Control system of three RWs configuration which are parallel to the principal axes of body is not complex, but if one of them fails, the control system is unable to track the desired trajectories. The actuator failures are known to be the main cause to many space mission failures. It is assumed that each reaction wheel has a torque limit, and also has an angular momentum limit. Then, there is an additional problem with regard to saturation. 5 For these reasons, a square pyramidal configuration is used for RWs to increase the reliability and avoidance of saturation. In this configuration, the RWs are not placed along the body axes and their rotational axes are inclined to the x B  y B plane by an angle E , Figure 1. ZB β XB YB Figure 1. Square Pyramidal Configuration of RWs In the present paper, a three axis attitude control based on Lyapunov criteria is designed and as mentioned before, RWs are arranged in a square pyramidal configuration. In order to find applied control torque for each RWs, the norm of torque vector should be minimized. The scope of this paper is modeling and simulation of closed loop system that show robustness against external disturbances while maintaining sufficient consistency in parameter variation. The main contribution of this paper is designing a control law and developing a closed loop modeling. q Desired q Actual qE V T Actuators Controller Figure 2. Closed Loop Modeling 778 System EQUATION OF MOTION FOR SPACECRAFT ATTITUDE Attitude motion of spacecraft that contains a rigid body is formulated. In this study, the coupling between the orbital and the attitude motion and disturbance torque are ignored. According to the law of conservation of angular momentum to three-dimensional, the differential equation of motion for a rigid spacecraft can be written as fallows T h tI h t  Ȧ u h t Ȧ [Ȧx Ȧy Ȧz ] (1) (2) Where h t and h t are spacecraft angular momentum and differentiation of angular momentum in the spacecraft body frame (SBF), respectively, and the subscript " I " indicates a derivative in the inertial frame. The terms Ȧx , Ȧy and Ȧz are angular velocities about the body coordinate axes. According to Eq. (3), the total angular momentum of system consists of the angular momentums of all component are fixed about the spacecraft rotation axis, h s , plus the angular momentum of the rotational component about the same axis, hwb , that are in the SBF. hs  hwb ht (3) Therefore, Eq. (1) can be written as follows   Ȧ u I sȦ  h wb  Ȧ u hwb T I sȦ (4) T is the sum of all external moments applied to the spacecraft. It consists of two terms: the control torque generated by the reaction control jets and torques due to external torque such as aerodynamic disturbance torques and gravity gradient that all have been neglected as mentioned. I s is moment of inertia of the all spacecraft components that are fixed. Can be defined a transformation matrix Cbw that transforms the wheel momentum from individual wheel axis to spacecraft body axes. In this study, is used four RWs, then the transformation from wheel frame to SBF becomes Cbw >a1 a2 a3 a4 @ (5) Where a i is reaction wheel spin column vector. In Eq. (4) h wb is angular momentum of reaction wheel that is in the SBF as mentioned before, is defined as following h wb Cbw h w (6) Where h w is angular momentum of reaction wheel in wheel frame. The rate of change of momentum for a reaction wheel is h wi - Ti (7) The control torque is defined as follows Tc Cbw Ti 779 (8) Finally, the spacecraft rate of change of momentum under the influence of a RW torques is  Ȧ u IsȦ  Twb I sȦ (9) In Eq. (9) Twb is the torque applied to the spacecraft by the RW array in SBF and defined as Tc  Ȧu Cbw h w Twb (10) Actuator Modeling In general, the electric motor is coupled with the load through various mechanical transmission systems. Its angular rate can be varied by applying a torque to the motor about its spin axis. As the wheel accelerates it applies an equal and opposite reaction torque on the spacecraft that is used to control its attitude. A schematic diagram of mentioned actuator is shown in following figure. LR RR Tm Vb Vin BwωM Figure 3. Schematic Diagram of DC Motor According to Figure 3, for a DC motor the following relation based on Kirchoff’s law can be written as following Vin  Vb RR I  LR dI dt (11) Where Vin , RR and LR are is the voltage input to the electrical motor, electrical resistance and armature inductance of the DC motor, respectively. Vb is defined as Vb KbȦM (12) Where ȦM is angular velocity of wheel relative to spacecraft body and defined as follows ȦM ȦRW  Ȧs (13) Also, output motor torque based on the Newton’s law is hw = Tm  BwȦM (14) Where Bw is viscous friction and Tm is electromagnetic torque that is relative to the armature current, I , by Tm KmI 780 (15) In regard to Eq. (16) and Eq. (17), the voltage of RW, V , (controller output) can be converted to rate of rotor angular momentum, hw . V  Kb ȦRW  Ȧ = RR I  LR hw I RW Ȧ RW  Ȧ dI dt (16) Km I  Bw ȦRW  Ȧ (17) Where RR , LR , Bw , Kb and Km are usual parameters of the electrical motor as mentioned. 6 deg /s to rpm deg rad 60 /360 omega Kb 1 Wheel Accel. Back emf Gain volts/ r/s RR Resistance of Rotor 1 s 1/LR 1 V_in I Rotor Integrate to get current 1/Inductance fcn Power y v fcn 1/Wheel Inertia Saturation 2 Wheel omega omega (r/s) Bw Embedded MATLAB Function 1 voltage Torque Gain (ft lb/amp ) Integrate Wheel Accel . omega (r/s) v 3 Current 1 s 1/Jw Km Reaction Wheel Friction 1 s y Product Integrator Energy Embedded MATLAB Function Figure 4. SIMULINK Model for Dc Motor Square Pyramidal Arrangement of the Reaction Wheels Square pyramidal arrangement is used because of the advantages of this configuration as mentioned. The torques produced along the three body axes are Tcx , Tcy and Tcz . In order to compute the components of torque vector along the three body axis, the following can be written ªTcx º «T » « cy » «¬Tcz »¼ ªT1 º 0 º« » ª sinȕ 0 - sinȕ » «T2 » « 0 sinȕ 0 sinȕ » «T » « «¬cosȕ cosȕ cosȕ cosȕ »¼ « 3 » ¬T4 ¼ >Aw @>T @ (18) In Eq. (18) the torques generated by the RW align to their axis are called Ti as mentioned. Now, in order to calculate the components Ti , which are the control torques to be applied by each one of the four wheels since the matrix > Aw @ is not square, cannot be inverted. To find the vector components of Ti , minimize the norm of RW torque vector by defining the Hamiltonian as following 781 ª T1 º «T » « 2» «T 3 » « » ¬T 4 ¼ ª «1 « «0 1 « « 2 sin ȕ «  1 « « «0 ¬ 1 sin 2 ȕ 1 sin 2 ȕ 1 sin 2 ȕ 1 sin 2 ȕ 0 1 0 1 sin ȕ º 2 » » sin ȕ » ªT cx º  « » 2 » «T cy » sin ȕ » «T cz » » 2 » «¬ 0 »¼ sin ȕ »  » 2 ¼ (19) The control vector Tc is computed by the control law. THE CONTROL DESIGN BASED ON STABILITY CRITERIA LYAPUNOV Knowing the angular velocity of the spacecraft with respect to the inertial reference frame, the time derivative of the quaternion calculated as follows 7 q 1 1 Ȧ q  q4Ȧ 2 2 (20) 1  ȦTq 2 (21) q4 Where Ȧ and q are defined as ª 0 Ȧz  Ȧy º « » Ȧ « Ȧz Ȧx » 0 « Ȧy  Ȧx 0 »¼ ¬ q [q1 q2 (22) q3 ] (23) Attitude control law is expressed in the following Eq. (24) Tc =  Ș p  ȟȦ  Ȧ u h wb (24) Where Ș and ȟ are positive numbers and p is error attitude quaternion. One advantage of this control law is that Ȧ and h w are available vectors. Therefore, based on Eq. (24), Eq. (9) and Eq. (10), closed-loop dynamic model can be written as follows   Ȧu I sȦ I sȦ Ș p  ȟ Ȧ (25) In order to guarantee the attitude stability of the spacecraft, consider the following the candidate Lyapunov function V 1 T Ȧ IsȦ Ș pTp+ Ș 1  p4 2 782 2 (26) Where Ș is a positive number as mentioned before and V is a candidate Lyapunov function that is positive definite and radially unbounded. In Eq. (24) the error is defined as follows -1 p = qS qT qT 3  qT 2 qT 1 º ª  qS1 º ª qT 4 » « »« qT 1 qT 2 » « qS 2 » « qT 3 qT 4 « qT 2  qT 1 qT 4 qT 3 » «  qS 3 » » « »« ¬  qT 1  qT 2  qT 3 qT 4 ¼ ¬ qS 4 ¼ = >p p p4 @ (27) (28) Where q S is attitude of spacecraft in quaternion form and q T is target attitude quaternion. The first time derivative of V is given by V   Ș p T p  Ș p T p  2 Ș 1  p4 p 4 Ȧ T I sȦ (29) As pT p is a scalar, can be shown p T p p T p T p T p (30) According to Eq. (30), Eq. (29) can be simplified as follows V Ȧ T I s Ȧ  2 Ș p T p  2 Ș 1  p 4 p 4 (31) The substituting of Eq. (20) into Eq. (31), results in Eq. (32). V T 1 1 §1 ·   2Ș ¨ Ȧ p  p4 Ȧ ¸ p  2Ș 1  p4 Ȧ Tp Ȧ T I sȦ 2 2 ©2 ¹ (32) Eq. (32) can be written in the elegant form as following V   Ș p T Ȧ T  p4 Ȧ T p  Ș 1  p4 Ȧ Tp Ȧ T I sȦ (33) Can be shown p Ȧ p 0 . Then, Eq. (33) can be simplified as T T V Ȧ T I s Ȧ  Ș p (34) According to Eq. (25), Eq. (34) can be simplified as follows V ȦT  Ȧ u I sȦ  ȟ Ȧ d 0 T Note that Ȧ Ȧ uIȦ (35) 0 . Finally, V Ȧ T ȟ Ȧ d 0 (36) As can be seen, the first time derivative of Lyapunov function is negative semi-definite. For investigation attitude stability of the spacecraft using Lyapunov stability theory. 8 783 The convergence of the spacecraft’s attitude is proven using Eq. (36). lim Ȧ = 0 (37) tof According to Eq. (25), the closed loop differential equation can be written as follows  I sȦ Ș p  ȟ Ȧ  Ȧ u I sȦ (38) Using relations (37) and (38) can be expressed lim p = 0 (39) tof Eq. (39) shows that the error reaches zero and attitude of the spacecraft converges to the desired attitude. Lyapunov function satisfies the requirements of Barbashin-Krasovskii Theorem.1 Then, the global asymptotic stability of the individual spacecraft attitude controllers is proven. RESULTS Moment of inertia matrix is expressed in spacecraft body coordinate system. In order to avoid saturation, the angle of the square arrangement is chosen by trial and error and is considered equal to 58 degrees. All four wheels have the same moment of inertia. The flywheels mass and its shape are optimized to obtain a high inertia/mass ratio. The system parameters and initial conditions are given in Table 1. Table 1. Simulation Parameters Parameter ª 0 .3380 « 0 .0013 « «¬  0 .00012 I I wx Value I wy 0 .0013 0 .3389  0 .0034 Unit  0 .00012 º  0 .0034 »» 0 .03278 »¼ 0.00027 Kg .m 2 I wz 0.00054 Kg .m 2 Ȧ sat 370 rad s V sat 12 V I sat 3 A Consider the initial conditions and desired attitude as following Ȧ0 >0 M0 0 . 0563 rad , M desired 0 0@ 0 .34 rad , Kg .m 2 T0 0 . 0778 rad , ș desired 0 .27 rad , 784 \0 ȥ desired 0 .0755 rad 0 .16 rad 0.4 I T \ 0.35 Angle (rad) 0.3 0.25 0.2 0.15 0.1 0.05 0 5 10 15 20 Time (s) 25 30 35 40 Figure 5. Attitude Time Response 0.4 With 4 RWs With 3 RWs 0.35 Angle (rad) 0.3 0.25 0.2 0.15 0.1 0.05 0 10 20 30 Time (s) (a) 785 40 50 0.3 With 4 RWs With 3 RWs Angle(rad) 0.25 0.2 0.15 0.1 0.05 0 10 20 30 40 50 Time(s) (b) 0.18 With 4 RWs With 3 RWs 0.16 Angle(rad) 0.14 0.12 0.1 0.08 0.06 0 10 20 30 40 50 Time(s) (c) Figure 6. Comparing Between Controller with 4 RWs and 3 RWs, (a) M , (b) T and (c) \ 786 0.4 I T \ 0.35 Angle (rad) 0.3 0.25 0.2 0.15 0.1 0.05 0 5 10 15 20 Time (s) 25 30 35 40 Figure 7. Attitude Time Response in the Presence of Disturbance 0.4 I T \ 0.35 Angle (rad) 0.3 0.25 0.2 0.15 0.1 0.05 0 10 20 30 40 Time (s) Figure 8. Attitude Time Response with uncertainty 787 50 CONCLUSION In this study, designed a three-axis attitude control to stabilizing and orient the spacecraft to desired attitude. Numerical simulations indicate that this controller is robust against parameter variation and disturbances and show the reliability of mentioned configuration. As can be seen in Figure 5, spacecraft reaches desired attitude and is stabilized after 34 second. In Figure 6 the spacecraft attitude time response between normal condition and the case one of the reaction wheels fails is compared. It is clear that spacecraft reaches desired attitude in more time (40 second). In Figure 6 the effect of disturbance on the system is studied and results show that the spacecraft can reach desired attitude in the presence of disturbance 0.0034 N.m (18% in comparison with the allowable reaction wheel capacity). This controller has robustness against with up to 0.018 N.m (43%). Also, in Figure 7 can be seen, the spacecraft reaches desired attitude and stabilize with 150% change in spacecraft moment of inertia. It is robust against with up to 350%. Our future plans are to develop and implement mentioned controller for novel 3DOF ADCS simulator was designed and manufactured in the system dynamics and control research laboratory of the mechanical engineering department of Amirkabir University of Technology. 9 REFERENCES 1 M. Kabganian, M. J. Ameri Shahrabi, "Study of the Robustness of a Space Vehicle Control with Parameter and Disturbance Uncertainties using Norm Space," Amirkabir Journal of Science and Technology, Volume 14, 2002. 2 M. R. Alizadeh, M. Kabganian, “Adaptive Orbital Control of a Spacecraft using Lagrangian Orbital Equations in Non-Singular Form,”, 6th International and 10th Annual Mechanical Engineering Conference of the Iranian Society of Mechanical Engineers (ISME), Persian, 2002. 3 A. R. Rifkin, "Attitude control of spin-stabilized spacecraft," Proceedings of the IEEE, Volume 51, Issue 3, 1963. 4 M. Kabganian, M. Shahravi and A. Alasty "Adaptive Robust Attitude Control of a Flexible Spacecraft," International Journal of Robust and Nonlinear Control, 2005. 5 M. J. Sidi, "Spacecraft Dynamics and Control," Cambridge University Press, 1997. 6 M. Bagheri, Supervisor: M. Kabganian "Design and SIL Implement Attitude Control for a Satellite," BSC Thesis, Amirkabir University of Technology (Tehran Polytechnic), 2010. 7 B. Wie, "Quaternion feedback control for spacecraft large angle maneuvers," Journal of guidance, Control and Dynamics, 1985. 8 H. K. Khalil, "Nonlinear Systems," New York, New York: MacMillan, 1992. 9 M. Kabganian, M. Bagheri, R. Nadafi, Y. Tamhidi, "A Novel Mechanical Attitude Simulator with Adaptive Control for Micro-Satellite," The 2nd International Conference on Control, Instrumentation, and Automation, ICCIA2011. 788