CN108536014B - A Model Predictive Control Method for Spacecraft Attitude Avoidance Considering Flywheel Dynamics - Google Patents
A Model Predictive Control Method for Spacecraft Attitude Avoidance Considering Flywheel Dynamics Download PDFInfo
- Publication number
- CN108536014B CN108536014B CN201810298997.1A CN201810298997A CN108536014B CN 108536014 B CN108536014 B CN 108536014B CN 201810298997 A CN201810298997 A CN 201810298997A CN 108536014 B CN108536014 B CN 108536014B
- Authority
- CN
- China
- Prior art keywords
- flywheel
- spacecraft
- attitude
- optimization
- model
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B13/00—Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion
- G05B13/02—Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric
- G05B13/04—Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric involving the use of models or simulators
- G05B13/042—Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric involving the use of models or simulators in which a parameter or coefficient is automatically adjusted to optimise the performance
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B64—AIRCRAFT; AVIATION; COSMONAUTICS
- B64G—COSMONAUTICS; VEHICLES OR EQUIPMENT THEREFOR
- B64G1/00—Cosmonautic vehicles
- B64G1/22—Parts of, or equipment specially adapted for fitting in or to, cosmonautic vehicles
- B64G1/24—Guiding or controlling apparatus, e.g. for attitude control
- B64G1/244—Spacecraft control systems
Landscapes
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Remote Sensing (AREA)
- General Physics & Mathematics (AREA)
- Evolutionary Computation (AREA)
- Medical Informatics (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Chemical & Material Sciences (AREA)
- Combustion & Propulsion (AREA)
- Radar, Positioning & Navigation (AREA)
- Artificial Intelligence (AREA)
- Aviation & Aerospace Engineering (AREA)
- Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)
Abstract
一种考虑飞轮动态特性的航天器姿态规避的模型预测控制方法,包括以下步骤:基于航天器的姿态动力学和飞轮的动力学建立预测模型;其次根据飞轮的动态特性以及仪器视线角建立约束的数学模型;然后设计面向不同任务需求的性能指标函数,将控制问题转换成在等式和不等式约束条件下,求目标函数的极值问题;最后,通过基于实时迭代的优化方法,快速求解上述问题,该方法能够很好的处理航天器在执行机构约束情况下的姿态规避问题,通过对目标函数的设计达到能量和时间的综合最优,并且通过实时迭代和热启动方法的处理,并能够减小求解优化问题的计算量。
A model predictive control method for spacecraft attitude avoidance considering the dynamic characteristics of the flywheel, comprising the following steps: establishing a prediction model based on the attitude dynamics of the spacecraft and the dynamics of the flywheel; secondly, establishing a constrained control method according to the dynamic characteristics of the flywheel and the sight angle of the instrument Mathematical model; then design performance index functions for different task requirements, and convert the control problem into the problem of finding the extreme value of the objective function under the constraints of equality and inequality; finally, through the optimization method based on real-time iteration, quickly solve the above problems , this method can well deal with the attitude avoidance problem of the spacecraft under the constraints of the actuator, achieve the comprehensive optimization of energy and time through the design of the objective function, and through the processing of real-time iteration and hot start method, and can reduce Small amount of computation to solve optimization problems.
Description
技术领域technical field
本发明涉及属于航天器控制技术领域,主要应用于使用反作用飞轮控制的航天器姿态机动的规避控制,具体涉及一种考虑飞轮动态特性的航天器姿态规避的模型预测控制方法。The invention belongs to the technical field of spacecraft control, is mainly applied to the avoidance control of the attitude maneuver of the spacecraft controlled by the reaction flywheel, and particularly relates to a model prediction control method for the attitude avoidance of the spacecraft considering the dynamic characteristics of the flywheel.
背景技术Background technique
近年来空间技术的发展飞速,在轨航天器的任务要求也越来越多,所以在航天器上都搭载有各种光学仪器,如CCD相机、红外干涉仪等,在这些仪器工作的过程中都需要使其视线避免直接对向强光,以保护仪器中对光照和温度比较敏感的元器件。所以这就要求航天器在姿态机动的过程中,使这些仪器的指向应绕开强光的方向。同时,大多数航天器姿态控制系统中的执行机构为反作用飞轮组合,反作用飞轮具有控制精度高、输出力矩只需消耗电能等优点。但是反作用飞轮在使用过程中也存在着反作用力矩比较小,容易达到饱和等问题,从而影响到航天器的姿态控制。所以,研究航天器在执行机构性能的约束条件下的姿态规避问题就的意义十分重要。In recent years, with the rapid development of space technology, the mission requirements of on-orbit spacecraft are also increasing. Therefore, various optical instruments, such as CCD cameras and infrared interferometers, are equipped on the spacecraft. During the work of these instruments It is necessary to avoid direct facing strong light to protect the components that are sensitive to light and temperature in the instrument. Therefore, it is required that during the attitude maneuver of the spacecraft, the pointing of these instruments should avoid the direction of the strong light. At the same time, the actuator in most spacecraft attitude control systems is a combination of reaction flywheels. The reaction flywheel has the advantages of high control accuracy and only consumption of electric energy for the output torque. However, the reaction flywheel also has problems such as relatively small reaction torque and easy saturation during use, which affects the attitude control of the spacecraft. Therefore, it is very important to study the attitude avoidance problem of spacecraft under the constraints of actuator performance.
关于姿态规避的方法可以有专利201710521561.X中提到的势函数法,势函数法可以有效的规避约束区域,不过使用模型预测控制的方法,不仅能考虑姿态规避约束,并能够考虑执行机构的性能约束,此外还能根据性能函数,实现能量和时间的优化,更适用于在执行机构性能约束下的姿态机动控制。Regarding the method of attitude avoidance, there is the potential function method mentioned in the patent 201710521561.X. The potential function method can effectively avoid the constraint area, but using the model predictive control method, not only the attitude avoidance constraints can be considered, but also the actuator's In addition, the optimization of energy and time can be realized according to the performance function, which is more suitable for attitude maneuver control under the performance constraints of the actuator.
发明内容SUMMARY OF THE INVENTION
本发明的目的在于克服现有技术的不足,提供一种考虑飞轮动态特性的航天器姿态规避的模型预测控制方法,在轨航天器的姿态机动过程中存在的执行机构性能约束和姿态约束的问题,本发明提供一种考虑飞轮动态特性的航天器姿态规避的模型预测控制方法。该方法是一种能同时处理执行机构的性能约束以及姿态规避模型预测控制方法,它在优化过程中使用了实时迭代和热启动的方法来提高求解MPC中优化问题的求解效率,并设计了性能函数使得在姿态机动过程中实现能耗和时间的综合最优。The purpose of the present invention is to overcome the deficiencies of the prior art, provide a model predictive control method for spacecraft attitude avoidance considering the dynamic characteristics of the flywheel, and the problems of actuator performance constraints and attitude constraints existing in the attitude maneuvering process of the on-orbit spacecraft , the present invention provides a model prediction control method for spacecraft attitude avoidance considering the dynamic characteristics of the flywheel. This method is a model predictive control method that can deal with the performance constraints of actuators and attitude avoidance at the same time. It uses real-time iteration and hot start methods in the optimization process to improve the efficiency of solving optimization problems in MPC, and design performance The function achieves a comprehensive optimization of energy consumption and time during attitude maneuvering.
本发明提供了一种考虑飞轮动态特性的航天器姿态规避的模型预测控制方法,包括以下步骤:The invention provides a model predictive control method for spacecraft attitude avoidance considering the dynamic characteristics of the flywheel, comprising the following steps:
(1)根据航天器的姿态运动学和动力学特性以及飞轮的转动动力学特性建立包含执行机构的航天器姿态模型作为MPC的预测模型;(1) According to the attitude kinematics and dynamic characteristics of the spacecraft and the rotational dynamic characteristics of the flywheel, the attitude model of the spacecraft including the actuator is established as the prediction model of the MPC;
(2)根据航天器搭载仪器的视线角以及规避向量建立姿态规避约束的数学模型,并根据飞轮的角动量饱和以及力矩饱和特性建立执行机构约束的数学模型;(2) Establish a mathematical model of attitude avoidance constraints according to the sight angle and avoidance vector of the spacecraft onboard instruments, and establish a mathematical model of actuator constraints according to the angular momentum saturation and torque saturation characteristics of the flywheel;
(3)根据任务需求设计相应的优化目标函数,包含执行机构输入的二次型以及系统状态误差的二次型,以综合考虑执行时间和能量消耗;(3) Design the corresponding optimization objective function according to the task requirements, including the quadratic type of the actuator input and the quadratic type of the system state error, so as to comprehensively consider the execution time and energy consumption;
(4)将控制问题转换成在系统动力学方程的等式和状态和输入受限的不等式约束条件下,求目标函数极值的问题,然后用实时迭代的优化处理方法快速求解,将优化得到的解作为系统的控制量输出。(4) Convert the control problem into the problem of finding the extreme value of the objective function under the constraints of the equations and states of the system dynamics equations and the input-limited inequality constraints, and then use the real-time iterative optimization processing method to quickly solve the optimization to obtain The solution is output as the control quantity of the system.
在步骤(1)所述的航天器姿态动力学模型,是通过将飞轮的动力学方程结合到航天器姿态动力学方程中,并离散化处理的到的,其表示形式如下:The spacecraft attitude dynamics model described in step (1) is obtained by combining the dynamic equation of the flywheel into the spacecraft attitude dynamics equation and discretizing it, and its representation is as follows:
其中,ω=[ω1,ω2,ω3]T表示航天器在本体坐标系下相对惯性坐标系的姿态角速度向量,ω1,ω2,ω3分别为航天器关于本体系中的横滚轴、偏航轴和俯仰轴上的角速度分量;表示ω对时间的导数;J是航天器总的惯量矩阵,简化表示为对角阵J=diag(J1,J2,J3),J1,J2,J3为绕惯量主轴的转动惯量;S(ω)是斜对称矩阵,其形式为τ表示执行机构的输出力矩;q=[q0,q1,q2,q3]T表示航天器的姿态单位四元数,表示航天器的姿态单位四元数中的标量部分,θ表示绕着欧拉轴转过的一个角度,ex,ey,ez代表欧拉轴三个方向上的旋转轴,且满足 表示q对时间的导数;Ω(ω)是斜对称矩阵,其形式如下:Among them, ω=[ω 1 , ω 2 , ω 3 ] T represents the attitude angular velocity vector of the spacecraft relative to the inertial coordinate system in the body coordinate system, ω 1 , ω 2 , ω 3 are the transverse direction of the spacecraft in the body system, respectively Angular velocity components on the roll, yaw and pitch axes; Represents the derivative of ω with respect to time; J is the total inertia matrix of the spacecraft, simplified as a diagonal matrix J=diag(J 1 , J 2 , J 3 ), J 1 , J 2 , J 3 are the rotations around the main axis of inertia Inertia; S(ω) is an obliquely symmetric matrix of the form τ represents the output torque of the actuator; q=[q 0 , q 1 , q 2 , q 3 ] T represents the attitude unit quaternion of the spacecraft, represents the scalar part of the attitude unit quaternion of the spacecraft, θ represents an angle rotated around the Euler axis, e x , e y , e z represent the rotation axes in the three directions of the Euler axis, and satisfy Represents the derivative of q with respect to time; Ω(ω) is an obliquely symmetric matrix with the following form:
反作用飞轮组合的模型如下:The model of the reaction flywheel combination is as follows:
其中Hrw为飞轮组合的角动量,为飞轮组合的角动量相对时间的导数,在由四个飞轮组成的飞轮组合中其角动量与转速的关系如下:where H rw is the angular momentum of the flywheel combination, is the derivative of the angular momentum of the flywheel combination with respect to time, and the relationship between its angular momentum and the rotational speed in a flywheel combination consisting of four flywheels is as follows:
Hrw=CJrwNH rw =CJ rw N
其中C为3×4飞轮安装矩阵,N=[n1,n2,n3,n4]T为飞轮的角速度向量,n1,n2,n3,n4分别表示每个飞轮的角速度;Jrw表示飞轮组合的转动惯量矩阵,其形式为Jrw=JαI4×4,Jα表示单个飞轮的转动惯量,I4×4为4阶单位矩阵;where C is the 3×4 flywheel installation matrix, N=[n 1 ,n 2 ,n 3 ,n 4 ] T is the angular velocity vector of the flywheel, n 1 ,n 2 ,n 3 ,n 4 represent the angular velocity of each flywheel respectively ; J rw represents the moment of inertia matrix of the flywheel combination, and its form is J rw =J α I 4×4 , J α represents the moment of inertia of a single flywheel, and I 4×4 is the fourth-order unit matrix;
由于执行机构是通过与航天器交换角动量的方式来控制姿态,所以系统总的角动量守恒:Since the actuator controls the attitude by exchanging angular momentum with the spacecraft, the total angular momentum of the system is conserved:
H=Hrw+JωH=H rw +Jω
H为系统总的角动量,在无外力矩时为一个常数。H is the total angular momentum of the system, which is a constant when there is no external torque.
将执行机构的模型和航天器姿态动力学的模型整合起来得到:Integrating the actuator model and the spacecraft attitude dynamics model yields:
将上述模型离散化,设置采样间隔为Δt得到,在第k时刻有:The above model is discretized, and the sampling interval is set to Δt to obtain, at the kth time:
ωk+1=J-1ΔtS(ωk)H+J-1JαCΔNk+ωk ω k+1 =J -1 ΔtS(ω k )H+J -1 J α CΔN k +ω k
其中下标k表示对应变量在第k时刻的值,ΔNk=Nk-Nk-1,I3×3为三阶单位矩阵。The subscript k represents the value of the corresponding variable at the kth time, ΔN k =N k −N k-1 , and I 3×3 is a third-order unit matrix.
在步骤(2)中:In step (2):
(a)反作用飞轮最大输出力矩约束:(a) Reaction flywheel maximum output torque constraint:
反作用飞轮的力矩输出是改变飞轮的角动量实现的,所以有如下形式表述:The torque output of the reaction flywheel is realized by changing the angular momentum of the flywheel, so it is expressed in the following form:
其中Tmax为最大输出力矩向量。将上述式子离散化后得到:where T max is the maximum output torque vector. After discretizing the above formula, we get:
整理后得到:After sorting, we get:
(b)反作用飞轮最大角动量约束:(b) Reaction flywheel maximum angular momentum constraint:
飞轮的角动量饱和体现为飞轮转子的转速达到上限,所以角动量饱约束可以用飞轮角速度约束来表示:The angular momentum saturation of the flywheel is reflected in the fact that the rotational speed of the flywheel rotor reaches the upper limit, so the angular momentum saturation constraint can be expressed by the flywheel angular velocity constraint:
-Nmax≤ΔNk+Nk-1≤Nmax -N max ≤ΔN k +N k-1 ≤N max
其中Nmax为飞轮最大角速度向量。where N max is the maximum angular velocity vector of the flywheel.
整理后得到:After sorting, we get:
(c)航天器姿态指向的视线角约束:(c) Line-of-sight angle constraints for spacecraft attitude pointing:
考虑航天器的指向要规避某些锥形视线区,设计的姿态约束如下形式:Considering that the orientation of the spacecraft should avoid some conical sight areas, the designed attitude constraints are as follows:
其中α表示航天器在本体坐标系下指向的单位向量,β表示航天器在本体坐标系下需规避方向的单位向量,θ表示规避区域的视线角的大小。Among them, α represents the unit vector that the spacecraft points to in the body coordinate system, β represents the unit vector of the direction the spacecraft needs to avoid in the body coordinate system, and θ represents the size of the sight angle of the avoidance area.
在步骤(3)中优化目标函数函数V(xk,uk)表示为:In step (3), the optimization objective function function V(x k , u k ) is expressed as:
其中xk=[qk,ωk]T表示系统的状态量,物理意义为航天器的姿态以及角速度;以飞轮组合转速变化量作为输入,即uk=ΔNk;NP为MPC的预测范围;Q和P为状态变量和输入变量的权重矩阵,若Q相对于P较大则说明优化目标更注重于稳定的时间,若Q相对于P较大则说明优化目标更注重于能量的消耗;where x k =[q k ,ω k ] T represents the state quantity of the system, and the physical meaning is the attitude and angular velocity of the spacecraft; the change in the combined speed of the flywheel is used as the input, that is, u k =ΔN k ; NP is the prediction of the MPC Scope; Q and P are the weight matrices of state variables and input variables. If Q is larger than P, it means that the optimization goal is more focused on stable time, and if Q is larger than P, it means that the optimization goal is more focused on energy consumption ;
整理成简洁形式:Organized into concise form:
其中 in
在步骤(4)中,将控制问题转换为在约束条件下求目标函数的极值问题,并用实时迭代的方法求解控制量。将求解控制输入的问题转换为如下数学问题:In step (4), the control problem is transformed into the problem of finding the extreme value of the objective function under constraints, and the control variable is solved by real-time iterative method. Transform the problem of solving the control input into the following mathematical problem:
xi,k+1=F(xi,k,ui,k)x i,k+1 =F( xi,k ,ui ,k )
L(xi,k,ui,k)≤017×1 k=0,1,…,NP-1L(x i,k ,u i,k )≤0 17×1 k=0,1,…,N P -1
其中表示在时刻i的最优化问题,表示在当前时刻i系统的状态反馈,xi,k表示由当前时刻状态xi,0推算的第k时刻的系统状态;ui,k表示第k时刻的预计输入,017×1表示17×1的零矩阵;F(xi,k,ui,k)为系统状态方程,具体表示为:in represents the optimization problem at time i, Represents the state feedback of the system at the current moment i, x i,k represents the system state at the kth moment calculated from the current moment state x i,0 ; u i,k represents the expected input at the kth moment, 0 17×1 means 17 ×1 zero matrix; F(x i,k ,ui ,k ) is the state equation of the system, specifically expressed as:
L(xi,k,ui,k)为系统约束,具体表示为:L(x i,k ,u i,k ) is the system constraint, specifically expressed as:
使用实时迭代的方法的处理过程为:已知前一时刻优化问题求解出来的求出来的和进而求解优化问题具体分为两个阶段:准备阶段和响应阶段:The processing process of the method using real-time iteration is: the optimization problem is known at the previous moment solved, solved and to solve the optimization problem It is divided into two phases: the preparation phase and the response phase:
准备阶段过程为:将xi-1和ui-1做一个采样时刻的移位,保持最后一个元素不变,得到和根据和计算敏感矩阵Ai,k,Bi,k,Ci,k,Di,k和误差li,k,ri,k,具体表达式为:The process of the preparation stage is: shift x i-1 and u i-1 by a sampling moment, keep the last element unchanged, and get and according to and Calculate the sensitivity matrices A i , k , B i,k ,C i,k ,D i,k and errors l i,k ,r i,k , the specific expressions are:
通过线性化,把一个非线性约束的优化问题转化成线性约束的二次规划问题:By linearization, a nonlinearly constrained optimization problem is transformed into a linearly constrained quadratic programming problem:
Δui,k=ui,k-ui-1,k Δu i,k =u i,k -u i-1,k
Δxi,k+1=Ai,kΔxi,k+Bi,kΔui,k+ri,k Δx i,k+1 =A i,k Δx i,k +B i,k Δu i,k +r i,k
Ci,kΔxi,k+Di,kΔui,k+li,k≤0 k=0,1,…,NP-1C i,k Δx i,k +D i,k Δu i,k +l i,k ≤0 k=0,1,…,N P -1
响应阶段的过程为:获取系统的状态反馈带入求解问题得到Δxi,k和Δui,k通过式子:The process of the response phase is: to obtain the status feedback of the system Bring in to solve the problem Obtain Δx i,k and Δu i,k by formula:
得到问题的解(xi,k,ui,k),最后再将ui=ui,0作为系统的控制输入。get question (x i,k ,ui ,k ), and finally u i =ui ,0 is used as the control input of the system.
本发明的考虑飞轮动态特性的航天器姿态规避的模型预测控制方法,可以使航天器在姿态机动过程中,执行机构性能有限的情况下,进行姿态规避,同时能满足能量和时间的综合最优。给出的优化方法能提高MPC的求解效率,利用热启动的思想加速了求解优化问题的速度,实时迭代分为两个阶段的思想能够针对最近一个时刻的状态反馈做出输出,提高了系统执行控制的时效性。综上所述本发明有着以下优点:The model prediction control method for the attitude avoidance of the spacecraft considering the dynamic characteristics of the flywheel of the present invention can make the spacecraft perform attitude avoidance in the process of attitude maneuvering and the performance of the actuator is limited, and can satisfy the comprehensive optimization of energy and time at the same time. . The given optimization method can improve the solution efficiency of MPC. The idea of hot start is used to accelerate the speed of solving optimization problems. The idea of real-time iteration is divided into two stages can output the state feedback at the latest moment, which improves the system execution. Timeliness of control. In summary, the present invention has the following advantages:
(1)将航天器的模型与执行机构的模型整合在一起,将飞轮的转速的改变量作为输入,与传统的先得出控制力矩再将控制力矩分配给每个飞轮的控制方法,控制量直接作用于执行机构,免去了控制量的分配的过程,直接对整个系统过程进行优化。(1) Integrate the model of the spacecraft and the model of the actuator, and use the change in the rotational speed of the flywheel as the input, which is different from the traditional control method of first obtaining the control torque and then assigning the control torque to each flywheel. Acting directly on the actuator, the process of distributing the control quantity is eliminated, and the entire system process is directly optimized.
(2)与现有的航天器姿态规避的势函数方法相比,使用模型预测控制方法能将执行机构的性能约束和卫星姿态机动过程中的姿态指向约束同时考虑,此外还能根据任务的需求设置相应的性能函数,使得姿态机动的过程实现能量和时间的综合最优。(2) Compared with the existing potential function methods for attitude avoidance of spacecraft, the model predictive control method can simultaneously consider the performance constraints of the actuator and the attitude pointing constraints during the satellite attitude maneuvering process. The corresponding performance function is set so that the process of attitude maneuvering can achieve the comprehensive optimization of energy and time.
(3)与一般的姿态规避最优控制相比,使用模型预测控制的方法是闭环控制的,其能在每一次做出执行动作之后根据状态反馈做出重新的轨迹优化,使得控制具有鲁棒性。(3) Compared with the general attitude avoidance optimal control, the method using model predictive control is closed-loop control, which can re-optimize the trajectory according to the state feedback after each execution action, making the control robust sex.
(4)本发明的模型预测控制使用的实时迭代和热启动的优化思想,相比于普通的非线性模型预测控制的方法能够降低运算量和优化效率,能够针对最近一个时刻的系统状态做出响应,控制的输出更具有时效性。(4) The optimization idea of real-time iteration and hot start used in the model predictive control of the present invention can reduce the amount of computation and optimization efficiency compared with the ordinary nonlinear model predictive control method, and can make a decision based on the system state at the latest moment. In response, the output of the control is more time-sensitive.
附图说明Description of drawings
图1为考虑飞轮动态特性的航天器姿态规避的模型预测控制方法的流程框图;Fig. 1 is a flow chart of a model predictive control method for spacecraft attitude avoidance considering flywheel dynamic characteristics;
图2为控制系统求解控制输入的过程框图;Fig. 2 is a process block diagram for the control system to solve the control input;
具体实施方式Detailed ways
下面详细说明本发明的具体实施,有必要在此指出的是,以下实施只是用于本发明的进一步说明,不能理解为对本发明保护范围的限制,该领域技术熟练人员根据上述本发明内容对本发明做出的一些非本质的改进和调整,仍然属于本发明的保护范围。The specific implementation of the present invention will be described in detail below. It is necessary to point out that the following implementation is only used for the further description of the present invention, and should not be construed as a limitation on the protection scope of the present invention. Some non-essential improvements and adjustments made still belong to the protection scope of the present invention.
本发明提供了一种考虑飞轮动态特性的航天器姿态规避的模型预测控制方法,如图1所示,具体步骤为:首先根据航天器的姿态运动学和动力学特性以及飞轮的转动动力学特性建立包含执行机构的航天器姿态模型作为MPC的预测模型;其次根据航天器搭载仪器的视线角以及规避向量建立姿态规避约束的数学模型,并根据飞轮的角动量饱和以及力矩饱和特性建立执行机构约束的数学模型。然后根据任务需求设计相应的优化目标函数,包含执行机构输入的二次型以及系统状态量误差的二次型,以综合考虑执行时间和能量消耗问题。最后将控制问题转换成在系统动力学方程的等式和状态和输入受限的不等式约束条件下,求目标函数的极值的数学问题;用实时迭代的优化处理方法快速求解,将优化得到的解作为系统的控制量输出。控制系统求解控制输入过程的框图如图2所示。The present invention provides a model predictive control method for spacecraft attitude avoidance considering the dynamic characteristics of the flywheel. The attitude model of the spacecraft including the actuator is established as the prediction model of the MPC; secondly, the mathematical model of the attitude avoidance constraint is established according to the sight angle of the spacecraft mounted instruments and the avoidance vector, and the actuator constraint is established according to the angular momentum saturation and torque saturation characteristics of the flywheel. mathematical model. Then the corresponding optimization objective function is designed according to the task requirements, including the quadratic form of the actuator input and the quadratic form of the system state quantity error, so as to comprehensively consider the execution time and energy consumption. Finally, the control problem is transformed into a mathematical problem of finding the extreme value of the objective function under the constraints of the equations and states of the system dynamics equations and the input-limited inequality constraints; the real-time iterative optimization processing method is used to solve the problem quickly, and the optimized The solution is output as the control quantity of the system. The block diagram of the control system solving the control input process is shown in Figure 2.
具体实施步骤如下:The specific implementation steps are as follows:
第一步,建立姿态控制系统的数学模型。将飞轮的动力学方程结合到航天器姿态动力学方程中:The first step is to establish the mathematical model of the attitude control system. Combine the flywheel dynamics equations into the spacecraft attitude dynamics equations:
其中,ω=[ω1,ω2,ω3]T表示航天器在本体坐标系下相对惯性坐标系的姿态角速度向量,ω1,ω2,ω3分别为航天器关于本体系中的横滚轴、偏航轴和俯仰轴上的角速度分量;表示ω相对时间的导数;J是航天器总的惯量矩阵,简化表示为对角阵J=diag(J1,J2,J3),J1=30kg/m2,J2=50kg/m2,J3=40kg/m2为绕惯量主轴的转动惯量;S(ω)是斜对称矩阵,其形式为τ表示执行机构的输出力矩;q=[q0,q1,q2,q3]T表示航天器的姿态单位四元数,表示航天器的姿态单位四元数中的标量部分,与绕欧拉轴旋转的角度有关,θ表示绕着欧拉轴转过的一个角度,ex,ey,ez代表欧拉轴三个方向上的旋转轴,且满足 表示q对时间的导数;Ω(ω)是斜对称矩阵,其形式为 Among them, ω=[ω 1 , ω 2 , ω 3 ] T represents the attitude angular velocity vector of the spacecraft relative to the inertial coordinate system in the body coordinate system, ω 1 , ω 2 , ω 3 are the transverse direction of the spacecraft in the body system, respectively Angular velocity components on the roll, yaw and pitch axes; Represents the derivative of ω relative to time; J is the total inertia matrix of the spacecraft, which is simplified as a diagonal matrix J=diag(J 1 , J 2 , J 3 ), J 1 =30kg/m 2 , J 2 =50kg/m 2 , J 3 =40kg/m 2 is the moment of inertia around the main axis of inertia; S(ω) is an obliquely symmetric matrix whose form is τ represents the output torque of the actuator; q=[q 0 , q 1 , q 2 , q 3 ] T represents the attitude unit quaternion of the spacecraft, represents the scalar part of the attitude unit quaternion of the spacecraft, which is related to the angle of rotation around the Euler axis, θ represents an angle rotated around the Euler axis, e x , e y , e z represent the rotation axes in the three directions of the Euler axis, and satisfy represents the derivative of q with respect to time; Ω(ω) is an obliquely symmetric matrix of the form
反作用飞轮组合的模型如下:The model of the reaction flywheel combination is as follows:
其中Hrw为飞轮组合的角动量,为Hrw对时间的导数,在由四个飞轮组成的飞轮组合中其角动量与转速的关系如下:where H rw is the angular momentum of the flywheel combination, is the derivative of H rw with respect to time, and the relationship between its angular momentum and rotational speed in a flywheel combination consisting of four flywheels is as follows:
Hrw=CJrwNH rw =CJ rw N
其中为飞轮安装矩阵,N=[n1,n2,n3,n4]T为飞轮的角速度向量,n1,n2,n3,n4分别表示每个飞轮的角速度;Jrw表示飞轮组合的转动惯量矩阵,其形式为Jrw=JαI4×4,Jα=0.01608kg/m2表示单个飞轮的转动惯量,I4×4为4阶单位矩阵。in Install the matrix for the flywheel, N=[n 1 , n 2 , n 3 , n 4 ] T is the angular velocity vector of the flywheel, n 1 , n 2 , n 3 , n 4 represent the angular velocity of each flywheel respectively; J rw represents the flywheel The combined moment of inertia matrix is in the form of J rw =J α I 4×4 , J α =0.01608kg/m 2 represents the moment of inertia of a single flywheel, and I 4×4 is a fourth-order unit matrix.
由于执行机构是通过与航天器交换角动量的方式来控制姿态,所以系统总的角动量守恒:Since the actuator controls the attitude by exchanging angular momentum with the spacecraft, the total angular momentum of the system is conserved:
H=Hrw+JωH=H rw +Jω
H为系统总的角动量,在无外力矩干扰时为一个常数。H is the total angular momentum of the system, which is a constant when there is no external torque disturbance.
将执行机构的模型和航天器姿态动力学的模型整合起来得到:Integrating the actuator model and the spacecraft attitude dynamics model yields:
将上述模型离散化,设置采样间隔为Δt=0.2s得到,在第k时刻有:The above model is discretized, and the sampling interval is set to Δt=0.2s to obtain, at the kth moment:
ωk+1=J-1ΔtS(ωk)H+J-1JαCΔNk+ωk ω k+1 =J -1 ΔtS(ω k )H+J -1 J α CΔN k +ω k
其中下标k表示对应变量在第k时刻的值,ΔNk=Nk-Nk-1,I3×3为3阶单位矩阵。The subscript k represents the value of the corresponding variable at the kth time, ΔN k =N k -N k-1 , and I 3×3 is a third-order identity matrix.
航天器的初始姿态,初始角速度以及飞轮组合的初始角速度分别为qintial=[-0.9524,-0.3048,0,0]Tωintial=[0,0,0]T和Nintial=[0,0,0,0]T,控制期望的姿态以及角速度为别为qd=[1,0,0,0]Tωd=[0,0,0]T。故系统总的初始角动量H=0。The initial attitude of the spacecraft, the initial angular velocity and the initial angular velocity of the flywheel combination are q intial =[-0.9524,-0.3048,0,0] T ω intial =[0,0,0] T and N intial =[0,0 ,0,0] T , the desired attitude and angular velocity of the control are respectively q d =[1,0,0,0] T ω d =[0,0,0] T . Therefore, the total initial angular momentum of the system is H=0.
第二步,建立航天器在姿态机动过程中的姿态规避约束,以及执行机构的性能约束:The second step is to establish the attitude avoidance constraints of the spacecraft during the attitude maneuvering process and the performance constraints of the actuators:
(1)反作用飞轮最大输出力矩约束:(1) Reaction flywheel maximum output torque constraint:
反作用飞轮的力矩输出是改变飞轮的角动量实现的,所以有如下形式表述:The torque output of the reaction flywheel is realized by changing the angular momentum of the flywheel, so it is expressed in the following form:
其中Tmax=[1 1 1 1]TNm为最大输出力矩向量。将上述式子离散化后得到:where T max =[1 1 1 1] T Nm is the maximum output torque vector. After discretizing the above formula, we get:
整理后得到:After sorting, we get:
(2)反作用飞轮最大角动量约束:(2) Reaction flywheel maximum angular momentum constraint:
飞轮的角动量饱和体现为飞轮转子的转速达到上限,所以角动量饱约束可以用飞轮角速度约束来表示:The angular momentum saturation of the flywheel is reflected in the fact that the rotational speed of the flywheel rotor reaches the upper limit, so the angular momentum saturation constraint can be expressed by the flywheel angular velocity constraint:
-Nmax≤ΔNk+Nk-1≤Nmax -N max ≤ΔN k +N k-1 ≤N max
其中Nmax=[200π 200π 200π 200π]Trad/s为最大角速度向量。Wherein N max =[200π 200π 200π 200π] T rad/s is the maximum angular velocity vector.
整理后得到:After sorting, we get:
(3)航天器姿态指向的视线角约束:(3) The line-of-sight angle constraint of the spacecraft attitude pointing:
考虑航天器的指向要规避某些锥形视线区,设计的姿态约束如下形式:Considering that the orientation of the spacecraft should avoid some conical sight areas, the designed attitude constraints are as follows:
其中α=[0 0 1]T表示航天器在本体坐标系下指向单位向量,表示航天器在本体坐标系下需规避方向的单位向量,表示规避区域的视线角的大小。where α=[0 0 1] T indicates that the spacecraft points to the unit vector in the body coordinate system, is the unit vector representing the direction the spacecraft needs to avoid in the body coordinate system, Indicates the size of the sight angle of the avoidance area.
第三步设计基于模型预测控制器的优化目标函数:The third step is to design the optimization objective function based on the model predictive controller:
其中xk=[qk,ωk]T表示系统的状态量,物理意义为航天器的姿态以及角速度;以飞轮组合转速变化量作为输入,即uk=ΔNk;NP=5为MPC的预测范围;Q=I7×7和P=I4×4为状态变量和输入变量的权重矩阵,I7×7为7阶单位矩阵,若Q相对于P较大则说明优化目标更注重于稳定的时间,若Q相对于P较大则说明优化目标更注重于能量的消耗。整理成简洁形式:Where x k =[q k ,ω k ] T represents the state quantity of the system, and the physical meaning is the attitude and angular velocity of the spacecraft; the change in the combined speed of the flywheel is used as the input, that is, u k =ΔN k ; NP =5 is the MPC The prediction range of ; Q=I 7×7 and P=I 4×4 are the weight matrices of state variables and input variables, and I 7×7 is the 7th-order unit matrix. If Q is larger than P, it means that the optimization goal is more important In the stable time, if Q is larger than P, it means that the optimization goal is more focused on energy consumption. Organized into concise form:
其中 in
第四步,将控制问题转换为在约束条件下求目标函数的极值问题,并用实时迭代的方法求解控制量,将第一步中的系统模型和第二步中约束模型以及第三步中的优化目标函数综合起来,将求解控制输入的问题转换为如下数学问题:The fourth step is to convert the control problem into the problem of finding the extreme value of the objective function under constraints, and use the real-time iterative method to solve the control variables. The optimization objective function of , the problem of solving the control input is transformed into the following mathematical problem:
xi,k+1=F(xi,k,ui,k)x i,k+1 =F( xi,k ,ui ,k )
L(xi,k,ui,k)≤017×1 k=0,1,…,NP-1L(x i,k ,u i,k )≤0 17×1 k=0,1,…,N P -1
其中表示在时刻i的最优化问题,表示在当前时刻i系统的状态反馈,xi,k表示由当前时刻状态xi,0推测在第k时刻的系统状态;ui,k表示在第k时刻的预计输入;F(xi,k,ui,k)为第一步中的系统状态方程具体表示为:in represents the optimization problem at time i, Represents the state feedback of the system at the current moment i, xi,k represents the system state at the kth moment estimated from the current moment state xi,0 ; u i,k represents the expected input at the kth moment; F( xi, k ,ui ,k ) is the system state equation in the first step, which is specifically expressed as:
L(xi,k,ui,k)为第二步中的系统约束,具体表示为:L(x i,k ,ui ,k ) is the system constraint in the second step, specifically expressed as:
使用实时迭代的方法的处理过程为:已知前一个优化问题求解出来的求出来的和进而求解优化问题的过程,具体分为两个阶段:准备阶段和响应阶段The processing process of the method using real-time iteration is: the previous optimization problem is known solved, solved and to solve the optimization problem The process is divided into two phases: the preparation phase and the response phase
准备阶段过程为:将xi-1和ui-1做一个采样时刻的移位,最后一个位置不变,得到和根据和计算敏感矩阵Ai,k,Bi,k,Ci,k,Di,k和误差li,k,ri,k,具体表达式为:The process of the preparation stage is: shift x i-1 and u i-1 by a sampling moment, and the last position remains unchanged to obtain and according to and Calculate the sensitivity matrices A i,k ,B i,k ,C i,k ,D i,k and errors l i,k ,r i,k , the specific expressions are:
通过如上的线性化,这样就把一个非线性约束的优化问题转化成线性约束的二次规划问题:Through the above linearization, a nonlinear constrained optimization problem is transformed into a linear constrained quadratic programming problem:
Δui,k=ui,k-ui-1,k Δu i,k =u i,k -u i-1,k
Δxi,k+1=Ai,kΔxi,k+Bi,kΔui,k+ri,k Δx i,k+1 =A i,k Δx i,k +B i,k Δu i,k +r i,k
Ci,kΔxi,k+Di,kΔui,k+li,k≤0 k=0,1,…,NP-1C i,k Δx i,k +D i,k Δu i,k +l i,k ≤0 k=0,1,…,N P -1
响应阶段过程为:获取系统的状态反馈带入求解问题得到Δxi,k和Δui,k通过式子:The process of the response phase is: to obtain the status feedback of the system Bring in to solve the problem Obtain Δx i,k and Δu i,k by formula:
得到问题的解(xi,k,ui,k)。最后再将ui=ui,0作为系统的控制输入。get question the solution of (x i,k ,ui ,k ). Finally, u i =u i,0 is used as the control input of the system.
利用以上的控制方法可以使航天器在姿态机动过程中,执行机构性能有限的情况下,进行姿态规避,同时能满足能量和时间的综合最优。给出的优化方法能提高MPC的求解效率,利用热启动的思想加速了求解优化问题的速度,实时迭代分为两个阶段的思想能够针对最近一个时刻的状态反馈做出控制输出,提高了系统执行控制的时效性,优化的流程如图2所示。Using the above control method, the spacecraft can perform attitude avoidance in the process of attitude maneuvering and the performance of the actuator is limited, and can meet the comprehensive optimization of energy and time at the same time. The given optimization method can improve the solution efficiency of MPC. The idea of hot start is used to accelerate the speed of solving optimization problems. The idea of real-time iteration is divided into two stages can make control output according to the state feedback at the latest moment, which improves the system performance. The timeliness of execution control, the optimized process is shown in Figure 2.
尽管为了说明的目的,已描述了本发明的示例性实施方式,但是本领域的技术人员将理解,不脱离所附权利要求中公开的发明的范围和精神的情况下,可以在形式和细节上进行各种修改、添加和替换等的改变,而所有这些改变都应属于本发明所附权利要求的保护范围,并且本发明要求保护的产品各个部门和方法中的各个步骤,可以以任意组合的形式组合在一起。因此,对本发明中所公开的实施方式的描述并非为了限制本发明的范围,而是用于描述本发明。相应地,本发明的范围不受以上实施方式的限制,而是由权利要求或其等同物进行限定。Although exemplary embodiments of the present invention have been described for purposes of illustration, workers skilled in the art will recognize that changes may be made in form and detail without departing from the scope and spirit of the invention as disclosed in the accompanying claims. Carry out various modifications, additions and substitutions, etc., and all these changes should belong to the protection scope of the appended claims of the present invention, and the various steps in the various departments and methods of the products claimed in the present invention can be combined arbitrarily. form together. Accordingly, the description of the embodiments disclosed in the present invention is not intended to limit the scope of the present invention, but to describe the present invention. Accordingly, the scope of the present invention is not limited by the above embodiments, but is defined by the claims or their equivalents.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810298997.1A CN108536014B (en) | 2018-04-04 | 2018-04-04 | A Model Predictive Control Method for Spacecraft Attitude Avoidance Considering Flywheel Dynamics |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810298997.1A CN108536014B (en) | 2018-04-04 | 2018-04-04 | A Model Predictive Control Method for Spacecraft Attitude Avoidance Considering Flywheel Dynamics |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108536014A CN108536014A (en) | 2018-09-14 |
CN108536014B true CN108536014B (en) | 2020-02-21 |
Family
ID=63483072
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810298997.1A Active CN108536014B (en) | 2018-04-04 | 2018-04-04 | A Model Predictive Control Method for Spacecraft Attitude Avoidance Considering Flywheel Dynamics |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108536014B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102018220505A1 (en) * | 2018-11-28 | 2020-05-28 | Robert Bosch Gmbh | Model predictive control with improved consideration of restrictions |
CN109782787B (en) * | 2019-03-08 | 2020-10-30 | 北京航空航天大学 | Dual-mode MPC control method for attitude of under-actuated spacecraft under assistance of sunlight pressure |
CN110329548B (en) * | 2019-05-24 | 2023-01-17 | 中国人民解放军63789部队 | Flywheel system reconstruction method under on-orbit rotation bias control of spacecraft |
CN110502025B (en) * | 2019-08-01 | 2020-11-10 | 北京航空航天大学 | Spacecraft attitude control method considering reactive flywheel characteristics and power limitation |
CN111897355B (en) * | 2020-08-06 | 2022-09-13 | 中国科学院微小卫星创新研究院 | Satellite attitude maneuver trajectory planning method |
CN113485397B (en) * | 2021-07-08 | 2024-02-02 | 北京航空航天大学 | Spacecraft attitude maneuver path planning method based on polynomial planning |
CN114115308B (en) * | 2021-11-12 | 2023-02-17 | 北京理工大学 | Gravitational wave detection spacecraft attitude autonomous planning method |
CN114714351B (en) * | 2022-04-06 | 2023-06-23 | 上海工程技术大学 | Anti-saturation target tracking control method and control system for mobile mechanical arm |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103092208B (en) * | 2013-01-09 | 2015-06-24 | 哈尔滨工业大学 | Spacecraft high-accuracy speediness attitude maneuver method based on single gimbal control moment gyro (SGCMG) and reaction wheel (RW) |
CN103235597B (en) * | 2013-04-09 | 2015-05-20 | 北京理工大学 | Rapid stable joint control method for attitude maneuver of spacecraft |
US9764858B2 (en) * | 2015-01-07 | 2017-09-19 | Mitsubishi Electric Research Laboratories, Inc. | Model predictive control of spacecraft |
CN104866692B (en) * | 2015-06-18 | 2017-06-30 | 北京理工大学 | A kind of aircraft Multipurpose Optimal Method based on Adaptive proxy model |
CN105867395B (en) * | 2015-12-28 | 2018-08-28 | 北京理工大学 | A kind of deep space probe constraint attitude maneuver planing method based on sliding formwork control |
CN105629732B (en) * | 2016-01-29 | 2018-03-09 | 北京航空航天大学 | A kind of spacecraft attitude output Tracking Feedback Control method for considering Control constraints |
CN105867401B (en) * | 2016-04-28 | 2017-12-05 | 北京航空航天大学 | The spacecraft attitude fault tolerant control method of single-gimbal control moment gyros |
CN105843244A (en) * | 2016-06-02 | 2016-08-10 | 北京航空航天大学 | Output feedback-based flexible spacecraft precise attitude control method |
CN107491082A (en) * | 2016-12-31 | 2017-12-19 | 南京航空航天大学 | Spacecraft Attitude Control mixing executing agency optimal control method |
CN107065902B (en) * | 2017-01-18 | 2019-02-01 | 中南大学 | UAV Attitude fuzzy adaptive predictive control method and system based on nonlinear model |
CN107168357B (en) * | 2017-06-30 | 2018-08-07 | 北京航空航天大学 | A kind of spacecraft attitude maneuver control method considering posture restraint and anti-unwinding |
-
2018
- 2018-04-04 CN CN201810298997.1A patent/CN108536014B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN108536014A (en) | 2018-09-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108536014B (en) | A Model Predictive Control Method for Spacecraft Attitude Avoidance Considering Flywheel Dynamics | |
CN109189085B (en) | Attitude Control Method of Spacecraft Network System Based on Event Trigger | |
Zhong et al. | Attitude control for flexible spacecraft with disturbance rejection | |
CN106886149B (en) | A Robust Finite-Time Saturation Attitude Tracking Control Method for Spacecraft | |
CN106218922B (en) | The joint actuating mechanism controls method of flexible agility satellite | |
CN104267732B (en) | Flexible satellite high stability attitude control method based on frequency-domain analysis | |
CN104090489B (en) | A kind of flexible agile satellite attitude maneuvers rolling optimization control method | |
Chu et al. | Adaptive reactionless control strategy via the PSO-ELM algorithm for free-floating space robots during manipulation of unknown objects | |
CN107402516B (en) | Hierarchical saturation fuzzy PD attitude control method based on joint actuator | |
CN108227728B (en) | Spacecraft attitude dynamic control distribution method considering hybrid actuating mechanism switching | |
CN108646556A (en) | Input saturation spacecraft is without unwinding Attitude tracking control method | |
CN111605737A (en) | A multi-level collaborative planning and agile maneuvering method for spacecraft three-override control | |
Cong et al. | Isolation control for inertially stabilized platform based on nonlinear friction compensation | |
CN113619814B (en) | A relative attitude-orbit coupling control method for the final approach segment of rendezvous and docking | |
Wang et al. | Neural network‐based multivariable fixed‐time terminal sliding mode control for re‐entry vehicles | |
CN117022674A (en) | Anti-unwinding flexible spacecraft attitude tracking composite control method | |
CN111338368A (en) | Self-adaptive robust control method for tracking fast maneuvering attitude of spacecraft | |
CN110502025B (en) | Spacecraft attitude control method considering reactive flywheel characteristics and power limitation | |
CN110550239A (en) | spacecraft distributed attitude ultra-agile maneuvering control method based on saturated back-stepping method | |
An et al. | Fast model-free learning for controlling a quadrotor UAV with designed error trajectory | |
Shou et al. | Integrated guidance and control of hypersonic flight vehicle with coordinated mission requirement and input constraint | |
CN109445448B (en) | An Adaptive Integral Sliding Mode Attitude Controller for Wheel Control Small Satellites | |
CN108839824B (en) | A Momentum Optimal Management Method of Hybrid Actuator Based on Cooperative Game | |
CN113968362A (en) | Satellite on-orbit autonomous three-axis quick maneuvering control method | |
Zhao et al. | ADRC based integrated guidance and control scheme for the interception of maneuvering targets with desired los angle |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |