A method for establishing an adaptive sliding mode control system for a quadrotor aircraft
Through the adaptive sliding mode control system, the gain of the switching term is adjusted in real time to compensate for the disturbance error, which solves the control problem of the quadcopter in a complex dynamic environment, improves the anti-disturbance capability and stability, and reduces the buffeting of the sliding mode control. question.
Patent Information
- Application Number
- CN202210890935.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-27
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2042-07-27
AI Technical Summary
The multi-variable, nonlinear, strong coupling and sensitivity of the quadcopter to external interference make it difficult to control, especially when the dynamic model is complex and the aerodynamic parameters are difficult to accurately measure, resulting in difficult attitude control and easy sliding mode control. A chattering problem occurs.
Design an adaptive sliding mode control system that estimates the disturbance linear expansion state observer in real time, changes the gain of the switching term according to the size of the disturbance to compensate for the disturbance estimation error, increases the gain value to resist large disturbances, and decreases the gain value to suppress small disturbances. Bounce during disturbance.
It improves the anti-disturbance capability during large disturbances, reduces controller buffeting during small disturbances, and improves the autonomous flight stability and reliability of the quadcopter.
Smart Images

Figure CN115185185B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of quadrotor aircraft control, and in particular relates to a method for establishing an adaptive sliding mode control system for a quadrotor aircraft. Background Art
[0002] In recent years, quadcopter drones have been widely used in military and civilian fields, such as military detection, disaster monitoring, agricultural services, surveying and photography, etc. Compared with traditional fixed-wing aircraft, quadcopter drones have the characteristics of vertical take-off and landing, stable hovering, easy to carry, and small size. However, the multivariable, nonlinear, strong coupling and sensitivity to interference of the quadcopter drone system itself make it difficult to control. It will also encounter air resistance and other external interference during flight. Therefore, various external interference problems need to be considered when designing the controller. In addition, the dynamic model of the quadcopter drone is complex, and some of its aerodynamic parameters are difficult to measure accurately. These unknown uncertainties further increase the difficulty of quadcopter drone controller design. Therefore, in order to achieve autonomous flight of the quadcopter drone and meet the high reliability flight requirements, the attitude control problem of the quadcopter drone is becoming more and more important. Summary of the invention
[0003] The purpose of the present invention is to address the deficiencies in the prior art and provide a method for establishing an adaptive sliding mode control system for a quadrotor aircraft. The method can change the gain of the switching item in real time according to the disturbance size to compensate for the disturbance estimation error, increase the gain value when the disturbance is large, improve the anti-disturbance ability, and reduce the switching item gain when the external disturbance is small, thereby suppressing the chattering problem of the sliding mode control without changing the controller effect.
[0004] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0005] A method for establishing an adaptive sliding mode control system for a quadrotor aircraft comprises the following steps:
[0006] Step 1, according to the attitude dynamics equation of the quadrotor aircraft, a linear extended state observer is designed for real-time estimation of the disturbance in the entire system;
[0007] Step 2, designing an adaptive sliding mode control system according to the attitude dynamics equation of the quadrotor aircraft and the designed linear extended state observer, wherein the control law part of the sliding mode control system includes a variable gain switching item that changes the gain of the switching item in real time according to the disturbance size to compensate for the disturbance estimation error;
[0008] Step 3: Perform stability analysis on the adaptive sliding mode control system of the quadrotor aircraft.
[0009] Furthermore, in step 1, a disturbance linear extended state observer is designed according to the quadrotor roll angle, pitch angle or yaw angle subsystem.
[0010] Furthermore, according to Newtonian mechanics and Newton-Lagrange equations, the virtual control input and attitude dynamics equations of the quadrotor are expressed as follows:
[0011]
[0012]
[0013] Among them, u 1 (t) represents the total thrust acting on the fuselage along the z-axis, u 2 (t),u 3 (t) and u 4 (t) represents the rolling, pitching and yaw torques respectively, l>0b>0, c>0 is the lift constant, Ω i (t), i = 1, 2, 3, 4 represent the angular velocities of the four rotors, φ(t), θ(t) and ψ(t) represent the angles of roll, pitch and yaw, respectively; and Represent the angular velocities of roll, pitch and yaw respectively; and Denote the angular acceleration of roll angle, pitch angle and yaw angle respectively, J xx Expressed as the moment of inertia about the x-axis, J yy Expressed as the moment of inertia about the y-axis, J zz Expressed as the moment of inertia about the z-axis, k i (i=4,5,6) is the drag coefficient, J r is the rotor inertia of the motor, Ω r is the disturbance generated by the quadrotor motor;
[0014] The roll angle subsystem control design is as follows: Let [x 1 (t),x 2 (t)] T =[φ(t),p(t)] T , rewrite the roll angle subsystem as:
[0015]
[0016] Among them, x 1 (t) is the rolling angle φ(t), x 2 (t) is the rolling angle velocity U 1 represents the control input, represents the concentrated uncertainty in the roll angle system, and considering the boundedness of the physical position, assuming that f 1 (t) is second-order continuously differentiable, is bounded, that is
[0017] Assumptions According to the above formula (3), the linear extended state observer designed for the roll angle subsystem is:
[0018]
[0019] Among them, α 1 >0,α 2 >0,α 3 >0 is the gain of the linear extended state observer, ω is the bandwidth of the linear extended state observer; Corresponding to z 1 (t), z 2 (t), z 3 The derivative of (t), They are Online estimation of Corresponding to x 1 (t), x 2 (t), f 1 (t), and the final observation error E 3 (t)=|f 1 (t)-z 3 (t)|<Δ, Δ is the preset value;
[0020] The method for designing a linear extended state observer based on the pitch angle and yaw angle subsystems is the same as above.
[0021] Furthermore, the design method of the control system in step 2 is:
[0022] The sliding surface of sliding mode control is selected as
[0023]
[0024] Among them, s 1 (t) represents the sliding surface, k represents a positive constant, e 1 (t) = x 1 (t)-x d,1 (t) represents the current state x 1 (t) and the reference state x d,1 (t), and x d,1 (t) A second-order continuously differentiable signal, Represents the first-order differential of the signal error;
[0025] The designed adaptive sliding mode control law is as follows:
[0026]
[0027] Among them, k s,1 >0, saturation function
[0028] In the formula, κ represents a positive number close to 0;
[0029] The variable gain switching items are:
[0030]
[0031] Where G(t)=sgn(|s 1 (t)|-ξ), d 1 ,d 2 ,ξ,δ are positive constants; if s 1 (t)>ξ, the interference is large, and D(t) rises rapidly to offset the large interference. 1 (t)<ξ, at this time D(t) decreases, which offsets the interference and also reduces the controller chattering;
[0032] The sliding mode control system obtained by the linear extended state observer designed according to the roll angle subsystem is:
[0033]
[0034] where k>0,k s,1 >0,z 3 (t) is the real-time estimate of the linear extended state observer.
[0035] Furthermore, in step 3, the stability analysis of the quadrotor sliding membrane control system is carried out with the help of Lyapunov stability theory, where the Lyapunov function is:
[0036]
[0037] Furthermore, the stability analysis of the synovial control system is as follows:
[0038] Find the time derivative of the Lyapunov function:
[0039]
[0040] Analysis 1: When |s 1 (t)|≥κ, then sat(s 1 (t)) = sgn(s 1 (t));
[0041] (1)Δ <D(t)
[0042]
[0043] (2)Δ≥D(t)
[0044]
[0045] Solving the above differential equation for V(t) is:
[0046]
[0047] when hour
[0048]
[0049] Analysis 2: When |s 1 (t)|<κ, then
[0050]
[0051] Solve the above differential equation for V(t):
[0052]
[0053] when
[0054]
[0055] Through the above analysis on stability, it can be concluded that the designed controller is stable and feasible.
[0056] Compared with the prior art, the beneficial effects of the present invention are as follows: the present invention can change the gain D(t) of the switching item in real time according to the disturbance size to compensate for the disturbance estimation error. 1 (t)>ξ, the external disturbance is large, D(t) rises rapidly to achieve the effect of offsetting the large disturbance; when the disturbance is large, the gain value is increased to improve the anti-disturbance ability; when the external disturbance is small, the switching item gain is reduced, at this time s 1 (t)<ξ, D(t) decreases, which suppresses the disturbance and also reduces the chattering problem of the controller. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 A quadrotor aircraft model built for an embodiment of the present invention;
[0058] Figure 2 It shows the tracking effects of different algorithms in the embodiments of the present invention in actual experiments;
[0059] Figure 3It shows the anti-disturbance effect of different algorithms in the embodiments of the present invention under step disturbance in actual experiments;
[0060] Figure 4 It shows the bypassing effect of different algorithms under strong wind disturbance. DETAILED DESCRIPTION
[0061] The technical solutions in the embodiments of the present invention will be described clearly and completely below in combination with the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0062] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.
[0063] The present invention will be further described below in conjunction with specific embodiments, but the present invention is not limited thereto.
[0064] The present invention provides a method for establishing an adaptive sliding mode control system of a quadrotor aircraft, comprising the following steps:
[0065] Step 1, according to the attitude dynamics equation of the quadrotor aircraft, a linear extended state observer is designed for real-time estimation of the disturbance in the entire system;
[0066] According to Newtonian mechanics and Newton-Lagrange equations, the virtual control input and attitude dynamics equations of the quadrotor can be expressed as follows:
[0067]
[0068]
[0069] Among them, u 1 (t) represents the total thrust acting on the fuselage along the z-axis, u 2 (t),u 3 (t) and u 4 (t) represents the rolling, pitching and yaw torques respectively, l>0b>0, c>0 is the lift constant, Ω i (t), i = 1, 2, 3, 4 represent the angular velocities of the four rotors, φ(t), θ(t) and ψ(t) represent the angles of roll, pitch and yaw, respectively; and Represent the angular velocities of roll, pitch and yaw respectively; and Denote the angular acceleration of roll angle, pitch angle and yaw angle respectively, Jxx Expressed as the moment of inertia about the x-axis, J yy Expressed as the moment of inertia about the y-axis, J zz Expressed as the moment of inertia about the z-axis, k i (i=4,5,6) is the drag coefficient, J r is the rotor inertia of the motor, Ω r is the disturbance generated by the quadrotor motor.
[0070] Since the controller designs of the three channels of the quadrotor roll angle, pitch angle and yaw angle are similar, here we only take the following roll angle subsystem as an example to design the controller:
[0071]
[0072] make The roll angle subsystem (3) can be rewritten as:
[0073]
[0074] Among them, x 1 (t) is the rolling angle φ(t), x 2 (t) is the rolling angle velocity U 1 (t) represents the control input, represents the concentrated uncertainty in the roll angle system. Considering the boundedness of the physical position, assuming f 1 (t) is second-order continuously differentiable, is bounded, that is
[0075] According to the roll angle subsystem of formula (4), the linear extended state observer can be designed as:
[0076]
[0077] Among them, α 1 >0,α 2 >0,α 3 >0 is the gain of the linear extended state observer, and ω is the bandwidth of the linear extended state observer. They are Online estimation of , where For z 1 (t), z 2 (t), z 3 The derivative of (t), Corresponding to x 1 (t), x 2 (t), f 1 The derivative of (t) can make the final observation error E 3(t)=|f 1 (t)-z 3 (t)|<Δ, Δ is a very small positive constant, and a value can be preset in advance.
[0078] Step 2, designing an adaptive sliding mode control system according to the attitude dynamics equation of the quadrotor aircraft and the designed linear extended state observer, wherein the control law part of the sliding mode control system includes a variable gain switching item that changes the gain of the switching item in real time according to the disturbance size to compensate for the disturbance estimation error;
[0079] In this step, the design of the sliding mode controller mainly includes the following:
[0080] The sliding surface of sliding mode control is selected as
[0081]
[0082] Among them, s 1 (t) represents the sliding surface, k represents a positive constant, e 1 (t) = x 1 (t)-x d,1 (t) represents the current state x 1 (t) and the reference state x d,1 (t), and x d,1 (t) is a second-order continuously differentiable signal, Represents the first-order differential of the signal error.
[0083] The designed adaptive sliding mode control law is as follows
[0084]
[0085] Among them, k s,1 >0, the saturation function is expressed as follows
[0086]
[0087] Among them, κ represents a positive number close to 0;
[0088] The variable gain switching items are:
[0089]
[0090] Where G(t)=sgn(|s 1 (t)|-ξ), d 1 ,d 2 ,ξ,δ are positive constants. If s 1 (t)>ξ, when the external disturbance of the system is large, D(t) will be 2d 1The rate of increase is fast to achieve the effect of suppressing large disturbances. When the gain of the controller increases, s 1 (t)<ξ, at this time, the external disturbance is relatively small for the system, and D(t) will be -2d 2 In this way, the real-time changing D(t) not only improves the self-disturbance rejection capability of the entire controller under large external disturbances, but also reduces the jitter problem caused by the large gain of the controller under small external disturbances.
[0091] According to the above analysis, by combining equations (4), (5), (6), (7), (8) and (9), we can design the adaptive sliding mode controller U 1 (t) is
[0092]
[0093] where k>0, is the reference signal x d,1 The second-order differential of (t), z 3 (t) is the real-time estimate of the external disturbance by the linear extended state observer.
[0094] Step 3: Perform stability analysis on the adaptive sliding mode control system of the quadrotor aircraft:
[0095] In this embodiment, the stability analysis of the sliding mode control system of the quadrotor aircraft is carried out with the help of Lyapunov stability theory, and the Lyapunov function is:
[0096]
[0097] Taking its time derivative we get:
[0098]
[0099] in, Indicates the state error e 1 The second derivative of (t), E 3 (t) Observation error of the linear extended state observer.
[0100] Analysis 1:
[0101] When|s 1 (t)|≥κ, it can be seen from equation (8) that sat(s 1 (t)) = sgn(s 1 (t));
[0102] (1)Δ <D(t)
[0103]
[0104] (2)Δ≥D(t)
[0105]
[0106] Solving the differential equation (14) yields:
[0107]
[0108] when hour
[0109]
[0110] Analysis 2: When |s 1 (t)|<κ, it can be seen from equation (8) that at this time
[0111]
[0112] Solving the differential equation (17) yields
[0113]
[0114] when
[0115]
[0116] Through the above analysis on stability, it can be concluded that the designed controller is stable and feasible.
[0117] In addition, the same controller design can also be used for the design of pitch and yaw angle control subsystems.
[0118]
[0119]
[0120] and
[0121]
[0122]
[0123] in, x d,2 (t),x d,3 (t) are the reference signals of the pitch angle subsystem and the yaw angle subsystem respectively; z 4 (t),z 5 (t) are the extended state observer real-time estimates of the total disturbances of the roll angle subsystem and the pitch angle subsystem, respectively.
[0124] In order to illustrate the beneficial effects of the present invention, the following Figure 1 The experimental platform shown in the figure includes a laptop computer with a host computer, a remote control, a signal receiver and a verification device for the attitude control of a quadrotor. A 200g weight is used to simulate step interference, and the wind blown by a dust gun is used to simulate strong wind interference. The maximum wind speed can reach 21m / s. By comparing with the PID and SMADRC algorithms, the comparison results are shown in the following figure Figure 2-Figure 4 The reference signal is given as ψ r (t)=0.
[0125] Figure 2 The figure shows the tracking effects of different algorithms in actual experiments. It can be seen that the algorithm proposed in this embodiment has an obvious tracking effect compared with PID. Figure 3 It shows the anti-disturbance effect of different algorithms under step disturbance in actual experiments. At this time, a step disturbance is added at t=5s, and the external disturbance is large. As the variable gain increases rapidly, the disturbance can be quickly suppressed in this embodiment. It can be clearly seen from the figure that the overshoot caused by the increase in disturbance is smaller than that of PID and SMADRC. After the disturbance suppression process is completed, the variable gain of the algorithm in this embodiment is slowly reduced, which weakens the chattering of the sliding mode control. Figure 3 It can be clearly seen that SMADRC has strong jitter, but the algorithm of this embodiment does not have this phenomenon. Figure 4 It shows the anti-disturbance effects of different algorithms under strong wind disturbance. It can also be clearly seen that the overshoot caused by strong wind disturbance of the algorithm of the present invention is smaller.
[0126] The above are only preferred embodiments of the present invention, and are not intended to limit the implementation methods and protection scope of the present invention. Those skilled in the art should be aware that all solutions obtained by equivalent substitutions and obvious changes made using the contents of the specification of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for establishing an adaptive sliding mode control system for a quadrotor aircraft, characterized in that: The steps include: Step 1: Based on the attitude dynamics equation of the quadrotor, a linear extended state observer is designed to estimate the disturbance in the entire system in real time. Step 2: Design an adaptive sliding mode control system based on the attitude dynamics equation of the quadrotor and the designed linear extended state observer. The control law of the sliding mode control system includes a variable gain switching term that changes the gain of the switching term in real time according to the disturbance magnitude to compensate for the disturbance estimation error. Step 3, perform stability analysis on the adaptive sliding mode control system of the quadrotor aircraft; Among them, the design method of the control system in step 2 is: The sliding surface of sliding mode control is selected as Where s1(t) represents the sliding surface, k represents a positive constant, and e1(t) = x1(t) - x d,1 (t) represents the current state x1(t) and the reference state x d,1 (t), and x d,1 (t) a second-order continuously differentiable signal, Represents the first-order differential of the signal error; The designed adaptive sliding mode control law is as follows: Among them, k s,1 >0, saturation function In the formula, κ represents a positive number close to 0; The variable gain switching items are: Where G(t) = sgn(|s1(t)| - ξ), d1, d2, ξ, and δ are positive constants. If s1(t) > ξ, the disturbance is large, and D(t) rises rapidly to offset the large disturbance. If s1(t) < ξ, D(t) decreases, offsetting the disturbance while also reducing controller chatter. The sliding mode control system obtained by the linear extended state observer designed according to the roll angle subsystem is: where k>0,k s,1 >0,z3(t) is the real-time estimate of the linear extended state observer.
2. The method for establishing an adaptive sliding mode control system for a quadrotor aircraft according to claim 1, characterized in that: In step 1, a disturbance linear extended state observer is designed based on the quadrotor roll angle, pitch angle or yaw angle subsystem.
3. The method for establishing an adaptive sliding mode control system for a quadrotor aircraft according to claim 2, characterized in that: According to Newtonian mechanics and Newton-Lagrange equations, the virtual control input and attitude dynamics equations of the quadrotor aircraft are expressed as follows: Where u1(t) represents the total thrust acting on the fuselage along the z-axis, u2(t), u3(t), and u4(t) represent the roll, pitch, and yaw torques, respectively. l>0, b>0, c>0 is the lift constant, and Ω i (t), i = 1, 2, 3, 4 represent the angular velocities of the four rotors, φ(t), θ(t), and ψ(t) represent the angles of roll, pitch, and yaw, respectively; and Denote the angular velocities of roll, pitch, and yaw, respectively; and Denote the angular acceleration of roll angle, pitch angle and yaw angle respectively, J xx Expressed as the moment of inertia about the x-axis, J yy Expressed as the moment of inertia about the y-axis, J zz Expressed as the moment of inertia about the z axis, k i is the drag coefficient, where i = 4, 5, 6, J r is the rotor inertia of the motor, Ω r is the disturbance generated by the quadrotor motor; The roll angle subsystem control design is as follows: Let [x1(t),x2(t)] T =[φ(t),p(t)] T , rewrite the roll angle subsystem as: Where x1(t) is the roll angle φ(t), and x2(t) is the roll angular velocity U1 represents the control input, represents the concentrated uncertainty in the roll angle system, and considering the boundedness of the physical position, assuming that f1(t) is second-order continuously differentiable, is bounded, that is Assumptions The linear extended state observer designed according to the roll angle subsystem of formula (3) is: Among them, α1>0, α2>0, α3>0 are the gains of the linear extended state observer, and ω is the bandwidth of the linear extended state observer; They correspond to the derivatives of z1(t), z2(t), and z3(t), respectively. They are Online estimation of They correspond to the derivatives of x1(t), x2(t), and f1(t), respectively, and make the final observation error E(t) = |f1(t)-z3(t)| < Δ, where Δ is a preset value; The method for designing the linear extended state observer based on the pitch angle and yaw angle subsystems is the same as above.
4. The method for establishing an adaptive sliding mode control system for a quadrotor aircraft according to claim 1, wherein: In step 3, the stability of the quadrotor sliding mode control system is analyzed with the help of Lyapunov stability theory, where the Lyapunov function is:
5. The method for establishing an adaptive sliding mode control system for a quadrotor aircraft according to claim 4, characterized in that: The stability analysis of the sliding mode control system is as follows: Find the time derivative of the Lyapunov function: Analysis 1: When |s1(t)|≥κ, sat(s1(t))=sgn(s1(t)); (1)Δ <D(t) (2)Δ≥D(t) Solving the above differential equation for V(t) is: when hour Analysis 2: When |s1(t)|<κ, then Solve the above differential equation for V(t): when Through the above analysis on stability, it can be concluded that the designed controller is stable and feasible.
Citation Information
Cited By
Intelligent control method and system for attitude of quad-rotor unmanned aerial vehicle
CN122488751A
