Disturbance torque suppression method and system suitable for control moment gyro
By constructing a nonlinear dynamic model and adaptive expansion filtering algorithm, combined with the neural network prediction model, the optimal feedforward compensation and feedback control torque are generated, which solves the problem of disturbance torque suppression in the torque gyro and improves the accuracy and accuracy of attitude control. robustness.
Patent Information
- Application Number
- CN202410940204.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-07-15
AI Technical Summary
It is difficult for the existing technology to effectively suppress the influence of disturbance torque in a complex disturbance environment in the control torque gyro, resulting in a decrease in attitude control accuracy and stability. Traditional methods such as passive vibration isolation and active compensation have problems with increased weight, insufficient robustness and controller design. Complex issues.
Construct a nonlinear dynamic model to control the torque gyro, combine the adaptive expansion filtering algorithm and the neural network prediction model, and generate the optimal feedforward compensation and feedback control torque through the adaptive dynamic surface control algorithm and adaptive rate adjustment to form a comprehensive Disturbance torque compensation strategy.
It improves the ability to accurately estimate and compensate for disturbance torque, enhances the predictability and accuracy of attitude control, takes into account control performance and robustness, and reduces the impact of disturbance torque on attitude control.
Smart Images

Figure CN118466225B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of torque suppression, and in particular to a method and system for suppressing disturbance torque suitable for controlling a torque gyroscope. Background Art
[0002] The control moment gyro is an actuator widely used in the attitude control system of spacecraft. It achieves the attitude control of the spacecraft by generating torque output by changing the rotation direction of the high-speed rotating flywheel. However, in the actual working environment, the control moment gyro will be affected by various disturbance torques, such as unbalanced torque, friction torque, thermal deformation torque, etc. These disturbance torques will reduce the pointing accuracy and stability of the control moment gyro and affect the attitude control performance of the spacecraft.
[0003] Traditional methods mainly include passive vibration isolation and active compensation. The passive vibration isolation method reduces the transmission of disturbance torque to the control moment gyro by setting a vibration isolation device between the control moment gyro and the spacecraft. However, the passive vibration isolation method is difficult to adapt to complex disturbance environments and will increase the weight and volume of the system. The active compensation method directly offsets the influence of the disturbance torque by measuring or estimating the disturbance torque and introducing compensation terms in the control.
[0004] The compensation method based on disturbance observer requires high disturbance modeling accuracy. When faced with unknown or difficult-to-model disturbances, the compensation effect is limited. Although the adaptive compensation method can estimate and compensate for unknown disturbances, it has a slow convergence speed and is easily affected by noise. Although the robust control method can suppress the impact of disturbances, the controller design is complex and conservative, making it difficult to take into account both control performance and robustness.
[0005] Therefore, a solution is urgently needed to solve the deficiencies in the prior art. Summary of the invention
[0006] The embodiments of the present invention provide a disturbance torque suppression method and system applicable to a control moment gyroscope, which can at least solve some of the problems existing in the prior art.
[0007] According to a first aspect of an embodiment of the present invention, a method for suppressing disturbance torque applicable to a control moment gyroscope is provided, comprising:
[0008] According to the structural parameters and motion equations of the control moment gyro, combined with the disturbance torque coupling effect of the control moment gyro, a nonlinear dynamic model corresponding to the control moment gyro is constructed to obtain the input torque, rotation speed and output torque of the control moment gyro, and based on the nonlinear dynamic model, combined with an adaptive expansion filtering algorithm, a disturbance torque estimation value and a state estimation value are determined;
[0009] The state estimation value is added to a pre-built neural network prediction model to obtain a state prediction value, and based on the disturbance torque estimation value and the state prediction value, a disturbance torque compensation control law is constructed through an adaptive dynamic surface control algorithm, and the compensation gain is adjusted in combination with an adaptive rate to determine an adaptive compensation;
[0010] Based on the adaptive compensation, the feedforward compensation term is optimized and solved to obtain the optimal feedforward compensation, and the optimal feedforward compensation is superimposed with the feedback control torque and the adaptive compensation to obtain the disturbance torque compensation torque. Based on the disturbance torque compensation torque, combined with the input torque of the control torque gyro, a disturbance torque suppression scheme is generated.
[0011] In an optional embodiment,
[0012] According to the structural parameters and motion equations of the control moment gyro, combined with the disturbance torque coupling effect of the control moment gyro, a nonlinear dynamic model corresponding to the control moment gyro is constructed, and the input torque, speed and output torque of the control moment gyro are obtained. Based on the nonlinear dynamic model, combined with the adaptive expansion filter algorithm, the disturbance torque estimation value and the state estimation value are determined, including:
[0013] According to the motion equation of the control moment gyro, a universal joint coordinate system, a rotor coordinate system and a base coordinate system are established, the relative motion relationship between the coordinate systems is determined, the attitude of the control moment gyro is determined in combination with the Euler angle and an attitude transformation matrix is established, and vectors in different coordinate systems are converted to the same coordinate system through the attitude transformation matrix;
[0014] Based on the Newton-Euler equation, force analysis and torque balance analysis are performed on the control moment gyro to obtain a corresponding group of dynamic differential equations, and based on the perturbation torque coupling effect of the control moment gyro, the perturbation torque is determined, and the perturbation torque is substituted into the group of dynamic differential equations to construct the nonlinear dynamic model;
[0015] The input torque, rotation speed and output torque corresponding to the control moment gyro are obtained, the current state vector of the control moment gyro is determined based on the nonlinear dynamic model, the current state vector is expanded in combination with the disturbance torque, the state estimate value and the error covariance prediction value at the current moment are determined according to the state estimate value and the control input at the previous moment, the Kalman gain is calculated according to the measured value at the current moment and the state estimate value and the error covariance matrix is updated, the residual between the state estimate value and the measured value is determined and the process noise covariance matrix and the measurement noise covariance matrix are adaptively adjusted to obtain the disturbance torque estimate value and the state estimate value.
[0016] In an optional embodiment,
[0017] The adaptive adjustment process noise covariance matrix and the measurement noise covariance matrix are shown in the following formula:
[0018] ;
[0019] in, Q ( t )express t The process noise covariance matrix at time , l represents the first forgetting factor, Q ( t -1) indicates t- 1 The process noise covariance matrix at time , K ( t )express t The Kalman gain matrix at time , E ( t )express t The residual vector at time t, P ( t | t )express t The state estimation covariance matrix at time , P ( t | t-1 ) means in t-1 Always t The state estimation covariance matrix obtained by moment prediction is T represents transpose;
[0020] ;
[0021] in, R ( t )express t The measurement noise covariance matrix at time , m represents the second forgetting factor, R ( t - 1 )express t - 1 The measurement noise covariance matrix at time , H ( t )express t The measurement matrix at the moment.
[0022] In an optional embodiment,
[0023] The state estimation value is added to a pre-built neural network prediction model to obtain a state prediction value. Based on the disturbance torque estimation value and the state prediction value, a disturbance torque compensation control law is constructed through an adaptive dynamic surface control algorithm. The compensation gain is adjusted in combination with the adaptive rate. The adaptive compensation is determined to include:
[0024] Obtain the state estimate and add it to the pre-built neural network prediction model to obtain the state prediction value at the future moment;
[0025] Determine a reference attitude angle and angular velocity based on the state prediction value and the disturbance torque estimation value, measure the actual attitude angle and actual angular velocity of the control moment gyro, and determine an attitude angle error and an angular velocity error by calculation;
[0026] A dynamic sliding surface is calculated based on the attitude angle error and the angular velocity error, and the chattering corresponding to the system model is eliminated by a low-pass filtering operation to obtain a filtering state. A compensation control law is designed based on the dynamic sliding surface and the corresponding sliding surface coefficient, and a state space and a compensation gain are determined in combination with an attitude dynamics equation;
[0027] Based on the state space, in combination with the compensation gain, the dynamic sliding mode surface and the filter state, in combination with the disturbance torque estimation value, an adaptive rate is determined and an adaptive compensation is updated.
[0028] In an optional embodiment,
[0029] Based on the state space, combined with the compensation gain, dynamic sliding surface and filter state, combined with the disturbance torque estimation value, the adaptive rate is determined and the adaptive compensation is updated as shown in the following formula:
[0030] ;
[0031] in, or represents the rate of change of adaptive compensation, r 0 represents adaptive filtering, β represents the coefficient of the disturbance torque estimation error, represents the estimated value of the disturbance torque, c 1 represents a constant, e θ represents the attitude error, e w represents the angular velocity error, Td represents the expected disturbance torque.
[0032] In an optional embodiment,
[0033] The method also includes constructing the neural network prediction model:
[0034] Select a feedforward neural network as a backbone network, determine the number of input layer nodes and the number of hidden layer nodes based on the dimension of the state estimate, and the activation function corresponding to the hidden layer, and set the objective function corresponding to the neural network prediction model;
[0035] Extracting historical input data and historical output data from the historical data of the control moment gyro and constructing sample pairs, and dividing the sample pairs into a training set, a validation set, and a test set;
[0036] Randomly initialize network weights and thresholds, use the training set to train the neural network prediction model, calculate the network prediction output of the training sample under the current weight in each iteration, compare the network prediction output with the true label corresponding to the training sample, and determine the error vector;
[0037] Based on the error vector, combined with the Jacobian matrix and the preset damping coefficient, the network weights are updated to reduce the objective function value, and the update is repeated until the preset maximum number of iterations is reached to obtain a trained neural network prediction model.
[0038] In an optional embodiment,
[0039] Based on the adaptive compensation, the feedforward compensation term is optimized and solved to obtain the optimal feedforward compensation, the optimal feedforward compensation is superimposed with the feedback control torque and the adaptive compensation to obtain the disturbance torque compensation torque, and based on the disturbance torque compensation torque, combined with the input torque of the control torque gyro, a disturbance torque suppression scheme is generated, including:
[0040] Based on the adaptive compensation, a performance index function is set in combination with an attitude angle error, the attitude dynamics equation of the control moment gyro is discretized by a variational method to generate a discretization function, based on the discretization function, the current disturbance torque is solved and the optimal feedforward compensation is introduced into the Lagrangian equation, and the Lagrangian equation is solved to obtain the optimal feedforward compensation;
[0041] Based on the predefined dynamic sliding surface, the feedback control torque is defined in combination with the control gain, the sliding surface coefficient and the moment of inertia, the adaptive compensation torque is calculated in real time based on the disturbance torque, the optimal feedforward compensation, the feedback control torque and the adaptive compensation torque are superimposed to obtain the corresponding disturbance torque compensation torque;
[0042] The disturbance torque compensation torque is decomposed to obtain compensation vectors of the control torque gyro in different directions, and the disturbance torque suppression scheme is obtained based on the compensation vectors.
[0043] A second aspect of an embodiment of the present invention provides a disturbance torque suppression system suitable for a control moment gyro, comprising:
[0044] The first unit is used to construct a nonlinear dynamic model corresponding to the control moment gyro according to the structural parameters and motion equation of the control moment gyro and the disturbance torque coupling effect of the control moment gyro, obtain the input torque, rotation speed and output torque of the control moment gyro, and determine the disturbance torque estimation value and state estimation value based on the nonlinear dynamic model and in combination with an adaptive expansion filtering algorithm;
[0045] The second unit is used to add the state estimation value to a pre-built neural network prediction model to obtain a state prediction value, and based on the disturbance torque estimation value and the state prediction value, construct a disturbance torque compensation control law through an adaptive dynamic surface control algorithm, adjust the compensation gain in combination with an adaptive rate, and determine an adaptive compensation;
[0046] The third unit is used to optimize and solve the feedforward compensation term based on the adaptive compensation to obtain the optimal feedforward compensation, superimpose the optimal feedforward compensation with the feedback control torque and the adaptive compensation to obtain the disturbance torque compensation torque, and generate a disturbance torque suppression scheme based on the disturbance torque compensation torque in combination with the input torque of the control torque gyro.
[0047] According to a third aspect of the embodiments of the present invention,
[0048] An electronic device is provided, comprising:
[0049] processor;
[0050] a memory for storing processor-executable instructions;
[0051] The processor is configured to call the instructions stored in the memory to execute the aforementioned method.
[0052] According to a fourth aspect of the embodiments of the present invention,
[0053] A computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the aforementioned method is implemented.
[0054] In the present invention, by constructing a nonlinear dynamic model of the control torque gyro and combining it with an adaptive expansion filtering algorithm, the size and change trend of the disturbance torque can be accurately estimated. By combining the state prediction value with the disturbance torque estimation value, it is possible to respond and compensate for future disturbance torque changes in advance, thereby improving the predictability of the control system. The optimal feedforward compensation is combined with the feedback control torque and adaptive compensation to form a comprehensive disturbance torque compensation strategy, which not only meets the attitude control requirements but also takes into account the optimization of control performance. In summary, the present invention realizes the accurate estimation and compensation of the disturbance torque through the organic combination of multiple control technologies, improves the predictability and accuracy of attitude control, and has strong practicality and robustness. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 It is a flow chart of a method for suppressing disturbance torque of a control moment gyroscope according to an embodiment of the present invention;
[0056] Figure 2 The figure is a schematic diagram of the structure of a disturbance torque suppression system applicable to a control moment gyro according to an embodiment of the present invention. DETAILED DESCRIPTION
[0057] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0058] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0059] Figure 1 FIG. 1 is a flow chart of a method for suppressing disturbance torque of a control moment gyro according to an embodiment of the present invention. Figure 1 As shown, the method includes:
[0060] S1. According to the structural parameters and motion equations of the control moment gyro, combined with the perturbation torque coupling effect of the control moment gyro, a nonlinear dynamic model corresponding to the control moment gyro is constructed, the input torque, speed and output torque of the control moment gyro are obtained, and based on the nonlinear dynamic model, combined with an adaptive expansion filtering algorithm, the perturbation torque estimation value and the state estimation value are determined;
[0061] The disturbance torque coupling effect refers to the torque change caused by the system being affected by external disturbances or internal factors in the control system. The input torque refers to the external torque applied to the system, which may include various disturbances caused by the environment, controller or other factors. The adaptive expansion filter algorithm is an algorithm for estimating the system state, which can automatically adjust its own parameters to adapt to the dynamic changes of the system and has the ability to resist noise and disturbances. The disturbance torque estimate refers to the approximate value of the disturbance torque obtained by a certain estimation algorithm, which can be used to help the control system better cope with external disturbances and changes. The state estimate refers to the approximate value of the system state obtained by the estimation algorithm, which can be used to monitor the system state and provide feedback information to the controller, thereby achieving control of the system.
[0062] In an optional embodiment,
[0063] According to the structural parameters and motion equations of the control moment gyro, combined with the disturbance torque coupling effect of the control moment gyro, a nonlinear dynamic model corresponding to the control moment gyro is constructed, and the input torque, speed and output torque of the control moment gyro are obtained. Based on the nonlinear dynamic model, combined with the adaptive expansion filter algorithm, the disturbance torque estimation value and the state estimation value are determined, including:
[0064] According to the motion equation of the control moment gyro, a universal joint coordinate system, a rotor coordinate system and a base coordinate system are established, the relative motion relationship between the coordinate systems is determined, the attitude of the control moment gyro is determined in combination with the Euler angle and an attitude transformation matrix is established, and vectors in different coordinate systems are converted to the same coordinate system through the attitude transformation matrix;
[0065] Based on the Newton-Euler equation, force analysis and torque balance analysis are performed on the control moment gyro to obtain a corresponding group of dynamic differential equations, and based on the perturbation torque coupling effect of the control moment gyro, the perturbation torque is determined, and the perturbation torque is substituted into the group of dynamic differential equations to construct the nonlinear dynamic model;
[0066] The input torque, rotation speed and output torque corresponding to the control moment gyro are obtained, the current state vector of the control moment gyro is determined based on the nonlinear dynamic model, the current state vector is expanded in combination with the disturbance torque, the state estimate value and the error covariance prediction value at the current moment are determined according to the state estimate value and the control input at the previous moment, the Kalman gain is calculated according to the measured value at the current moment and the state estimate value and the error covariance matrix is updated, the residual between the state estimate value and the measured value is determined and the process noise covariance matrix and the measurement noise covariance matrix are adaptively adjusted to obtain the disturbance torque estimate value and the state estimate value.
[0067] The universal joint coordinate system is a coordinate system used to describe the posture of a rigid body in three-dimensional space. The Euler angle is a method of describing the posture of a rigid body, which consists of angles of rotation around three axes (usually x, y, and z axes). Commonly used Euler angles are pitch angle, yaw angle, and roll angle. The attitude transformation matrix is a matrix that describes the rotation relationship of one coordinate system relative to another coordinate system. The torque balance analysis is a balance analysis of the external forces and external torques acting on an object to determine the conditions when the object is in a state of equilibrium. The group of dynamic differential equations describes the motion laws of an object under the action of external forces and external torques. The current state vector refers to a vector that describes the current state of the system, usually including state quantities such as position, velocity, and acceleration.
[0068] According to the motion equation of the control moment gyro, the universal joint coordinate system, the rotor coordinate system and the base coordinate system are established, the relative motion relationship between the coordinate systems is determined, and the attitude of the control moment gyro is described by the Euler angle. Among them, the Euler angle usually selects the 3-1-3 rule, and the attitude transformation matrix is established to convert the vectors in different coordinate systems to the same coordinate system;
[0069] Based on the Newton-Euler equation, the force analysis and torque balance analysis of the control moment gyro are carried out. Considering the angular momentum change of the rotor, the angular momentum change of the universal joint frame, and the external forces and torques acting on the control moment gyro, the dynamic differential equations of the control moment gyro are obtained. Based on the perturbation torque coupling effect of the control moment gyro, the perturbation torque is determined, and the perturbation torque is substituted into the dynamic differential equations to construct a nonlinear dynamic model of the control moment gyro.
[0070] The input torque, rotation speed and output torque information corresponding to the control torque gyro are obtained as known quantities. Based on the nonlinear dynamic model, the current state vector of the control torque gyro is determined, which usually includes state variables such as angular velocity and angle. The current state vector is expanded in combination with the disturbance torque to obtain an extended state vector. According to the state estimate and control input at the previous moment, the state estimate and error covariance prediction value at the current moment are determined through the state prediction equation. According to the measured value at the current moment, the Kalman gain is calculated, and the state estimate and error covariance matrix are updated using the Kalman gain. The residual between the state estimate and the measured value is calculated, and the process noise covariance matrix and the measurement noise covariance matrix are adaptively adjusted according to the residual. The disturbance torque estimate and the estimated values of other state variables are extracted from the updated state estimate.
[0071] In this embodiment, by establishing the coordinate system and attitude transformation matrix of the control moment gyro, the unified representation and conversion of vectors in different coordinate systems are realized, which provides a basis for subsequent dynamic modeling and control algorithm design. By introducing the disturbance torque term, the influence of the disturbance torque on the motion of the control moment gyro is considered, and a more accurate and complete nonlinear dynamic model is constructed. An adaptive adjustment mechanism is introduced to adaptively adjust the process noise covariance matrix and the measurement noise covariance matrix according to the residual between the state estimation value and the measurement value, which can adapt to the uncertainty of the actual system and the change of noise characteristics, and improve the accuracy and reliability of the disturbance torque estimation and state estimation. In summary, this embodiment realizes the accurate estimation of the disturbance torque and state of the control moment gyro, lays the foundation for the subsequent disturbance torque compensation and control algorithm design, helps to improve the control accuracy and robustness of the control moment gyro, and reduce the influence of the disturbance torque on the attitude control performance.
[0072] In an optional embodiment,
[0073] The adaptive adjustment process noise covariance matrix and the measurement noise covariance matrix are shown in the following formula:
[0074] ;
[0075] in, Q ( t )express t The process noise covariance matrix at time , l represents the first forgetting factor, Q ( t -1) indicates t- 1 The process noise covariance matrix at time , K ( t )express t The Kalman gain matrix at time , E ( t )express t The residual vector at time t, P ( t | t )express t The state estimation covariance matrix at time , P ( t | t-1 ) means in t-1 Always t The state estimation covariance matrix obtained by moment prediction is T represents transpose;
[0076] ;
[0077] in, R ( t )express t The measurement noise covariance matrix at time , m represents the second forgetting factor, R ( t - 1 )express t - 1 The measurement noise covariance matrix at time , H ( t )express t The measurement matrix at the moment.
[0078] In this embodiment, by adaptively adjusting the noise covariance matrix, changes in noise characteristics can be tracked in real time, so that the filtering algorithm can adapt to different noise environments and improve estimation accuracy. By adaptively adjusting the process noise covariance matrix, the uncertainty of the process noise can be dynamically adjusted according to the size of the state estimation error, reducing the impact of modeling errors on the estimation results. By adaptively adjusting the measurement noise covariance matrix, the uncertainty of the measurement noise can be dynamically adjusted according to the size of the measurement residual, reducing the impact of measurement noise and outliers on the estimation results and improving the reliability of the estimation. By introducing a forgetting factor, the update rate of the noise covariance matrix can be controlled. In summary, this embodiment helps to enhance the adaptability, robustness and reliability of the algorithm, and provide more accurate disturbance torque estimation and state estimation results for high-precision attitude control.
[0079] S2. Add the state estimation value to the pre-built neural network prediction model to obtain the state prediction value, and based on the disturbance torque estimation value and the state prediction value, construct the disturbance torque compensation control law through the adaptive dynamic surface control algorithm, adjust the compensation gain in combination with the adaptive rate, and determine the adaptive compensation;
[0080] The neural network prediction model is a method for modeling and predicting a system using a neural network. The adaptive dynamic surface control algorithm is a control algorithm for controlling a nonlinear system. By continuously adjusting the parameters of the controller, the dynamic surface of the system (i.e., the equivalent linear part of the system) is kept consistent with the desired dynamic surface, thereby achieving control of the system. The disturbance torque compensation control law is a control method for offsetting the influence of external disturbance torque on the system. The adaptive compensation refers to automatically adjusting the compensation strategy of the controller to adapt to the dynamic changes of the system according to the real-time state of the system and environmental changes.
[0081] In an optional embodiment,
[0082] The state estimation value is added to a pre-built neural network prediction model to obtain a state prediction value. Based on the disturbance torque estimation value and the state prediction value, a disturbance torque compensation control law is constructed through an adaptive dynamic surface control algorithm. The compensation gain is adjusted in combination with the adaptive rate. The adaptive compensation is determined to include:
[0083] Obtain the state estimate and add it to the pre-built neural network prediction model to obtain the state prediction value at the future moment;
[0084] Determine a reference attitude angle and angular velocity based on the state prediction value and the disturbance torque estimation value, measure the actual attitude angle and actual angular velocity of the control moment gyro, and determine an attitude angle error and an angular velocity error by calculation;
[0085] A dynamic sliding surface is calculated based on the attitude angle error and the angular velocity error, and the chattering corresponding to the system model is eliminated by a low-pass filtering operation to obtain a filtering state. A compensation control law is designed based on the dynamic sliding surface and the corresponding sliding surface coefficient, and a state space and a compensation gain are determined in combination with an attitude dynamics equation;
[0086] Based on the state space, in combination with the compensation gain, the dynamic sliding mode surface and the filter state, in combination with the disturbance torque estimation value, an adaptive rate is determined and an adaptive compensation is updated.
[0087] The dynamic sliding surface is a control surface used in sliding mode control, which is used to guide the system state to the desired trajectory or equilibrium point. The chattering refers to the oscillation phenomenon of the system output caused by the instability of the controller or external disturbance in the control system. The filtered state refers to the estimated value of the system state obtained after filter processing. The sliding surface coefficient is a parameter in sliding mode control, which is used to adjust the shape and position of the sliding surface.
[0088] Obtain the current state estimate, including attitude angle, angular velocity, and disturbance torque estimate, add the state estimate to the pre-built neural network prediction model as the model input, and obtain the future state prediction value through the neural network prediction model, including attitude angle prediction value and angular velocity prediction value. The prediction time range can be set according to demand, for example, predicting the state change within the next few sampling periods;
[0089] According to the state prediction value and the disturbance torque estimation value, the reference attitude angle and reference angular velocity of the control moment gyro are determined, and the actual attitude angle and actual angular velocity of the control moment gyro are measured, which can be obtained by attitude sensors such as gyroscopes and accelerometers, and the attitude angle error and angular velocity error are calculated, that is, the difference between the actual attitude angle and the reference attitude angle, and the difference between the actual angular velocity and the reference angular velocity;
[0090] Based on the attitude angle error and angular velocity error, the dynamic sliding surface is calculated, and the dynamic sliding surface is low-pass filtered to eliminate the high-frequency chattering phenomenon in the system model and obtain a smooth filtering state. Among them, the low-pass filter can use a first-order or second-order filter, and the filtering parameters need to be selected according to the system characteristics and control requirements. Based on the dynamic sliding surface and the corresponding sliding surface coefficient, the compensation control law is designed. The purpose of the compensation control law is to drive the system state to converge to the equilibrium point along the sliding surface to achieve attitude tracking control. Combined with the attitude dynamics equation of the control moment gyro, the state space representation and compensation gain are determined;
[0091] Based on the state space representation, the adaptive rate is calculated by combining the compensation gain, sliding surface and filter state. The adaptive rate reflects the adaptive adjustment ability of the control law to disturbances and uncertainties, and can be adjusted online according to the changes of the system state error and sliding surface.
[0092] In this embodiment, by inputting the state estimation value into the pre-built neural network prediction model, the state prediction value at the future moment can be obtained, thereby improving the predictability of attitude control. By introducing the disturbance torque estimation value and combining it with the state prediction value, the reference attitude angle and angular velocity are determined, so that the control system can adapt to external disturbances and parameter uncertainties, thereby improving the robustness of the control system to disturbances and uncertainties. By performing low-pass filtering on the dynamic sliding surface, the high-frequency jitter phenomenon in the system model is eliminated, and a smooth filtering state is obtained, which effectively suppresses the vibration and jitter of the control moment gyro, improves the smoothness and stability of attitude control, and extends the service life of the actuator. By designing an adaptive compensation control law and combining the sliding surface, compensation gain and filtering state, an adaptive rate is introduced to adjust the compensation control in real time, thereby improving the adaptability and dynamic performance of the control system. In summary, this embodiment can effectively cope with external disturbances and parameter uncertainties, improve the predictability, accuracy and smoothness of the control system, and meet the requirements of high-precision pointing and attitude stability.
[0093] In an optional embodiment,
[0094] Based on the state space, combined with the compensation gain, dynamic sliding surface and filter state, combined with the disturbance torque estimation value, the adaptive rate is determined and the adaptive compensation is updated as shown in the following formula:
[0095] ;
[0096] in, or represents the rate of change of adaptive compensation, r 0 represents adaptive filtering, β represents the coefficient of the disturbance torque estimation error, represents the estimated value of the disturbance torque, c 1 represents a constant, e θ represents the attitude error, e w represents the angular velocity error, Td represents the expected disturbance torque.
[0097] In this embodiment, the change rate of adaptive compensation is related to the attitude error, angular velocity error and disturbance torque estimation error, and the compensation gain can be adjusted quickly to adapt to the changes and uncertainties of the system and improve the robustness of the control system. By introducing the influencing factor of the disturbance torque estimation value, the accuracy of the compensation control can be improved, so that the control system can better cope with external disturbances. The introduction of the adaptive filter factor can avoid drastic changes in the adaptive compensation, reduce the jitter and oscillation of the control output, and improve the stability of the control system. In summary, this embodiment realizes the real-time update of the adaptive compensation control law by comprehensively considering factors such as attitude error, angular velocity error, disturbance torque estimation value and adaptive filter factor.
[0098] In an optional embodiment,
[0099] The method also includes constructing the neural network prediction model:
[0100] Select a feedforward neural network as a backbone network, determine the number of input layer nodes and the number of hidden layer nodes based on the dimension of the state estimate, and the activation function corresponding to the hidden layer, and set the objective function corresponding to the neural network prediction model;
[0101] Extracting historical input data and historical output data from the historical data of the control moment gyro and constructing sample pairs, and dividing the sample pairs into a training set, a validation set, and a test set;
[0102] Randomly initialize network weights and thresholds, use the training set to train the neural network prediction model, calculate the network prediction output of the training sample under the current weight in each iteration, compare the network prediction output with the true label corresponding to the training sample, and determine the error vector;
[0103] Based on the error vector, combined with the Jacobian matrix and the preset damping coefficient, the network weights are updated to reduce the objective function value, and the update is repeated until the preset maximum number of iterations is reached to obtain a trained neural network prediction model.
[0104] The feedforward neural network is a common neural network structure, in which information flows from the input layer to the output layer without feedback connection in between. The network weight refers to the connection weight connecting each neuron in the neural network. The error vector refers to the difference vector between the neural network output and the actual target. The Jacobian matrix is often used in neural networks to describe the rate of change of the network output to the input, and each element represents the partial derivative of an output value to an input value. The damping coefficient refers to a parameter used in the control system to describe the damping effect of the system. The larger the damping coefficient, the more obvious the damping effect of the system, and the system response tends to be stable and smooth.
[0105] According to the dimension of the state estimation value of the control moment gyro, determine the number of input layer nodes of the neural network prediction model, where the number of input layer nodes is the same as the dimension of the state estimation value to ensure that the state estimation information can be fully received and processed. According to the complexity of the problem and the prediction requirements, determine the number of hidden layers and the number of nodes in each layer, select a suitable activation function for the hidden layer, and set the objective function of the neural network prediction model;
[0106] Extracting historical input data and historical output data from historical data of the control moment gyro, wherein the historical input data may be state estimation values, control inputs, etc., and the historical output data may be attitude angles, angular velocities, etc., pairing the extracted historical input data and historical output data to construct sample pairs, and dividing the constructed sample pairs into a training set, a validation set, and a test set;
[0107] The network weights and thresholds of the neural network are randomly initialized, wherein the weights represent the strength of the connection between neurons, and the thresholds represent the activation thresholds of neurons. The neural network prediction model is trained using a training set, and the network prediction output is compared with the true labels corresponding to the training samples. The error vector is calculated, wherein the error vector represents the difference between the predicted output and the true label. Based on the error vector, the weights and thresholds of the network are updated using an optimization algorithm. Exemplarily, the optimization algorithms include gradient descent, stochastic gradient descent (SGD), Adam optimizer, etc. The optimization algorithm calculates the gradient of the error vector with respect to the weights and adjusts the weights in the opposite direction of the gradient to minimize the objective function. In order to improve the stability and convergence speed of the training, the Jacobian matrix and the damping coefficient are introduced. The training is repeated until the preset maximum number of iterations is reached to obtain a trained neural network prediction model.
[0108] In this embodiment, by selecting a feedforward neural network as the backbone network and designing the input layer and hidden layer structure according to the dimension of the state estimation value, a prediction model with strong fitting and generalization capabilities can be constructed. By introducing the neural network prediction model, the control system can predict the future state change trend according to the current state estimation value, and can respond and adjust to the future state changes in advance, thereby improving the predictability of the system. By extracting input data and output data from the historical data of the control moment gyro and constructing sample pairs, the existing data resources can be fully utilized to avoid data waste. By combining the Jacobian matrix and the damping coefficient, a smoother and more stable weight update can be achieved, thereby improving the generalization performance of the model. In summary, this embodiment provides strong support for the precise control and optimization of the control moment gyro.
[0109] S3. Based on the adaptive compensation, the feedforward compensation term is optimized and solved to obtain the optimal feedforward compensation, and the optimal feedforward compensation is superimposed with the feedback control torque and the adaptive compensation to obtain the disturbance torque compensation torque. Based on the disturbance torque compensation torque, combined with the input torque of the control torque gyro, a disturbance torque suppression scheme is generated.
[0110] The feedforward compensation is a control strategy that aims to offset the impact of disturbances or changes on the system by predicting the disturbances or changes that the system will experience in advance and adding corresponding compensation signals to the input signals. The disturbance torque compensation torque is an application of feedforward compensation, which is a process of compensating for the disturbance torque experienced by the mechanical system. The disturbance torque suppression scheme is a control strategy for the disturbance torque, which aims to reduce or eliminate the impact of the disturbance torque on the system performance.
[0111] In an optional embodiment,
[0112] Based on the adaptive compensation, the feedforward compensation term is optimized and solved to obtain the optimal feedforward compensation, the optimal feedforward compensation is superimposed with the feedback control torque and the adaptive compensation to obtain the disturbance torque compensation torque, and based on the disturbance torque compensation torque, combined with the input torque of the control torque gyro, a disturbance torque suppression scheme is generated, including:
[0113] Based on the adaptive compensation, a performance index function is set in combination with an attitude angle error, the attitude dynamics equation of the control moment gyro is discretized by a variational method to generate a discretization function, based on the discretization function, the current disturbance torque is solved and the optimal feedforward compensation is introduced into the Lagrangian equation, and the Lagrangian equation is solved to obtain the optimal feedforward compensation;
[0114] Based on the predefined dynamic sliding surface, the feedback control torque is defined in combination with the control gain, the sliding surface coefficient and the moment of inertia, the adaptive compensation torque is calculated in real time based on the disturbance torque, the optimal feedforward compensation, the feedback control torque and the adaptive compensation torque are superimposed to obtain the corresponding disturbance torque compensation torque;
[0115] The disturbance torque compensation torque is decomposed to obtain compensation vectors of the control torque gyro in different directions, and the disturbance torque suppression scheme is obtained based on the compensation vectors.
[0116] Combined with the attitude angle error of the control moment gyro, a performance index function is constructed to evaluate the performance and optimization objectives of the control system. The performance index function may include the square term of the attitude angle error, the square term of the control torque, etc., to balance the attitude tracking accuracy and control energy consumption. The continuous-time attitude dynamics equation is discretized by the variational method to obtain the state transfer equation in the discrete time domain. Based on the discretized attitude dynamics equation, combined with the current state estimate and control input, the disturbance torque at the current moment is solved. The disturbance torque represents the external interference and uncertainty that affects the attitude of the control moment gyro. The optimal feedforward compensation is introduced into the Lagrangian equation, and an optimization problem including state variables, co-state variables and control variables is constructed. By solving the Lagrangian equation, the analytical expression or numerical solution of the optimal feedforward compensation is obtained.
[0117] According to the predefined sliding surface equation, combined with the state variables of the control torque gyro (such as attitude angle, angular velocity, etc.), the expression of the sliding surface is determined, wherein the sliding surface defines the expected trajectory of the state variables and is used to design the sliding control law. Based on the definition of the sliding surface, combined with the control gain, the sliding surface coefficient and the moment of inertia of the control torque gyro, the expression of the feedback control torque is defined. Based on the real-time estimated value of the disturbance torque, the adaptive compensation torque is calculated, and the optimal feedforward compensation, feedback control torque and adaptive compensation torque are superimposed to obtain a comprehensive disturbance torque compensation torque;
[0118] Decompose the disturbance torque compensation torque, and decompose the obtained disturbance torque compensation torque into compensation vectors of the control torque gyro in different directions. Exemplarily, the control torque gyro applies control torque in three orthogonal directions, so it is necessary to decompose the disturbance torque compensation torque into three corresponding components, and generate a disturbance torque suppression scheme for the control torque gyro based on the decomposed compensation vectors, wherein the suppression scheme includes specific control torque values applied in each direction, as well as the timing and duration of application.
[0119] In this embodiment, by introducing an adaptive compensation mechanism, the control system can estimate the size of the disturbance torque in real time, and calculate the adaptive compensation torque based on the estimated value, which effectively reduces the influence of the disturbance torque on the attitude control and ensures the stability and accuracy of the attitude control. The optimal feedforward compensation is combined with the feedback control torque and the adaptive compensation torque to form a comprehensive disturbance torque compensation torque. While ensuring the attitude control performance, it also takes into account the minimization of energy consumption. The design of the feedback control torque is based on the sliding surface and the control gain, which can achieve precise tracking and control of the attitude angle and angular velocity. By decomposing the disturbance torque compensation torque into compensation vectors of the control torque gyro in different directions, the disturbance torque can be accurately suppressed. In summary, this embodiment achieves precise suppression of the disturbance torque and optimization of attitude control, and provides an effective solution for high-precision attitude control of the control torque gyro.
[0120] Figure 2 FIG. 1 is a schematic diagram of a structure of a disturbance torque suppression system applicable to a control torque gyro according to an embodiment of the present invention. Figure 2 As shown, the system comprises:
[0121] The first unit is used to construct a nonlinear dynamic model corresponding to the control moment gyro according to the structural parameters and motion equation of the control moment gyro and the disturbance torque coupling effect of the control moment gyro, obtain the input torque, rotation speed and output torque of the control moment gyro, and determine the disturbance torque estimation value and state estimation value based on the nonlinear dynamic model and in combination with an adaptive expansion filtering algorithm;
[0122] The second unit is used to add the state estimation value to a pre-built neural network prediction model to obtain a state prediction value, and based on the disturbance torque estimation value and the state prediction value, construct a disturbance torque compensation control law through an adaptive dynamic surface control algorithm, adjust the compensation gain in combination with an adaptive rate, and determine an adaptive compensation;
[0123] The third unit is used to optimize and solve the feedforward compensation term based on the adaptive compensation to obtain the optimal feedforward compensation, superimpose the optimal feedforward compensation with the feedback control torque and the adaptive compensation to obtain the disturbance torque compensation torque, and generate a disturbance torque suppression scheme based on the disturbance torque compensation torque in combination with the input torque of the control torque gyro.
[0124] According to a third aspect of the embodiments of the present invention,
[0125] An electronic device is provided, comprising:
[0126] processor;
[0127] a memory for storing processor-executable instructions;
[0128] The processor is configured to call the instructions stored in the memory to execute the aforementioned method.
[0129] According to a fourth aspect of the embodiments of the present invention,
[0130] A computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the aforementioned method is implemented.
[0131] The present invention may be a method, an apparatus, a system and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present invention.
[0132] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for suppressing disturbance torque of a control moment gyro, characterized in that: include: According to the structural parameters and motion equations of the control moment gyro, combined with the disturbance torque coupling effect of the control moment gyro, a nonlinear dynamic model corresponding to the control moment gyro is constructed to obtain the input torque, rotation speed and output torque of the control moment gyro, and based on the nonlinear dynamic model, combined with an adaptive expansion filtering algorithm, a disturbance torque estimation value and a state estimation value are determined; The state estimation value is added to a pre-built neural network prediction model to obtain a state prediction value, and based on the disturbance torque estimation value and the state prediction value, a disturbance torque compensation control law is constructed through an adaptive dynamic surface control algorithm, and the compensation gain is adjusted in combination with an adaptive rate to determine an adaptive compensation; Based on the adaptive compensation, the feedforward compensation term is optimized and solved to obtain the optimal feedforward compensation, and the optimal feedforward compensation is superimposed with the feedback control torque and the adaptive compensation to obtain the disturbance torque compensation torque. Based on the disturbance torque compensation torque, combined with the input torque of the control torque gyro, a disturbance torque suppression scheme is generated.
2. The method according to claim 1, characterized in that: According to the structural parameters and motion equations of the control moment gyro, combined with the disturbance torque coupling effect of the control moment gyro, a nonlinear dynamic model corresponding to the control moment gyro is constructed, and the input torque, speed and output torque of the control moment gyro are obtained. Based on the nonlinear dynamic model, combined with the adaptive expansion filter algorithm, the disturbance torque estimation value and the state estimation value are determined, including: According to the motion equation of the control moment gyro, a universal joint coordinate system, a rotor coordinate system and a base coordinate system are established, the relative motion relationship between the coordinate systems is determined, the attitude of the control moment gyro is determined in combination with the Euler angle and an attitude transformation matrix is established, and vectors in different coordinate systems are converted to the same coordinate system through the attitude transformation matrix; Based on the Newton-Euler equation, force analysis and torque balance analysis are performed on the control moment gyro to obtain a corresponding group of dynamic differential equations, and based on the perturbation torque coupling effect of the control moment gyro, the perturbation torque is determined, and the perturbation torque is substituted into the group of dynamic differential equations to construct the nonlinear dynamic model; Obtain the input torque, rotation speed and output torque corresponding to the control moment gyro, determine the current state vector of the control moment gyro based on the nonlinear dynamic model, expand the current state vector in combination with the disturbance torque, determine the state estimate and error covariance prediction value at the current moment according to the state estimate and control input at the previous moment, calculate the Kalman gain according to the measured value at the current moment and update the state estimate and error covariance matrix, determine the residual between the state estimate and the measured value and adaptively adjust the process noise covariance matrix and the measurement noise covariance matrix to obtain the disturbance torque estimate and the state estimate; The adaptation process noise covariance matrix and the measurement noise covariance matrix are shown in the following formula: ; in, Q ( t )express t The process noise covariance matrix at time , λ represents the first forgetting factor, Q ( t -1) indicates t-1 The process noise covariance matrix at time , K ( t )express t The Kalman gain matrix at time , E ( t )express t The residual vector at time t, P ( t | t )express t The state estimation covariance matrix at time , P ( t | t-1 ) means in t-1 Always t The state estimation covariance matrix obtained by moment prediction is T represents transpose; ; in, R ( t )express t The measurement noise covariance matrix at time , μ represents the second forgetting factor, R ( t - 1 )express t - 1 The measurement noise covariance matrix at time , H ( t )express t The measurement matrix at the moment.
3. The method according to claim 1, characterized in that The state estimation value is added to a pre-built neural network prediction model to obtain a state prediction value. Based on the disturbance torque estimation value and the state prediction value, a disturbance torque compensation control law is constructed through an adaptive dynamic surface control algorithm. The compensation gain is adjusted in combination with the adaptive rate. The adaptive compensation is determined to include: Obtain the state estimate and add it to the pre-built neural network prediction model to obtain the state prediction value at the future moment; Determine a reference attitude angle and angular velocity based on the state prediction value and the disturbance torque estimation value, measure the actual attitude angle and actual angular velocity of the control moment gyro, and determine an attitude angle error and an angular velocity error by calculation; A dynamic sliding surface is calculated based on the attitude angle error and the angular velocity error, and the chattering corresponding to the system model is eliminated by a low-pass filtering operation to obtain a filtering state. A compensation control law is designed based on the dynamic sliding surface and the corresponding sliding surface coefficient, and a state space and a compensation gain are determined in combination with an attitude dynamics equation; Based on the state space, in combination with the compensation gain, the dynamic sliding mode surface and the filter state, in combination with the disturbance torque estimation value, an adaptive rate is determined and an adaptive compensation is updated.
4. The method according to claim 3, characterized in that Based on the state space, combined with the compensation gain, dynamic sliding surface and filter state, combined with the disturbance torque estimation value, the adaptive rate is determined and the adaptive compensation is updated as shown in the following formula: ; in, η represents the rate of change of adaptive compensation, ρ 0 represents adaptive filtering, β represents the coefficient of the disturbance torque estimation error, represents the estimated value of the disturbance torque, c 1 represents a constant, e θ represents the attitude error, e w represents the angular velocity error, Td represents the expected disturbance torque.
5. The method according to claim 1, characterized in that The method also includes constructing the neural network prediction model: Select a feedforward neural network as a backbone network, determine the number of input layer nodes and the number of hidden layer nodes based on the dimension of the state estimation value, and the activation function corresponding to the hidden layer, and set the objective function corresponding to the neural network prediction model; Extracting historical input data and historical output data from the historical data of the control moment gyro and constructing sample pairs, and dividing the sample pairs into a training set, a validation set, and a test set; Randomly initialize network weights and thresholds, use the training set to train the neural network prediction model, calculate the network prediction output of the training sample under the current weight in each iteration, compare the network prediction output with the true label corresponding to the training sample, and determine the error vector; Based on the error vector, combined with the Jacobian matrix and the preset damping coefficient, the network weights are updated to reduce the objective function value, and the update is repeated until the preset maximum number of iterations is reached to obtain a trained neural network prediction model.
6. The method according to claim 1, characterized in that Based on the adaptive compensation, the feedforward compensation term is optimized and solved to obtain the optimal feedforward compensation, the optimal feedforward compensation is superimposed with the feedback control torque and the adaptive compensation to obtain the disturbance torque compensation torque, and based on the disturbance torque compensation torque, combined with the input torque of the control torque gyro, a disturbance torque suppression scheme is generated, including: Based on the adaptive compensation, a performance index function is set in combination with an attitude angle error, the attitude dynamics equation of the control moment gyro is discretized by a variational method to generate a discretization function, based on the discretization function, the current disturbance torque is solved and the optimal feedforward compensation is introduced into the Lagrangian equation, and the Lagrangian equation is solved to obtain the optimal feedforward compensation; Based on the predefined dynamic sliding surface, the feedback control torque is defined in combination with the control gain, the sliding surface coefficient and the moment of inertia, the adaptive compensation torque is calculated in real time based on the disturbance torque, the optimal feedforward compensation, the feedback control torque and the adaptive compensation torque are superimposed to obtain the corresponding disturbance torque compensation torque; The disturbance torque compensation torque is decomposed to obtain compensation vectors of the control torque gyro in different directions, and the disturbance torque suppression scheme is obtained based on the compensation vectors.
7. A disturbance torque suppression system suitable for a control moment gyro, for implementing the method according to any one of claims 1 to 6, characterized in that: include: The first unit is used to construct a nonlinear dynamic model corresponding to the control moment gyro according to the structural parameters and motion equation of the control moment gyro and the disturbance torque coupling effect of the control moment gyro, obtain the input torque, rotation speed and output torque of the control moment gyro, and determine the disturbance torque estimation value and state estimation value based on the nonlinear dynamic model and in combination with an adaptive expansion filtering algorithm; The second unit is used to add the state estimation value to a pre-built neural network prediction model to obtain a state prediction value, and based on the disturbance torque estimation value and the state prediction value, construct a disturbance torque compensation control law through an adaptive dynamic surface control algorithm, adjust the compensation gain in combination with an adaptive rate, and determine an adaptive compensation; The third unit is used to optimize and solve the feedforward compensation term based on the adaptive compensation to obtain the optimal feedforward compensation, superimpose the optimal feedforward compensation with the feedback control torque and the adaptive compensation to obtain the disturbance torque compensation torque, and generate a disturbance torque suppression scheme based on the disturbance torque compensation torque in combination with the input torque of the control torque gyro.
8. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to call the instructions stored in the memory to execute the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 6 is implemented.
