Unmanned aerial vehicle anti-disturbance control method and system based on mode switching

By performing dynamic modeling of the UAV attitude system and establishing the error state space equation, and combining the disturbance observer and sliding mode controller, high-precision tracking of the UAV under strong wind disturbance and optimal energy control in windless environment were achieved, solving the problems of robustness and energy consumption in the existing technology.

CN122945684BActive Publication Date: 2026-11-24SHANDONG UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611441866.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-09-17
Publication Date
2026-11-24
Estimated Expiration
2046-09-17

AI Technical Summary

Technical Problem

Existing drone control algorithms are not robust to strong wind disturbances, making it difficult to achieve high-precision tracking. They also consume too much energy in windless environments, making it difficult to strike a balance between the two.

Method used

The UAV disturbance rejection control method based on mode switching is proposed. By performing dynamic modeling of the UAV attitude system and establishing the error state space equation in combination with the reference trajectory, a disturbance observer and a sliding mode controller are introduced to construct an adaptive weighting mechanism. The control voltages of the linear quadratic regulator and the sliding mode controller are weighted and fused to generate the final control voltage.

Benefits of technology

It achieves a balance between high-precision tracking under strong wind disturbances and optimal energy efficiency in windless environments, reducing high-frequency jitter and energy consumption of the actuators, and improving the anti-interference capability and energy efficiency of the UAV.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122945684B_ABST
    Figure CN122945684B_ABST
Patent Text Reader

Abstract

This invention belongs to the field of UAV flight control technology, and particularly relates to a UAV disturbance rejection control method and system based on mode switching. It includes obtaining a first voltage control value based on the error state-space equation, under the condition of satisfying a first set condition, using a linear quadratic regulator (LQR) combined with optimal feedback gain; under the condition of satisfying a second set condition, using a disturbance observer (DOB) to estimate the wind disturbance torque as a feedforward compensation term, and combining this with a sliding mode controller (SMC) that introduces saturated boundary layer thickness to suppress dynamic inertial lag during continuous directional tracking, to obtain a second voltage control value; determining the dynamic amplitude envelope based on the wind disturbance torque estimate; calculating the mode weighting coefficients online based on the dynamic amplitude envelope, and dynamically weighting and fusing the first and second voltage control values ​​to generate the final control voltage for controlling the UAV. This invention balances high-precision tracking under wind disturbance and optimal energy efficiency in a statically stable environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of unmanned aerial vehicle (UAV) flight control technology, and particularly relates to a UAV anti-disturbance control method and system based on mode switching. Background Technology

[0002] As a highly maneuverable aerial platform, unmanned aerial vehicles (UAVs) are widely used in complex tasks such as power line inspection, aerial surveying, and material delivery due to their hovering and vertical takeoff and landing capabilities. With the increasing prevalence of UAVs in complex weather conditions, higher demands are being placed on their trajectory tracking accuracy and anti-interference capabilities. When UAVs perform large-scale continuous change-of-direction tasks, dynamic tracking lag is easily generated due to the aircraft's own rotational inertia. This tracking lag, coupled with external wind disturbances, can not only cause severe deviations from the flight trajectory but may also lead to loss of control and crashes. Therefore, research on the high-precision dynamic tracking and stability control of UAVs under extreme wind disturbances has significant theoretical and engineering application value.

[0003] In existing UAV control algorithms, traditional linear quadratic regulators, while capable of achieving optimal energy allocation, exhibit poor robustness under strong wind disturbances and struggle to eliminate errors caused by unknown external wind disturbances. Traditional sliding mode controllers, while possessing strong anti-disturbance capabilities, are often accompanied by high-frequency chattering, and continuous use in windless environments leads to excessive energy consumption of the actuators. Current technologies struggle to achieve an effective balance between "high-precision tracking under extreme wind disturbances" and "optimal energy utilization in windless environments." Summary of the Invention

[0004] To overcome the shortcomings of the prior art, this invention provides a UAV anti-disturbance control method and system based on mode switching. First, the UAV attitude system is dynamically modeled to construct the state-space equation. Then, the error state-space equation is obtained by combining the reference trajectory. An interference observer and a sliding mode controller (DOB-SMC) are introduced. By constructing an adaptive weighting mechanism based on disturbance envelope detection, the mechanism is weighted and fused with the control voltage under the linear quadratic regulator (LQR) to generate the final control voltage to drive the UAV, which takes into account both high-precision tracking under wind disturbance and optimal energy efficiency under static and stable conditions.

[0005] To achieve the above objectives, one or more embodiments of the present invention provide the following technical solutions: The first aspect of this invention provides a method for anti-disturbance control of unmanned aerial vehicles based on mode switching.

[0006] The UAV disturbance rejection control method based on mode switching includes the following steps: Dynamic modeling of the UAV attitude system is performed and state-space equations are constructed. Then, error state-space equations are established in conjunction with the reference trajectory. Based on the aforementioned error state-space equation, the first voltage control value is obtained by combining the linear quadratic regulator LQR with the optimal feedback gain. Based on the aforementioned error state space equation, the wind disturbance torque estimate is obtained using the interference observer DOB as a feedforward compensation term. Combined with the sliding mode controller SMC that introduces saturated boundary layer thickness to suppress dynamic inertial hysteresis during continuous directional tracking, the second voltage control value is obtained. Determine the dynamic amplitude envelope based on the estimated wind disturbance moment; The modal weighting coefficients are calculated online based on the dynamic amplitude envelope. The first voltage control value and the second voltage control value are dynamically weighted and fused to generate the final control voltage for controlling the UAV.

[0007] A second aspect of the present invention provides an anti-interference control system for unmanned aerial vehicles based on mode switching.

[0008] The UAV anti-interference control system based on mode switching includes: The system modeling module is configured to: perform dynamic modeling of the UAV attitude system and construct state-space equations, and then establish error state-space equations in combination with the reference trajectory; The LQR control module is configured to obtain a first voltage control value based on the error state space equation by combining the linear quadratic regulator LQR with the optimal feedback gain. The DOB-SMC disturbance rejection control module is configured to: based on the error state space equation, use the disturbance observer DOB to estimate the wind disturbance torque as a feedforward compensation term, and combine it with the sliding mode controller SMC that introduces the saturated boundary layer thickness to suppress the dynamic inertial hysteresis during continuous directional tracking, and obtain the second voltage control value. The dynamic amplitude envelope determination module is configured to determine the dynamic amplitude envelope based on the estimated wind disturbance moment. The dynamic weighting and fusion control module is configured to: calculate the modal weighting coefficients online based on the dynamic amplitude envelope, dynamically weight and fuse the first voltage control value and the second voltage control value to generate the final control voltage for controlling the UAV.

[0009] The above one or more technical solutions have the following beneficial effects: This invention provides a method and system for unmanned aerial vehicle (UAV) disturbance rejection control based on mode switching. First, the UAV attitude system is dynamically modeled to obtain the error state-space equation. A linear quadratic regulator (LQR) is introduced to minimize motor energy consumption. Simultaneously, a disturbance observer (DOB) is used to estimate and feedforward cancel external unknown wind disturbances in real time, and a sliding mode controller (SMC) is combined to suppress airframe inertial hysteresis. An adaptive weighting mechanism based on dual-threshold mapping is constructed, and the mode weights are calculated online according to the real-time disturbance dynamic envelope, continuously and smoothly fusing the control voltages under the LQR and DOB-SMC modes. The designed controller can not only resist severe external wind field disturbances in real time but also effectively avoid high-frequency chattering and losses in the actuators, achieving high-performance adaptive control of the UAV system that is "energy-saving in windless conditions and wind-resistant in windy conditions."

[0010] Advantages of additional aspects of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description

[0011] The accompanying drawings, which form part of this invention, are used to provide a further understanding of the invention. The illustrative embodiments of the invention and their descriptions are used to explain the invention and do not constitute an improper limitation of the invention.

[0012] Figure 1 This is a principle block diagram of Embodiment 1 of the present invention.

[0013] Figure 2 This is a trajectory tracking diagram of the UAV closed-loop tracking control method based on LQR and DOB-SMC mode switching in Embodiment 1 of the present invention.

[0014] Figure 3 This is a tracking error diagram of the UAV closed-loop tracking control method based on LQR and DOB-SMC mode switching in Embodiment 1 of the present invention.

[0015] Figure 4 This is a wind disturbance estimation diagram for the UAV closed-loop tracking control method based on LQR and DOB-SMC mode switching in Embodiment 1 of the present invention.

[0016] Figure 5 This is the control voltage diagram of the UAV closed-loop tracking control method based on LQR and DOB-SMC mode switching in Embodiment 1 of the present invention.

[0017] Figure 6 This is an energy consumption diagram of the UAV closed-loop tracking control method based on LQR and DOB-SMC mode switching in Embodiment 1 of the present invention.

[0018] Figure 7 This is a trajectory tracking diagram using traditional SMC control in Embodiment 1 of the present invention.

[0019] Figure 8 This is a tracking error diagram using traditional SMC control in Embodiment 1 of the present invention.

[0020] Figure 9 This is the control voltage diagram for the conventional SMC control used in Embodiment 1 of the present invention.

[0021] Figure 10 This is an energy consumption diagram of conventional SMC control used in Embodiment 1 of the present invention.

[0022] Figure 11 This is a trajectory tracking diagram using traditional LQR control in Embodiment 1 of the present invention.

[0023] Figure 12 This is a tracking error diagram using traditional LQR control in Embodiment 1 of the present invention.

[0024] Figure 13 This is the control voltage diagram for the conventional LQR control used in Embodiment 1 of the present invention.

[0025] Figure 14 This is an energy consumption diagram of conventional LQR control used in Embodiment 1 of the present invention.

[0026] Figure 15 This is a flowchart of the method according to Embodiment 1 of the present invention. Detailed Implementation

[0027] It should be noted that the following detailed descriptions are exemplary and intended to provide further illustration of the invention. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains.

[0028] It should be noted that the terminology used herein is for the purpose of describing particular implementations only and is not intended to limit the exemplary implementations of the present invention.

[0029] Where there is no conflict, the embodiments and features in the embodiments of the present invention can be combined with each other.

[0030] Example 1 This embodiment discloses an anti-disturbance control method for unmanned aerial vehicles (UAVs) based on mode switching.

[0031] like Figure 1 As shown, the UAV disturbance rejection control method based on mode switching includes the following steps: Dynamic modeling of the UAV attitude system is performed and state-space equations are constructed. Then, error state-space equations are established in conjunction with the reference trajectory. Based on the aforementioned error state-space equation, the first voltage control value is obtained by combining the linear quadratic regulator LQR with the optimal feedback gain. Based on the aforementioned error state space equation, the wind disturbance torque estimate is obtained using the interference observer DOB as a feedforward compensation term. Combined with the sliding mode controller SMC that introduces saturated boundary layer thickness to suppress dynamic inertial hysteresis during continuous directional tracking, the second voltage control value is obtained. Determine the dynamic amplitude envelope based on the estimated wind disturbance moment; The modal weighting coefficients are calculated online based on the dynamic amplitude envelope. The first voltage control value and the second voltage control value are dynamically weighted and fused to generate the final control voltage for controlling the UAV.

[0032] It can be understood that this embodiment, based on the requirement of UAV tracking a continuously differentiable trajectory, performs dynamic modeling of the UAV attitude system and constructs a state-space equation, and then establishes an error state-space equation in conjunction with a reference trajectory; based on the error state-space equation, when the detected external wind disturbance is within the minimum lower limit threshold range, the system control is completely dominated by the linear quadratic regulator (LQR) to obtain the optimal feedback gain to minimize the system's reactive power loss; based on the error state-space equation, in strong wind environments, the disturbance observer (DOB) is used to estimate the amplitude of the continuously differentiable trajectory with unknown magnitude. The interference signal is used as a feedforward compensation term, and a sliding mode controller (SMC) with saturated boundary layer thickness is combined to suppress dynamic inertial hysteresis during continuous directional tracking. Envelope detection is performed based on the real-time wind disturbance torque estimated by the interference observer to extract the dynamic amplitude envelope of the external strong wind disturbance. An adaptive dynamic weighting mechanism based on dual threshold mapping is constructed to calculate the mode weight coefficients online according to the real-time envelope amplitude. The control voltages under the two modes of LQR and DOB-SMC are dynamically weighted and fused, and after being limited by the physical limit voltage of the actuator, the final control voltage is generated to drive the UAV.

[0033] Furthermore, the state-space equation is specifically expressed as follows:

[0034] in, This is the system state vector; Represents the system state vector with respect to time. The first derivative; This is the system output vector; To control the input voltage; For external unknown wind disturbance moment; For the system matrix, For the input matrix, The perturbation matrix.

[0035] Furthermore, the aforementioned error state-space equation is specifically expressed as follows:

[0036] in, Represents the error state vector. For reference trajectory; Represents the error state vector with respect to time. The first derivative, Indicates the reference trajectory with respect to time The first derivative.

[0037] Furthermore, the linear quadratic regulator LQR is specifically represented as follows:

[0038] in, The optimal feedback gain matrix is ​​obtained by solving the Riccati equation; This indicates the first voltage control value.

[0039] Furthermore, the interference observer DOB is specifically represented as follows:

[0040] in, To interfere with the internal state of the observer; This indicates the internal state of the disturbance observer with respect to time. The first derivative; Here is the gain matrix of the observer to be designed; This is the estimated value of the original wind disturbance moment output by the interference observer.

[0041] Furthermore, to filter out high-frequency glitches in the original observation signal, the original output of the interfering observer is smoothed. The iterative equation for the first-order discrete low-pass filter is as follows:

[0042] in, For the present Estimated wind disturbance moment at time [time]. These are the filter coefficients. express The estimated wind disturbance moment at time.

[0043] Furthermore, a sliding mode controller (SMC) based on the saturated boundary layer thickness is introduced, specifically as follows:

[0044] in, This indicates the second voltage control value; Assign matrix for unmanned aerial vehicle system control The generalized pseudo-rebellion; This is the gain overdrive coefficient. This is the upper limit vector of the maximum effective driving angular acceleration of the UAV in the three-axis attitude channel; It is a saturation function. For sliding surface functions, Boundary layer thickness, The slope of the sliding surface. This is the system angular velocity tracking error vector; The moment of inertia matrix of the UAV body; This represents the estimated wind disturbance moment output by the interference observer.

[0045] Furthermore, the final control voltage is specifically expressed as follows:

[0046] in, These are the modal weighting coefficients; Indicates the final control voltage; Indicates the first voltage control value; This indicates the second voltage control value.

[0047] Furthermore, the modal weighting coefficients are specifically represented as follows:

[0048] in, and These are the set lower and upper threshold values ​​for interference suppression triggering, respectively; This is the dynamic amplitude envelope.

[0049] Furthermore, the dynamic amplitude envelope is specifically represented as follows:

[0050] in, For the present Estimated wind disturbance moment at time [time]. For smooth attenuation coefficient; This represents the dynamic amplitude envelope at time k. Indicates the previous The dynamic amplitude envelope at any given time.

[0051] For ease of understanding, the following detailed description of the proposed solution using a 6D UAV attitude control system, in conjunction with the accompanying drawings, is provided: This invention addresses the dynamic tracking problem of unmanned aerial vehicles (UAVs) in windy environments by designing a mode fusion switching controller. The controller not only quickly overcomes trajectory deviations caused by external wind disturbances but also enables high-precision tracking of the UAV under sudden wind attacks. It reduces energy consumption while maintaining tracking accuracy in calm or light wind conditions, achieving high-performance anti-disturbance and energy-saving control for the UAV system. To achieve the above effects, this invention adopts the following technical solution: Step (1): Perform dynamic modeling on the UAV attitude system to obtain the system state space equation and error state space equation; Step (2): Under windless or minimal wind disturbance conditions, design a linear quadratic regulator (LQR) to obtain the optimal feedback gain in order to minimize the system's reactive power loss. Step (3): In the case of unknown wind disturbance intensity, the disturbance observer DOB is introduced to estimate the wind disturbance signal as feedforward compensation, and combined with the sliding mode controller SMC with saturated boundary layer thickness, a strong robust disturbance rejection controller is designed. Step (4): Based on the real-time wind disturbance torque estimated by the interference observer, envelope detection is performed to construct an adaptive dynamic weighting mechanism, and the control voltages of the two modes, LQR and DOB-SMC, are smoothly weighted and fused. After physical limit voltage limiting, the final control voltage is generated to drive the UAV. Step (5): Verify the effectiveness of the designed control system through simulation experiments, so that the UAV can still control the steady-state tracking error within a very small range even in strong winds and continuous large-scale downward changes.

[0052] Figure 1 is a block diagram of the closed-loop tracking control system for UAVs based on LQR and DOB-SMC mode switching in an embodiment of the present invention. Figure 1 middle: The system first receives the externally provided UAV reference trajectory. This is compared with the actual state fed back by the drone's power system. The tracking error of the system is obtained by comparing the results at the summation points. .

[0053] Subsequently, the tracking error The voltage is fed into the LQR&SMC composite controller for parallel calculation. The LQR branch directly calculates the first voltage control value based on the error. Meanwhile, the interference observer collects the actual feedback status of the UAV in real time. With final control voltage Simultaneously calculate the estimated value of external wind disturbance. .

[0054] Furthermore, this wind disturbance estimate The signal is used as a feedforward compensation signal and is subtracted from the original solution signal of the SMC branch at the summation point to calculate the second voltage control value. .

[0055] Subsequently, the mode fusion switching unit synchronously receives the aforementioned first voltage control value. With the second voltage control value It adaptively allocates weights to both based on the internal wind disturbance envelope detection mechanism, fuses them, and outputs the final control voltage. .

[0056] Finally, the final control voltage With unknown external physical wind disturbance After the points of addition are superimposed, they are jointly input and act on the UAV's propulsion system; under the combined action of the two, the UAV's propulsion system evolves into its actual state. Subsequently, this actual state The feedback is sent to the system input and the interference observer, thus forming a complete full-state feedback closed loop.

[0057] Step (1) Perform dynamic modeling of the UAV attitude system, select appropriate state variables, and establish the state space equations as follows:

[0058] in, Represents the system state vector with respect to time. The first derivative, Let be the system state vector. For the system output vector, To control the input voltage, For external unknown wind disturbance moment; For the system matrix, For the input matrix, The perturbation effect matrix can be uniquely determined by the inherent parameters of the UAV.

[0059] Define the error state vector Substituting this into the above state-space equation and taking the derivative, we obtain the error state-space equation, which is as follows:

[0060] in, For dynamic reference trajectory, For this reference trajectory with respect to time The first derivative; Represents the error state vector with respect to time. The first derivative.

[0061] Furthermore, to ensure the effectiveness of the aforementioned linearized state-space equations, this embodiment makes reasonable simplifications based on the quasi-hovering and small-angle deflection states of the UAV: ​​air resistance and high-frequency unmodeled flexible dynamics are ignored, and only the influence of motor drive voltage and external wind disturbance is considered; it is assumed that the airframe is a rigid body, and the attitude angles of each axis are controlled within the effective range to ensure linear approximation, that is:

[0062] Indicates the axial attitude angle.

[0063] Step (2) Under windless or minimal wind disturbance conditions, design the optimal feedback gain based on the linear quadratic regulator (LQR) and derive the base control voltage in the energy-saving mode:

[0064] in, The optimal feedback gain matrix; Represents the error state vector; This indicates the first voltage control value.

[0065] Step (3) In an environment where the wind disturbance intensity is unknown, a disturbance observer (DOB) is introduced to estimate the wind disturbance torque in real time. A sliding mode controller (SMC) is designed based on the saturated boundary layer thickness, and a robust disturbance rejection control voltage is derived. Its specific expression is as follows:

[0066] in, Assign matrix to system control The generalized pseudo-rebellion; This is the gain overdrive coefficient. This is the upper limit vector of the maximum effective driving angle acceleration; It is a saturation function. For sliding surface functions, Boundary layer thickness; The slope of the sliding surface. This is the system angular velocity tracking error vector; The moment of inertia matrix of the UAV body; This indicates the second voltage control value; The update law for the estimated wind disturbance moment output by the disturbance observer is:

[0067] in, It is a state vector; To interfere with the internal state of the observer; This indicates the internal state of the disturbance observer with respect to time. The first derivative; Here is the gain matrix of the observer to be designed; This is the estimated value of the original wind disturbance moment output by the interference observer; For the system matrix, For the input matrix, The perturbation matrix; To control the input voltage.

[0068] To filter out high-frequency glitches in the original observation signal, the original output of the interfering observer is smoothed. The iterative equation for the first-order discrete low-pass filter is as follows:

[0069] in, For the present Estimated wind disturbance moment at time [time]. These are the filter coefficients; express The estimated wind disturbance moment at time.

[0070] Step (4) involves performing dynamic amplitude envelope detection on the estimated wind disturbance torque to construct an adaptive weighted smooth transition mechanism and calculate the final output voltage driving the UAV. Its specific expression is as follows:

[0071] in, Indicates the final control voltage; Indicates the first voltage control value; This indicates the second voltage control value; The modal weighting coefficients are expressed as follows:

[0072] in, and These are the set lower and upper threshold values ​​for interference suppression triggering, respectively; For the dynamic amplitude envelope, its update law is:

[0073] in, For the present Estimated wind disturbance moment at time [time]. For smooth attenuation coefficient; This represents the dynamic amplitude envelope at time k. express The dynamic amplitude envelope at any given time.

[0074] Step (5) By comparing simulation experiments, it is found that when the UAV is tracking a sinusoidal trajectory, even when faced with sudden wind disturbances, the system can still smoothly transition the control mode. Compared with traditional LQR and SMC control, the present invention not only overcomes the steady-state error deviation under strong winds, but also minimizes energy consumption, so that the tracking error is strictly controlled within a very small range, thus verifying the effectiveness of the control system designed in this invention.

[0075] The following provides a detailed description of each step in the technical solution of this invention: (I) Error dynamics modeling and state-space equation establishment.

[0076] The system is modeled using Newton-Euler dynamics. Assuming the aircraft is in a quasi-hovering, small-angle deflection state, and neglecting unmodeled higher-order flexible modes caused by high-frequency vibrations, the following three-axis second-order ordinary differential dynamic equations for the UAV are established: in, , and These represent the pitch acceleration, roll acceleration, and yaw acceleration of the UAV, respectively. , and These are the moments of inertia of the machine body along the corresponding principal axes; The length of the motor arm. This is the propeller lift coefficient. It is the inverse torque coefficient; , , and This refers to the input control voltage corresponding to the four drive motors; , and The unknown disturbance torque exerted by the complex external wind field on the three axes.

[0077] Construct a 6-dimensional system state vector by selecting the body's attitude angle and angular velocity:

[0078] , and These represent the pitch angle, roll angle, and yaw angle of the UAV, respectively. , and These represent the pitch rate, roll rate, and yaw rate of the UAV, respectively. , , , , and These represent the six state variables corresponding to the system state vector.

[0079] Can The expression is transformed into the following system of differential equations:

[0080] , , , , and This represents the above six state variables with respect to time. The first derivative.

[0081] Define control variables Disturbance The above system of differential equations can be written as state-space equations in the following form:

[0082] System state matrix Control input matrix Perturbation matrix By the length of the drone arm Tensile coefficient Anti-torque coefficient and the three-axis rotational inertia of the body , and The unique determination is as follows:

[0083]

[0084]

[0085] For the error state vector By differentiating and substituting into the above state-space equation, we can obtain the error state-space equation:

[0086] in, For reference trajectory; Represents the error state vector with respect to time. The first derivative, Indicates the reference trajectory with respect to time The first derivative.

[0087] (II) Design of LQR energy-saving controller in windless environment.

[0088] To facilitate achieving the dual goals of "energy saving in windless conditions and wind resistance in windy conditions," different sub-controllers are designed for windless and strong wind environments. For windless or minimal wind disturbance environments, a linear quadratic regulator (LQR) is used to penalize energy consumption. The system's quadratic performance indicators are as follows:

[0089] in, This represents the quadratic performance index of the system; Indicates the first voltage control value; This is the state error weight matrix, used to penalize the tracking error of the system; The input weight matrix is ​​used to penalize the consumption of control energy. (Superscript) This indicates transpose.

[0090] Solving for the minimum value of the above indices, we obtain the Riccati algebraic equation:

[0091] It is the only positive definite solution.

[0092] By solving for the unique positive definite solution The control voltage under LQR energy-saving control mode can be obtained as follows:

[0093] The above equation shows that when wind disturbance is weak... It can minimize the driving energy of the motor while ensuring the steady-state error of the system.

[0094] (III) Design of DOB-SMC anti-disturbance controller in strong wind environment.

[0095] To facilitate the subsequent control allocation of the underlying actuators and the design of the sliding mode controller, the input matrix will be... Decomposed into upper and lower block matrix form, i.e. The lower half This is the three-axis control allocation matrix of the UAV system, representing the direct control mapping relationship between the four motor control voltages and the three-axis angular acceleration.

[0096] Considering the physical limits of the airborne four-motor output, the upper limit of the maximum effective drive angular acceleration of the three axes is set. , , , These represent the upper limits of the maximum effective drive angular acceleration for the pitch, roll, and yaw axes, respectively. According to equation (3), to ensure that the angular acceleration of each attitude channel reaches its physical extreme value, the control voltage of the corresponding differential motor must reach the upper limit of the drive voltage. , This represents the upper limit of the physical drive voltage of a single-channel motor. Therefore, the specific expressions for each component of the upper limit vector of the maximum effective drive angular acceleration of the three axes are as follows:

[0097] After clarifying the underlying physical constraints, based on the error state space equation (6), the sliding mode controller (SMC) is designed, and the following sliding mode surface function is constructed:

[0098] Represents the error state vector. This represents the system angle tracking error components. For the system angular velocity tracking error components, The slope of the sliding surface.

[0099] To suppress chattering generated during high-frequency switching in traditional sliding mode control and avoid high-frequency impacts on the system actuators, a saturation function with a fixed boundary layer thickness is designed:

[0100] It is a saturation function. For sliding surface functions, This represents the boundary layer thickness.

[0101] Combined with the upper limit of maximum effective driving angle acceleration The SMC control term is obtained, and its expression is:

[0102] Indicates SMC control items; This is the gain overdrive coefficient; This is the upper limit vector of the maximum effective driving angular acceleration of the UAV in the three-axis attitude channel.

[0103] Combined with the external wind disturbance physical torque output by the interference observer Utilizing the three-axis rotational inertia matrix of the body Construct the DOB feedforward compensation term, whose expression is:

[0104] This represents the DOB feedforward compensation term.

[0105] The SMC control term is superimposed with the DOB feedforward compensation term to obtain the total control quantity:

[0106] It should be noted that the above The introduced three-axis angular acceleration control vector is not the control input for four motors. Therefore, it is necessary to control the allocation matrix. Generalized pseudo-rebellion The three-axis angular acceleration control vector Reverse mapping to four-motor control input voltage Finally, the total control input in the DOB-SMC mode is obtained, in the following form:

[0107] Furthermore, to demonstrate the effectiveness of the technical solution of this invention, a stability analysis was performed in this embodiment, as detailed below: Theorem 1: Under the premise that the rate of change of the time-varying wind disturbance is bounded by the unknown external environment, i.e. The interference observer constructed in this invention:

[0108] Able to configure the matrix appropriately , making Able to estimate accurately enough .

[0109] This represents the actual external wind disturbance moment. This represents the actual external wind disturbance moment with respect to time. The first derivative, This indicates the upper limit of the rate of change of the wind disturbance moment. The norm of a vector.

[0110] Proof: Combining the state-space equations Differentiate equation ② of (17) and substitute it into equation ① to obtain the dynamic equation of the disturbance estimate:

[0111] This indicates the estimated wind disturbance moment with respect to time. The first derivative.

[0112] Simplifying, we get:

[0113] This represents the perturbation estimation error vector of the disturbance observer.

[0114] Differentiating the definition of disturbance error, i.e. Substituting into the above equation, we obtain the first-order error differential equation:

[0115] This represents the perturbation estimation error vector with respect to time. The first derivative.

[0116] Let the initial time be Solving this differential equation yields the time-domain analytical solution for the perturbation estimation error:

[0117] Indicates the initial time. The perturbation estimation error vector at that time; Indicates the time variable of integration; Representing the integral variable The first derivative of the actual external wind disturbance moment at time t.

[0118] Taking the norm of both sides of equation (21) and scaling them, we get:

[0119]

[0120] when , At that time, we can obtain:

[0121] It represents the supremum in a mathematical sense.

[0122] The above derivation proves: By properly configuring the matrix The estimation results of the interference observer Able to estimate accurately enough This provides a precise and reliable physical torque compensation benchmark and a basis for control mode fusion switching for the disturbance rejection feedforward of composite control modes.

[0123] Theorem 2: Under the influence of unknown external wind disturbance, if the control gain is chosen as... The control law proposed in this invention can ensure that the system state converges to the sliding mode boundary layer within a finite time, and ultimately control the tracking error within a very small range. The reference trajectory angle components.

[0124] Proof: The system matrix , , Substitution And make , We can obtain:

[0125] This represents the system angle tracking error components. This represents the system angular velocity tracking error component. This represents the system angle tracking error component with respect to time. The first derivative, This represents the system's angular velocity tracking error component with respect to time. The first derivative.

[0126] Right now:

[0127] The sliding surface designed in this invention Differentiating along the system state trajectory, we get:

[0128] Represents the sliding surface function with respect to time The first derivative.

[0129] The total control quantity of the composite control design Substituting equation (16) into equation (26), we get:

[0130] Construct the Lyapunov energy function:

[0131] This represents the Lyapunov energy function.

[0132] right Find the time derivative, considering the system state outside the boundary layer, i.e. The operating condition. At this time, the saturation function... In the nonlinear saturation region, it degenerates into a sign function, therefore we can obtain:

[0133] Describe the Lyapunov energy function with respect to time. The first derivative.

[0134] exist Under these conditions, it can be seen from equation (29) that the system state will reach the slippery membrane boundary layer within a finite time. internal.

[0135] Once the system enters the boundary layer, it is combined with the definition of the sliding surface. Relationship with kinematics We can obtain:

[0136] Given the slope of the sliding surface Under these conditions, due to the input items Bounded, satisfied Equation (30) is considered as... For a first-order input system, solve the linear differential equation and take the norm of both sides. According to the input state stability property of a first-order linear system, the system attitude error satisfies the following inequality:

[0137] This represents the system angle tracking error component at the initial moment.

[0138] The above formula shows that: with time Transient exponential term affected by initial state It will asymptotically decay to zero. Therefore, the system angular error It is bounded and eventually converges to a value equal to the width of the boundary layer. and sliding mode parameters Within the determined residual error domain:

[0139] For angular velocity error As time goes by It can be deduced that its steady-state extreme upper bound is:

[0140] Therefore, error state It can eventually converge to the residual error range determined by the boundary layer width.

[0141] Furthermore, the effectiveness of the technical solution of the present invention is demonstrated through experiments below: This invention verifies the effectiveness of the designed controller through a series of simulation experiments. The simulation environment is Matlab / Simulink, and the simulation model is for the dynamic system of an unmanned aerial vehicle, namely:

[0142] Considering the digital processing characteristics of actual UAV flight control, the above system uses a fixed sampling step size in the simulation. The time interval (s) is discretized, and the total simulation verification time is set to 20s. During the simulation, the UAV system parameters are set as follows: boom length (meters), tensile strength coefficient (Newton-volt), counter-torque coefficient (Newton-meters per volt), three-axis rotational inertia (kg / m²) , the upper limit of the single-motor driving voltage (V).

[0143] The gain matrix of the disturbance observer is configured as follows: The controller parameters are set as follows: The LQR penalty matrix parameters are set as ; the SMC parameters are set as , , ; The parameters of the modal smooth weighted fusion unit are set as follows: , , 0.01, .

[0144] The initial system state is set , the initial values of the internal state and output of the disturbance observer are set , the initial control input is set , and the initial value of the disturbance envelope detector is set ; the tracking reference trajectory is set as follows: ; and an unknown-amplitude sinusoidal wind disturbance is introduced within the simulation interval:

[0145] represents the amplitude of the unknown sinusoidal wind disturbance torque.

[0146] Meanwhile, to ensure fair comparative evaluation, the aforementioned unknown wind disturbance sequence that is completely identical is injected into the system in the comparative tests targeting traditional LQR control, traditional SMC control, and the control system of the present invention.

[0147] Figure 2 to Figure 6 are comprehensive simulation diagrams of the control method proposed in the embodiment of the present invention under sudden unknown sinusoidal wind disturbances, respectively. The abscissa of all the aforementioned drawings is time, with the unit of s (second). Wherein: Figure 2 is a trajectory tracking diagram, the ordinate of which is the yaw angle , with the unit of rad; the black dashed line in the figure is the reference trajectory , the black solid line is the actual tracking trajectory , and the area between the two black vertical dotted lines is the DOB-SMC mode activation interval of the sudden strong wind disturbance.

[0148] Figure 3 is a tracking error diagram, the ordinate of which is the tracking error The unit is rad; the solid black line in the figure is the real-time tracking error curve, and the two horizontal black dotted lines above and below are the set maximum allowable error boundaries.

[0149] Figure 4 This is a wind disturbance estimation diagram, with the vertical axis representing the wind disturbance moment. The unit is N·m; the black dashed line in the figure represents the actual unknown wind disturbance moment, and the black solid line represents the disturbance moment estimated in real time by the interference observer of this invention. .

[0150] Figure 5 This is a control voltage graph, with the control voltage on the vertical axis. The unit is V; the black solid line in the figure is the actual drive voltage curve output to the motor.

[0151] Figure 6 This is an energy consumption graph, with the vertical axis representing the energy consumption integral. The black solid line in the figure represents the cumulative energy consumption curve of the system.

[0152] Figures 7 to 10 The figures above are comparative simulation diagrams of traditional SMC control under the same operating conditions in the embodiments of the present invention. The horizontal axis of all the above figures represents time, in seconds. Figure 7 This is a trajectory tracking graph, where the vertical axis represents the yaw angle. The unit is rad; the black dashed line in the figure is the reference trajectory, and the black solid line is the actual tracking trajectory.

[0153] Figure 8 This is a tracking error graph, where the vertical axis represents the tracking error. The unit is rad; the solid black line in the figure is the real-time tracking error curve, and the two horizontal black dotted lines above and below are the set maximum allowable error boundaries.

[0154] Figure 9 This is a control voltage graph, with the control voltage on the vertical axis. The unit is V; the black solid line in the figure is the actual drive voltage curve output to the motor.

[0155] Figure 10 This is an energy consumption graph, with the vertical axis representing the energy consumption integral. The black solid line in the figure represents the cumulative energy consumption curve of the system.

[0156] Figures 11 to 14 The figures above are comparative simulation diagrams of traditional LQR control under the same operating conditions in the embodiments of the present invention. The horizontal axis of all the above figures represents time, in seconds. Figure 11 This is a trajectory tracking graph, where the vertical axis represents the yaw angle. The unit is rad; the black dashed line in the figure is the reference trajectory, and the black solid line is the actual tracking trajectory.

[0157] Figure 12 This is a tracking error graph, where the vertical axis represents the tracking error. The unit is rad; the solid black line in the figure is the real-time tracking error curve, and the two horizontal black dotted lines above and below are the set maximum allowable error boundaries.

[0158] Figure 13 This is a control voltage graph, with the control voltage on the vertical axis. The unit is V; the black solid line in the figure is the actual drive voltage curve output to the motor.

[0159] Figure 14 This is an energy consumption graph, with the vertical axis representing the energy consumption integral. The black solid line in the figure represents the cumulative energy consumption curve of the system.

[0160] Simulation results: Simulation results are as follows Figures 2 to 6 , Figures 7 to 10 as well as Figures 11 to 14 As shown, all three control algorithms can achieve basic tracking of the target. However, the controller proposed in this invention not only overcomes the defect of large deviation of the tracking error from the boundary in strong winds under traditional LQR, but also strictly locks its steady-state error within a certain range. Within this range, it also reduces the high energy consumption of traditional pure SMC, thus better balancing high-precision dynamic tracking under extreme wind disturbances with green energy saving in windless environments, achieving high-performance UAV composite control.

[0161] In summary, this invention, based on the requirement of UAV tracking a continuously differentiable trajectory, obtains the error state space equation by performing dynamic modeling of the UAV attitude system. Based on the error state space equation, under conditions of minimal external wind disturbance, a linear quadratic regulator is introduced to obtain the optimal feedback gain, thereby obtaining a control voltage that minimizes system execution energy loss. Based on the error state space equation, under conditions of strong wind disturbance, an interference observer is introduced for feedforward compensation and combined with a boundary layer sliding mode controller to obtain an anti-disturbance control voltage that suppresses dynamic inertial hysteresis. Based on the wind disturbance torque estimated by the interference observer, envelope detection is performed, and a dual-threshold mapping adaptive mechanism is constructed to dynamically weight and fuse the two obtained control voltages, thereby achieving high-precision trajectory tracking of the UAV under strong wind disturbance and optimal energy consumption control under static and stable conditions.

[0162] Example 2 This embodiment discloses an anti-interference control system for unmanned aerial vehicles (UAVs) based on mode switching.

[0163] The UAV anti-interference control system based on mode switching includes: The system modeling module is configured to: perform dynamic modeling of the UAV attitude system and construct state-space equations, and then establish error state-space equations in combination with the reference trajectory; The LQR control module is configured to obtain a first voltage control value based on the error state space equation by combining the linear quadratic regulator LQR with the optimal feedback gain. The DOB-SMC disturbance rejection control module is configured to: based on the error state space equation, use the disturbance observer DOB to estimate the wind disturbance torque as a feedforward compensation term, and combine it with the sliding mode controller SMC that introduces the saturated boundary layer thickness to suppress the dynamic inertial hysteresis during continuous directional tracking, and obtain the second voltage control value. The dynamic amplitude envelope determination module is configured to determine the dynamic amplitude envelope based on the estimated wind disturbance moment. The dynamic weighting and fusion control module is configured to: calculate the modal weighting coefficients online based on the dynamic amplitude envelope, dynamically weight and fuse the first voltage control value and the second voltage control value to generate the final control voltage for controlling the UAV.

[0164] Those skilled in the art will understand that the modules or steps of the present invention described above can be implemented using general-purpose computer devices. Optionally, they can be implemented using computer-executable program code, thereby allowing them to be stored in a storage device for execution by a computer device, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. The present invention is not limited to any particular combination of hardware and software.

[0165] While the specific embodiments of the present invention have been described above in conjunction with the accompanying drawings, this is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art without creative effort based on the technical solutions of the present invention are still within the scope of protection of the present invention.

Claims

1. A method for UAV disturbance rejection control based on modal switching, characterized in that, Includes the following steps: Dynamic modeling of the UAV attitude system is performed and state-space equations are constructed. Then, error state-space equations are established in conjunction with the reference trajectory. Based on the aforementioned error state-space equation, the first voltage control value is obtained by combining the linear quadratic regulator LQR with the optimal feedback gain. Based on the aforementioned error state space equation, the wind disturbance torque estimate is obtained using the interference observer DOB as a feedforward compensation term. Combined with the sliding mode controller SMC that introduces saturated boundary layer thickness to suppress dynamic inertial hysteresis during continuous directional tracking, the second voltage control value is obtained. Determine the dynamic amplitude envelope based on the estimated wind disturbance moment; The modal weighting coefficients are calculated online based on the dynamic amplitude envelope. The first voltage control value and the second voltage control value are dynamically weighted and fused to generate the final control voltage for controlling the UAV. The final control voltage is expressed as follows: ; wherein, is a modal weight coefficient; represents a final control voltage; represents a first voltage control value; represents a second voltage control value; The modal weighting coefficients are specifically represented as follows: ; wherein, is a modal weight coefficient; and are a set lower and upper threshold of disturbance rejection trigger, respectively; is a dynamic amplitude envelope; The dynamic amplitude envelope is specifically represented as follows: ; wherein, is the wind disturbance torque estimate at the current k time instant, is a smoothing decay coefficient; denotes the dynamic amplitude envelope at the current k time instant; denotes the dynamic amplitude envelope at the previous time instant.

2. The UAV anti-disturbance control method based on mode switching as described in claim 1, characterized in that, The state-space equation is specifically expressed as follows: ; in, Represents the system state vector with respect to time. The first derivative, This is the system state vector; This is the system output vector; To control the input voltage; For external unknown wind disturbance moment; For the system matrix, For the input matrix, The perturbation matrix.

3. The UAV anti-disturbance control method based on mode switching as described in claim 2, characterized in that, The error state-space equation is specifically expressed as follows: ; in, Represents the error state vector. For reference trajectory; Represents the error state vector with respect to time. The first derivative, Indicates the reference trajectory with respect to time The first derivative.

4. The UAV anti-disturbance control method based on mode switching as described in claim 1, characterized in that, The linear quadratic regulator LQR is specifically represented as follows: ; in, The optimal feedback gain matrix; Represents the error state vector; This indicates the first voltage control value.

5. The UAV anti-disturbance control method based on mode switching as described in claim 1, characterized in that, The original wind disturbance moment estimate is obtained by estimating the original wind disturbance moment estimate using the Disturbance Observer (DOB), and then the original wind disturbance moment estimate is optimized to obtain the final wind disturbance moment estimate; where: The interference observer DOB is specifically represented as follows: ; in, To interfere with the internal state of the observer; This indicates the internal state of the disturbance observer with respect to time. The first derivative; Here is the gain matrix of the observer to be designed; This is the estimated value of the original wind disturbance moment output by the interference observer; Represents the system state vector; For the system matrix, For the input matrix, The perturbation matrix; To control the input voltage; The original wind disturbance moment estimate is optimized using a first-order discrete low-pass filter iterative equation, which is as follows: ; in, For the present Estimated wind disturbance moment at time [time]. These are the filter coefficients; Indicates the previous The estimated wind disturbance moment at time.

6. The UAV anti-disturbance control method based on mode switching as described in claim 1, characterized in that, The sliding mode controller (SMC) that introduces saturated boundary layer thickness is specifically represented as follows: ; in, Assign matrix for unmanned aerial vehicle system control The generalized pseudo-rebellion; This is the gain overdrive coefficient. This is the upper limit vector of the maximum effective driving angular acceleration of the UAV in the three-axis attitude channel; It is a saturation function. For sliding surface functions, Boundary layer thickness, The slope of the sliding surface. This is the system angular velocity tracking error vector; The moment of inertia matrix of the UAV body; This indicates the second voltage control value; This represents the estimated wind disturbance moment output by the interference observer.

7. A UAV anti-interference control system based on mode switching, characterized in that, include: The system modeling module is configured to: perform dynamic modeling of the UAV attitude system and construct state-space equations, and then establish error state-space equations in combination with the reference trajectory; The LQR control module is configured to obtain a first voltage control value based on the error state space equation by combining the linear quadratic regulator LQR with the optimal feedback gain. The DOB-SMC disturbance rejection control module is configured to: based on the error state space equation, use the disturbance observer DOB to estimate the wind disturbance torque as a feedforward compensation term, and combine it with the sliding mode controller SMC that introduces the saturated boundary layer thickness to suppress the dynamic inertial hysteresis during continuous directional tracking, and obtain the second voltage control value. The dynamic amplitude envelope determination module is configured to determine the dynamic amplitude envelope based on the estimated wind disturbance moment. The dynamic weighting and fusion control module is configured to: calculate the mode weighting coefficients online based on the dynamic amplitude envelope, dynamically weight and fuse the first voltage control value and the second voltage control value to generate the final control voltage, and control the UAV; The final control voltage is expressed as follows: ; in, These are the modal weighting coefficients; Indicates the final control voltage; Indicates the first voltage control value; This indicates the second voltage control value; The modal weighting coefficients are specifically represented as follows: ; in, These are the modal weighting coefficients; and These are the set lower and upper threshold values ​​for interference suppression triggering, respectively; For dynamic amplitude envelope; The dynamic amplitude envelope is specifically represented as follows: ; in, This is the estimated value of the wind disturbance moment at time k. For smooth attenuation coefficient; This represents the dynamic amplitude envelope at time k. Indicates the previous The dynamic amplitude envelope at any given time.

Citation Information

Patent Citations

  • Petrochemical pipe gallery intelligent monitoring system based on Internet of Things

    CN120406118A

  • Anti-wind-disturbance robust flight control method and system for quad-rotor unmanned aerial vehicle

    CN121300100A