A Neural Network-Based Attitude Control Method and System for Quadrotors

Through the funnel attitude control method based on neural networks, the problems of difficult system modeling, poor robustness and slow dynamic response speed of quad-rotor aircraft in complex environments are solved, achieving higher stability and maneuverability, and improving external visibility. Adaptability to disturbances.

CN118394128BActive Publication Date: 2024-09-06QILU UNIVERSITY OF TECHNOLOGY (SHANDONG ACADEMY OF SCIENCES)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410841870.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-09-06
Estimated Expiration
2044-06-27

AI Technical Summary

Technical Problem

Traditional quadrotor aircraft attitude control methods have problems such as difficulty in system modeling, poor robustness and slow dynamic response in complex environments. It is difficult to effectively respond to external interference and parameter changes, which limits the stability and maneuverability of the aircraft.

Method used

A funnel attitude control method based on neural networks is used to achieve precise control and robustness improvement of nonlinear systems by constructing a simplified dynamic model, estimating disturbance interference, constructing a funnel attitude controller, and using Lyapunov functions to verify the control strategy.

Benefits of technology

It improves the stability and maneuverability of the quadcopter in complex environments, enhances its robustness to external interference and parameter changes, and achieves faster dynamic response and higher control accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118394128B
    Figure CN118394128B
Patent Text Reader

Abstract

The invention relates to the technical field of quadrotor control, and discloses a quadrotor attitude control method and system based on a neural network. The method comprises: constructing a dynamic model of a quadrotor, simplifying the dynamic model of the quadrotor, and obtaining a simplified model; estimating the disturbance interference of the quadrotor based on a neural network, and obtaining a disturbance interference estimation value of the quadrotor; constructing a funnel attitude controller based on the disturbance interference estimation value of the quadrotor; verifying the funnel variable of the funnel attitude controller, the angular velocity error of the quadrotor, the optimal weight vector of the neural network, and the bounded interference in the neural network based on a Lyapunov function; and controlling the flight process of the quadrotor based on the funnel attitude controller. The disturbance suppression and asymptotic trajectory tracking problems of the quadrotor system are solved, and the performances such as the convergence time, overshoot, and steady-state accuracy of the system are considered.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of quadrotor aircraft control, and in particular to a quadrotor aircraft attitude control method and system based on neural network. Background Art

[0002] With the widespread application of quadrotors, especially in areas such as aerial photography, unmanned cargo transportation, and search and rescue, higher requirements are placed on their control performance and stability. For disturbed quadrotors, attitude control refers to the process of controlling the attitude of the aircraft (i.e., the pitch, roll, and yaw angles of the aircraft) to maintain its stable flight state when the aircraft is subject to external interference or disturbance. However, traditional attitude control methods often have some limitations when dealing with nonlinear and time-varying systems such as quadrotors, which limits their application in complex environments.

[0003] Traditional control methods have some limitations, such as: First, it is difficult to model complex systems. Traditional attitude control methods require accurate modeling of the complex nonlinear dynamic model of the quadcopter, which often requires a lot of experiments and analysis, and is easily affected by factors such as the environment and load, resulting in inaccurate modeling results; second, poor robustness. Traditional attitude controllers have poor robustness to external interference and parameter changes in the aircraft system, which can easily lead to system instability, jitter and other problems, limiting the reliability and stability of the aircraft in complex environments; slow dynamic response speed. Due to the fixed control strategy of the traditional attitude controller, its dynamic response speed is relatively slow, making it difficult to adapt to the needs of the aircraft in a rapidly changing environment, limiting the maneuverability and adaptability of the aircraft. Summary of the invention

[0004] In order to address the deficiencies of the prior art, the present invention provides a quadrotor attitude control method and system based on a neural network to solve the anti-disturbance problem in a disturbed quadrotor system and ensure that under the influence of continuous disturbances, the tracking error is limited within a predetermined performance boundary, thereby solving the trajectory tracking problem of a class of disturbed quadrotor systems, solving the disturbance suppression and asymptotic trajectory tracking problems of the quadrotor system, and taking into account the system's convergence time, overshoot and steady-state accuracy and other performance.

[0005] On the one hand, a neural network-based quadrotor attitude control method is provided, including: constructing a dynamic model of the quadrotor, simplifying the dynamic model of the quadrotor to obtain a simplified model; the simplified model includes: disturbance interference of the quadrotor; based on the neural network, estimating the disturbance interference of the quadrotor to obtain the disturbance interference estimation value of the quadrotor; based on the disturbance interference estimation value of the quadrotor, constructing a funnel attitude controller; based on the Lyapunov function, verifying the funnel variables of the funnel attitude controller, the angular velocity error of the quadrotor, the optimal weight vector of the neural network and the bounded interference in the neural network; based on the funnel attitude controller, controlling the flight process of the quadrotor.

[0006] On the other hand, a quadrotor attitude control system based on a neural network is provided, comprising: a dynamic model building module, which is configured to: build a dynamic model of the quadrotor, simplify the dynamic model of the quadrotor to obtain a simplified model; the simplified model comprises: the disturbance interference of the quadrotor; an estimation module, which is configured to: estimate the disturbance interference of the quadrotor based on the neural network to obtain the disturbance interference estimation value of the quadrotor; a controller building module, which is configured to: build a funnel attitude controller based on the disturbance interference estimation value of the quadrotor; a verification module, which is configured to: verify the funnel variables of the funnel attitude controller, the angular velocity error of the quadrotor, the optimal weight vector of the neural network and the bounded interference in the neural network based on the Lyapunov function; an output module, which is configured to: control the flight process of the quadrotor based on the funnel attitude controller.

[0007] The above technical solution has the following advantages or beneficial effects: The neural network funnel attitude controller has the following advantages: Adaptation to nonlinear systems. The neural network funnel attitude controller can achieve precise control of complex nonlinear systems without precise system modeling through the learning and adaptability of the neural network model, overcoming the difficulties of traditional control methods in system modeling; Improved robustness. The neural network-based funnel attitude controller can improve the system's robustness to environmental changes and load changes by learning and adjusting the control strategy in real time, reduce the instability of the system, and ensure the reliability and stability of the aircraft in complex environments; Real-time performance optimization. The neural network funnel attitude controller can monitor the aircraft status and environmental information in real time, and dynamically adjust the control strategy to achieve optimal flight performance and stability. Compared with traditional attitude controllers, it has a faster dynamic response speed and improves the maneuverability and adaptability of the aircraft. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0009] Figure 1 This is a flow chart of the method of embodiment 1.

[0010] Figure 2 This is a structural diagram of the quadrotor aircraft of Example 1.

[0011] Figure 3 This is a roll angle position state diagram of the quadrotor system of Example 1.

[0012] Figure 4 This is a pitch angle position state diagram of the quadrotor system of Example 1.

[0013] Figure 5 This is a deflection angle position state diagram of the quadrotor system of Example 1.

[0014] Figure 6 This is a roll angle trajectory error diagram of the quadrotor system of Example 1.

[0015] Figure 7 This is a pitch angle trajectory error diagram of the quadrotor system of Example 1.

[0016] Figure 8 This is a yaw angle trajectory error diagram of the quadrotor system of Example 1.

[0017] Fig. 9 This is a roll angle control torque diagram of the quadrotor system of Example 1.

[0018] Fig.10 This is a pitch angle control torque diagram of the quadrotor system of Example 1.

[0019] Fig.11 This is a yaw angle control torque diagram of the quadrotor system of Example 1. DETAILED DESCRIPTION

[0020] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0021] Term explanation: Neural network: Artificial neural network is based on the basic principles and functions of neural networks in the human brain structure. It simulates the response mechanism of the human brain to external stimuli and constructs a complex information processing system that is interconnected by mathematical models.

[0022] Funnel control: Funnel control aims to achieve stable control of the system by guiding the system state into a predefined funnel. In funnel control, the design goal of the controller is to ensure that the system state always remains in the funnel and can quickly recover to the inside of the funnel when affected by external disturbances or uncertainties, so as to achieve robust stability control of the system.

[0023] In view of the shortcomings of the prior art, the neural network funnel attitude controller of the present invention aims to solve the following technical problems: the problem of complex system modeling. Through the learning and adaptability of neural networks, the controller of the present invention can overcome the difficulties of traditional controllers in modeling complex systems and achieve precise control of nonlinear systems; the robustness problem. Through real-time learning and optimization of control strategies, the controller can improve the system's robustness to external interference and parameter changes and reduce the risk of system failure; the dynamic response speed problem. By adjusting the control strategy in real time, the controller of the present invention can achieve a faster dynamic response speed and improve the stability and performance of the aircraft system.

[0024] Embodiment 1: Figure 1 As shown, this embodiment provides a quadrotor attitude control method based on a neural network, including: S101: constructing a dynamic model of a quadrotor, simplifying the dynamic model of the quadrotor to obtain a simplified model; the simplified model includes: the disturbance interference of the quadrotor; S102: based on the neural network, estimating the disturbance interference of the quadrotor, and obtaining the disturbance interference estimation value of the quadrotor; S103: based on the disturbance interference estimation value of the quadrotor, constructing a funnel attitude controller; S104: based on the Lyapunov function, verifying the funnel variables of the funnel attitude controller, the angular velocity error of the quadrotor, the optimal weight vector of the neural network and the bounded interference in the neural network; S105: based on the funnel attitude controller, controlling the flight process of the quadrotor.

[0025] Furthermore, the S101: constructing a dynamic model of the quadrotor aircraft includes: establishing a dynamic model of the quadrotor aircraft as follows: ;in, , Indicates the attitude state of the quadrotor. They represent the roll angle, pitch angle and yaw angle of the quadrotor respectively. represents the angular velocity of the roll, pitch and yaw angles of the quadrotor, and represents the matrix associated with the available states, Indicates a quadrotor A collection of; , represents the angular velocity of the roll angle, represents the angular velocity of the pitch angle, represents the angular velocity of the yaw angle, ,in, is a positive definite diagonal matrix, represents the moment of inertia of the roll angle, represents the moment of inertia of the pitch angle, represents the moment of inertia of the yaw angle, It means constructing a diagonal matrix. represents the acceleration of each corner of the quadrotor, Represents the set of control torques for each angle. Control torques representing roll, pitch, and yaw angles; Represents the set of external factors that interfere with each corner. , Indicates the interference of external factors on the roll angle of the quadrotor. Indicates the interference of external factors on the pitch angle of the quadrotor. Represents the interference of external factors on the yaw angle of the quadrotor. Figure 2 This is the structural diagram of the quadrotor aircraft. Figure 2 As shown, the axis from the nose to the tail and passing through the center of gravity is called the longitudinal axis (X axis); the axis from the leading edge of the wing through the trailing edge of the wing and parallel to the Z axis of the center of gravity is called the transverse axis (Y axis), and the Z axis is perpendicular to the longitudinal and transverse axes; the pitch angle refers to the angle of rotation of the quadcopter around the X axis, the roll angle refers to the angle of rotation of the quadcopter around the Y axis, and the yaw angle refers to the angle of rotation of the quadcopter around the Z axis; , , and They represent the four lifts generated by the four rotors of a quadrotor aircraft.

[0026] The matrix associated with the state is expressed as: ; .

[0027] Furthermore, the S101: simplifying the dynamic model of the quadrotor aircraft to obtain a simplified model includes: rewriting the dynamic model of the quadrotor aircraft into a second-order equation .

[0028] ;in, Express To conduct derivation, Express The reciprocal of .

[0029] The reference trajectory of the quadrotor is expressed as , the initial conditions are expressed as .

[0030] in, , , Represent the reference trajectory of each corner of the quadrotor, , , Represent the initial positions of each corner of the quadrotor.

[0031] definition , , then the dynamic model of the quadrotor aircraft is simplified to: ;in, , represents the total set of disturbances to the quadrotor, represents the input signal of the quadrotor aircraft, represents the set of angular velocities of each corner of the quadrotor, Represents the acceleration of each corner of the quadrotor.

[0032] It should be understood that when establishing a quadrotor system model, the system is considered to be constituted with continuous disturbance interference and control input influence, and the first-order dynamic model and second-order dynamic model of the quadrotor are expressed by equations.

[0033] Further, the S102: based on the neural network, the disturbance interference of the quadrotor aircraft is estimated to obtain the disturbance interference estimation value of the quadrotor aircraft, including: assuming that the disturbance of the roll angle, pitch angle and yaw angle of the quadrotor aircraft is , , is continuously differentiable and bounded, and there exists an unknown bounded positive scalar ,get: ;in, represents an unknown continuous nonlinear function, Indicates that its value is an unknown positive constant.

[0034] Based on this assumption, an algorithm is developed that adjusts or evolves based on new information and experience, using a neural network to estimate or approximate the unknown function in the equation: ;in, represents the approximation error of the neural network, represents the optimal weight vector of the neural network, represents an n-dimensional vector space, represents the activation function vector, The approximate error satisfies ,in is an unknown positive constant. Choose a Gaussian function to represent , the expression is: ;in, represents the center of the activation function, represents the width of the activation function, Expressed as a natural constant The exponential function with base , Indicates the attitude state of the quadrotor. Represents the transposition of the function matrix.

[0035] It should be understood that a neural network model is established. For a disturbed quadrotor aircraft, the present invention develops a neural network model that is adjusted or evolved based on new information and experience, and uses an adaptive learning algorithm of the neural network to estimate or approximate unknown disturbances in the model.

[0036] Further, the S103: constructing a funnel attitude controller based on the disturbance interference estimation value of the quadrotor aircraft includes: converting the attitude position tracking error And speed error The definition is as follows: ;in, Represents the attitude state of the quadrotor dynamic model The reference trajectory signal, Indicates the angular velocity of the quadrotor in roll, pitch and yaw The reference trajectory signal.

[0037] Design to track the position error within a limited time period Restricted to a predefined funnel envelope: ;in, Represents the funnel function Negative number of represents the funnel function, where the funnel function , expressed as: ;in, , , Represents the parameters used by the funnel function, , , is a normal number, Indicates the time used by the quadrotor.

[0038] In order to analyze the stability of the error signal and the funnel envelope, the funnel variable : ;in, represents the attitude position tracking error, Represents the funnel function.

[0039] Differentiating it gives: ;in, Represents funnel variable The derivative of Indicates the position tracking error The derivative of Represents the funnel function The derivative of represents the angular velocity of each corner of the quadrotor, Represents the reference velocity signal of each corner of the quadrotor, and is an intermediate variable.

[0040] For convenience, , It is expressed as: , In order to stabilize the funnel variables , reference speed signal It is expressed as: .in, represents a positive constant parameter, express The reciprocal of Represents funnel variable , Indicates attitude status The derivative of .

[0041] Combining the above equations, we get , , : ;in, Represents funnel variable The derivative of Represents the derivative of the angular velocity error of each angle of the quadrotor, represents the input signal, represents a positive constant parameter, represents the funnel variable, Represents the angular velocity error of each corner of the quadrotor, represents a positive constant parameter, represents the derivative of the reference velocity signal at each corner of the quadrotor, represents the adaptive control function based on neural network, Represents the total set of disturbances to each corner of the quadrotor.

[0042] in, , .

[0043] in, represents a positive constant parameter, Represents the angular velocity error of each corner of the quadrotor, represents the funnel variable, express The estimated value of represents the activation function vector, Represents a positive constant parameter.

[0044] in, , is a normal number, yes The estimated value of represents bounded interference in the neural network, yes The upper bound estimate of , and ; ;in, express The derivative of the estimate of , , represents the adaptive weights in the neural network, Represents the angular velocity error of each corner of the quadrotor, represents the activation function vector, represents the approximation error of the neural network, Represents a restricted range, where , and represents the adaptive weights in the neural network and , Comprehensively get ;in, represents the derivative of the angular velocity error at each corner of the quadrotor, represents a positive constant parameter, Represents the angular velocity error of each corner of the quadrotor, represents the adaptive control function based on neural network, Represents the total set of disturbances to each corner of the quadrotor.

[0045] It should be understood that in combination with the designed neural network model, a funnel attitude controller is designed for a disturbed quadrotor system.

[0046] Further, the S104: based on the Lyapunov function, the funnel variable of the funnel attitude controller, the angular velocity error of the quadcopter, the optimal weight vector of the neural network and the bounded interference in the neural network are verified, specifically including: using the Lyapunov function to verify the funnel variable , tracking error signal and the neural network optimal weight vector error , Bounded Interference Error in Neural Networks Perform analysis to determine the relationship between and Lyapunov function. Definition , ;in, express The transpose of the estimate of express The transpose of Representing bounded interference in neural networks The upper bound estimate of Representing bounded interference in neural networks The upper bound of .

[0047] Lyapunov function for: ,get:

[0048] ;

[0049] in, represents the Lyapunov function Derivative, Represents the lower bound Sum within the range, represents the funnel variable, represents the derivative of the funnel variable, Represents the angular velocity error of each corner of the quadrotor, represents the derivative of the angular velocity error at each corner of the quadrotor, represents the adaptive weights in the neural network, represents the transposed vector of the error of the optimal weight vector of the neural network, represents the derivative of the error of the optimal weight vector of the neural network, represents the adaptive weights in the neural network, represents the bounded interference error in the neural network, represents the derivative of the bounded perturbation error in the neural network, represents a positive constant parameter, represents a positive constant parameter, represents the adaptive control function based on neural network, represents the total set of disturbances to each corner of the quadrotor, Represents the optimal weight vector of the neural network The estimated value of represents the activation function vector, Representing bounded interference in neural networks The upper bound estimate of Represents a positive constant parameter.

[0050] exist Exceed In the case of , combining the perturbation of neural network estimation and the neural network adaptive law, the following inequality is obtained:

[0051] ;

[0052] in, represents a positive constant parameter, represents the Lyapunov function The derivative of represents a positive constant parameter, represents a positive constant parameter, represents the funnel variable, Represents the angular velocity error of each corner of the quadrotor, represents the total set of disturbances to each corner of the quadrotor, Represents the optimal weight vector of the neural network The estimated value of represents the activation function vector, Representing bounded interference in neural networks The upper bound estimate of represents the adaptive weights in the neural network, represents the transposed vector of the error of the optimal weight vector of the neural network, represents the activation function vector, represents the bounded interference error in the neural network, represents an unknown bounded positive scalar, represents an unknown continuous nonlinear function, Indicates that its value is an unknown positive constant, Represents the approximation error of the neural network.

[0053] Let the bounded interference upper bound in the neural network be ,get:

[0054] ;

[0055] in, Representing bounded interference in neural networks The upper bound of represents the upper bound of a positive constant whose value is unknown, represents the upper bound of the approximation error of the neural network, represents the Lyapunov function The derivative of represents a positive constant parameter, Represents the optimal weight vector of the neural network The transposed vector of Representing bounded interference in neural networks The upper bound estimate of represents the transposed vector of the error of the optimal weight vector of the neural network, Representing bounded interference in neural networks The upper bound estimate of .

[0056] So we get: ;in, represents a positive constant parameter; therefore, we find and are bounded and converge asymptotically. This means that the error Won't reach the border . Based on funnel variables , we get the inequality: .

[0057] Obviously, the inequality can be rewritten as . This means that the inequality The conditions expressed are always satisfyable, ensuring that When the system does not have a finite escape time, the error dynamics are derived Converges to a finite region, namely The values ​​of the necessary parameters for experimental verification are: . .

[0058] .

[0059] .

[0060] .

[0061] , , , , .

[0062] , , , , .

[0063] It should be understood that according to the designed funnel attitude controller for the disturbed quadrotor system, the Lyapunov function is constructed using Lyapunov's second method, the funnel variables, angular velocity errors, optimal weight vectors of the neural network and bounded interference in the neural network are analyzed, theoretical verification is performed, and actual operation is performed through computer simulation software MATLAB.

[0064] like Figure 3 As shown in , the rolling angle tracking curve is drawn, which intuitively shows that the rolling angle state can asymptotically track the desired angle; Figure 4 As shown in , the pitch angle tracking curve is drawn, which intuitively shows that the pitch angle state can asymptotically track the desired angle; Figure 5 As shown in Figure 1, a yaw angle tracking curve is drawn, which intuitively shows that the yaw angle state can asymptotically track the desired angle. Figure 6 As shown in , the roll angle trajectory error curve is plotted, indicating that the roll angle trajectory error converges to the predefined area within the funnel control boundary; Figure 7 As shown in , the pitch angle trajectory error curve is plotted, indicating that the pitch angle trajectory error converges to the predefined area within the funnel control boundary; Figure 8 As shown in Figure 1, the yaw angle trajectory error curve is plotted, indicating that the yaw angle trajectory error converges to the predefined area within the funnel control boundary. Fig. 9 As shown in , the control torque of the roll angle of the quadrotor is plotted; Fig.10 As shown in , the control torque of the quadrotor pitch angle is plotted; Fig.11 As shown, the control torque of the quadrotor aircraft yaw angle is plotted.

[0065] Furthermore, the S105: based on the funnel attitude controller, controlling the flight process of the quadrotor aircraft, including: based on the funnel attitude controller, controlling the roll angle, pitch angle and yaw angle of the quadrotor aircraft, the angular velocity of the quadrotor aircraft, and the control input of the quadrotor aircraft.

[0066] In summary, the neural network funnel attitude controller of the present invention has obvious advantages in the face of the complex attitude control problem of the disturbed quadrotor system, and will bring major technical breakthroughs and application potential to the stability, maneuverability and adaptability of the aircraft system. Compared with the traditional control method, the neural network funnel attitude controller has improved control ability of nonlinear systems, can better adapt to the dynamic characteristics of nonlinear systems, and improve the accuracy and efficiency of control. The robustness of the neural network funnel attitude controller is enhanced, and it can improve the robustness of the system to external interference and parameter changes by learning the dynamic characteristics of the system and adjusting according to real-time feedback. The real-time performance optimization capability is stronger, and the neural network funnel attitude controller can monitor the system status in real time and generate corresponding control strategies to optimize the performance of the system to the greatest extent, including improving productivity, quality and efficiency. In summary, the neural network funnel attitude controller can bring significant advantages and positive effects in many aspects, and by improving the control ability, robustness and efficiency of the system, it has brought important technological progress and economic benefits to various industrial and scientific application fields.

[0067] Embodiment 2: This embodiment provides a quadrotor attitude control system based on a neural network, including: a dynamic model construction module, which is configured to: construct a dynamic model of a quadrotor, simplify the dynamic model of the quadrotor, and obtain a simplified model; the simplified model includes: the disturbance interference of the quadrotor; an estimation module, which is configured to: estimate the disturbance interference of the quadrotor based on a neural network, and obtain an estimated value of the disturbance interference of the quadrotor; a controller construction module, which is configured to: construct a funnel attitude controller based on the estimated value of the disturbance interference of the quadrotor; a verification module, which is configured to: verify the funnel variables of the funnel attitude controller, the angular velocity error of the quadrotor, the optimal weight vector of the neural network, and the bounded interference in the neural network based on the Lyapunov function; an output module, which is configured to: control the flight process of the quadrotor based on the funnel attitude controller.

[0068] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A quadrotor aircraft attitude control method based on a neural network, characterized in that: include: Constructing a dynamic model of a quadrotor aircraft, and simplifying the dynamic model of the quadrotor aircraft to obtain a simplified model; The simplified model includes: disturbance interference from a quadrotor aircraft; Based on the neural network, the disturbance interference of the quadrotor aircraft is estimated to obtain the disturbance interference estimation value of the quadrotor aircraft; Based on the disturbance estimation of the quadrotor aircraft, a funnel attitude controller is constructed; Based on the Lyapunov function, the funnel variables of the funnel attitude controller, the angular velocity error of the quadrotor, the optimal weight vector of the neural network, and the bounded interference in the neural network are verified; Based on the funnel attitude controller, the flight process of the quadrotor is controlled; Based on the disturbance estimation value of the quadrotor aircraft, a funnel attitude controller is constructed, including: The attitude position tracking error And speed error The definition is as follows: ; in, Represents the attitude state of the quadrotor dynamic model The reference trajectory signal, Indicates the angular velocity of the quadrotor in roll, pitch and yaw The reference trajectory signal; Design to track the position error within a limited time period Restricted to a predefined funnel envelope: ; in, Represents the funnel function Negative number of represents the funnel function; funnel function , expressed as: ;in, , , Represents the parameters used by the funnel function, , , is a normal number, Indicates the time used by the quadrotor; In order to analyze the stability of the error signal and the funnel envelope, the funnel variable : ; in, represents the attitude position tracking error, represents the funnel function, Differentiating it gives: ; in, Represents funnel variable The derivative of Indicates the position tracking error The derivative of Represents the funnel function The derivative of represents the angular velocity of each corner of the quadrotor, Represents the reference velocity signal of each corner of the quadrotor, and is an intermediate variable; For convenience, , It is expressed as: ; ; To stabilize the funnel variables , reference speed signal It is expressed as: ; in, represents a positive constant parameter, express The reciprocal of Represents funnel variable , Indicates attitude status The derivative of; combined with the above equation, we get , , : ; in, Represents funnel variable The derivative of Represents the derivative of the angular velocity error of each angle of the quadrotor, represents the input signal, represents a positive constant parameter, represents the funnel variable, Represents the angular velocity error of each corner of the quadrotor, represents a positive constant parameter, represents the derivative of the reference velocity signal at each corner of the quadrotor, represents the adaptive control function based on neural network, Represents the total set of disturbances to each corner of the quadrotor; in, , ; in, represents a positive constant parameter, Represents the angular velocity error of each corner of the quadrotor, represents the funnel variable, express The estimated value of represents the activation function vector, represents a positive constant parameter; , is a normal number, yes The estimated value of represents bounded interference in the neural network, yes The upper bound estimate of , and ; ; in, express The derivative of the estimate of , , represents the adaptive weights in the neural network, Represents the angular velocity error of each corner of the quadrotor, represents the activation function vector, represents the approximation error of the neural network, Represents a restricted range, where , and represents the adaptive weights in the neural network and , Comprehensively get ; represents the derivative of the angular velocity error at each corner of the quadrotor, represents a positive constant parameter, represents the adaptive control function based on neural network, Represents the total set of disturbances to each corner of the quadrotor.

2. The neural network-based quadrotor attitude control method according to claim 1, characterized in that: Build a dynamic model of a quadrotor, including: The dynamic model of the quadrotor is established as follows: ; in, , Indicates the attitude state of the quadrotor. They represent the roll angle, pitch angle and yaw angle of the quadrotor respectively. Represents the angular velocity of the quadrotor's roll, pitch, and yaw angles, and represents the matrix associated with the available states, Indicates a quadrotor A collection of; , represents the angular velocity of the roll angle, represents the angular velocity of the pitch angle, represents the angular velocity of the yaw angle, ,in is a positive definite diagonal matrix, represents the moment of inertia of the roll angle, represents the moment of inertia of the pitch angle, represents the moment of inertia of the yaw angle, It means constructing a diagonal matrix. represents the acceleration of each corner of the quadrotor, Represents the set of control torques at each angle; Control torques representing roll, pitch, and yaw angles; Represents the set of external factors that interfere with each corner; , Indicates the interference of external factors on the roll angle of the quadrotor. Indicates the interference of external factors on the pitch angle of the quadrotor. It indicates the interference of external factors on the yaw angle of the quadrotor; The matrix associated with the state is expressed as: ; 。 3. The neural network-based quadrotor attitude control method according to claim 1, characterized in that: The dynamic model of the quadrotor aircraft is simplified to obtain a simplified model, including: For the dynamic model of the quadrotor, rewrite it as the second-order equation : ; in, Express To conduct derivation, Express The reciprocal of The reference trajectory of the quadrotor is expressed as , the initial conditions are expressed as ; in, , , Represent the reference trajectory of each corner of the quadrotor, , , They represent the initial positions of each corner of the quadrotor respectively; definition , , then the dynamic model of the quadrotor aircraft is simplified to: ; in, , represents the total set of disturbances to the quadrotor, represents the input signal of the quadrotor aircraft, represents the set of angular velocities of each corner of the quadrotor, Represents the acceleration of each corner of the quadrotor.

4. The neural network-based quadrotor attitude control method according to claim 1, characterized in that: Based on the neural network, the disturbance interference of the quadrotor is estimated to obtain the disturbance interference estimation value of the quadrotor, including: Assume that the disturbances of the roll angle, pitch angle and yaw angle of the quadrotor are , , is continuously differentiable and bounded, and there exists an unknown bounded positive scalar ,get: ; in, represents an unknown continuous nonlinear function, Indicates that its value is an unknown positive constant; Use neural networks to estimate or approximate the unknown function in the equation: ; in, represents the approximation error of the neural network, represents the optimal weight vector of the neural network, represents an n-dimensional vector space, represents the activation function vector, The approximate error satisfies ,in, is an unknown positive constant; Choose a Gaussian function to represent , the expression is: ; in, represents the center of the activation function, represents the width of the activation function, Indicated by natural constant The exponential function with base , Indicates the attitude state of the quadrotor. Represents the transposition of the function matrix.

5. The neural network-based quadrotor attitude control method according to claim 1, characterized in that: Based on the Lyapunov function, the funnel variables of the funnel attitude controller, the angular velocity error of the quadrotor, the optimal weight vector of the neural network, and the bounded interference in the neural network are verified, including: Using Lyapunov function to calculate funnel variables , tracking error signal and the neural network optimal weight vector error , Bounded Interference Error in Neural Networks Perform analysis to determine the relationship between and Lyapunov function; define , ;in, express The transpose of the estimate of express The transpose of Representing bounded interference in neural networks The upper bound estimate of Representing bounded interference in neural networks The upper bound of Lyapunov function for: ,get: ; in, represents the Lyapunov function Derivative, Represents the lower bound Sum within the range, represents the funnel variable, represents the derivative of the funnel variable, Represents the angular velocity error of each corner of the quadrotor, represents the derivative of the angular velocity error at each corner of the quadrotor, represents the adaptive weights in the neural network, represents the transposed vector of the error of the optimal weight vector of the neural network, represents the derivative of the error of the optimal weight vector of the neural network, represents the adaptive weights in the neural network, represents the bounded interference error in the neural network, represents the derivative of the bounded perturbation error in the neural network, represents a positive constant parameter, represents a positive constant parameter, represents the adaptive control function based on neural network, represents the total set of disturbances to each corner of the quadrotor, Represents the optimal weight vector of the neural network The estimated value of represents the activation function vector, Representing bounded interference in neural networks The upper bound estimate of Represents a positive constant.

6. The neural network-based quadrotor attitude control method according to claim 5, characterized in that: exist Exceed In the case of , combining the disturbance estimated by the neural network and the adaptive law of the neural network, the following inequality is obtained: ; in, represents a positive constant parameter, represents the Lyapunov function The derivative of represents a positive constant parameter, represents a positive constant parameter, represents the funnel variable, Represents the angular velocity error of each corner of the quadrotor, represents the total set of disturbances to each corner of the quadrotor, Represents the optimal weight vector of the neural network The estimated value of represents the activation function vector, Representing bounded interference in neural networks The upper bound estimate of represents the adaptive weights in the neural network, represents the transposed vector of the error of the optimal weight vector of the neural network, represents the activation function vector, represents the bounded interference error in the neural network, represents an unknown bounded positive scalar, represents an unknown continuous nonlinear function, Indicates that its value is an unknown positive constant, Represents the approximation error of the neural network.

7. The neural network-based quadrotor attitude control method according to claim 6, characterized in that: Let the bounded interference upper bound in the neural network be ,get: ; in, Representing bounded interference in neural networks The upper bound of represents the upper bound of a positive constant whose value is unknown, represents the upper bound of the approximation error of the neural network, represents the Lyapunov function The derivative of represents a positive constant parameter, Represents the optimal weight vector of the neural network The transposed vector of Representing bounded interference in neural networks The upper bound estimate of represents the transposed vector of the error of the optimal weight vector of the neural network, Representing bounded interference in neural networks The upper bound estimate of ; So we get: ; in, represents a positive constant parameter; therefore, we find and are bounded and convergent asymptotically; this means that the error Won't reach the border ; In addition, according to the funnel variables , we get the inequality: ; Obviously, the inequality can be rewritten as ; means the inequality The conditions expressed are always satisfyable, ensuring that When the system does not have a finite escape time, the error dynamics are derived Converges to a finite region, namely .

8. A quadrotor aircraft attitude control system based on a neural network using the quadrotor aircraft attitude control method based on a neural network as claimed in claim 1, characterized in that: include: A dynamic model building module is configured to: build a dynamic model of a quadrotor aircraft, simplify the dynamic model of the quadrotor aircraft, and obtain a simplified model; the simplified model includes: disturbance interference of the quadrotor aircraft; An estimation module is configured to: estimate the disturbance interference of the quadrotor aircraft based on a neural network to obtain a disturbance interference estimation value of the quadrotor aircraft; A controller building module is configured to: build a funnel attitude controller based on a disturbance interference estimate of the quadrotor aircraft; A verification module is configured to: verify the funnel variable of the funnel attitude controller, the angular velocity error of the quadrotor aircraft, the optimal weight vector of the neural network, and the bounded interference in the neural network based on the Lyapunov function; The output module is configured to control the flight process of the quadrotor aircraft based on the funnel attitude controller.