Envelope division and gain scheduling method of flying wing UAV based on fuzzy clustering
The fuzzy clustering algorithm is used to divide the envelope of the flying-wing UAV and calculate the gain, which solves the problem that traditional methods cannot meet the control requirements of the flying-wing UAV, and achieves stable and continuous control of the UAV within the full envelope range. , improving flight quality.
Patent Information
- Application Number
- CN202011292602.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-18
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2040-11-18
AI Technical Summary
Flying-wing UAVs have nonlinear problems during their flight within the full envelope. Traditional fixed control structures and control parameter methods cannot meet their control needs, resulting in poor control quality and instability.
The envelope division and gain scheduling method based on fuzzy clustering is adopted, and the system matrix sample set is obtained through equal gradient sampling. The fuzzy clustering algorithm is used to determine the typical flight status and membership degree. Speed and dynamic pressure are selected as scheduling variables, and Sigmoid type membership is adopted. Degree function and T-S fuzzy gain scheduling algorithm calculate the optimal control gain.
It achieves continuous and smooth output of UAV control gain, ensures stable flight control within the full envelope, reduces the impact of control law switching on flight performance, and improves the stability and quality of the control system.
Smart Images

Figure CN112487552B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a new flying wing unmanned aerial vehicle envelope division and control gain scheduling method, belonging to the technical field of aircraft flight control. Background Art
[0002] Flying wing UAVs have a large flight envelope, and the aerodynamic forces and torques vary widely with altitude and dynamic pressure. Nonlinear and unmodeled dynamic characteristics seriously affect the quality and stability of flight control. Traditional methods of fixed control structures and control parameters can no longer meet the control requirements of flying wing UAVs. The nonlinear problems of flying wing UAVs in the full envelope flight process need to be solved urgently.
[0003] Linear gain scheduling solves the problem of poor adaptability of fixed control laws, but there are still the following problems to be solved: how to select a typical operating point. The traditional method is to select the operating point by trial and error, which is time-consuming and extremely dependent on the designer's experience; how to schedule controller parameters. The method of obtaining controller parameters by linear interpolation has poor control quality and even instability in certain flight conditions due to the unmodeled dynamic characteristics of UAVs. Therefore, it is urgent to propose a control strategy that can automatically divide the envelope and smoothly schedule gain for flying wing UAVs. Summary of the invention
[0004] Purpose of the invention: In view of the above-mentioned prior art, a method for envelope division and gain scheduling of flying wing UAV based on fuzzy clustering is proposed to realize automatic division of the UAV envelope and smooth and continuous output of flight control gain, so as to ensure stable flight control of the UAV within the full envelope.
[0005] Technical solution: Envelope division and gain scheduling method of flying wing UAV based on fuzzy clustering, including the following steps:
[0006] Step 1: Sample the UAV flight envelope with equal gradients according to speed and altitude, and select the system matrix corresponding to each sample point as the flight state sample set of the flight envelope;
[0007] Step 2: Determine the optimal fuzzy clustering algorithm parameters according to the partition effectiveness index: the number of cluster centers and the fuzzy index;
[0008] Step 3: Use fuzzy clustering algorithm to divide the flight envelope sample set to obtain typical flight states and membership matrix;
[0009] Step 4: Based on the envelope division results of step 3, select speed and dynamic pressure as the scheduling variables of the flight control law;
[0010] Step 5: Select the Sigmoid membership function to correct the membership curves of velocity and dynamic pressure obtained by fuzzy clustering;
[0011] Step 6: Calculate the optimal control gain according to the TS fuzzy gain scheduling algorithm.
[0012] Furthermore, in step 1, the state space of the drone is expressed as
[0013]
[0014] Among them, x represents the state variable, u represents the control variable, y represents the output, A represents the system matrix, B represents the control matrix, C represents the output matrix, and D represents the feedforward matrix;
[0015] The A array corresponding to each sample point is selected as the flight envelope division sample.
[0016] Furthermore, in step 2, the partition effectiveness index includes the partition coefficient PC, the partition index SC, the partition entropy CE and the Xie-Beni index, and its mathematical expression is:
[0017]
[0018]
[0019]
[0020]
[0021] Among them, c represents the number of cluster centers, N represents the size of the sample data set, and μ ik represents the membership value of the kth sample relative to the ith cluster center, m represents the fuzziness index, X k represents the kth data sample, V i represents the i-th cluster center, V j represents the jth cluster center;
[0022] By comparing the size of the partition effectiveness index under different numbers of cluster centers and fuzziness indexes, the optimal number of cluster centers and fuzziness index for envelope partitioning are selected.
[0023] Furthermore, in step 3, the flight envelope division using the fuzzy clustering algorithm is converted into a constrained nonlinear programming problem. The cluster center and the partition membership value of the data set are obtained by seeking the optimal solution. The objective function represents the sum of the distances between the sample points and the cluster center, and its mathematical expression is:
[0024]
[0025] Among them, X is the flight state set, is the membership matrix, V={V i |1≤i≤c,V i∈R n} represents the cluster center set, R n represents the dimension of the cluster center, d ik Represents the distance between the kth data sample and the i-th cluster center;
[0026] The iterative calculation steps of the fuzzy clustering algorithm include:
[0027] 1) Calculate the cluster center:
[0028]
[0029] 2) Calculate the new distance norm:
[0030]
[0031] 3) Calculate the new partition matrix:
[0032]
[0033] When||U (l) -U (l-1) ||<ε, the iteration ends, otherwise it continues;
[0034] Among them, V i (l) represents the V of step l i , Indicates the (l-1)th step u ik , d jk represents the distance between the kth data sample and the jth cluster center, U (l) , U (l-1) They represent the membership matrices of the lth and (l-1)th steps respectively, and ε represents the convergence error of the algorithm.
[0035] Furthermore, in step 5, the Sigmoid membership function expression is:
[0036]
[0037] Among them, a represents a parameter describing the inclination of the Sigmoid curve, and e represents the position of the midpoint of the Sigmoid curve.
[0038] Furthermore, step 6 includes: integrating the membership function f of the velocity and the dynamic pressure i1 ,f i2 , then the combined membership function is μ i =f i1 f i2 , then for a specific flight state, the optimal control gain is calculated by the following formula:
[0039]
[0040] Among them, f i1 ,f i2 , i=1,…c represent the membership functions of velocity and dynamic pressure relative to the i-th cluster center, K i is the control gain corresponding to the i-th typical flight state.
[0041] Beneficial effects: 1. The present invention's method for flying wing UAV envelope division and gain scheduling based on fuzzy clustering overcomes the problems of poor quality and even instability of the control law of UAVs in certain flight states caused by traditional fixed control laws and gain scheduling control law design methods based on linear interpolation. The envelope division of this method adopts a fuzzy clustering algorithm to obtain the membership of the typical flight state and general flight state of the UAV, and determine the optimal flight envelope division mechanism; the gain scheduling selects speed and dynamic pressure as scheduling variables, adopts a Sigmoid membership function, and proposes a gain scheduling strategy based on TS fuzzy clustering. This method realizes the continuous and smooth output of the UAV control gain, ensuring the stable flight control of the UAV within the full envelope range.
[0042] 2. The present invention divides the UAV flight envelope into several typical areas through fuzzy clustering, so that each area can be approximately replaced by a representative flight state. The control law gain is scheduled according to the degree of membership of each flight state to the cluster center, so that the gain scheduling is more in line with the actual flight situation.
[0043] 3. Compared with discrete scheduling control and hybrid output control, the control gain output calculated by the fuzzy clustering gain scheduling mechanism of the present invention is more continuous and smoother, which will help reduce the impact of control law switching on the flight performance of the UAV.
[0044] 4. Compared with the general fixed control law in longitudinal and lateral control, the present invention has better consistency in control effect within the entire envelope. The overshoot of the altitude control loop of the fixed control law varies in the range of 0 to 10%, and the overshoot of the track tracking control loop reaches a maximum of 40%. Under the conditions of the same control structure, the gain scheduling control law has a better control effect on the flight altitude and track of the UAV, among which the altitude control loop has no overshoot, and the adjustment time range is 12s to 17s; the overshoot of the track tracking control loop is small. The gain scheduling control law based on fuzzy clustering can ensure satisfactory control quality for the flight state within the envelope.
[0045] 5. The envelope division and gain scheduling method based on fuzzy clustering in the present invention can effectively solve the nonlinear problem in the large envelope control process of flying wing UAVs. The typical working points divided by the envelope can reflect the key flight performance and control stability characteristics of the UAV. The smooth and continuous gain scheduling mechanism enhances the stability of the UAV flight control system and improves the flight quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 It is the distribution diagram of sample data within the envelope;
[0047] Figure 2 It is the effectiveness index for fuzzy clustering classification;
[0048] Figure 3 The flight envelope division results;
[0049] Figure 4 Plot the sample data poles for the flight envelope;
[0050] Figure 5 is the S-type membership function curve of velocity and dynamic pressure;
[0051] Figure 6 It is fuzzy clustering gain scheduling;
[0052] Figure 7 is discrete gain scheduling;
[0053] Figure 8 for hybrid gain scheduling control;
[0054] Fig. 9 Envelope partitioning and gain scheduling for UAVs based on fuzzy clustering;
[0055] Fig.10 It is the step response of the height control loop under general control;
[0056] Fig.11 It is the step response of the track tracking control loop under general control;
[0057] Fig.12 Highly control loop step response for gain scheduling;
[0058] Fig.13 Step response for the gain-scheduled track-following control loop. DETAILED DESCRIPTION
[0059] The present invention will be further explained below in conjunction with the accompanying drawings.
[0060] A flying wing UAV envelope division and gain scheduling method based on fuzzy clustering, the specific steps are as follows:
[0061] Step 1: Sample the UAV flight envelope with equal gradients according to speed and altitude, and select the system matrix corresponding to each sample point as the flight state sample set of the flight envelope.
[0062] In the flight envelope, 1825 flight states are uniformly selected as sample points at every 1m / s speed and every 200m altitude to sample the flight envelope of the flying wing UAV, such as Figure 1 shown.
[0063] The state space of the drone can be expressed as
[0064]
[0065] Among them, x represents the state variable, u represents the control variable, y represents the output, A represents the system matrix, B represents the control matrix, C represents the output matrix, and D represents the feedforward matrix.
[0066] Its state transfer matrix Has the following form:
[0067]
[0068] It determines the state change of the system from the initial time t0 to any time t when the external input is 0. The response of the UAV dynamic system is mainly related to the system matrix A. When the influence of the angle of attack rate and the pitch rate on the lift is ignored, the matrix A can be approximately expressed as
[0069]
[0070] Among them, α e and μ e They represent the steady-state values of the angle of attack and the steady-state values of the trajectory inclination, g represents the acceleration due to gravity, and X V ,X TV ,X α ,Z V ,Z α is the dimension coefficient of the internal force of the airflow coordinate axis system, M V ,M TV ,M α , M q are the dimension coefficients of the moments in the airflow coordinate system, and their expressions are as follows:
[0071]
[0072] Where D is the drag, T is the thrust, m is the mass, α is the angle of attack, V is the speed, and M is the A is the pitch aerodynamic moment, M T is the pitch thrust moment, I y represents the pitch axis moment of inertia, represents the rate of change of angle of attack, and q represents the pitch angle rate.
[0073] Since the system matrix A has a great influence on the motion characteristics of the UAV, the A matrix corresponding to the sample point is selected as the flight state sample set X A ={AK |K=1,2,3...,1825} can fully and accurately reflect the dynamic performance of the UAV within the flight envelope and increase the rationality and confidence of the division results.
[0074] Step 2: Determine the optimal fuzzy clustering algorithm parameters based on the partition effectiveness index: the number of cluster centers and the fuzzy index.
[0075] The fuzzy clustering method is used to divide the UAV flight envelope, and the parameters of the clustering algorithm need to be determined. The algorithm parameters include the number of cluster centers c and the fuzziness index m. Appropriate parameters can enhance the similarity within the class and the separation between classes. The selection of parameters can be determined by comprehensively comparing several partition effectiveness indicators. The partition effectiveness index is a function of the number of cluster centers and the sample membership, including the partition coefficient PC, the partition index SC, the partition entropy CE and the Xie-Beni index. Their mathematical expressions are as follows:
[0076]
[0077]
[0078]
[0079]
[0080] Among them, c represents the number of cluster centers, N represents the size of the sample data set, and μ ik represents the membership value of the kth sample relative to the ith cluster center, m represents the fuzziness index, X k represents the kth data sample, V i represents the i-th cluster center, V j represents the jth cluster center.
[0081] Select the number of cluster centers c = 2, 3, ... 10, use the fuzzy clustering algorithm to divide the flight envelope to obtain the corresponding sample membership matrix, and use the above formula to calculate the corresponding division effectiveness index. Figure 2 As shown in the figure, when the number of cluster centers is 3, the partition coefficient and Xie-Beni index both achieve the optimal value, while the partition entropy and partition index are calculated to be small for any c value, indicating that the fuzziness of the partition result is weak, which is in line with the original design of gain scheduling. The fuzziness index m is generally selected in the range of 1.5 to 2.5. By comparing different m values in this range, the partition result is not too fuzzy when m = 1.7, and it can suppress the adverse effects of singular point noise.
[0082] Step 3: Use fuzzy clustering algorithm to divide the flight envelope sample set to obtain typical flight states and membership matrix.
[0083] Based on the fuzzy clustering algorithm, the envelope partition is transformed into a constrained nonlinear programming problem. The cluster center and partition membership value of the data set are obtained by seeking the optimal solution. The objective function represents the sum of the distances between the sample points and the cluster center. Its mathematical expression is:
[0084]
[0085] The objective function represents the sum of the distances between the sample points and the cluster center. The smaller the function value, the more reasonable the division result. i |1≤i≤c,V i ∈R n} represents the cluster center set, m∈[1,∞), R n represents the dimension of the cluster center, d ik Represents the distance between the kth data sample and the ith cluster center. The iterative calculation steps of the fuzzy clustering partitioning algorithm include:
[0086] 1) Calculate the cluster center:
[0087]
[0088] 2) Calculate the new distance norm:
[0089]
[0090] 3) Calculate the new partition matrix:
[0091]
[0092] If||U (l) -U (l-1) If ||<ε, the iteration ends, otherwise it continues.
[0093] Among them, V i (l) represents the V of step l i , Indicates the (l-1)th step u ik , d jk represents the distance between the kth data sample and the jth cluster center, U (l) , U (l-1) They represent the membership matrices of the lth and (l-1)th steps respectively, and ε represents the convergence error of the algorithm.
[0094] According to the fuzzy clustering algorithm, the membership matrix is obtained as follows:
[0095]
[0096] The fuzzy clustering algorithm is used to divide the UAV flight envelope into three areas, such as Figure 3 As shown, Figure 4 The pole distribution diagram of all sample data of the full envelope is given. It can be seen that the short-period poles are mainly concentrated in three areas. At the same time, the short-period poles corresponding to the cluster centers (2400, 52), (2800, 42), and (3000, 96) obtained by division are exactly in these three different areas, which further verifies the effectiveness of the fuzzy clustering algorithm for flight envelope division.
[0097] Step 4: Based on the envelope division results of step 3, select speed and dynamic pressure as the scheduling variables of the flight control law.
[0098] The selected scheduling variables should be able to reflect the membership of the flight state to the cluster center to the greatest extent. The membership of the flight state to the cluster center is observed from three aspects: altitude, speed, and dynamic pressure. Regarding the influence of flight dynamic pressure on the state division of flying wing UAVs, considering that the flight dynamic pressure contains both speed information and altitude information, it also affects the calculation of the forces and moments acting on the UAV. Therefore, it is theoretically feasible to select dynamic pressure and speed as scheduling variables to distinguish flight states. The membership curve based on dynamic pressure can distinguish the membership of the flight state to the cluster center, and its shape is similar to the case where the scheduling variable is airspeed. Combining the membership curves corresponding to the two scheduling variables (dynamic pressure and airspeed), the membership of the UAV's flight state to the three typical flight states can be accurately calculated.
[0099] Select speed and dynamic pressure as scheduling variables, and the weight μ in TS fuzzy gain scheduling algorithm i It can be calculated by the following formula
[0100] λ i =τ 1i ×τ 2i ,
[0101]
[0102] Among them, τ 1i and τ 2i It describes the membership of the current flight state to the i-th cluster center from the perspective of speed and dynamic pressure. Its value is determined by the envelope partition membership matrix, μ i is the membership value of the current flight state to the i-th cluster center, λ i Indicates the comprehensive membership of the current flight state to the i-th cluster center. Combining the membership curves corresponding to airspeed and dynamic pressure, the membership of the flying wing UAV to the three typical flight states can be accurately calculated.
[0103] Step 5: Select the Sigmoid membership function to correct the membership curves of velocity and dynamic pressure obtained by fuzzy clustering.
[0104] Select the membership function, that is, the mapping function that reflects the membership relationship of the flight state to the cluster center. First, observe the membership of the flight state by projecting the membership value on the coordinate plane of a single scheduling variable, and the projection gives the corresponding maximum membership value. The membership curve obtained by direct projection has singular points in some areas, and it is impossible to give an accurate expression, which affects the engineering implementation of the scheduling algorithm. By making appropriate adjustments to the membership curve, all flight states can belong to each cluster center completely and effectively, ensuring the smoothness and stability of the scheduling process. In the case where the trapezoidal and triangular membership functions satisfy the linear membership relationship, the membership relationship curve that needs to be corrected is obtained through fuzzy partitioning, and the linear relationship cannot accurately express its fuzzy characteristics. Therefore, the Sigmoid function is selected to approximate the modified membership curve. The mathematical expression of the Sigmoid function is:
[0105]
[0106] Among them, a represents a parameter describing the inclination of the Sigmoid curve, and e represents the position of the midpoint of the Sigmoid curve.
[0107] By approximating the original membership curve, the flight state inside the cluster is made as close to the cluster center as possible, and as far away from other cluster centers as possible. Finally, we can get the following: Figure 5 The Sigmoid membership function curve of airspeed and dynamic pressure. The mathematical expression of the membership function in the figure is as follows:
[0108]
[0109]
[0110]
[0111]
[0112] Step 6: Calculate the optimal control gain according to the TS fuzzy gain scheduling algorithm.
[0113] When the drone is flying at low speed, the control gain is mainly determined by the gains corresponding to the typical flight state one and state two, and the difference in flight altitude is distinguished by the membership function value related to the flight pressure; when the drone is flying at high speed, the control gain is mainly determined by the typical flight state one and state three, among which state three has a greater influence. According to the given membership function, which is the fuzzy logic in the TS fuzzy gain scheduling algorithm, it describes the membership relationship between a certain flight state and the typical state. The optimal control gain under a specific flight state can be obtained by the following formula
[0114] K=K1*f 11*f 12 +K2*f 21 *f 22 +K3*f 31 *f 32
[0115] Gain scheduling methods based on fuzzy clustering are Figure 6 , and discrete dispatch control (such as Figure 7 ) and mixed output control ( Figure 8 ), the control gain output calculated by the fuzzy clustering method is more continuous and smoother, which will help reduce the impact of control law changes on the flight performance of the UAV. Fig. 9 In the whole envelope, the control effect of this method is better than that of the general control law in longitudinal and lateral control. Figure 10-11 As shown in the figure, the overshoot of the altitude control loop of the general control law varies in the range of 0 to 10%, and the overshoot of the track tracking control loop reaches a maximum of 40%. Figure 12-13 As shown in the figure, under the same control structure, the gain scheduling control law based on fuzzy clustering has a better control effect on the flight altitude and track of the UAV, the track tracking control loop has a small overshoot, and the altitude control loop has no overshoot. When the control gain remains unchanged, the control law cannot guarantee satisfactory control quality for the flight state within the envelope.
[0116] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. Envelope division and gain scheduling method for flying wing UAV based on fuzzy clustering, characterized in that: The steps include: Step 1: Sample the UAV flight envelope with equal gradients according to speed and altitude, and select the system matrix corresponding to each sample point as the flight state sample set of the flight envelope; Step 2: Determine the optimal fuzzy clustering algorithm parameters according to the partition effectiveness index: the number of cluster centers and the fuzzy index; Step 3: Use fuzzy clustering algorithm to divide the flight envelope sample set to obtain typical flight states and membership matrix; Step 4: Based on the envelope division results of step 3, select speed and dynamic pressure as the scheduling variables of the flight control law; Step 5: Select the Sigmoid membership function to correct the membership curves of velocity and dynamic pressure obtained by fuzzy clustering; Step 6: Calculate the optimal control gain according to the TS fuzzy gain scheduling algorithm; In step 2, the partition effectiveness index includes the partition coefficient PC, the partition index SC, the partition entropy CE and the Xie-Beni index, and its mathematical expression is: Among them, c represents the number of cluster centers, N represents the size of the sample data set, and μ ik represents the membership value of the kth sample relative to the ith cluster center, m represents the fuzziness index, X k represents the kth data sample, V i represents the i-th cluster center, V j represents the jth cluster center; By comparing the size of the partition effectiveness index under different cluster center numbers and fuzziness indexes, the optimal envelope partition cluster center number and fuzziness index are selected; In step 3, the flight envelope division using the fuzzy clustering algorithm is converted into a constrained nonlinear programming problem. The cluster center and the partition membership value of the data set are obtained by seeking the optimal solution. The objective function represents the sum of the distances between the sample points and the cluster center, and its mathematical expression is: Among them, X is the flight state set, is the membership matrix, V={V i |1≤i≤c,V i ∈R n } represents the cluster center set, R n represents the dimension of the cluster center, d ik Represents the distance between the kth data sample and the i-th cluster center; The iterative calculation steps of the fuzzy clustering algorithm include: 1) Calculate the cluster center: 2) Calculate the new distance norm: 3) Calculate the new partition matrix: When||U (l) -U (l-1) ||<ε, the iteration ends, otherwise it continues; Among them, V i (l) represents the V of step l i , Indicates the (l-1)th step u ik , d jk represents the distance between the kth data sample and the jth cluster center, U (l) , U (l-1) They represent the membership matrices of the lth and (l-1)th steps respectively, and ε represents the convergence error of the algorithm.
2. The envelope division and gain scheduling method of a flying wing UAV based on fuzzy clustering according to claim 1 is characterized in that: In step 1, the state space of the drone is expressed as Among them, x represents the state variable, u represents the control variable, y represents the output, A represents the system matrix, B represents the control matrix, C represents the output matrix, and D represents the feedforward matrix; The A array corresponding to each sample point is selected as the flight envelope division sample.
3. The envelope division and gain scheduling method of a flying wing UAV based on fuzzy clustering according to claim 1 is characterized in that: In step 5, the Sigmoid membership function expression is: Among them, a represents a parameter describing the inclination of the Sigmoid curve, and e represents the position of the midpoint of the Sigmoid curve.
4. The envelope division and gain scheduling method of a flying wing UAV based on fuzzy clustering according to claim 1, characterized in that: The step 6 includes: integrating the membership function f of the velocity and the dynamic pressure i1 ,f i2 , then the combined membership function is μ i =f i1 f i2 , then for a specific flight state, the optimal control gain is calculated by the following formula: Among them, f i1 ,f i2 , i=1,…c represent the membership functions of velocity and dynamic pressure relative to the i-th cluster center, K i is the control gain corresponding to the i-th typical flight state.
