Unmanned aerial vehicle cluster flight state estimation method and system based on Kalman filtering
Through the UAV cluster flight state estimation method based on Kalman filter, the accuracy and efficiency problems of UAV cluster flight status monitoring and estimation are solved, and the efficient work and fault detection of UAV cluster in complex tasks are realized. Suitable for large-scale rescue and relay communications and other fields.
Patent Information
- Application Number
- CN202410593982.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-14
- Publication Date
- 2024-08-23
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
UAV clusters have accuracy and efficiency problems in flight status monitoring and estimation. It is difficult to detect work faults and perform maintenance in a timely manner, which affects mission execution efficiency and success rate.
The UAV swarm flight status estimation method based on Kalman filter is used to achieve real-time monitoring and efficient estimation of flight status through steps such as self-test, communication link establishment, entropy decision matrix construction, Kalman filter method and redundant backup. .
It improves the accuracy and efficiency of flight status estimation of UAV clusters, reduces the failure rate, and ensures the efficient work of UAVs in complex tasks. It is suitable for large-scale rescue and relay communications and other fields.
Smart Images

Figure CN118540813A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of unmanned aerial vehicle (UAV) flight state estimation, and in particular to a method and system for estimating the flight state of an unmanned aerial vehicle cluster based on Kalman filtering. Background Art
[0002] Drones are currently developing rapidly in disaster relief, relay communications, logistics tracking, stage performances, and military. A single drone has limited power and cannot complete complex tasks and diverse needs. A drone swarm is a unified system composed of multiple drones. The swarm system maintains real-time communication, unified task allocation, and resource scheduling, which is conducive to completing mission objectives and has broad application prospects. For example, when a drone swarm performs a field exploration mission, different roles are assigned to each drone, and each drone carries different cameras, video cameras, and other equipment to complete the given mission.
[0003] The flight status data of the drone cluster includes flight altitude, flight positioning, flight attitude, angular velocity, pitch angle, etc. Monitoring and estimating the flight status of the drone cluster is conducive to timely grasping the working status of the drone cluster and improving the efficiency and success rate of task execution. Summary of the invention
[0004] In view of this, the present invention provides a method and system for estimating the flight state of a drone cluster based on Kalman filtering, the purpose of which is to provide a method for estimating the flight state of a drone cluster based on Kalman filtering, so as to achieve real-time control of the working state of the drone cluster, timely discover the working failure of the drone cluster and intervene in maintenance, realize efficient operation of the drone, and improve the accuracy and efficiency of flight state estimation. At the same time, by establishing cluster communication and data backup, the analysis and maintenance of the flight state data of the drone cluster are carried out.
[0005] To achieve the above object, the present invention provides a method and system for estimating the flight state of a UAV cluster based on Kalman filtering, comprising the following steps:
[0006] S1, after all drones start up, they self-check, each drone establishes a communication data packet with other drones, builds an entropy decision matrix, and establishes a communication link with other drones in the cluster;
[0007] S2, each UAV establishes a flight status mapping table, collects its own flight status, and updates it to the flight status mapping table;
[0008] S3, adopting the Kalman filtering method and introducing pseudo-measurement constraints to achieve flight state filtering, and using the filtered flight state data to update the flight state mapping table;
[0009] S4, the two drones with the shortest communication path length in the cluster establish a redundant pair to achieve redundant backup of the flight status mapping table;
[0010] S5, all drones in the cluster store their own flight status mapping table obtained in S3 and the flight status mapping table of other drones obtained in S4 to the ground storage device, and the ground storage device establishes a storage data index sequence and deletes duplicate data.
[0011] As a further improvement method of the present invention:
[0012] Optionally, in step S1, all drones perform self-checks after startup, including:
[0013] S101, the drone first checks the servo to ensure that the servo is at zero position and the servo output setting is consistent with the feedback;
[0014] S102, the drone checks the GPS sensor to ensure that the GPS positioning status is consistent with the feedback, the positioning time refresh meets the mission requirements, and the drone altitude control is consistent with the feedback;
[0015] S103, the UAV checks the inertial navigation system to ensure that the attitude control and feedback of the UAV are consistent, and the angular rate control and feedback are consistent;
[0016] S104, the UAV checks the engine control unit to ensure that the current temperature does not exceed the warning line, the engine oil pump is in normal condition, and the UAV communication status is normal;
[0017] S105, the UAV checks the flight status to ensure that the flight attitude is stable, the angular rate control is consistent with the feedback, the vertical speed control is consistent with the feedback, and the calculated value of the aircraft control parameter is consistent with the feedback;
[0018] S106, the drone checks the camera it carries to ensure that the camera input voltage and input current are stable, that the camera image brightness control is consistent with feedback, that the exposure time control is consistent with feedback, and that the sensitivity control is consistent with feedback, and that the captured image is not blurred.
[0019] Optionally, in step S1, each drone establishes a communication data packet with other drones, and constructs an entropy decision matrix to establish a communication link with other drones in the cluster, including:
[0020] S111, drone i establishes communication data packet:
[0021]
[0022] Among them, Ba is the data volume of a communication data packet; x is the random physical quantity of the communication data packet, which is randomly generated by UAV i and is used to receive the UAV to verify the communication data packet; Q is the storage capacity of the communication data packet, ξ is the communication channel retrieval parameter, A is the communication data feature quantity, and || represents the absolute value of the variable;
[0023] S112, UAV i sends communication data packets to other UAVs, and builds a decision matrix based on the data transmission volume:
[0024]
[0025] Among them, K(i) represents the decision matrix of UAV i, and its elements represent the amount of data required to initially establish a communication link; Indicates the amount of data sent by drone i to drone 1, represents the amount of data sent by drone 1 to drone i, Indicates the amount of data sent by drone i to drone 2, represents the amount of data sent by drone 2 to drone i, represents the amount of data sent by drone i to drone p, represents the amount of data sent by drone p to drone i, p represents the number of drones in the cluster, p>1;
[0026]
[0027] in, represents the amount of data sent by drone i to drone j, represents the number of communication data packets sent from drone i to drone j, i, j represent drone numbers, 1≤i≤p, 1≤j≤p, when i=j,
[0028] S113, further optimize the decision matrix K′(i) of drone i, K′(i) is a matrix of 2 rows and p columns, and the element of the mth row and nth column in K′(i) is expressed as:
[0029]
[0030] Among them, K′ m,n (i) represents the element in the mth row and nth column of K′(i), which is obtained by standardizing the elements in the decision matrix K(i). m,n (i) represents the element in the mth row and nth column of the decision matrix K(i); when m=1, represents the amount of data sent by drone i to drone n; when m = 2, represents the amount of data sent by drone n to drone i, max(K m,n (i)) represents the element with the largest value in the decision matrix K(i), min(K m,n (i)) represents the element with the smallest value in the decision matrix K(i);
[0031] Construct the decision matrix Sh(i) of drone i based on entropy value. Sh(i) is a matrix with 1 row and p columns. The element in the nth column of Sh(i) is expressed as:
[0032]
[0033] Among them Sh n is the element in the nth column of Sh(i), representing the entropy value of the data exchanged between drone i and drone n, K′ m,n (i) represents the element in the mth row and nth column of the optimized decision matrix K′(i), It represents the sum of the elements in the nth column of the optimized decision matrix K′(i), which is the amount of data exchanged between UAV i and UAV n after normalization; represents the sum of all elements in the optimized decision matrix K′(i), which is the amount of data exchanged between UAV i and all UAVs in the cluster after normalization;
[0034] S114, determine the smallest element Sh in the decision matrix Sh(i) based on entropy value of UAV i r , r is the element Sh r Column index in Sh(i), UAV i establishes a communication link with UAV r.
[0035] Optionally, in step S2, each drone establishes a flight status mapping table, collects its own flight status, and updates the flight status mapping table, including:
[0036] S201, drone i establishes a local coordinate system, with the flight direction as the X direction, the Y direction on the same horizontal plane as the flight direction and perpendicular to the flight direction, and the Z direction perpendicular to the ground;
[0037] S202, drone i records its own flight status at time k, including: flight attitude zit k , three-dimensional position posi k , real-time speed vshi k , pitch angle pit k , heading angle yaw k , roll angle rol k ;
[0038] Calculate the single-axis rotation matrix of drone i:
[0039]
[0040]
[0041]
[0042] Among them, Xuank (X) represents the X-axis rotation matrix of drone i at time k, Xuan k (Y) represents the Y-axis rotation matrix of drone i at time k, Xuan k (Z) represents the Z-axis rotation matrix of UAV i at time k;
[0043] Calculate the total rotation matrix of drone i:
[0044] ZXuan k =Xuan k (X) Xuan k (Y) Xuan k (Z)
[0045] Among them, ZXuan k represents the total rotation matrix of UAV i at time k;
[0046] Calculate the three-dimensional position of drone i in the latitude and longitude coordinate system:
[0047] Plalo k =ZXuan k (X,Y,Z)·posi k
[0048] Among them, Plalo k represents the three-dimensional position of UAV i in the latitude and longitude coordinate system at time k, posi k represents the three-dimensional position of UAV i in the local coordinate system at time k;
[0049] Calculate the speed of drone i in the latitude and longitude coordinate system:
[0050]
[0051] Among them, Vlalo k represents the speed of UAV i in the latitude and longitude coordinate system at time k, Plalo k+1 represents the three-dimensional position of UAV i in the longitude and latitude coordinate system at time (k+1), and Δt represents the time interval between adjacent times;
[0052] S203, drone i establishes a flight status mapping table Fe, recording its own number, timestamp Tim, and flight status at time k, including: flight attitude zit k , the three-dimensional position of the latitude and longitude coordinate system Plalo k , the speed Vlalo in the latitude and longitude coordinate system k , pitch angle pit k , heading angle yaw k , roll angle rol k .
[0053] Optionally, in step S3, each drone adopts a Kalman filtering method and introduces a pseudo-measurement constraint to implement flight state filtering, and uses the filtered flight state data to update a flight state mapping table, including:
[0054] S301, establish the real flight state vector of UAV i at time k:
[0055] Sta k =[Pgh k ,Vgh k ]
[0056] Among them, Sta k represents the real flight state vector of UAV i at time k, Pgh k represents the real position of UAV i at time k, and Vgh represents the real speed of UAV i at time k;
[0057] The flight state measurement vector of the UAV is constructed using pseudo-measurement parameters. The flight state measurement vector of UAV i at time k is expressed as:
[0058] Mea k =[Plalo k ,Vlalo k ,ZXuan k ,δ k ]
[0059] Among them, Me k represents the flight state measurement vector of UAV i at time k, δ k represents the pseudo-measurement parameter, which is equal to the measured position of the local coordinate system of UAV i at time k, and is expressed as:
[0060] δ k =Plalo k ·ZXuan k -1
[0061] Among them, ZXuan k -1 Express your gratitude to ZXuan k Matrix inversion;
[0062] S302, establish a discrete state space model for estimating the flight state of UAV i:
[0063] Sta k+1 =F·Sta k +σ k
[0064] Mea k+1 =H·Sta k +υk
[0065] Among them, Sta k+1 represents the real flight state vector of UAV i at time (k+1), F represents the state transfer matrix of UAV i motion, σ k represents process noise, H represents the observation matrix, υ k represents the observation noise;
[0066] S303, predicting the flight status of UAV i:
[0067] Sta k+1|k =F·Sta k
[0068] P k+1|k =FP k F T +Q k
[0069] Among them, Sta k+1|k represents the real flight state vector prediction vector of UAV i at time (k+1), P k+1|k represents the predicted value of the covariance matrix at time (k+1), P k represents the covariance matrix value at time k, F T represents the transpose of matrix F, Q k represents the k-time process noise covariance matrix;
[0070] S304, calculate the Kalman gain:
[0071] KZ k+1 =P k+1|k H T (HP k+1|k H T +R k+1 ) -1
[0072] Among them Kz k+1 represents the Kalman gain at time (k+1), R k+1 represents the observation noise covariance, (HP k+1|k H T +R k+1 ) -1 Indicates HP k+1|k H T +R k+1 Find the inverse matrix;
[0073] S305, the actual flight status of UAV i at time (k+1) is updated to:
[0074] Sta k+1 =Sta k+1|k +Kzk+1 (Mea k+1 -H. Sta k+1|k )
[0075] Sta k+1 =[Pgh k+1 ,Vgh k+1 ]
[0076] Among them, Pgh k+1 represents the real position of UAV i at time (k+1), Vgh k+1 represents the real speed of UAV i at time (k+1);
[0077] The estimated value of the covariance matrix at time (k+1) is expressed as:
[0078] P k+1 =(I-Kz k+1 H)P k+1|k
[0079] Among them, P k+1 represents the estimated value of the covariance matrix at time (k+1), and I represents the unit diagonal matrix;
[0080] S306, drone i uses the real position Pgh at time (k+1) k+1 Update the three-dimensional position Plalo of the latitude and longitude coordinate system in the flight status mapping table Fe k , using the real speed Vgh at time (k+1) k+1 Update the speed Vlalo of the latitude coordinate system in the flight status mapping table Fe k , and update the record timestamp Tim.
[0081] Optionally, in step S4, two drones in the cluster with the shortest communication path length establish a redundant pair to implement redundant backup of the flight status mapping table, including:
[0082] S401, establish cluster communication relationship matrix:
[0083] Con=(con i,j )
[0084] where con i,j =1 indicates that UAV i and UAV j have established a direct communication link, con i,j = 0 means that UAV i and UAV j have not established communication. When i = j, con i,j =0;
[0085] S402, establishing a cluster communication path length matrix:
[0086] Dis=(dis i,j )
[0087] where dis i,j Indicates that drone i and drone j are connected by dis i,j The communication is achieved through forwarding and meets the requirements of dis i,1 ≥0,dis i,j =dis j,i ;
[0088] S403, setting the initial value of the cluster communication path length matrix Dis:
[0089] dis i,j =p+1
[0090] Among them, dis i,j Represents the communication path length between UAV i and UAV j, traversing the cluster communication relationship matrix Con, when con i,j =1, set the elements in the matrix Dis:
[0091] dis i,j =dis j,i =con i,j
[0092] It means that UAV i and UAV j have established a direct communication link; when con i,j = 0, no operation is performed on the elements in the matrix Dis;
[0093] S404, loop through the cluster communication path length matrix Dis, if the communication path length dis between drone i and drone j is i,j =p+1, jump to S405, when all elements of cluster communication path length matrix Dis satisfy 0≤dis i,j <p+1, exit the loop;
[0094] S405, for drone h, h∈[1,p],h≠i,h≠j, when the communication path length between drone i and drone h is dis i,h Satisfy 0<dis i,h <p+1, and the communication path length between drone h and drone j is dis h,j Satisfy 0<dis h,j When <p+1, we get:
[0095] dis i,j =dis i,h +dis h,j
[0096] Among them, dis i,j represents the communication path length between UAV i and UAV j, dis i,h represents the communication path length between UAV i and UAV h, dish,j represents the communication path length between UAV h and UAV j;
[0097] Otherwise, dis i,h with dis h,j remain unchanged;
[0098] Jump to S404;
[0099] S406, the two UAVs with the shortest communication path length in the cluster establish a redundant pair to achieve redundant backup of the flight status mapping table Fe.
[0100] Optionally, in step S5, all drones in the cluster store their own flight status mapping table obtained in S3 and the flight status mapping table of other drones obtained in S4 to a ground storage device, and the ground storage device establishes a storage data index sequence and deletes duplicate data, including:
[0101] S501, all drones in the cluster transmit their own flight status mapping table obtained in S3 and the flight status mapping table of other drones obtained in S4 to the ground storage device;
[0102] S502, the ground storage device establishes a storage data index sequence according to the drone number;
[0103] S503, the ground storage device performs duplicate data detection according to the stored data index sequence and deletes the duplicate data;
[0104] S503, all drones exit the cluster and stop working.
[0105] The present invention also provides a UAV cluster flight state estimation system based on Kalman filtering, comprising:
[0106] UAV self-check module: check the servo, GPS sensor, inertial navigation, engine control unit, flight status and camera;
[0107] UAV cluster communication module: establishes communication data packets with other UAVs, builds entropy decision matrix, and establishes communication links with other UAVs in the cluster;
[0108] UAV flight status collection module: realizes flight status coordinate conversion, collects flight status, and updates flight status mapping table;
[0109] UAV flight status filtering module: uses Kalman filtering method to filter the UAV flight status;
[0110] UAV flight status backup module: The two UAVs with the shortest communication path length in the cluster establish a redundant pair to perform redundant backup of the flight status mapping table;
[0111] UAV flight status storage module: stores the flight status mapping table to the ground storage device, establishes the storage data index sequence, and deletes duplicate data.
[0112] Beneficial effects:
[0113] The present invention realizes efficient operation of unmanned aerial vehicles and improves the accuracy and efficiency of flight state estimation by establishing an unmanned aerial vehicle cluster and applying a Kalman filtering method. After the unmanned aerial vehicle is started, a self-check is performed to ensure that the steering engine, GPS sensor, inertial navigation, engine control unit, flight state and camera are in normal working state, thereby reducing the failure rate during the working process and improving work efficiency. The unmanned aerial vehicle establishes a cluster communication link to realize normal communication of the cluster, which is conducive to the promotion and application of unmanned aerial vehicles in the fields of large-scale rescue, relay communication, stage performance, etc. The method in which the unmanned aerial vehicle establishes a decision matrix based on a communication data packet is conducive to selecting a communication link according to the unmanned aerial vehicle according to the additional communication expenses. The method of selecting a communication link based on a decision matrix is conducive to the unmanned aerial vehicle selecting a communication link with low communication expenses and stability for cluster communication. The unmanned aerial vehicle collects the flight state and performs coordinate conversion, which is conducive to data collection and facilitates the management personnel to uniformly perform data analysis and maintenance processing in the latitude and longitude coordinate system. The set flight state collection interval is moderate, does not cause data burden, and can also better track the flight state of the unmanned aerial vehicle. The Kalman filtering method is used to estimate the flight state of the unmanned aerial vehicle, which can improve the tracking accuracy of the flight state of the unmanned aerial vehicle. Adding pseudo-measurement parameters in the flight state measurement vector is conducive to improving the performance of the Kalman filter by using pseudo-measurement constraints. The redundant backup of drone flight status data is conducive to dealing with emergencies. At the same time, the drone with the shortest communication path length in the cluster is selected for backup, and the data transmission efficiency is high. The flight status data of the drone cluster is stored in the ground storage device, which realizes the large-capacity transmission and offline storage of the flight status data of the drone cluster. The ground storage device establishes a storage data index sequence, which is conducive to efficient search and management of data; the ground storage device deletes duplicate data to reduce the space occupied by data.
[0114] The UAV cluster flight state estimation method based on Kalman filtering of the present invention uses a local coordinate system to measure position parameters, imposes pseudo-measurement constraints, and improves the accuracy of flight state estimation; establishes a cluster communication link and realizes data redundancy backup, thereby improving the robustness of UAV cluster flight state data storage, and has great application prospects. BRIEF DESCRIPTION OF THE DRAWINGS
[0115] Figure 1 The present invention is a flowchart of a method and system for estimating the flight state of a UAV cluster based on Kalman filtering according to an embodiment of the present invention.
[0116] Figure 2The figure is a schematic diagram of a process of finding two UAVs with the shortest communication path length in a cluster according to an embodiment of the present invention. DETAILED DESCRIPTION
[0117] The present invention is further described below in conjunction with the accompanying drawings, but the present invention is not limited in any way. Any changes or substitutions made based on the teachings of the present invention belong to the protection scope of the present invention.
[0118] Embodiment 1: A method and system for estimating the flight state of a drone cluster based on Kalman filtering, such as Figure 1 As shown, the following steps are included:
[0119] S1: After all drones are started, they perform self-checks. Each drone establishes a communication data packet with other drones, builds an entropy decision matrix, and establishes a communication link with other drones in the cluster.
[0120] S101, the drone first checks the servo to ensure that the servo is at zero position and the servo output setting is consistent with the feedback;
[0121] S102, the drone checks the GPS sensor to ensure that the GPS positioning status is consistent with the feedback, the positioning time refresh meets the mission requirements, and the drone altitude control is consistent with the feedback;
[0122] S103, the UAV checks the inertial navigation system to ensure that the attitude control and feedback of the UAV are consistent, and the angular rate control and feedback are consistent;
[0123] S104, the UAV checks the engine control unit to ensure that the current temperature does not exceed the warning line, the engine oil pump is in normal condition, and the UAV communication status is normal;
[0124] S105, the UAV checks the flight status to ensure that the flight attitude is stable, the angular rate control is consistent with the feedback, the vertical speed control is consistent with the feedback, and the calculated value of the aircraft control parameter is consistent with the feedback;
[0125] S106, the drone checks the camera it carries to ensure that the camera input voltage and input current are stable, that the camera image brightness control is consistent with feedback, that the exposure time control is consistent with feedback, and that the sensitivity control is consistent with feedback, and that the captured image is not blurred;
[0126] S111, drone i establishes communication data packet:
[0127]
[0128] Among them, Ba is the data volume of a communication data packet; x is the random physical quantity of the communication data packet, which is randomly generated by UAV i and is used to receive the UAV to verify the communication data packet; Q is the storage capacity of the communication data packet, ξ is the communication channel retrieval parameter, A is the communication data feature quantity, and || represents the absolute value of the variable;
[0129] S112, UAV i sends communication data packets to other UAVs, and builds a decision matrix based on the data transmission volume:
[0130]
[0131] Among them, K(i) represents the decision matrix of UAV i, and its elements represent the amount of data required to initially establish a communication link; Indicates the amount of data sent by drone i to drone 1, represents the amount of data sent by drone 1 to drone i, Indicates the amount of data sent by drone i to drone 2, represents the amount of data sent by drone 2 to drone i, represents the amount of data sent by drone i to drone p, represents the amount of data sent by drone p to drone i, p represents the number of drones in the cluster, p>1;
[0132]
[0133] in, represents the amount of data sent by drone i to drone j, represents the number of communication data packets sent from drone i to drone j, i, j represent drone numbers, 1≤i≤p, 1≤j≤p, when i=j,
[0134] S113, further optimize the decision matrix K′(i) of drone i, K′(i) is a matrix with 2 rows and p columns, p represents the number of drones in the cluster, and the element in the mth row and nth column of K′(i) is expressed as:
[0135]
[0136] Among them, K′ m,n (i) represents the element in the mth row and nth column of K′(i), which is obtained by standardizing the elements in the decision matrix K(i). m,n (i) represents the element in the mth row and nth column of the decision matrix K(i); when m=1, represents the amount of data sent by drone i to drone n; when m = 2, represents the amount of data sent by drone n to drone i, max(K m,n (i)) represents the element with the largest value in the decision matrix K(i), min(K m,n (i)) represents the element with the smallest value in the decision matrix K(i);
[0137] Construct the decision matrix Sh(i) of drone i based on entropy value. Sh(i) is a matrix with 1 row and p columns. p represents the number of drones in the cluster. The element of the nth column in Sh(i) is expressed as:
[0138]
[0139] Among them Sh n is the element in the nth column of Sh(i), representing the entropy value of the data exchanged between drone i and drone n, K′ m,n (i) represents the element in the mth row and nth column of the optimized decision matrix K′(i), It represents the sum of the elements in the nth column of the optimized decision matrix K′(i), which is the amount of data exchanged between UAV i and UAV n after normalization; represents the sum of all elements in the optimized decision matrix K′(i), which is the amount of data exchanged between UAV i and all UAVs in the cluster after normalization;
[0140] S114, determine the smallest element Sh in the decision matrix Sh(i) based on entropy value of UAV i r , r is the element Sh r Column index in Sh(i), UAV i establishes a communication link with UAV r.
[0141] S2: Each UAV establishes a flight status mapping table, collects its own flight status, and updates it to the flight status mapping table.
[0142] S201, drone i establishes a local coordinate system, with the flight direction as the X direction, the Y direction on the same horizontal plane as the flight direction and perpendicular to the flight direction, and the Z direction perpendicular to the ground;
[0143] S202, drone i records its own flight status at time k, including: flight attitude zit k , three-dimensional position posi k , real-time speed vshi k , pitch angle pit k , heading angle yaw k , roll angle rol k ;
[0144] Calculate the single-axis rotation matrix of drone i:
[0145]
[0146]
[0147]
[0148] Among them, Xuan k (X) represents the X-axis rotation matrix of drone i at time k, Xuan k (Y) represents the Y-axis rotation matrix of drone i at time k, Xuan k (Z) represents the Z-axis rotation matrix of UAV i at time k;
[0149] Calculate the total rotation matrix of drone i:
[0150] ZXuan k =Xuan k (X) Xuan k (Y) Xuan k (Z)
[0151] Among them, ZXuan k represents the total rotation matrix of UAV i at time k;
[0152] Calculate the three-dimensional position of drone i in the latitude and longitude coordinate system:
[0153] Plalo k =ZXuan k (X,Y,Z)·posi k
[0154] Among them, Plalo k represents the three-dimensional position of UAV i in the latitude and longitude coordinate system at time k, posi k represents the three-dimensional position of UAV i in the local coordinate system at time k;
[0155] Calculate the speed of drone i in the latitude and longitude coordinate system:
[0156]
[0157] Among them, Vlalo k represents the speed of UAV i in the latitude and longitude coordinate system at time k, Plalo k+1 represents the three-dimensional position of UAV i in the longitude and latitude coordinate system at time (k+1), and Δt represents the time interval between adjacent times;
[0158] S203, drone i establishes a flight status mapping table Fe, recording its own number, timestamp Tim, and flight status at time k, including: flight attitude zit k , the three-dimensional position of the latitude and longitude coordinate system Plalok , the speed Vlalo in the latitude and longitude coordinate system k , pitch angle pit k , heading angle yaw k , roll angle rol k .
[0159] S3: Each UAV adopts the Kalman filtering method and introduces pseudo-measurement constraints to achieve flight state filtering, and uses the filtered flight state data to update the flight state mapping table.
[0160] S301, establish the real flight state vector of UAV i at time k:
[0161] Sta k =[Pgh k ,Vgh k ]
[0162] Among them, Sta k represents the real flight state vector of UAV i at time k, Pgh k represents the real position of UAV i at time k, and Vgh represents the real speed of UAV i at time k;
[0163] The flight state measurement vector of the UAV is constructed using pseudo-measurement parameters. The flight state measurement vector of UAV i at time k is expressed as:
[0164] Mea k =[Plalo k ,Vlalo k ,ZXuan k ,δ k ]
[0165] Among them, Me k represents the flight state measurement vector of UAV i at time k, δ k represents the pseudo-measurement parameter, which is equal to the measured position of the local coordinate system of UAV i at time k, and is expressed as:
[0166] δ k =Plalo k ·ZXuan k -1
[0167] Among them, ZXuan k -1 Express your gratitude to ZXuan k Matrix inversion;
[0168] S302, establish a discrete state space model for estimating the flight state of UAV i:
[0169] Sta k+1=F·Sta k +σ k
[0170] Mea k+1 =H·Sta k +υ k
[0171] Among them, Sta k+1 represents the real flight state vector of UAV i at time (k+1), F represents the state transfer matrix of UAV i motion, σ k represents process noise, H represents the observation matrix, υ k represents the observation noise;
[0172] S303, predicting the flight status of UAV i:
[0173] Sta k+1|k =F·Sta k
[0174] P k+1|k =FP k F T +Q k
[0175] Among them, Sta k+1|k represents the real flight state vector prediction vector of UAV i at time (k+1), P k+1|k represents the predicted value of the covariance matrix at time (k+1), P k represents the covariance matrix value at time k, F T represents the transpose of matrix F, Q k represents the k-time process noise covariance matrix;
[0176] S304, calculate the Kalman gain:
[0177] KZ k+1 =P k+1|k H T (HP k+1|k H T +R k+1 ) -1
[0178] Among them Kz k+1 represents the Kalman gain at time (k+1), R k+1 represents the observation noise covariance, (HP k+1|k H T +R k+1 ) -1 Indicates HP k+1|k H T +R k+1 Find the inverse matrix;
[0179] S305, the actual flight status of UAV i at time (k+1) is updated to:
[0180] Sta k+1 =Sta k+1|k +Kz k+1 (Mea k+1 -H. Sta k+1|k )
[0181] Sta k+1 =[Pgh k+1 ,Vgh k+1 ]
[0182] Among them, Pgh k+1 represents the real position of UAV i at time (k+1), Vgh k+1 represents the real speed of UAV i at time (k+1);
[0183] The estimated value of the covariance matrix at time (k+1) is expressed as:
[0184] P k+1 =(I-Kz k+1 H)P k+1|k
[0185] Among them, P k+1 represents the estimated value of the covariance matrix at time (k+1), and I represents the unit diagonal matrix;
[0186] S306, drone i uses the real position Pgh at time (k+1) k+1 Update the three-dimensional position Plalo of the latitude and longitude coordinate system in the flight status mapping table Fe k , using the real speed Vgh at time (k+1) k+1 Update the speed Vlalo of the latitude coordinate system in the flight status mapping table Fe k , and update the record timestamp Tim.
[0187] S4: Figure 2 As shown, two UAVs with the shortest communication path length in the cluster are found, a redundant pair is established, and redundant backup of the flight status mapping table is realized.
[0188] S401, establish cluster communication relationship matrix:
[0189] Con=(con i,j )
[0190] where con i,j =1 indicates that UAV i and UAV j have established a direct communication link, con i,j= 0 means that UAV i and UAV j have not established communication. When i = j, con i,j =0;
[0191] S402, establishing a cluster communication path length matrix:
[0192] Dis=(dis i,j )
[0193] where dis i,j Indicates that drone i and drone j are connected by dis i,j The communication is achieved through forwarding and meets the requirements of dis i,1 ≥0,dis i,j =dis j,i ;
[0194] S403, setting the initial value of the cluster communication path length matrix Dis:
[0195] dis i,j =p+1
[0196] Among them, dis i,j Represents the communication path length between UAV i and UAV j, traversing the cluster communication relationship matrix Con, when con i,j =1, set the elements in the matrix Dis:
[0197] dis i,j =dis j,i =con i,j
[0198] It means that UAV i and UAV j have established a direct communication link; when con i,j = 0, no operation is performed on the elements in the matrix Dis;
[0199] S404, loop through the cluster communication path length matrix Dis, if the communication path length dis between drone i and drone j is i,j =p+1, jump to S405, when all elements of cluster communication path length matrix Dis satisfy 0≤dis i,j <p+1, exit the loop;
[0200] S405, for drone h, h∈[1,p],h≠i,h≠j, when the communication path length between drone i and drone h is dis i,h Satisfy 0<dis i,h <p+1, and the communication path length between drone h and drone j is dis h,j Satisfy 0<dis h,j When <p+1, we get:
[0201] dis i,j=dis i,h +dis h,j
[0202] Among them, dis i,j represents the communication path length between UAV i and UAV j, dis i,h represents the communication path length between UAV i and UAV h, dis h,j represents the communication path length between UAV h and UAV j;
[0203] Otherwise, dis i,h with dis h,j remain unchanged;
[0204] Jump to S404;
[0205] S406, the two UAVs with the shortest communication path length in the cluster establish a redundant pair to achieve redundant backup of the flight status mapping table Fe.
[0206] S5: All drones in the cluster store their own flight status mapping table obtained in S3 and the flight status mapping table of other drones obtained in S4 to the ground storage device, and the ground storage device establishes a storage data index sequence and deletes duplicate data.
[0207] S501, all drones in the cluster transmit their own flight status mapping table obtained in S3 and the flight status mapping table of other drones obtained in S4 to the ground storage device;
[0208] S502, the ground storage device establishes a storage data index sequence according to the drone number;
[0209] S503, the ground storage device performs duplicate data detection according to the stored data index sequence and deletes the duplicate data;
[0210] S503, all drones exit the cluster and stop working.
[0211] Embodiment 2: The present invention also discloses a method and system for estimating the flight state of a UAV cluster based on Kalman filtering, which includes the following six modules:
[0212] UAV self-check module: check the servo, GPS sensor, inertial navigation, engine control unit, flight status and camera;
[0213] UAV cluster communication module: establishes communication data packets with other UAVs, builds an entropy decision matrix, and establishes communication links with other UAVs in the cluster; it is characterized by also including:
[0214] UAV flight status collection module: realizes flight status coordinate conversion, collects flight status, and updates flight status mapping table;
[0215] UAV flight status filtering module: uses Kalman filtering method to filter the UAV flight status;
[0216] UAV flight status backup module: The two UAVs with the shortest communication path length in the cluster establish a redundant pair to perform redundant backup of the flight status mapping table;
[0217] UAV flight status storage module: stores the flight status mapping table to the ground storage device, establishes the storage data index sequence, and deletes duplicate data.
[0218] It should be noted that the serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages and disadvantages of the embodiments. And the terms "including", "comprising" or any other variants thereof in this article are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "including a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.
[0219] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0220] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for estimating the flight state of a UAV cluster based on Kalman filtering. After the UAV is started, the servo, GPS sensor, inertial navigation, engine control unit, flight state and camera are checked. After the self-check is correct, the method waits for user instructions. The method is characterized in that: The following steps are involved: S1, each UAV establishes a communication data packet with other UAVs, builds an entropy decision matrix, and establishes a communication link with other UAVs in the cluster; S2, each UAV establishes its own flight status mapping table, collects its own flight status, and updates it to the flight status mapping table; S3, adopting the Kalman filtering method and introducing pseudo-measurement constraints to achieve flight state filtering, and using the filtered flight state data to update the flight state mapping table; S4, the two drones with the shortest communication path length in the cluster establish a redundant pair to achieve redundant backup of the flight status mapping table; S5, all drones in the cluster store their own flight status mapping table obtained in S3 and the flight status mapping table of other drones obtained in S4 to the ground storage device, and the ground storage device establishes a storage data index sequence and deletes duplicate data.
2. The UAV cluster flight state estimation method based on Kalman filtering according to claim 1 is characterized in that: The step S1 comprises: S101, drone i establishes communication data packet: Among them, Ba is the data volume of a communication data packet; x is the random physical quantity of the communication data packet, which is randomly generated by UAV i and is used to receive the UAV to verify the communication data packet; Q is the storage capacity of the communication data packet, ξ is the communication channel retrieval parameter, A is the communication data feature quantity, and | | represents the absolute value of the variable; S102, UAV i sends communication data packets to other UAVs, and builds a decision matrix based on the data transmission volume: Among them, K(i) represents the decision matrix of UAV i, and its elements represent the amount of data required to initially establish a communication link; Indicates the amount of data sent by drone i to drone 1, represents the amount of data sent by drone 1 to drone i, Indicates the amount of data sent by drone i to drone 2, represents the amount of data sent by drone 2 to drone i, represents the amount of data sent by drone i to drone p, represents the amount of data sent by drone p to drone i, p represents the number of drones in the cluster, p>1; in, represents the amount of data sent by drone i to drone j, represents the number of communication data packets sent from drone i to drone j, i, j represent drone numbers, 1≤i≤p, 1≤j≤p, when i=j, S103, further optimize the decision matrix K′(i) of drone i, K′(i) is a matrix of 2 rows and p columns, and the element of the mth row and nth column in K′(i) is expressed as: Among them, K′ m,n (i) represents the element in the mth row and nth column of K′(i), which is obtained by standardizing the elements in the decision matrix K(i). m,n (i) represents the element in the mth row and nth column of the decision matrix K(i); when m=1, represents the amount of data sent by drone i to drone n; when m = 2, represents the amount of data sent by drone n to drone i, max(K m,n (i)) represents the element with the largest value in the decision matrix K(i), min(K m,n (i)) represents the element with the smallest value in the decision matrix K(i); Construct the decision matrix Sh(i) of drone i based on entropy value. Sh(i) is a matrix with 1 row and p columns. The element in the nth column of Sh(i) is expressed as: Among them Sh n is the element in the nth column of Sh(i), representing the entropy value of the data exchanged between drone i and drone n, K′ m,n (i) represents the element in the mth row and nth column of the optimized decision matrix K′(i), It represents the sum of the elements in the nth column of the optimized decision matrix K′(i), which is the amount of data exchanged between UAV i and UAV n after normalization; represents the sum of all elements in the optimized decision matrix K′i), and is the amount of data exchanged between UAV i and all UAVs in the cluster after normalization; S104, determine the element Sh with the smallest value in the decision matrix Sh(i) based on entropy value of UAV i r , r is the element Sh r Column index in Sh(i), UAV i establishes a communication link with UAV r.
3. The UAV cluster flight state estimation method based on Kalman filtering according to claim 2 is characterized in that: The step S2 comprises: S201, drone i establishes a local coordinate system, with the flight direction as the X direction, the Y direction on the same horizontal plane as the flight direction and perpendicular to the flight direction, and the Z direction perpendicular to the ground; S202, drone i records its own flight status at time k, including: flight attitude zit k , three-dimensional position posi k , real-time speed vshi k , pitch angle pit k , heading angle yaw k , roll angle rol k ; Calculate the single-axis rotation matrix of drone i: Among them, Xuan k (X) represents the X-axis rotation matrix of drone i at time k, Xuan k (Y) represents the Y-axis rotation matrix of drone i at time k, Xuan k (Z) represents the Z-axis rotation matrix of UAV i at time k; Calculate the total rotation matrix of drone i: ZXuan k =Xuan k (X) Xuan k (Y) Xuan k (Z) Among them, ZXuan k represents the total rotation matrix of UAV i at time k; Calculate the three-dimensional position of drone i in the latitude and longitude coordinate system: Plalo k =ZXuan k (X,Y,Z)·position k Among them, Plalo k represents the three-dimensional position of UAV i in the latitude and longitude coordinate system at time k, posi k represents the three-dimensional position of UAV i in the local coordinate system at time k; Calculate the speed of drone i in the latitude and longitude coordinate system: Among them, Vlalo k represents the speed of UAV i in the latitude and longitude coordinate system at time k, Plalo k+1 represents the three-dimensional position of UAV i in the longitude and latitude coordinate system at time (k+1), and Δt represents the time interval between adjacent times; S203, drone i establishes a flight status mapping table Fe, recording its own number, timestamp Tim, and flight status at time k, including: flight attitude zit k , the three-dimensional position of the latitude and longitude coordinate system Plalo k , the speed Vlalo in the latitude and longitude coordinate system k , pitch angle pit k , heading angle yaw k , roll angle rol k .
4. The method for estimating the flight state of a UAV cluster based on Kalman filtering according to claim 3 is characterized in that: The step S3 comprises: S301, establish the real flight state vector of UAV i at time k: Sta k =[Pgh k ,Vgh k ] Among them, Sta k represents the real flight state vector of UAV i at time k, Pgh k represents the real position of UAV i at time k, and Vgh represents the real speed of UAV i at time k; The flight state measurement vector of the UAV is constructed using pseudo-measurement parameters. The flight state measurement vector of UAV i at time k is expressed as: Mea k =[Plalo k ,Vlalo k ,ZXuan k ,δ k ] Among them, Me k represents the flight state measurement vector of UAV i at time k, δ k represents the pseudo-measurement parameter, which is equal to the measured position of the local coordinate system of UAV i at time k, and is expressed as: δ k =It was pouring k ·ZXuan k -1 Among them, ZXuan k -1 Express your gratitude to ZXuan k Matrix inversion; S302, establish a discrete state space model for estimating the flight state of UAV i: Is k+1 =F·Sta k +σ k My k+1 =H·Stay k +υ k Among them, Sta k+1 represents the real flight state vector of UAV i at time (k+1), F represents the state transfer matrix of UAV i motion, σ k represents process noise, H represents the observation matrix, υ k represents the observation noise; S303, predicting the flight status of UAV i: Is k+1|k =F·Sta k P k+1|k =FP k F T +Q k Among them, Sta k+1|k represents the real flight state vector prediction vector of UAV i at time (k+1), P k+1|k represents the predicted value of the covariance matrix at time (k+1), P k represents the covariance matrix value at time k, F T represents the transpose of matrix F, Q k represents the k-time process noise covariance matrix; S304, calculate the Kalman gain: Kz k+1 =P k+1|k H T (HP k+1|k H T +R k+1 ) -1 Among them Kz k+1 represents the Kalman gain at time (k+1), R k+1 represents the observation noise covariance, (HP k+1|k H T +R k+1 ) -1 Indicates HP k+1|k H T +R k+1 Find the inverse matrix; S305, the actual flight status of UAV i at time (k+1) is updated to: stay k+1 =Stay k+1|k +Kz k+1 (My k+1 -H·Stay k+1|k ) Sta k+1 =[Pgh k+1 ,Vgh k+1 ] Among them, Pgh k+1 represents the real position of UAV i at time (k+1), Vgh k+1 represents the real speed of UAV i at time (k+1); The estimated value of the covariance matrix at time (k+1) is expressed as: P k+1 =(I-Kz k+1 H)P k+1|k Among them, P k+1 represents the estimated value of the covariance matrix at time (k+1), and I represents the unit diagonal matrix; S306, drone i uses the real position Pgh at time (k+1) k+1 Update the three-dimensional position Plalo of the latitude and longitude coordinate system in the flight status mapping table Fe k , using the real speed Vgh at time (k+1) k+1 Update the speed Vlalo of the latitude coordinate system in the flight status mapping table Fe k , and update the record timestamp Tim.
5. The UAV cluster flight state estimation method based on Kalman filtering according to claim 4 is characterized in that: The step S4 comprises: S401, establish cluster communication relationship matrix: With=(with i,j ) where con i,j =1 indicates that UAV i and UAV j have established a direct communication link, con i,j = 0 means that UAV i and UAV j have not established communication. When i = j, con i,j =0; S402, establishing a cluster communication path length matrix: Dis=(dis i,j ) where dis i,j Indicates that drone i and drone j are connected by dis i,j The communication is achieved through forwarding and meets the requirements of dis i,1 ≥0,dis i,j =dis j,i ; S403, setting the initial value of the cluster communication path length matrix Dis: push i,j =p+1 Among them, dis i,j Represents the communication path length between UAV i and UAV j; traverse the cluster communication relationship matrix Con, when con i,j =1, set the elements in the matrix Dis: push i,j =dis j,i =with i,j It means that UAV i and UAV j have established a direct communication link; when con i,j = 0, no operation is performed on the elements in the matrix Dis; S404, loop through the cluster communication path length matrix Dis, if the communication path length dis between drone i and drone j is i,j =p+1, jump to S405, when all elements of cluster communication path length matrix Dis satisfy 0≤dis i,j <p+1, exit the loop; S405, for drone h, where h ∈ [1, p], h ≠ i, h ≠ j, when the communication path length dis between drone i and drone h i,h satisfies 0 < dis i,h < p + 1, and the communication path length dis between drone h and drone j h,j satisfies 0 < dis h,j < p + 1, it is obtained that: dis i,j =dis i,h +dis h,j Among them, dis i,j represents the communication path length between UAV i and UAV j, dis i,h represents the communication path length between UAV i and UAV h, dis h,j represents the communication path length between UAV h and UAV j; Otherwise, dis i,h with dis h,j remain unchanged; Jump to S404; S406, the two UAVs with the shortest communication path length in the cluster establish a redundant pair to achieve redundant backup of the flight status mapping table Fe.
6. The UAV cluster flight state estimation method based on Kalman filtering according to claim 5 is characterized in that: The step S5 comprises: S501, all drones in the cluster transmit their own flight status mapping table obtained in S3 and the flight status mapping table of other drones obtained in S4 to the ground storage device; S502, the ground storage device establishes a storage data index sequence according to the drone number; S503, the ground storage device performs duplicate data detection according to the stored data index sequence and deletes the duplicate data; S504, all drones exit the cluster and stop working.
7. A UAV cluster flight state estimation system based on Kalman filtering, comprising: UAV cluster communication module: establishes communication data packets with other UAVs, builds an entropy decision matrix, and establishes communication links with other UAVs in the cluster; it is characterized by also including: UAV flight status collection module: realizes flight status coordinate conversion, collects flight status, and updates flight status mapping table; UAV flight status filtering module: uses Kalman filtering method to filter the UAV flight status; UAV flight status backup module: The two UAVs with the shortest communication path length in the cluster establish a redundant pair to perform redundant backup of the flight status mapping table; UAV flight status storage module: stores the flight status mapping table to the ground storage device, establishes the storage data index sequence, and deletes duplicate data. To realize a method for estimating the flight state of a drone cluster based on Kalman filtering as described in any one of claims 1 to 5.
