A wind measurement method for a quadrotor drone based on an unknown input observer

By establishing the dynamics and state space equations of the quad-rotor UAV, designing an unknown input observer, and using Lyapunov stability theory, the wind speed and wind direction measurement without external devices was achieved, solving the problem of the quad-rotor UAV operating at high altitudes. The accuracy of wind speed and direction measurement and the impact on flight performance are addressed, and efficient and accurate measurement results are obtained.

CN116338235BActive Publication Date: 2024-08-27EAST CHINA UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310246228.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-14
Publication Date
2024-08-27
Estimated Expiration
2043-03-14

AI Technical Summary

Technical Problem

In the existing technology, when measuring wind speed and wind direction at higher altitudes, a quad-rotor UAV needs to carry an external measurement device, which affects flight performance and results in inaccurate measurements. Moreover, the existing method is complex to operate and difficult to achieve without external devices. precise measurement.

Method used

By establishing the dynamic equations and state space equations of the quad-rotor UAV, we design an unknown input observer, use Lyapunov stability theory and linear matrix inequality technology to verify the stability of the observer, and calculate the wind speed and wind direction to achieve seamless operation. Wind speed and direction measurements with external devices.

Benefits of technology

The quadcopter UAV is able to accurately measure the wind speed and wind direction at its location without carrying any external measurement device. It has good robustness, avoids parameter correction, and simplifies the operation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116338235B
    Figure CN116338235B
Patent Text Reader

Abstract

The invention discloses a method for measuring wind of a quadrotor unmanned aerial vehicle based on an unknown input observer, which belongs to the technical field of wind measurement and solves the problem of how to design an unknown input observer to measure the state of a quadrotor unmanned aerial vehicle, thereby realizing the measurement of wind speed and wind direction at the location of the quadrotor unmanned aerial vehicle without carrying any external measuring device. The invention establishes a state space equation of the quadrotor unmanned aerial vehicle and an unknown input observer, and gives flight parameters required for measuring wind speed and wind direction at the location of the quadrotor unmanned aerial vehicle. Finally, the flight parameters are brought into the wind speed and wind direction measurement equation for calculation, and the accuracy of the unknown input observer of the quadrotor unmanned aerial vehicle is verified based on the Lyapunov stability theory and the linear matrix inequality technology. The method of the invention has good robustness, and the flight parameters measured are very accurate, and no parameter correction is required.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of wind measurement, and in particular relates to a wind measurement method for a quad-rotor unmanned aerial vehicle based on an unknown input observer. Background Art

[0002] As we all know, wind affects many aspects of our lives: it has a profound impact on industrial and agricultural production, transportation, environment, construction, etc., so wind measurement is becoming more and more important. At present, the measurement of wind, that is, the measurement of wind speed and wind direction, is generally measured by special wind measuring devices such as anemometers and wind meters. However, when it is necessary to measure the wind speed and wind direction at a higher altitude, it will be difficult to measure with a fixed wind measuring device. Therefore, a situation has emerged where a quadcopter is loaded with an external wind measuring element, which is carried to a designated location by the drone, and the wind at the location of the quadcopter is measured based on the measuring element.

[0003] Researchers installed external measuring components on quad-rotor drones to obtain the data needed for wind measurement, thereby achieving the measurement of wind speed and direction. What's more, instead of directly loading anemometers, wind meters and other wind measuring devices on quad-rotor drones, they measured wind speed and direction by loading indirect devices and combining them with other technologies.

[0004] However, as a small aircraft, the flight capability of the quadcopter is relatively limited. When it is loaded with external equipment, it will affect the normal flight of the quadcopter and even cause the quadcopter to be unable to fly normally. There are certain limitations and uncertainties.

[0005] In the prior art, the Chinese invention patent application "A method for measuring wind in a hovering state of a drone" with application publication number CN110134134A and application publication date August 16, 2019, makes the drone hover in the air; constructs quaternions, obtains coordinate transformation matrix, calculates the size of the three attitude angles of the drone; then obtains the normal vector of the plane where the drone is located by multiplying the normal vector of the horizontal plane with the coordinate transformation matrix, calculates the inclination angle between the drone plane and the horizontal plane in the hovering state, and measures the wind speed and wind direction by the ultrasonic sensor in the drone, corrects it, and obtains the actual wind speed and wind direction. The above technical solution has the following disadvantages: 1) The four-rotor drone must maintain a hovering state at the designated wind measurement location to measure the wind speed and wind direction, which is not random and universal; 2) The four-rotor drone must carry an ultrasonic sensor to measure the wind speed and wind direction, and correct the calculation results, without considering the influence of the rotor airflow on the measurement results of the airborne equipment when the four-rotor drone is in flight.

[0006] The Chinese invention patent application "A low-altitude mobile wind speed measurement method based on a quad-rotor drone" with application publication number CN112986612A and application publication date June 18, 2021, is that after the quad-rotor drone takes off, it flies or hovers in the air; the drone obtains flight parameters through airborne equipment and transmits them to the ground receiving system by wireless transmission; then the ground receiving system uses a program to solve the flight parameters to obtain the position of the drone, and according to the predetermined correspondence between the flight parameters and the wind speed, the wind speed and wind direction at the location are obtained in combination with the flight parameters. The above technical solution has the following disadvantages: 1) When the quad-rotor drone is flying or hovering in the air, the flight parameters of the quad-rotor drone need to be measured by the airborne equipment and transmitted to the ground receiving system by wireless transmission. The airborne equipment will affect the normal flight of the quad-rotor drone; 2) When the airborne equipment of the quad-rotor drone is flying, the airborne equipment will be greatly affected by the airflow of the quad-rotor drone rotor, and it is difficult to correct the measurement data.

[0007] The Chinese invention patent application "A UAV wind measurement method and device based on an improved triangular vector model" with application publication number CN114778887A and application publication date July 22, 2022 sets a polygonal route; the UAV flies a circle along the polygonal route at a uniform and stable speed, and calculates the flight parameters of each edge of the UAV along the polygonal route; based on the flight parameters and the triangular vector model, the heading angle error and airspeed error are calculated; the UAV continues to fly, and based on the real-time collected flight parameters, heading angle error, airspeed error and triangular vector model, the true wind speed and direction are obtained. The above technical solution has the following disadvantages: 1) The quadrotor drone requires onboard equipment to measure flight parameters, which will affect the normal flight of the quadrotor drone. The rotor airflow of the quadrotor drone may also affect the measurement results of the recording equipment, resulting in inaccurate results; 2) The quadrotor drone needs to fly a circle along the specified polygonal route at a uniform speed and calculate the flight parameters of the drone along each side of the polygonal route, including the average track angle, average ground speed, average heading angle, etc. It can be seen that there are many parameters to be measured and the operation is relatively complicated. Summary of the invention

[0008] The technical problem to be solved by the present invention is how to design an unknown input observer to measure the state of a quadrotor drone, thereby realizing the measurement of the wind speed and wind direction at the location of the quadrotor drone without carrying any external measuring device.

[0009] The present invention solves the above technical problems through the following technical solutions:

[0010] A method for measuring wind using a quadrotor drone based on an unknown input observer comprises the following steps:

[0011] S1. Establish the dynamic equation of the quadrotor drone based on the Lagrangian method;

[0012] S2. Considering the wind resistance at the location of the quadrotor drone, the state space equation of the quadrotor drone is established;

[0013] S3, establish an unknown input observer for the quadrotor drone;

[0014] S4, using Lyapunov stability theory and linear matrix inequality technology to verify the stability of the established unknown input observer;

[0015] S5. Calculate the wind speed and wind direction to obtain the wind speed and wind direction at the location of the quadrotor drone.

[0016] Furthermore, the dynamic equation of the quadrotor drone established according to the Lagrangian method described in step S1 is as follows:

[0017]

[0018] Where m represents the mass of the quadrotor drone; x, y, and z represent the motion vectors of the quadrotor drone along the corresponding axes in the body coordinate system; J φ , J θ , J ψ is the moment of inertia corresponding to the attitude angle; φ, θ, ψ are the three defined attitude angles; k i , i=1,2,3,4,5,6 represents the drag coefficient; g represents the acceleration due to gravity, J T represents the inertia coefficient of the rotor in the quadrotor drone; ω=ω1-ω2+ω3-ω4 represents the angular velocity difference between the rotors; ω i , i = 1, 2, 3, 4 represents the angular velocity of the corresponding four rotors; u z 、u φ 、u θ 、u ψ represents control input;

[0019] The control input is related to the angular velocity of the rotor and is defined as follows:

[0020]

[0021] Where b is the coefficient from the square of the rotor angular velocity to the lift; l is the distance from the center of mass of the quadrotor drone to the center of the rotor; d is the coefficient from the square of the rotor angular velocity to the torque;

[0022] Substituting formula (2) into formula (1), we get:

[0023]

[0024] Among them, the parameters Represent the first-order derivatives of x, y, z, φ, θ, ψ respectively, and the parameters They represent the second-order derivatives of x, y, z, φ, θ, and ψ respectively.

[0025] Furthermore, the state space equation of the quadrotor drone is established by considering the wind resistance at the location of the quadrotor drone in step S2 as follows:

[0026]

[0027] Where x(t)∈R n , Indicates the system status; is the first-order derivative of x(t); u(t)∈R m , represents the system control input; y(t)∈R l ,y(t)=[θ φ ψ] T represents the system output; f(t)∈R q represents resistance; d(t)∈R P Represents the external interference to the system; g(x(t),u(t))∈R n represents the nonlinear part of the system and satisfies the Prishitz condition, that is:

[0028]

[0029] Where δ>0 is the Lipschitz constant; A∈R n×n Represents the system state matrix; B∈R n×m Represents the system input matrix; C∈R l×n Represents the system output matrix; D∈R n×xp , F∈R n×q Represent the known system interference and windage input matrix respectively.

[0030] Furthermore, the equation for establishing the unknown input observer of the quadrotor drone described in step S3 is as follows:

[0031]

[0032] The observer gain matrix is ​​designed as follows:

[0033]

[0034] Where z(t)∈R n represents the observer state, Respectively represent x(t)∈R n , y(t)∈R l , g(x(t),u(t))∈Rn , f(t)∈R q Observation value; N∈R n×n , L∈R n×p ,T∈R n×n , H∈R n×p , G∈R q×p is the observer gain matrix to be designed, is the first-order derivative of z(t), Expressed as The first derivative of .

[0035] Furthermore, the method described in step S4 for verifying the stability of the established unknown input observer using Lyapunov stability theory and linear matrix inequality technology is as follows:

[0036] The state estimation error is defined as e x , output estimation error e y and fault estimation error e f as follows:

[0037]

[0038] According to formula (4), formula (6) and formula (8), we can get:

[0039]

[0040] Substituting formula (7) into formula (9) yields:

[0041]

[0042] Taking the first-order derivative of the resistance estimation error, we get:

[0043]

[0044] make The derivatives of the error estimates of formula (10) and formula (11) can be transformed into the following formula:

[0045]

[0046] in,

[0047] In order to suppress the impact of unknown inputs, the performance indicators are designed so that the following equation holds true:

[0048]

[0049] because Therefore, when formula (13) holds true, robust reconstruction can be achieved;

[0050] Select the Lyapunov function as shown below:

[0051]

[0052] And taking its first-order derivative we get:

[0053]

[0054] make Transform the above formula into the following form:

[0055]

[0056] make Then we have:

[0057]

[0058] in, matrix * represents the symmetric elements at corresponding positions in the symmetric matrix;

[0059] When Γ<0 holds, we can get J<0, that is, the dynamic error system is stable, that is, Established, using Schur's complement lemma, the above formula Γ can be transformed into the following form:

[0060]

[0061] The design of the unknown input observer can be completed by solving the relevant parameters using LMI in the Simulink / Matlab toolbox;

[0062] For a nonlinear system and an unknown input observer, if there exists a positive definite matrix P and a constant γ>0 such that the following LMI holds:

[0063]

[0064] in, Then the system state estimation error is eventually uniformly bounded and stable.

[0065] Furthermore, in step S5, the wind speed and wind direction are calculated to obtain the wind speed and wind direction at the location of the quadrotor drone as follows:

[0066] (1) Wind speed is calculated as follows:

[0067] According to the energy conservation of moving fluid, the wind speed estimation formula is as follows:

[0068]

[0069] Where v represents the wind speed at the location of the drone in m / s, D represents the drag acting on the drone in N, and ρ represents the air density at the measurement point in kg / m 3 ; A(ψ) represents the area of ​​the drone exposed to the wind direction, which is related to ψ, and the unit is m 2 ; C D (ψ) is the drag coefficient of the UAV, which is also related to ψ; ψ is the yaw angle of the UAV and is related to the roll angle θ and pitch angle φ of the UAV;

[0070] The relationship between the tilt angle, roll angle and pitch angle of the drone is as follows:

[0071]

[0072] in, and is the identity matrix perpendicular to the xy plane;

[0073] The relationship between the drag D acting on the drone and the flight parameters of the quadcopter drone is as follows:

[0074] From the position dynamics equation of the quadrotor drone: In the formula, the letter e in the upper right corner of v,G represents that this is a vector expressed in the earth coordinate system; the letter b in the upper right corner of F represents that this is a vector expressed in the body coordinate system;

[0075] Since the pulling force is generated by the propeller and is fixed to the quadcopter, it is expressed in the body coordinate system; the rotation matrix of any vector from the body coordinate system to the earth coordinate system is expressed as:

[0076]

[0077] The equation Dividing both sides by mass m, we get:

[0078]

[0079] In order to facilitate research, all of them are converted to the earth coordinate system, that is, multiply the rotation matrix R on the left to obtain:

[0080]

[0081] but:

[0082]

[0083] After considering the resistance of the quadcopter:

[0084]

[0085] Among them, Dx, Dy, and Dz represent the resistance on the x, y, and z coordinate axes;

[0086]

[0087] From the above formula, Dx, Dy, and Dz are obtained as follows:

[0088]

[0089] In actual situations, Dz can be ignored, so:

[0090]

[0091] When obtained back:

[0092]

[0093] The wind speed can be obtained by the wind speed calculation formula;

[0094] (2) Wind direction is calculated as follows:

[0095] First, calculate the direction and vector of the quadcopter The angle λ between the projections on the xy plane is as follows:

[0096]

[0097] Where ψ represents the yaw angle, Respectively represent the projection of the cross product on the x-axis and y-axis; secondly, determine whether the projection of the cross product on the xy plane is on the left or right side of the quadrotor, as follows:

[0098]

[0099] Finally, the wind direction is obtained as follows:

[0100]

[0101] in, represents the projection of the cross product onto the xy plane.

[0102] The advantages of the present invention are:

[0103] The present invention establishes a state space equation of a quad-rotor unmanned aerial vehicle, considers the influence of wind resistance at the location of the quad-rotor unmanned aerial vehicle, establishes a suitable unknown input observer of the quad-rotor unmanned aerial vehicle and gives an equation, gives flight parameters required for measuring the wind speed and direction at the location of the quad-rotor unmanned aerial vehicle, finally brings the flight parameters into the wind speed and direction measurement equation for calculation, and proves the accuracy of the unknown input observer of the quad-rotor unmanned aerial vehicle based on Lyapunov stability theory and linear matrix inequality technology; the quad-rotor unmanned aerial vehicle is implemented to measure the state of the quad-rotor unmanned aerial vehicle according to the unknown input observer without carrying any external measurement device, thereby measuring the wind speed and wind direction at the location of the quad-rotor unmanned aerial vehicle; the method of the present invention has good robustness, and the flight parameters measured are very accurate, and there is no need to correct the parameters. BRIEF DESCRIPTION OF THE DRAWINGS

[0104] Figure 1 is a flow chart of a method for measuring wind using a quadrotor drone based on an unknown input observer according to a first embodiment of the present invention;

[0105] Figure 2 This is a diagram of the attitude angle analysis of a quad-rotor unmanned aircraft according to the quad-rotor unmanned aircraft wind measurement method based on an unknown input observer according to the first embodiment of the present invention;

[0106] Figure 3 is a UAV coordinate curve under an unknown input observer of a quadrotor UAV wind measurement method based on an unknown input observer according to the first embodiment of the present invention;

[0107] Figure 4 It is a UAV attitude angle curve under an unknown input observer of a quadrotor UAV wind measurement method based on an unknown input observer according to the first embodiment of the present invention. DETAILED DESCRIPTION

[0108] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in combination with the embodiments of the present invention. Obviously, the described embodiments are 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.

[0109] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and specific embodiments:

[0110] Embodiment 1

[0111] like Figure 1 and Figure 2 As shown, a method for measuring wind speed using a quadrotor drone based on an unknown input observer comprises the following steps:

[0112] 1. Establish the dynamic equation of the quadrotor drone

[0113] According to the Lagrangian method, the dynamic equation of the quadrotor drone is as follows:

[0114]

[0115] Where m represents the mass of the quadrotor drone; x, y, and z represent the motion vectors of the quadrotor drone along the corresponding axes in the body coordinate system; J φ , J θ , J ψ is the moment of inertia corresponding to the attitude angle; φ, θ, ψ are the three defined attitude angles; k i , i=1,2,3,4,5,6 represents the drag coefficient; g represents the acceleration due to gravity, J T represents the inertia coefficient of the rotor in the quadrotor drone; ω=ω1-ω2+ω3-ω4 represents the angular velocity difference between the rotors; ω i , i = 1, 2, 3, 4 represents the angular velocity of the corresponding four rotors; u z 、u φ 、u θ 、u ψ Indicates control input.

[0116] The control input is related to the angular velocity of the rotor and is defined as follows:

[0117]

[0118] Among them, b represents the coefficient from the square of the rotor angular velocity to lift; l is the distance from the center of mass of the quadrotor drone to the center point of the rotor; d represents the coefficient from the square of the rotor angular velocity to torque.

[0119] Substituting formula (2) into formula (1), we get:

[0120]

[0121] Among them, the parameters Represent the first-order derivatives of x, y, z, φ, θ, ψ respectively, and the parameters They represent the second-order derivatives of x, y, z, φ, θ, and ψ respectively.

[0122] 2. Establish the state space equation of the quadrotor drone

[0123] The state space equation of a quadrotor drone considering the wind resistance at its location is as follows:

[0124]

[0125] Where x(t)∈Rn , Indicates the system status; is the first-order derivative of x(t); u(t)∈R m , represents the system control input; y(t)∈R l , y(t)=[θφψ] T represents the system output; f(t)∈R q represents resistance; d(t)∈R P Represents the external interference to the system; g(x(t),u(t))∈R n represents the nonlinear part of the system and satisfies the Prishitz condition, that is:

[0126]

[0127] Where δ>0 is the Lipschitz constant; A∈R n×n Represents the system state matrix; B∈R n×m Represents the system input matrix; C∈R l×n Represents the system output matrix; D∈R n×xp , F∈R n×q Represent the known system interference and windage input matrix respectively.

[0128] 3. Build a quadrotor drone unknown input observer

[0129] The unknown input observer model of the quadrotor drone under wind resistance is established as follows:

[0130]

[0131] Where z(t)∈R n represents the observer state, Respectively represent x(t)∈R n , y(t)∈R l , g(x(t),u(t))∈R n , f(t)∈R q Observation value; N∈R n×n , L∈R n×p ,T∈R n×n , H∈R n×p , G∈R q×p is the observer gain matrix to be designed, is the first-order derivative of z(t), Expressed as The first derivative of .

[0132] The observer gain matrix is ​​designed as follows:

[0133]

[0134] 4. Use Lyapunov stability theory and linear matrix inequality technology to verify the stability of the established unknown input observer

[0135] The state estimation error is defined as e x , output estimation error e y and fault estimation error e f as follows:

[0136]

[0137] According to formula (4), formula (6) and formula (8), we can get:

[0138]

[0139] Substituting formula (7) into formula (9) yields:

[0140]

[0141] Taking the first-order derivative of the resistance estimation error, we get:

[0142]

[0143] make The derivatives of the error estimates of formula (10) and formula (11) can be transformed into the following formula:

[0144]

[0145] in,

[0146] In order to suppress the impact of unknown inputs, the performance indicators are designed so that the following equation holds true:

[0147]

[0148] because Therefore, when formula (13) holds true, robust reconstruction can be achieved.

[0149] Select the Lyapunov function as shown below:

[0150]

[0151] And taking its first-order derivative we get:

[0152]

[0153] make Transform the above formula into the following form:

[0154]

[0155] make Then we have:

[0156]

[0157] in, matrix * represents the symmetric elements at corresponding positions in the symmetric matrix.

[0158] When Γ<0 holds, we can get J<0, that is, the dynamic error system is stable, that is, Established, using Schur's complement lemma, the above formula Γ can be transformed into the following form:

[0159]

[0160] The design of the unknown input observer can be completed after solving the relevant parameters using LMI in the Simulink / Matlab toolbox.

[0161] For a nonlinear system and an unknown input observer, if there exists a positive definite matrix P and a constant γ>0 such that the following LMI holds:

[0162]

[0163] in, Then the system state estimation error is eventually uniformly bounded and stable.

[0164] 5. Calculate wind speed

[0165] According to the energy conservation of moving fluid, the wind speed estimation formula is as follows:

[0166]

[0167] Where v represents the wind speed at the location of the drone in m / s, D represents the drag acting on the drone in N, and ρ represents the air density at the measurement point in kg / m 3 ; A(ψ) represents the area of ​​the drone exposed to the wind direction, which is related to ψ, and the unit is m 2 ; C D (ψ) is the drag coefficient of the UAV, which is also related to ψ; ψ is the yaw angle of the UAV and is related to the roll angle θ and pitch angle φ of the UAV;

[0168] The relationship between the tilt angle, roll angle and pitch angle of the drone is as follows:

[0169]

[0170] in, and is the identity matrix perpendicular to the xy plane.

[0171] The relationship between the drag D acting on the drone and the flight parameters of the quadcopter drone is as follows:

[0172] From the position dynamics equation of the quadrotor drone: In the formula, the letter e in the upper right corner of v,G represents that this is a vector expressed in the earth coordinate system; the letter b in the upper right corner of F represents that this is a vector expressed in the body coordinate system. Since the pulling force is generated by the propeller and is fixed to the quadcopter, it is expressed in the body coordinate system. The rotation matrix of any vector from the body coordinate system to the earth coordinate system is expressed as:

[0173]

[0174] The equation Dividing both sides by mass m, we get:

[0175]

[0176] In order to facilitate research, all of them are converted to the earth coordinate system, that is, multiply the rotation matrix R on the left to obtain:

[0177]

[0178] but:

[0179]

[0180] After considering the resistance of the quadcopter:

[0181]

[0182] Wherein, Dx, Dy, and Dz represent the resistance on the x, y, and z coordinate axes.

[0183]

[0184] From the above formula, Dx, Dy, and Dz are obtained as follows:

[0185]

[0186] In actual situations, Dz can be ignored, so:

[0187]

[0188] When obtained back:

[0189]

[0190] The wind speed can be obtained by the wind speed calculation formula.

[0191] 6. Calculate wind direction

[0192] First, calculate the direction and vector of the quadcopter The angle λ between the projections on the xy plane is as follows:

[0193]

[0194] Where ψ represents the yaw angle, Respectively represent the projection of the cross product on the x-axis and y-axis;

[0195] Secondly, decide whether the projection of the cross product on the xy plane is on the left or right side of the quadrotor, as follows:

[0196]

[0197] Finally, the wind direction is obtained as follows:

[0198]

[0199] 7. Test verification

[0200] Select the parameters m = 2.0 kg, l = 0.2 m; J φ =J θ =1.25N·s 2 / rad; J ψ =2.2N·s 2 / rad; b = 2N·s 2 ; J T =1N·s 2 / rad; d = 5N·m·s 2 ;k1=k2=k3=0.01N·s / m; k4=k5=k6=0.012N·s / m; g=9.8m / s 2 According to the physical parameters of the drone itself set above, substitute them into the unknown input observer established for the quadcopter drone, find the values ​​of the corresponding parameters, and simulate to obtain the flight parameters of the quadcopter drone.

[0201] from Figure 3 It can be seen that the coordinate parameters of the quadrotor drone measured by the unknown input observer designed by the present invention are relatively accurate.

[0202] from Figure 4 It can be seen that the attitude angle of the quadrotor drone measured by the unknown input observer designed by the present invention is also relatively accurate.

[0203] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for measuring wind using a quadrotor drone based on an unknown input observer, characterized in that: The following steps are involved: S1. The dynamic equation of the quadrotor drone is established according to the Lagrangian method, as follows: Where m represents the mass of the quadrotor drone; x, y, and z represent the motion vectors of the quadrotor drone along the corresponding axes in the body coordinate system; J φ , J θ , J ψ is the moment of inertia corresponding to the attitude angle; φ, θ, ψ are the three defined attitude angles; k i , i=1,2,3,4,5,6 represents the drag coefficient; g represents the acceleration due to gravity, J T represents the inertia coefficient of the rotor in the quadrotor drone; ω=ω1-ω2+ω3-ω4 represents the angular velocity difference between the rotors; ω i , i = 1, 2, 3, 4 represents the angular velocity of the corresponding four rotors; u z 、u φ 、u θ 、u ψ represents control input; The control input is related to the angular velocity of the rotor and is defined as follows: Where b is the coefficient from the square of the rotor angular velocity to the lift; l is the distance from the center of mass of the quadrotor drone to the center of the rotor; d is the coefficient from the square of the rotor angular velocity to the torque; Substituting formula (2) into formula (1), we get: Among them, the parameters Represent the first-order derivatives of x, y, z, φ, θ, ψ respectively, and the parameters denote the second-order derivatives of x, y, z, φ, θ, and ψ respectively; S2. Considering the wind resistance at the location of the quadrotor drone, the state space equation of the quadrotor drone is established as follows: Where x(t)∈R n , Indicates the system status; is the first-order derivative of x(t); u(t)∈R m , represents the system control input; y(t)∈R l ,y(t)=[θ φ ψ] T represents the system output; f(t)∈R q represents resistance; d(t)∈R P Represents the external interference to the system; g(x(t),u(t))∈R n represents the nonlinear part of the system and satisfies the Prishitz condition, that is: Where δ>0 is the Lipschitz constant; A∈R n×n Represents the system state matrix; B∈R n×m Represents the system input matrix; C∈R l×n Represents the system output matrix; D∈R n×xp , F∈R n×q Respectively represent the known system interference and windage input matrix; S3. Establish the unknown input observer of the quadrotor drone, as follows: The observer gain matrix is ​​designed as follows: Where z(t)∈R n represents the observer state, Respectively represent x(t)∈R n , y(t)∈R l , g(x(t),u(t))∈R n , f(t)∈R q Observation value; N∈R n×n , L∈R n×p ,T∈R n ×n , H∈R n×p , G∈R q×p is the observer gain matrix to be designed, is the first-order derivative of z(t), Expressed as The first derivative of ; S4. Lyapunov stability theory and linear matrix inequality technology are used to verify the stability of the established unknown input observer, as follows: The state estimation error is defined as e x , output estimation error e y and fault estimation error e f as follows: According to formula (4), formula (6) and formula (8), we can get: Substituting formula (7) into formula (9) yields: Taking the first-order derivative of the resistance estimation error, we get: make The derivatives of the error estimates of formula (10) and formula (11) can be transformed into the following formula: in, In order to suppress the impact of unknown inputs, the performance indicators are designed so that the following equation holds true: because Therefore, when formula (13) holds true, robust reconstruction can be achieved; Select the Lyapunov function as shown below: And taking its first-order derivative we get: make Transform the above formula into the following form: make Then we have: in, matrix * represents the symmetric elements at corresponding positions in the symmetric matrix; When Γ<0 holds, we can get J<0, that is, the dynamic error system is stable, that is, Established, using Schur's complement lemma, the above formula Γ can be transformed into the following form: The design of the unknown input observer can be completed by solving the relevant parameters using LMI in the Simulink / Matlab toolbox; For a nonlinear system and an unknown input observer, if there exists a positive definite matrix P and a constant γ>0 such that the following LMI holds: in, Then the system state estimation error is eventually uniformly bounded and stable; S5. Calculate the wind speed and wind direction to obtain the wind speed and wind direction at the location of the quadrotor drone, as follows: (1) Wind speed is calculated as follows: According to the energy conservation of moving fluid, the wind speed estimation formula is as follows: Where v represents the wind speed at the location of the drone in m / s, D represents the drag acting on the drone in N, and ρ represents the air density at the measurement point in kg / m 3 ; A(ψ) represents the area of ​​the drone exposed to the wind direction, which is related to ψ, and the unit is m 2 ; C D (ψ) is the drag coefficient of the UAV, which is also related to ψ; ψ is the yaw angle of the UAV and is related to the roll angle θ and pitch angle φ of the UAV; The relationship between the tilt angle, roll angle and pitch angle of the drone is as follows: in, and is the identity matrix perpendicular to the xy plane; The relationship between the drag D acting on the drone and the flight parameters of the quadcopter drone is as follows: From the position dynamics equation of the quadrotor drone: In the formula, the letter e in the upper right corner of v,G represents that this is a vector expressed in the earth coordinate system; the letter b in the upper right corner of F represents that this is a vector expressed in the body coordinate system; Since the pulling force is generated by the propeller and is fixed to the quadcopter, it is expressed in the body coordinate system; the rotation matrix of any vector from the body coordinate system to the earth coordinate system is expressed as: The equation Dividing both sides by mass m, we get: In order to facilitate research, all of them are converted to the earth coordinate system, that is, multiply the rotation matrix R on the left to obtain: but: After considering the resistance of the quadcopter: Among them, Dx, Dy, and Dz represent the resistance on the x, y, and z coordinate axes; From the above formula, Dx, Dy, and Dz are obtained as follows: In actual situations, Dz can be ignored, so: When obtained back: The wind speed can be obtained by the wind speed calculation formula; (2) Wind direction is calculated as follows: First, calculate the direction and vector of the quadcopter The angle λ between the projections on the xy plane is as follows: Where ψ represents the yaw angle, Respectively represent the projection of the cross product on the x-axis and y-axis; Secondly, decide whether the projection of the cross product on the xy plane is on the left or right side of the quadrotor, as follows: Finally, the wind direction is obtained as follows: in, represents the projection of the cross product onto the xy plane.