A method for repairing and handling unmanned aerial vehicles (UAVs)
By constructing a dynamic balance function and a flight matrix, and using Euler angles and acceleration data, the problem of low accuracy of UAV attitude monitoring is solved, high-precision analysis and maintenance inspection of UAV attitude are achieved, and the UAV's stability is ensured. Fly safely.
Patent Information
- Application Number
- CN202411019709.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-29
AI Technical Summary
In the flight attitude monitoring of existing UAVs, due to the integral accumulation error of low-cost gyroscopes and the susceptibility of accelerometers to high-frequency noise, the attitude monitoring accuracy is low, making it difficult to ensure the safe flight of UAVs.
By collecting the flight data of the UAV, a dynamic balance function and flight matrix are constructed, using Euler angles and acceleration data to generate dynamic error values, and the flight matrix is calculated after random shuffling to determine whether the UAV attitude meets the maintenance conditions and generate maintenance detection result.
It improves the precision and accuracy of drone attitude monitoring, ensures the flight attitude analysis of the drone within specific working hours, provides a reference basis for maintenance and processing, and ensures the normal operation of the drone.
Smart Images

Figure CN118550314B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of unmanned aerial vehicles, and in particular to a maintenance and processing method for unmanned aerial vehicles. Background Art
[0002] With the development of science and technology in my country and the improvement of scientific and technological levels, drones are being used more and more widely in various fields. As a high-tech weapon system, the fault prediction and maintenance guarantee of drones are increasingly valued by people. In the drone industry, there are many uncertainties in drone flight due to the complex environment. In order to ensure the safe flight of drones, it is necessary to monitor the attitude of drones in real time. Currently, drones usually use low-cost inertial measurement units composed of gyroscopes and accelerometers for flight attitude measurement, but low-cost gyroscopes have integral cumulative errors, and accelerometers are easily affected by high-frequency noise in dynamic attitude measurement, resulting in low accuracy of drone attitude monitoring. Summary of the invention
[0003] In order to solve the above problems, the present invention proposes a maintenance processing method for a drone.
[0004] The technical solution of the present invention is: a method for repairing and processing a drone comprises the following steps:
[0005] S1. Collect the flight data of the UAV during working hours, construct a dynamic balance function, and determine the flight matrix corresponding to the flight data;
[0006] S2. Determine the flight value corresponding to the flight matrix;
[0007] S3. Determine whether the flight value corresponding to the flight matrix meets the maintenance condition of the UAV, and generate a maintenance inspection result of the UAV.
[0008] If the flight value corresponding to the flight matrix meets the maintenance conditions of the drone, it means that the attitude data of the drone has not changed suddenly during the working hours, indicating that there is no drastic change in the attitude of the drone, its operation is stable, and the maintenance inspection result is normal. Otherwise, it means that the attitude of the drone is abnormal and needs to be checked by the operation and maintenance personnel.
[0009] Furthermore, S1 includes the following sub-steps:
[0010] S11. Collecting flight data of the UAV during working hours, wherein the flight data includes acceleration data and Euler angle data during working hours;
[0011] S12, constructing a dynamic balance function for each moment according to the acceleration data and Euler angle data of the drone at each moment during the working time;
[0012] S13, inputting the dynamic balance function at each moment into the PID controller to determine the dynamic error value at each moment;
[0013] S14. Determine the flight matrix corresponding to the flight data according to the dynamic error value at each moment.
[0014] The beneficial effect of the above further scheme is that in the present invention, the Euler angle data includes the roll angle (the rotation angle of the drone around its forward direction axis), the pitch angle (the rotation angle of the drone around its lateral axis, which affects the rise and fall of the drone) and the heading angle (the rotation angle of the drone around its vertical axis, that is, the rotation of the drone around its own center point, which affects the left and right turning of the drone). The Euler angle of the drone is closely related to the acceleration data. The flight matrix composed of the Euler angle and the three-axis acceleration data can effectively reflect the flight attitude of the drone during the working time, taking into account the attitude data of the drone in three-dimensional space.
[0015] Furthermore, in S12, the expression of the dynamic balance function F is:
[0016] ;
[0017] ;
[0018] In the formula, Indicates the roll angle contained in the Euler angle data, Indicates the pitch angle contained in the Euler angle data, Indicates the heading angle contained in the Euler angle data. Indicates the quality of the drone, represents the acceleration due to gravity, represents the acceleration matrix of the drone, Indicates that the drone is The acceleration of the axis, Indicates that the drone is The acceleration of the axis, Indicates that the drone is The acceleration of the axis, Represents a constant.
[0019] Furthermore, in S13, the calculation formula of the dynamic error value E is:
[0020] ;
[0021] In the formula, represents the desired roll angle of the drone, Indicates the roll angle contained in the Euler angle data, represents the desired pitch angle of the drone, Indicates the pitch angle contained in the Euler angle data, represents the desired heading angle of the drone, Indicates the heading angle contained in the Euler angle data. represents the first proportional coefficient of the PID controller, represents the second proportional coefficient of the PID controller, represents the dynamic equilibrium function, Indicates a round-up operation.
[0022] Furthermore, S14 includes the following sub-steps:
[0023] S141, arranging the dynamic error values in chronological order to generate a dynamic error sequence;
[0024] S142. In the dynamic error sequence, from the initial moment to the Take any two dynamic error values at the moment and randomly insert them into the From the moment to the final moment, the moment with a dynamic error value of zero is eliminated to generate the latest dynamic error sequence. Indicates working hours;
[0025] S143. In the latest dynamic error sequence, from Take any four dynamic error values from the initial moment to the final moment, and randomly insert them into At the moment, the final dynamic error sequence is generated;
[0026] S144, calculating the first flight matrix parameters, the second flight matrix parameters and the third flight matrix parameters of the final dynamic error sequence, and determining the flight matrix corresponding to the flight data.
[0027] The beneficial effect of the above further scheme is that: in the present invention, the dynamic error values are randomly shuffled to ensure that the final dynamic error sequence is not only affected by time, and such a sequence is more objective. In addition, the present invention determines the three elements of the flight matrix according to the shuffled final dynamic error sequence to ensure that the flight matrix is more accurate.
[0028] Further, in S144, the first dynamic error value in the final dynamic error sequence is The mean of the dynamic error values is taken as the first flight matrix parameter, where: Represents the number of dynamic error values of the final dynamic sequence, Indicates rounding up operation;
[0029] In S144, the first The average of the dynamic error values to the last dynamic error value is taken as the second flight matrix parameter;
[0030] In S144, the third flight matrix parameters The calculation formula is:
[0031] ;
[0032] In the formula, Indicates the final dynamic error sequence Dynamic error value, Represents the number of dynamic error values of the final dynamic sequence, Represents a logarithmic function.
[0033] Further, in S144, the flight matrix corresponding to the flight data The expression is:
[0034] ;
[0035] In the formula, represents the first flight matrix parameters, represents the second flight matrix parameters, Represents the third flight matrix parameters.
[0036] Furthermore, in S2, the flight value corresponding to the flight matrix The calculation formula is: ; In the formula, represents the maximum singular value of the flight matrix corresponding to the flight data, represents the exponential function, Represents the rank of the flight matrix corresponding to the flight data.
[0037] Furthermore, in S3, the expression of the drone maintenance condition is: ; In the formula, Indicates that the drone is The rolling angle at the moment, Indicates that the drone is The pitch angle at the moment, Indicates that the drone is The heading angle at the moment, Indicates maximum value operation.
[0038] The beneficial effects of the present invention are as follows: the present invention discloses a method for maintaining a UAV, performs attitude analysis on the flight data of the UAV within a specific working time, constructs a dynamic balance function for the attitude of the UAV at each moment, and determines a flight matrix using the dynamic balance function at all moments; the flight matrix considers the flight data of the UAV during the entire duration, and its corresponding flight value can participate in the generation of maintenance detection results; therefore, the present invention can integrate and process the entire flight data of the UAV, determine whether the attitude of the UAV is normal, provide a reference basis for the maintenance and processing of the UAV, and ensure the normal operation of the UAV. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 Flowchart of the UAV maintenance process. DETAILED DESCRIPTION
[0040] The embodiments of the present invention will be further described below in conjunction with the accompanying drawings.
[0041] like Figure 1 As shown, the present invention provides a method for repairing a drone, comprising the following steps:
[0042] S1. Collect the flight data of the UAV during working hours, construct a dynamic balance function, and determine the flight matrix corresponding to the flight data;
[0043] S2. Determine the flight value corresponding to the flight matrix;
[0044] S3. Determine whether the flight value corresponding to the flight matrix meets the maintenance condition of the UAV, and generate a maintenance inspection result of the UAV.
[0045] If the flight value corresponding to the flight matrix meets the maintenance conditions of the drone, it means that the attitude data of the drone has not changed suddenly during the working hours, indicating that there is no drastic change in the attitude of the drone, its operation is stable, and the maintenance inspection result is normal. Otherwise, it means that the attitude of the drone is abnormal and needs to be checked by the operation and maintenance personnel.
[0046] In this embodiment of the present invention, S1 includes the following sub-steps:
[0047] S11. Collecting flight data of the UAV during working hours, wherein the flight data includes acceleration data and Euler angle data during working hours;
[0048] S12, constructing a dynamic balance function for each moment according to the acceleration data and Euler angle data of the drone at each moment during the working time;
[0049] S13, inputting the dynamic balance function at each moment into the PID controller to determine the dynamic error value at each moment;
[0050] S14. Determine the flight matrix corresponding to the flight data according to the dynamic error value at each moment.
[0051] In the present invention, Euler angle data includes roll angle (rotation angle of the drone around its forward direction axis), pitch angle (rotation angle of the drone around its lateral axis, affecting the rise and fall of the drone) and heading angle (rotation angle of the drone around its vertical axis, that is, the rotation of the drone around its own center point, affecting the left and right turn of the drone). The Euler angle of the drone is closely related to the acceleration data. The flight matrix composed of Euler angle and three-axis acceleration data can effectively reflect the flight attitude of the drone during working time, taking into account the attitude data of the drone in three-dimensional space.
[0052] In the embodiment of the present invention, in S12, the expression of the dynamic balance function F is:
[0053] ;
[0054] ;
[0055] In the formula, Indicates the roll angle contained in the Euler angle data, Indicates the pitch angle contained in the Euler angle data, Indicates the heading angle contained in the Euler angle data. Indicates the quality of the drone, represents the acceleration due to gravity, represents the acceleration matrix of the drone, Indicates that the drone is The acceleration of the axis, Indicates that the drone is The acceleration of the axis, Indicates that the drone is The acceleration of the axis, Represents a constant.
[0056] In the embodiment of the present invention, in S13, the calculation formula of the dynamic error value E is:
[0057] ;
[0058] In the formula, represents the desired roll angle of the drone, Indicates the roll angle contained in the Euler angle data, represents the desired pitch angle of the drone, Indicates the pitch angle contained in the Euler angle data, represents the desired heading angle of the drone, Indicates the heading angle contained in the Euler angle data. represents the first proportional coefficient of the PID controller, represents the second proportional coefficient of the PID controller, represents the dynamic equilibrium function, Indicates a round-up operation.
[0059] In this embodiment of the present invention, S14 includes the following sub-steps:
[0060] S141, arranging the dynamic error values in chronological order to generate a dynamic error sequence;
[0061] S142. In the dynamic error sequence, from the initial moment to the Take any two dynamic error values at the moment and randomly insert them into the From the moment to the final moment, the moment with a dynamic error value of zero is eliminated to generate the latest dynamic error sequence. Indicates working hours;
[0062] S143. In the latest dynamic error sequence, from Take any four dynamic error values from the initial moment to the final moment, and randomly insert them into At the moment, the final dynamic error sequence is generated;
[0063] S144, calculating the first flight matrix parameters, the second flight matrix parameters and the third flight matrix parameters of the final dynamic error sequence, and determining the flight matrix corresponding to the flight data.
[0064] In the present invention, the dynamic error values are randomly disrupted to ensure that the final dynamic error sequence is not only affected by time, and such a sequence is more objective. In addition, the present invention determines the three elements of the flight matrix according to the disrupted final dynamic error sequence to ensure that the flight matrix is more accurate.
[0065] In the embodiment of the present invention, in S144, the first dynamic error value in the final dynamic error sequence is The mean of the dynamic error values is taken as the first flight matrix parameter, where: Represents the number of dynamic error values of the final dynamic sequence, Indicates rounding up operation;
[0066] In S144, the first The average of the dynamic error values to the last dynamic error value is taken as the second flight matrix parameter;
[0067] In S144, the third flight matrix parameters The calculation formula is:
[0068] ;
[0069] In the formula, Indicates the final dynamic error sequence Dynamic error value, Represents the number of dynamic error values of the final dynamic sequence, Represents a logarithmic function.
[0070] In the embodiment of the present invention, in S144, the flight matrix corresponding to the flight data The expression is:
[0071] ;
[0072] In the formula, represents the first flight matrix parameters, represents the second flight matrix parameters, Represents the third flight matrix parameters.
[0073] In the embodiment of the present invention, in S2, the flight value corresponding to the flight matrix The calculation formula is: ; In the formula, represents the maximum singular value of the flight matrix corresponding to the flight data, represents the exponential function, Represents the rank of the flight matrix corresponding to the flight data.
[0074] In the embodiment of the present invention, in S3, the expression of the drone maintenance condition is: ; In the formula, Indicates that the drone is The rolling angle at the moment, Indicates that the drone is The pitch angle at the moment, Indicates that the drone is The heading angle at the moment, Indicates maximum value operation.
[0075] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the principles of the present invention, and should be understood that the protection scope of the present invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific variations and combinations that do not deviate from the essence of the present invention based on the technical revelations disclosed by the present invention, and these variations and combinations are still within the protection scope of the present invention.
Claims
1. A method for repairing and processing a drone, characterized in that: The following steps are involved: S1. Collect the flight data of the UAV during working hours, construct a dynamic balance function, and determine the flight matrix corresponding to the flight data; S2. Determine the flight value corresponding to the flight matrix; S3, determining whether the flight value corresponding to the flight matrix meets the maintenance conditions of the UAV, and generating the maintenance inspection result of the UAV; The S1 comprises the following sub-steps: S11. Collecting flight data of the UAV during working hours, wherein the flight data includes acceleration data and Euler angle data during working hours; S12, constructing a dynamic balance function for each moment according to the acceleration data and Euler angle data of the drone at each moment during the working time; S13, inputting the dynamic balance function at each moment into the PID controller to determine the dynamic error value at each moment; S14, determining a flight matrix corresponding to the flight data according to the dynamic error value at each moment; In S12, the expression of the dynamic balance function F is: ; ; In the formula, Indicates the roll angle contained in the Euler angle data, Indicates the pitch angle contained in the Euler angle data, Indicates the heading angle contained in the Euler angle data. Indicates the quality of the drone, represents the acceleration due to gravity, represents the acceleration matrix of the drone, Indicates that the drone is The acceleration of the axis, Indicates that the drone is The acceleration of the axis, Indicates that the drone is The acceleration of the axis, represents a constant; In S13, the calculation formula of the dynamic error value E is: ; In the formula, represents the desired roll angle of the drone, Indicates the roll angle contained in the Euler angle data, represents the desired pitch angle of the drone, Indicates the pitch angle contained in the Euler angle data, represents the desired heading angle of the UAV, Indicates the heading angle contained in the Euler angle data. represents the first proportional coefficient of the PID controller, represents the second proportional coefficient of the PID controller, represents the dynamic equilibrium function, Indicates rounding up operation; The S14 comprises the following sub-steps: S141, arranging the dynamic error values in chronological order to generate a dynamic error sequence; S142. In the dynamic error sequence, from the initial moment to the Take any two dynamic error values at the moment and randomly insert them into the From the moment to the final moment, the moment with a dynamic error value of zero is eliminated to generate the latest dynamic error sequence. Indicates working hours; S143. In the latest dynamic error sequence, from Take any four dynamic error values from the initial moment to the final moment, and randomly insert them into At the moment, the final dynamic error sequence is generated; S144, calculating the first flight matrix parameter, the second flight matrix parameter and the third flight matrix parameter of the final dynamic error sequence, and determining the flight matrix corresponding to the flight data; In S144, the first dynamic error value in the final dynamic error sequence is The mean of the dynamic error values is taken as the first flight matrix parameter, where: Represents the number of dynamic error values of the final dynamic sequence, Indicates rounding up operation; In the step S144, the first The average of the dynamic error values to the last dynamic error value is taken as the second flight matrix parameter; In S144, the third flight matrix parameter The calculation formula is: ; In the formula, Indicates the final dynamic error sequence Dynamic error value, Represents the number of dynamic error values of the final dynamic sequence, represents the logarithmic function; In S144, the flight matrix corresponding to the flight data The expression is: ; In the formula, represents the first flight matrix parameters, represents the second flight matrix parameters, represents the third flight matrix parameters; In S2, the flight value corresponding to the flight matrix The calculation formula is: ; In the formula, represents the maximum singular value of the flight matrix corresponding to the flight data, represents the exponential function, Represents the rank of the flight matrix corresponding to the flight data; In S3, the expression of the drone maintenance condition is: ; In the formula, Indicates that the drone is The rolling angle at the moment, Indicates that the drone is The pitch angle at the moment, Indicates that the drone is The heading angle at the moment, Indicates maximum value operation.
