A method, device and system for controlling wing changes in the air of a drone

By combining the UAV's attitude angle, wind speed, wind direction and altitude, and using the Kalman filter algorithm and PID controller, the attitude angle calculation error problem of the traditional Kalman filter algorithm under noise changes is solved, and the UAV's changing wings are improved. Control accuracy and flight performance.

CN118689239BActive Publication Date: 2024-10-25ARCTIC OU AVIATION TECH (SHANDONG) GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411186557.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2024-10-25
Estimated Expiration
2044-08-28

AI Technical Summary

Technical Problem

The traditional Kalman filter algorithm causes attitude angle calculation errors due to changes in process noise during the flight of the UAV, reducing the accuracy of wing control.

Method used

By obtaining the first attitude angle, second attitude angle, wind speed, wind direction and altitude of the UAV, combined with the Kalman filter algorithm, the attitude angle influencing factors, environmental influencing factors and dynamic influencing factors are determined, and the attitude angle is iteratively corrected to improve the attitude angle. Calculate the accuracy and adjust the sweep angle through the PID controller.

Benefits of technology

It improves the accuracy of wing control during the UAV's wing change process, reduces attitude angle calculation errors, and improves flight performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118689239B_ABST
    Figure CN118689239B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of attitude control of unmanned aerial vehicles, and specifically to a method, device and system for controlling the aerial wing change of unmanned aerial vehicles, the method comprising: determining the attitude angle influence factor of the unmanned aerial vehicle at each moment; determining the environmental influence factor of the unmanned aerial vehicle at each moment; determining the dynamic influence factor of the unmanned aerial vehicle at each moment based on the attitude angle influence factor and the environmental influence factor of the unmanned aerial vehicle at each moment; determining the optimal attitude angle of the unmanned aerial vehicle at each moment based on the angular velocity data, acceleration data and magnetic field data of the unmanned aerial vehicle at each moment, combined with the dynamic influence factor, and controlling the wings of the unmanned aerial vehicle at each moment. The present application improves the accuracy of the unmanned aerial vehicle wing change and environmental factors in the attitude angle solution by determining the dynamic influence factor of the unmanned aerial vehicle and combining the Kalman filter algorithm, and improves the accuracy of the control of the wings during the unmanned aerial vehicle wing change process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of attitude control of unmanned aerial vehicles, and in particular to a method, device and system for controlling the mid-air wing changes of unmanned aerial vehicles. Background Art

[0002] UAVs, or unmanned aerial vehicles, are operated by remote control devices or autonomous flight control systems and can perform a variety of tasks, such as reconnaissance, surveillance, cargo transportation, agricultural spraying, environmental monitoring, etc. There are many types of UAVs, including fixed-wing, multi-rotor, helicopter, and hybrid, each with its own unique flight characteristics and application scenarios. Variable-wing UAVs combine the characteristics of fixed-wing and rotary-wing UAVs, and adapt to different flight conditions and mission requirements by changing the sweep angle of the wings.

[0003] The sweep angle of the wing is precisely controlled through the attitude angle of the drone, ensuring that the drone can change its wings in the air and maintain optimal flight performance. However, the sensor errors will accumulate over time, and the Kalman filter is needed to fuse the data of each sensor to obtain more accurate data. In the traditional Kalman filter algorithm, the parameter Q is determined based on prior knowledge, and the drone will be disturbed during flight, causing changes in process noise, which will cause errors in the attitude angle solution and reduce the accuracy of wing control during the drone's wing change process. Summary of the invention

[0004] In a first aspect, an embodiment of the present application provides a method for controlling an aerial wing change of a drone, the method comprising the following steps:

[0005] The first attitude angle, the second attitude angle, the wind speed, the wind direction and the altitude of the drone at each moment are obtained. The attitude angle of the drone at each moment is iteratively corrected by combining the first attitude angle and the second attitude angle and adopting the Kalman filter algorithm to obtain the optimal attitude angle at each moment. The correction process is as follows:

[0006] According to the change rate of the best attitude angle of the UAV at all adjacent wing change start moments before each moment, the attitude angle influencing factor of the UAV at each moment is determined;

[0007] Determine the environmental impact factor of the drone at each moment according to the difference between the altitude of the drone at each moment and the altitude of the drone at the previous moment, combined with the wind direction and the wind speed;

[0008] Based on the attitude angle influencing factors and environmental influencing factors of the UAV at each moment, determine the dynamic influencing factors of the UAV at each moment;

[0009] The Kalman filter algorithm is used to determine the optimal attitude angle of the UAV at each moment based on the first attitude angle and the second attitude angle of the UAV at each moment and the dynamic influencing factor, and the wings of the UAV at each moment are controlled.

[0010] Preferably, the step of obtaining the first attitude angle and the second attitude angle of the drone at each moment includes:

[0011] The gyroscope is used to obtain the attitude angle of the UAV at each moment, which is recorded as the first attitude angle; the second attitude angle of the UAV at each moment is obtained through the acceleration data and magnetic field data of the UAV at each moment.

[0012] Preferably, the expression of the attitude angle influence factor of the UAV at each moment is: ; In the formula, represents the attitude angle influence factor of the UAV at the I moment; They represent the pitch angle change rate, roll angle change rate and yaw angle change rate at the start of the j-th wing change of the UAV before the I-th moment respectively; N represents the number of wing changes between the take-off moment of the UAV and the I-th moment, where N is 1, .

[0013] Preferably, the pitch angle change rate, roll angle change rate and yaw angle change rate further include:

[0014] Analyze the difference in pitch angle between the start time of each wing change of the UAV and the start time of the next wing change, record it as the pitch angle difference, and count the time interval between the start time of each wing change and the start time of the next wing change, and record the ratio of the pitch angle difference to the time interval as the pitch angle change rate of the UAV at the start time of each wing change before each moment;

[0015] For the roll angle and yaw angle in the optimal attitude angle of the UAV at the wing change moment before each moment, according to the method for obtaining the pitch angle change rate, the roll angle change rate and yaw angle change rate of the UAV at the beginning of each wing change before each moment are respectively obtained.

[0016] Preferably, the expression of the environmental impact factor of the UAV at each moment is: ; In the formula, represents the environmental impact factor of the drone at time I; represents the difference between the altitude of the drone at moment I and the altitude of the drone at moment I-1; Indicates the wind direction at moment I; represents the wind speed at moment I; Represents a preset constant greater than 0; norm() represents a normalization function; sin() represents a sine function.

[0017] Preferably, the expression of the dynamic impact factor of the UAV at each moment is: ; In the formula, represents the dynamic impact factor of the UAV at time I; represents the attitude angle influence factor of the UAV at the I moment; represents the environmental impact factor of the drone at time I; Indicates the preset initial value of parameter Q in the Kalman filter algorithm.

[0018] Preferably, the method for determining the optimal attitude angle of the drone at each moment is:

[0019] The first attitude angle and the second attitude angle of the UAV at each moment are used as the input of the Kalman filter algorithm, and the dynamic influence factor of the UAV at each moment is used as the value of the parameter Q in the Kalman filter algorithm to obtain the optimal attitude angle of the UAV at each moment.

[0020] Preferably, the controlling the wings of the drone at each moment includes:

[0021] The difference between the preset expected attitude angle and the optimal attitude angle of the UAV at each moment is used as the input of the PID controller to control the sweep angle of the UAV.

[0022] In the second aspect, an embodiment of the present application also provides an aerial wing control device for an unmanned aerial vehicle, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein when the processor executes the computer program, the steps of an aerial wing control method for an unmanned aerial vehicle as described in any one of the above items are implemented.

[0023] In a third aspect, an embodiment of the present application provides an aerial wing-changing control system for a drone, the system comprising:

[0024] The UAV data acquisition module is used to obtain the first attitude angle, second attitude angle, wind speed, wind direction and altitude of the UAV at each moment;

[0025] The UAV data analysis module is used to combine the first attitude angle and the second attitude angle and adopt the Kalman filter algorithm to iteratively correct the attitude angle of the UAV at each moment to obtain the optimal attitude angle at each moment. The correction process is as follows:

[0026] According to the change rate of the best attitude angle of the UAV at all adjacent wing change start moments before each moment, the attitude angle influencing factor of the UAV at each moment is determined;

[0027] Determine the environmental impact factor of the drone at each moment according to the difference between the altitude of the drone at each moment and the altitude of the drone at the previous moment, combined with the wind direction and the wind speed;

[0028] Based on the attitude angle influencing factors and environmental influencing factors of the UAV at each moment, determine the dynamic influencing factors of the UAV at each moment;

[0029] The UAV wing control module is used to use a Kalman filter algorithm to determine the optimal attitude angle of the UAV at each moment based on the first attitude angle and the second attitude angle of the UAV at each moment in combination with the dynamic influencing factor, and control the wings of the UAV at each moment.

[0030] It can be seen from the above embodiments that the aerial wing control method for a drone provided in the embodiments of the present application has at least the following beneficial effects:

[0031] The present application determines the attitude angle influence factor of the UAV at each moment by analyzing the change rate of the attitude angle of all adjacent wing change start moments before the UAV at each moment; determines the environmental influence factor of the UAV at each moment based on the difference between the altitude of the UAV at each moment and the altitude of the UAV at the previous moment, combined with the wind direction and the wind speed, so as to quantify the influence of adjacent attitude angle changes of the UAV on the accuracy of attitude angle solution; determines the dynamic influence factor of the UAV at each moment based on the attitude angle influence factor and environmental influence factor of the UAV at each moment, and determines the optimal attitude angle of the UAV at each moment in combination with the angular velocity data, acceleration data and magnetic field data of the UAV at each moment, so as to realize the control of the wings of the UAV at each moment.

[0032] This application determines the dynamic influencing factors of the UAV by analyzing the influence of adjacent wing changes during the UAV's wing change process on the accuracy of attitude angle solution in the subsequent wing change process, and the influence of environmental factors during the UAV's wing change process on the accuracy of attitude angle solution, and assists the Kalman filter algorithm to improve the accuracy of attitude angle solution caused by UAV wing changes and environmental factors, and improves the accuracy of wing control during the UAV's wing change process. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0034] Figure 1 A flowchart of a method for controlling wing changes in the air for a drone provided in one embodiment of the present application;

[0035] Figure 2 A schematic diagram of a dynamic impact factor extraction process provided by an embodiment of the present application;

[0036] Figure 3 A schematic diagram of optimal estimated angles of pitch angle, roll angle and yaw angle provided by one embodiment of the present application;

[0037] Figure 4 A block diagram of an aerial wing-changing control system for a drone is provided for one embodiment of the present application. DETAILED DESCRIPTION

[0038] In order to further explain the technical means and effects adopted by the present application to achieve the predetermined invention purpose, the following is a detailed description of the air wing control method, device and system for a drone proposed in the present application, its specific implementation method, structure, features and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0039] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.

[0040] The following is a detailed description of a specific scheme of an aerial wing-changing control method, device and system for a UAV provided by the present application in conjunction with the accompanying drawings.

[0041] See also Figure 1 , which shows a flowchart of a method for controlling wing changes in the air for a drone provided by an embodiment of the present application, the method comprising the following steps:

[0042] The attitude angle is a set of angles that describe the spatial orientation of the aircraft relative to a reference coordinate system, usually relative to the drone coordinate system or the aircraft's own coordinate system. In this embodiment, it is the drone coordinate system. There are three main attitude angles of the aircraft: pitch angle, roll angle, and yaw angle, which correspond to the rotation of the aircraft on three orthogonal axes.

[0043] Pitch Angle : This is the rotation angle of the aircraft around its lateral axis (roll axis). When the nose of the aircraft moves up or down, the pitch angle increases or decreases accordingly. Changes in pitch angle affect the relationship between the lift and weight of the aircraft, which in turn affects whether it climbs or descends.

[0044] Roll Angle : Roll angle is the rotation angle of the aircraft around its forward direction axis (pitch axis). When the aircraft tilts left or right, the roll angle changes. Roll angle is crucial to the controllability of the aircraft because it affects the lift distribution and lateral stability of the aircraft.

[0045] Yaw angle : The yaw angle is the rotation angle of the aircraft around its vertical axis (yaw axis). When the nose of the aircraft turns left or right, the yaw angle changes accordingly. The change in yaw angle allows the aircraft to adjust its direction in the horizontal plane.

[0046] Step S1: Use sensors to collect information about the drone and the environment, and obtain the first attitude angle, second attitude angle, wind speed, wind direction, and altitude of the drone at each moment.

[0047] S101: Collect various data during the flight of the drone.

[0048] The three-axis gyroscope collects the angular velocity data of the drone at a frequency of .

[0049] The three-axis accelerometer collects the acceleration data of the drone at a frequency of .

[0050] The three-axis magnetometer collects magnetic field data in the drone coordinate system at a frequency of .

[0051] Wind speed and direction sensors collect wind speed and direction during the flight of the drone at a frequency of .

[0052] GPS, collects the global positioning information of the drone, including latitude, longitude and altitude, with a collection frequency of .

[0053] The UAV's flight data recorder records the time data when the UAV starts to change its wings.

[0054] In this embodiment, data collection is a real-time process, and relevant data at every moment of the aircraft's flight process is collected from the moment the drone takes off.

[0055] The data collected by all sensors are normalized. Commonly used data normalization methods include maximum and minimum value normalization, z-score normalization, etc. In this embodiment, the z-score normalization method is used to standardize the data. The implementer may also use other normalization methods, which are not particularly limited in this embodiment.

[0056] Among them, the z-score normalization method is a well-known technology, and the specific process of normalizing the data is not repeated here.

[0057] It should be noted that the collection frequency , , , , The values ​​of are all set manually. , , , , The value of is 50 Hz, and the implementer can also set it according to the specific situation. This embodiment does not impose any special restrictions.

[0058] S102: Obtain the first attitude angle and the second attitude angle of the drone at each moment.

[0059] The attitude angle of the UAV at each moment is obtained through the gyroscope and recorded as the first attitude angle;

[0060] The attitude angle obtained by the acceleration data and magnetic field data of the drone at each moment is recorded as the second attitude angle.

[0061] It should be noted that the process of obtaining the attitude angle of the drone at each moment through the gyroscope, acceleration data and magnetic field data is a well-known technology, and the specific process of obtaining the attitude angle will not be repeated here.

[0062] Step S2: Determine the attitude angle influence factor of the UAV at each moment according to the change rate of the optimal attitude angle of the UAV at all adjacent wing change start moments before each moment.

[0063] Sweep angle is a term used in aeronautics to describe the angle between the wing surface of an aircraft and the direction of travel. The sweep angle is one of the key parameters in drone design, which directly affects the aerodynamic characteristics and flight performance of the drone. The wing design of a variable-wing drone adapts to different flight phases by adjusting the sweep angle. During takeoff and landing, the drone can reduce the sweep angle to make the wing straighter, thereby providing greater lift and enhancing stability; while during high-speed cruising, the drone increases the sweep angle to make the wing more obviously swept back to reduce drag and increase flight speed.

[0064] When the drone changes its wings, the adjustment of the sweep angle is closely related to the attitude angle of the drone at this time. However, the attitude angle obtained by directly solving the data collected by each sensor will gradually produce errors, because the gyroscope has random drift, the accelerometer is prone to errors in the dynamic environment of flight, and the magnetometer is easily disturbed by the magnetic field. By fusing the data of different sensors through Kalman filtering, the drift value can be corrected to obtain the best attitude angle.

[0065] When the drone changes its flight attitude and adjusts the sweep angle to achieve mid-air wing change, the attitude angle of the drone will also change. Frequent changes will increase the noise in the measurement process, causing deviations in the next attitude angle calculation, affecting the next wing change of the drone in the air. Therefore, the more frequently the attitude angle changes, the greater the impact on the process noise.

[0066] Therefore, based on the change rate of the attitude angle of the adjacent wing changes of the UAV at each moment, the attitude angle influence factor of the UAV at each moment is determined to quantify the influence of the change of the adjacent attitude angle of the UAV on the accuracy of the attitude angle solution, specifically:

[0067] Analyze the difference in pitch angle between the start time of each wing change of the UAV and the start time of the next wing change, record it as the pitch angle difference, and count the time interval between the start time of each wing change and the start time of the next wing change, and record the ratio of the pitch angle difference to the time interval as the pitch angle change rate of the UAV at the start time of each wing change before each moment;

[0068] For the roll angle and yaw angle in the optimal attitude angle of the UAV at the wing change moment before each moment, according to the method for obtaining the pitch angle change rate, the roll angle change rate and yaw angle change rate of the UAV at the beginning of each wing change before each moment are respectively obtained.

[0069] It should be noted that there are many ways to measure the difference. In this embodiment, the difference in attitude angles at adjacent wing changing moments is measured by taking the absolute value of the difference in attitude angles at adjacent wing changing moments. The implementer may also use other methods to measure the difference, such as ratio, and this embodiment does not impose any special restrictions.

[0070] Furthermore, the expression of the attitude angle influencing factor of the UAV at each moment is: ; In the formula, represents the attitude angle influence factor of the UAV at the I moment; They represent the pitch angle change rate, roll angle change rate and yaw angle change rate at the start of the j-th wing change of the UAV before the I-th moment respectively; N represents the number of wing changes between the take-off moment of the UAV and the I-th moment, where N=1, .

[0071] It should be noted that, for the optimal attitude angle when the UAV starts to change its wing for the first time, the average of the first attitude angle and the second attitude angle at the beginning of the first wing change of the UAV is taken as the optimal attitude angle when the UAV starts to change its wing for the first time. For the best attitude angles at the beginning of other UAV wing changes, according to the iterative correction process in the entire UAV aerial wing change control process in this embodiment, the UAV attitude angle is iteratively corrected to obtain the best attitude angle at the beginning of other UAV wing changes.

[0072] According to the above expression, it can be understood that the smaller the difference in attitude angles at adjacent wing change moments, the smaller the error caused, and the longer the time interval between two wing changes, the smaller the influence of the error caused by the previous wing change on the next wing change, and the smaller the value of the attitude angle influence factor, indicating that the influence of the previous wing change on the next wing change is smaller; conversely, the greater the difference in attitude angles at adjacent wing change moments, the greater the error caused, and the shorter the time interval between two wing changes, the greater the influence of the error caused by the previous wing change on the next wing change, and the larger the value of the attitude angle influence factor, indicating that the influence of the previous wing change on the next wing change is greater. At this time, the value of parameter Q in the Kalman filter algorithm should be increased to reduce the influence of noise error.

[0073] Step S3: Determine the environmental impact factor of the drone at each moment based on the difference between the altitude of the drone at each moment and the altitude at the previous moment, combined with the wind direction and wind speed of the drone at each moment.

[0074] The error in attitude angle solution is related to the flight environment of the drone, which is mainly affected by altitude, wind speed and wind direction, where wind direction refers to the angle between the wind and the heading of the drone.

[0075] When the drone takes off and lands, the altitude changes rapidly, and the error in the pitch angle calculation will also increase. When the drone flies steadily in the air, it is mainly affected by wind speed and wind direction. The greater the wind speed, the greater the corresponding error; and the wind direction will affect the calculation of the roll angle and yaw angle. The closer the wind direction is to 90°, the greater the error.

[0076] Therefore, based on the difference between the altitude of the drone at each moment and the altitude at the previous moment, combined with the wind direction and wind speed of the drone at each moment, the environmental impact factor of the drone at each moment is determined to judge the impact of environmental factors on the error caused by the attitude angle solution process, specifically:

[0077] The expression of the environmental impact factor of the UAV at each moment is: ; In the formula, represents the environmental impact factor of the drone at time I; represents the difference between the altitude of the drone at moment I and the altitude of the drone at moment I-1; Indicates the wind direction at moment I; represents the wind speed at moment I; Represents a preset constant greater than 0; norm() represents a normalization function; sin() represents a sine function.

[0078] in, The value of is artificially set to prevent the result of the equation from being 0. The value of is 0.01. Under the premise of ensuring that the result of the equation is not 0 and does not excessively affect the calculation result, the implementer can also set it according to the specific situation. This embodiment does not impose any special restrictions.

[0079] It should be noted that there are many ways to measure the difference. In this embodiment, the absolute value of the difference between the altitude of the drone at each moment and the altitude at the previous moment is taken as a measure of the difference in altitude of the drone at different moments. The implementer can also use other methods such as ratios to measure the difference, and this embodiment does not impose any special restrictions.

[0080] According to the expression of environmental impact factor, it can be understood that the greater the difference in the height of the UAV at adjacent moments, the greater the wind speed and wind direction, the larger the value of the environmental impact factor, which means that the UAV is more affected by environmental changes during the flight process, and the greater the error in the calculation of the UAV attitude angle; conversely, the smaller the difference in the height of the UAV at adjacent moments, the smaller the wind speed and wind direction, and the smaller the value of the environmental impact factor, it means that the UAV flight process is stable, the impact of environmental changes during the flight process is smaller, and the error in the calculation of the UAV attitude angle is smaller.

[0081] Step S4: Determine the dynamic impact factor of the UAV at each moment based on the attitude angle impact factor and the environmental impact factor of the UAV at each moment.

[0082] The value of parameter Q in the Kalman filter algorithm affects the calculation of the Kalman gain. A larger parameter Q value in the Kalman filter algorithm will reduce the Kalman gain, making the filter more dependent on previous predictions rather than the latest observations. The size of the Q value determines the sensitivity of the filter to the observation data. A smaller parameter Q value in the Kalman filter algorithm means that the filter is more sensitive to changes in the observation data and may overreact to noise, resulting in large fluctuations in the estimation results.

[0083] The parameter Q in the Kalman filter algorithm can be calculated by adding noise during simulation experiments, but in actual use, the noise will change with the changes in the UAV's flight environment and its own attitude angle. Therefore, it is necessary to obtain the adaptive Q value in the Kalman filter algorithm based on the environmental data and the changes in the UAV's own attitude angle to eliminate the errors caused by the influence of environmental factors in the attitude angle solution process, so as to make the fusion result more accurate. Specifically:

[0084] Based on the attitude angle influencing factors and environmental influencing factors of the UAV at each moment, the dynamic influencing factors of the UAV at each moment are determined, specifically:

[0085] The expression of the dynamic impact factor of the UAV at each moment is: ; In the formula, represents the dynamic impact factor at the Ith moment; represents the attitude angle influence factor of the UAV at the I moment; represents the environmental impact factor of the drone at time I; Indicates the preset initial value of parameter Q in the Kalman filter algorithm.

[0086] It should be noted that the initial preset value of the parameter Q in the Kalman filter algorithm is manually set. In this embodiment, the initial preset value of the parameter Q in the Kalman filter algorithm is 100. The implementer can also set it by himself according to the specific situation. This embodiment does not impose any special restrictions.

[0087] When the attitude angle influence factor is smaller and the environmental influence factor is smaller, it means that the difference in attitude angles of the UAV at adjacent wing change moments is smaller, the influence of the attitude angle at the last wing change moment on the attitude angle at the next wing change moment is smaller, the impact of environmental changes on the UAV during flight is smaller, the error caused by the calculation of the attitude angle of the UAV is smaller, and the value of the dynamic influence factor is smaller; conversely, when the attitude angle influence factor is larger and the environmental influence factor is larger, it means that the difference in attitude angles of the UAV at adjacent wing change moments is larger, the influence of the attitude angle at the last wing change moment on the attitude angle at the next wing change moment is greater, the impact of environmental changes on the UAV during flight is greater, the error caused by the calculation of the attitude angle of the UAV is larger, and the value of the dynamic influence factor is smaller.

[0088] Preferably, the schematic diagram of the dynamic impact factor extraction process provided in this embodiment is as follows Figure 2 shown.

[0089] Step S5: Using the Kalman filter algorithm, based on the first attitude angle and the second attitude angle of the UAV at each moment, combined with the dynamic influencing factor, determine the optimal attitude angle of the UAV at each moment, and control the wings of the UAV at each moment.

[0090] The first attitude angle and the second attitude angle of the UAV at each moment are used as the input of the Kalman filter algorithm, and the dynamic influence factor of the UAV at each moment is used as the value of the parameter Q in the Kalman filter algorithm to obtain the optimal attitude angle of the UAV at each moment.

[0091] Among them, the Kalman filter algorithm is a well-known technology, and its specific process will not be repeated here.

[0092] It should be noted that the process of iterative correction to obtain the optimal attitude angle of the UAV at each moment is actually to use the Kalman filter algorithm, taking the first attitude angle and the second attitude angle of the UAV at each moment as the input of the Kalman filter algorithm, and taking the dynamic influence factor at each moment as the value of the parameter Q in the Kalman filter algorithm, thereby obtaining the optimal attitude angle of the UAV at each moment.

[0093] Preferably, the schematic diagram of the optimal estimated angles of the pitch angle, roll angle and yaw angle provided in this embodiment is as follows: Figure 3 shown.

[0094] Furthermore, the optimal attitude angle at each moment is obtained based on the Kalman filter algorithm, and the swept wing of the drone is regulated during the wing change process of the drone in combination with the PID controller. Preferably, the specific process of PID control in this embodiment includes: using the difference between the preset expected pitch angle of the drone at each moment and the optimal pitch angle as Indicates that the control input of PID is calculated , The calculation formula is: ; In the formula, , , They are the proportional coefficient, integral coefficient and differential coefficient in the PID controller respectively; Represents the difference between the preset expected pitch angle and the optimal pitch angle at the Ith moment.

[0095] According to the difference between the preset expected roll angle and the optimal roll angle, and the difference between the preset expected yaw angle and the optimal yaw angle of the drone at each moment, the control input The calculation method of control input is and .

[0096] It should be noted that in this embodiment , , The values ​​of are all set manually. , , The values ​​of are 1.5, 0.15, and 0.75 respectively. The implementer can also set it according to the specific situation. This embodiment does not impose any special restrictions.

[0097] According to the PID control input, the required control torque is calculated to adjust the sweep angle. Since the sweep angle adjustment amount is proportional to the attitude control torque, the sweep angle adjustment amount calculation formula is: ; In the formula, Represents the sweep angle adjustment amount of the UAV at the Ith moment.

[0098] PID controller according to The sweep angle adjustment amount controls the sweep angle of the UAV.

[0099] The working principle of the PID controller is a well-known technology, and the specific process of its working principle will not be repeated here.

[0100] At this point, by fusing the first attitude angle and the second attitude angle of the UAV at each moment, the optimal attitude angle of the UAV at each moment is obtained, and based on the difference between the optimal attitude angle of the UAV at each moment and the preset expected attitude angle, the control of the sweep angle at each moment during the UAV wing change process is realized.

[0101] Based on the same inventive concept as the above method, an embodiment of the present application also provides an aerial wing-changing control device for an unmanned aerial vehicle, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the steps of any one of the above-mentioned aerial wing-changing control methods for an unmanned aerial vehicle when executing the computer program.

[0102] Based on the same inventive concept as the above method, the embodiment of the present application also provides an aerial wing-changing control system for a drone, comprising:

[0103] The UAV data acquisition module is used to obtain the first attitude angle, second attitude angle, wind speed, wind direction and altitude of the UAV at each moment;

[0104] The UAV data analysis module is used to combine the first attitude angle and the second attitude angle and adopt the Kalman filter algorithm to iteratively correct the attitude angle of the UAV at each moment to obtain the optimal attitude angle at each moment. The correction process is as follows:

[0105] According to the change rate of the best attitude angle of the UAV at all adjacent wing change start moments before each moment, the attitude angle influencing factor of the UAV at each moment is determined;

[0106] Determine the environmental impact factor of the drone at each moment according to the difference between the altitude of the drone at each moment and the altitude of the drone at the previous moment, combined with the wind direction and the wind speed;

[0107] Based on the attitude angle influencing factors and environmental influencing factors of the UAV at each moment, determine the dynamic influencing factors of the UAV at each moment;

[0108] The UAV wing control module is used to use a Kalman filter algorithm to determine the optimal attitude angle of the UAV at each moment based on the first attitude angle and the second attitude angle of the UAV at each moment in combination with the dynamic influencing factor, and control the wings of the UAV at each moment.

[0109] The embodiment of the present application provides a block diagram of an aerial wing-changing control system for a drone, such as Figure 4 shown.

[0110] It should be noted that the above sequence of the embodiments of the present application is for description only and does not represent the advantages and disadvantages of the embodiments. The above is a description of a specific embodiment of this specification. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0111] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

[0112] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application should be included in the protection scope of the present application.

Claims

1. A method for controlling the wing changes in the air of a drone, characterized in that: The method comprises the following steps: The first attitude angle, the second attitude angle, the wind speed, the wind direction and the altitude of the drone at each moment are obtained. The attitude angle of the drone at each moment is iteratively corrected by combining the first attitude angle and the second attitude angle and adopting the Kalman filter algorithm to obtain the optimal attitude angle at each moment. The correction process is as follows: According to the change rate of the best attitude angle of the UAV at all adjacent wing change start moments before each moment, the attitude angle influencing factor of the UAV at each moment is determined; Determine the environmental impact factor of the drone at each moment according to the difference between the altitude of the drone at each moment and the altitude of the drone at the previous moment, combined with the wind direction and the wind speed; Based on the attitude angle influencing factors and environmental influencing factors of the UAV at each moment, determine the dynamic influencing factors of the UAV at each moment; The Kalman filter algorithm is used to determine the optimal attitude angle of the UAV at each moment based on the first attitude angle and the second attitude angle of the UAV at each moment and the dynamic influencing factor, and the wings of the UAV at each moment are controlled.

2. The method for controlling the air wing change of a UAV according to claim 1, characterized in that: The obtaining of the first attitude angle and the second attitude angle of the drone at each moment includes: The gyroscope is used to obtain the attitude angle of the UAV at each moment, which is recorded as the first attitude angle; the second attitude angle of the UAV at each moment is obtained through the acceleration data and magnetic field data of the UAV at each moment.

3. The method for controlling the air wing change of a UAV according to claim 1, characterized in that: The expression of the attitude angle influence factor of the UAV at each moment is: ; In the formula, represents the attitude angle influence factor of the UAV at the I moment; They represent the pitch angle change rate, roll angle change rate and yaw angle change rate at the start of the j-th wing change of the UAV before the I-th moment respectively; N represents the number of wing changes between the take-off moment of the UAV and the I-th moment, where N is 1, .

4. The method for controlling the air wing change of a UAV as claimed in claim 3, characterized in that: The pitch angle change rate, roll angle change rate and yaw angle change rate further include: Analyze the difference in pitch angle between the start time of each wing change of the UAV and the start time of the next wing change, record it as the pitch angle difference, and count the time interval between the start time of each wing change and the start time of the next wing change, and record the ratio of the pitch angle difference to the time interval as the pitch angle change rate of the UAV at the start time of each wing change before each moment; For the roll angle and yaw angle in the optimal attitude angle of the UAV at the wing change moment before each moment, according to the method for obtaining the pitch angle change rate, the roll angle change rate and yaw angle change rate of the UAV at the beginning of each wing change before each moment are respectively obtained.

5. The method for controlling the air wing change of a UAV according to claim 1, characterized in that: The expression of the environmental impact factor of the UAV at each moment is: ; In the formula, represents the environmental impact factor of the drone at time I; represents the difference between the altitude of the drone at moment I and the altitude of the drone at moment I-1; Indicates the wind direction at moment I; represents the wind speed at moment I; Represents a preset constant greater than 0; norm() represents a normalization function; sin() represents a sine function.

6. The method for controlling the air wing change of a UAV according to claim 1, characterized in that: The expression of the dynamic impact factor of the UAV at each moment is: ; In the formula, represents the dynamic impact factor of the UAV at time I; represents the attitude angle influence factor of the UAV at the I moment; represents the environmental impact factor of the drone at time I; Indicates the preset initial value of parameter Q in the Kalman filter algorithm.

7. The method for controlling the air wing change of a UAV according to claim 1, characterized in that: The method for determining the optimal attitude angle of the UAV at each moment is: The first attitude angle and the second attitude angle of the UAV at each moment are used as the input of the Kalman filter algorithm, and the dynamic influence factor of the UAV at each moment is used as the value of the parameter Q in the Kalman filter algorithm to obtain the optimal attitude angle of the UAV at each moment.

8. The method for controlling the air wing change of a UAV according to claim 1, characterized in that: The controlling of the wings of the UAV at each moment includes: The difference between the preset expected attitude angle and the optimal attitude angle of the UAV at each moment is used as the input of the PID controller to control the sweep angle of the UAV.

9. An aerial wing-changing control device for a drone, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the steps of the aerial wing changing control method for a drone as described in any one of claims 1-8 are implemented.

10. An aerial wing-changing control system for an unmanned aerial vehicle, characterized in that: The system comprises: The UAV data acquisition module is used to obtain the first attitude angle, second attitude angle, wind speed, wind direction and altitude of the UAV at each moment; The UAV data analysis module is used to combine the first attitude angle and the second attitude angle and adopt the Kalman filter algorithm to iteratively correct the attitude angle of the UAV at each moment to obtain the optimal attitude angle at each moment. The correction process is as follows: According to the change rate of the best attitude angle of the UAV at all adjacent wing change start moments before each moment, the attitude angle influencing factor of the UAV at each moment is determined; Determine the environmental impact factor of the drone at each moment according to the difference between the altitude of the drone at each moment and the altitude of the drone at the previous moment, combined with the wind direction and the wind speed; Based on the attitude angle influencing factors and environmental influencing factors of the UAV at each moment, determine the dynamic influencing factors of the UAV at each moment; The UAV wing control module is used to use a Kalman filter algorithm to determine the optimal attitude angle of the UAV at each moment based on the first attitude angle and the second attitude angle of the UAV at each moment in combination with the dynamic influencing factor, and control the wings of the UAV at each moment.