A method and system for detecting and controlling faults of unmanned aerial vehicles
By acquiring and calculating the control quantities of the multi-rotor UAV power subsystem in real time, faults are determined and the control allocation matrix is used for redundant control, which solves the problem of insufficient information feedback when the power system fails and achieves rapid identification and stable redundancy. control effect.
Patent Information
- Application Number
- CN202211342467.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-31
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-10-31
AI Technical Summary
When the power system of existing multi-rotor drones fails, the frequency of power system information feedback data is insufficient, resulting in control divergence, making it difficult to quickly identify faulty subsystems and perform redundant control.
By obtaining the pitch, roll and yaw control quantities of the power subsystem in real time, calculating their average values, judging whether the preset conditions are met to determine the fault, and using the control allocation matrix for redundant control based on the fault number to ensure the stability of the UAV. flight.
It achieves rapid identification and redundant control of multi-rotor UAV power subsystem failures, ensuring good control effects and rapid response.
Smart Images

Figure CN115610680B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of unmanned aerial vehicles, and in particular relates to a method and system for detecting and controlling faults of unmanned aerial vehicles and redundant control. Background Art
[0002] At present, vertical take-off and landing fixed-wing UAVs are increasingly widely used in manned and cargo-carrying scenarios due to their convenient take-off and landing and environmental friendliness. In order to improve the safety and reliability of multi-rotor aircraft, redundant power systems are often used in the prior art, that is, multiple sub-lift systems are configured to ensure continuous flight or emergency landing when one or more of its lift systems fail. After the sub-lift system fails, due to changes in its configuration, the corresponding control strategy and power control distribution must also be changed according to the fault situation. Different fault subsystems correspond to different control distribution matrices and control strategies. First, it is necessary to determine which sub-power system has failed. At present, the fault identification depends on real-time monitoring of the power system, and the frequency of power system information feedback data on the market is relatively low. Compared with the high-frequency control system of multi-rotor UAVs, the data feedback frequency is insufficient, which is easy to cause control divergence. Summary of the invention
[0003] In order to overcome the problems existing in the prior art, the present invention provides a method and system for UAV fault detection and redundant control, which are used to overcome the current defects.
[0004] A method for fault detection and redundant control of an unmanned aerial vehicle, wherein the unmanned aerial vehicle comprises at least four power subsystems, comprising the following steps:
[0005] S1. Real-time acquisition of the pitch, roll and yaw control values of each of the power subsystems within a preset time;
[0006] S2. respectively obtain the mean of the pitch, roll and yaw control quantities of each of the power subsystems within the preset time;
[0007] S3. Determine whether the mean of pitch, roll and yaw meets the preset conditions;
[0008] S4. If the preset conditions are met, it is determined that the power subsystem has a fault and the number of the power subsystem is obtained;
[0009] S5. Based on the number, a control allocation matrix is used to perform redundant control on other normal power subsystems.
[0010] According to the aspects described above and any possible implementation method, an implementation method is further provided, wherein each of the power subsystems includes a connected motor, an electronic speed regulator and a propeller, wherein the electronic speed regulator converts a digital throttle signal into a PWM signal to control the speed of the motor.
[0011] According to the above aspects and any possible implementation manner, an implementation manner is further provided, wherein the preset time is 0.1-2s.
[0012] According to the aspects described above and any possible implementation method, an implementation method is further provided, wherein the preset condition in S3 is: the channel throttle output of the power subsystem is maximum, and within the preset time, the mean reduction in the pitch control amount exceeds the first set value, the mean reduction in the roll control amount exceeds the second set value, and the mean reduction in the yaw control amount exceeds the third set value, and the first set value is different from the second and third set values.
[0013] According to the above aspects and any possible implementation, an implementation is further provided, wherein the first setting value is 5, and the second and third setting values are both 4.
[0014] According to the above aspects and any possible implementation, an implementation is further provided, wherein the control allocation formula of the drone is as follows: Among them, F1, F2…F8 represent the forces generated by each power subsystem, Ω x ,Ω y ,Ω z Represents the combined force on the drone in the X, Y, and Z axes, Ω xx ,Ω yy ,Ω zz It represents the total torque of the drone on the X, Y, and Z axes, A -1 It is a relationship matrix, which represents the relationship between the UAV control instructions and the output of each power subsystem.
[0015] According to the above aspects and any possible implementation, a further implementation is provided, in which the relationship matrix A -1 To find the inverse, the formula is:
[0016] G=(A -1 ) T ·(A -1 (A -1 ) T ) -1
[0017] Wherein, T is the transpose, G is the allocation matrix, and the control allocation matrix is obtained by performing row normalization processing on the allocation matrix G.
[0018] According to the above aspects and any possible implementation, a further implementation is provided, wherein the matrix A -1 The goal of the inversion is to minimize the total power of the UAV.
[0019] According to the aspects and any possible implementations described above, an implementation is further provided, wherein S4 also includes determining that the power subsystem is normal if the preset conditions are not met, and selecting a conventional control allocation matrix to control all power subsystems.
[0020] The present invention also provides a UAV fault detection and redundant control system, wherein the UAV comprises at least four power subsystems, and the system comprises:
[0021] An acquisition module, used for acquiring in real time the pitch, roll and yaw control quantities of each of the power subsystems within a preset time;
[0022] A calculation module, used to respectively obtain the average value of the pitch, roll and yaw control variables of each power subsystem within the preset time;
[0023] A judging module, used to judge whether the mean values of pitch, roll and yaw meet preset conditions;
[0024] A determination module, used to determine that the power subsystem has a fault when a preset condition is met, and obtain the number of the power subsystem;
[0025] The redundant control module is used to perform redundant control on other normal power subsystems by adopting a control allocation matrix according to the number.
[0026] Beneficial Effects of the Invention
[0027] Compared with the prior art, the present invention has the following beneficial effects:
[0028] The method and system for detecting and redundantly controlling a drone of the present invention, wherein the drone includes at least four power subsystems, comprises the following steps: S1. Real-time acquisition of the pitch, roll and yaw control quantities of each of the power subsystems within a preset time; S2. Respectively obtaining the mean of the pitch, roll and yaw control quantities of each of the power subsystems within the preset time; S3. Determining whether the mean of pitch, roll and yaw meets the preset conditions; S4. If the preset conditions are met, determining that the power subsystem has a fault, and obtaining the number of the power subsystem; S5. Using a control allocation matrix according to the number to perform redundant control on other normal power subsystems. The method of the present invention is suitable for the reconstruction control of redundant multi-rotor drone power subsystems after a fault, and has a good control effect and a fast response. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 It is the position and angle diagram of the power subsystem of the present invention;
[0030] Figure 2 It is a schematic diagram of the method flow of the present invention;
[0031] Figure 3 It is a schematic diagram of the pitch channel tracking curve of the present invention;
[0032] Figure 4 It is a schematic diagram of the rolling channel tracking curve of the present invention;
[0033] Figure 5 It is a schematic diagram of the yaw channel tracking curve of the present invention;
[0034] Figure 6 It is a schematic diagram of the height channel tracking curve of the present invention. DETAILED DESCRIPTION
[0035] In order to better understand the technical solution of the present invention, the content of the present invention includes but is not limited to the specific implementation methods described below, and similar technologies and methods should be considered to be within the scope of protection of the present invention. In order to make the technical problems, technical solutions and advantages to be solved by the present invention clearer, the following will be described in detail with reference to the accompanying drawings and specific embodiments.
[0036] It should be clear that the embodiments described in the present invention are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0037] like Figure 1 As shown, the drone of the present invention is an octorotor, including eight power subsystems, which are distributed as follows: Figure 1 As shown, the numbers ① to ⑧ in the figure correspond to power subsystems 1 to 8 respectively. The angle between the lift surface of the power subsystem and the horizontal plane is 8°, and the horizontal component of the lift of each subsystem is in the direction indicated by the arrow in the figure. When the power subsystem fails, it is redistributed offline. The distribution objects are the pitch control amount, the roll control amount, the yaw control amount and the throttle control amount. Different distributions will make the final output speed of each power subsystem different. The present invention designs 8 power subsystem distribution matrices offline, which correspond to the control matrices when subsystems 1 to 8 fail respectively;
[0038] Description of UAV dynamics model:
[0039] Coordinate system definition: The XY plane is the plane formed by the centers of each propeller, the X-axis is forward along the longitudinal symmetry plane of the fuselage, and the Y-axis is the midpoint of the line connecting the centers of the front and rear propellers of each power arm, and the direction is right.
[0040] β represents the inclination angle of the propeller mounting seat, α represents the angle between the horizontal component of each propeller and the positive direction of the Y-axis, n represents the direction of each propeller, counterclockwise is 1, and clockwise is -1; x_z represents the rolling moment matrix coefficient generated by the force in the Z-axis direction on the X-axis; y_z represents the pitching moment matrix coefficient generated by the force in the Z-axis direction on the Y-axis; z_x represents the yaw moment matrix generated by the force in the X-axis direction on the Z-axis, and z_y represents the yaw moment matrix generated by the force in the Y-axis direction on the Z-axis; lh represents the matrix coefficient of the vertical distance from the center of gravity to the XY plane.
[0041] Assumption: The center of gravity of the drone is in the vertical direction of the multi-rotor centroid; the expressions of the three-axis forces and moments on the drone are as follows:
[0042]
[0043] In the above formula (1), i = 1, 2, ... 8, M represents the mass of the drone, a x ,a y ,a z Respectively represent the acceleration of the drone on the X, Y, and Z axes, F i represents the lift of each power subsystem perpendicular to the blade plane, DCM_e2b represents the transformation matrix from the earth coordinate system to the body coordinate system, g represents the gravitational acceleration, I xx ,I yy ,I zz Respectively represent the rotational inertia of the drone's X, Y, and Z axes, F xi , F yi , F zi They represent the components of each power subsystem on the X-axis, Y-axis, and Z-axis respectively. Tf represents the ratio of propeller lift to torque. They represent the roll angular velocity differential, the pitch angular velocity differential, and the yaw angular velocity differential respectively, and n(i)=[1 -1 1 -11 -1 1 -1].
[0044] set up:
[0045]
[0046] Then we have:
[0047]
[0048] Simplified to:
[0049]
[0050] Right now:
[0051]
[0052] Where F1, F2…F8 represent the forces generated by each power subsystem, A is the relationship matrix, Ω x ,Ω y ,Ω z Indicates the combined force on the drone in the X, Y, and Z axes, Ω xx ,Ω yy ,Ω zz Represents the combined force on the drone at X, Y, and Z. Matrix A -1 Describes the relationship between the aircraft control instructions and the output of each power subsystem. In the power subsystem, the motor drives the propeller to rotate, which can generate a force F on the vertical lift surface. -1 Taking the minimum total power as the optimization goal, -1 After optimization, we get matrix G, and normalize matrix G to get matrix N, which is the final control allocation matrix. Since the UAV system is an 8-rotor configuration with redundant control, the allocation matrix has multiple allocation forms. The optimization goal is to minimize the total power, that is, to obtain matrix A -1 The generalized inverse matrix of is also called the pseudo-inverse matrix, and its formula is:
[0053] G=(A -1 ) T ·(A -1 (A -1 ) T ) -1
[0054] Get the allocation matrix G. Perform row normalization on the matrix G, that is, divide each row by the maximum value of the row, thereby obtaining the allocation matrix N, that is, the final control allocation matrix.
[0055] The conventional control allocation matrix for the UAV model is as follows: -1 :
[0056]
[0057]
[0058] Obtain the pseudo-inverse matrix of the matrix and transpose it to obtain the total power optimization control allocation matrix G:
[0059] M1 M2 M3 M4 M5 M6 M7 M8 Ωz 0.1262 0.1262 0.1262 0.1262 0.1262 0.1262 0.1262 0.1262 Ωx -1.1957 1.1620 -1.1620 1.1957 1.1957 -1.1620 1.1620 -1.1957 Ωy 1.8329 -0.8403 -0.8403 1.8329 -1.8329 0.8403 0.8403 -1.8329 Ωxx -0.0407 -0.0661 -0.0661 -0.0407 0.0407 0.0661 0.0661 0.0407 Ωyy 0.0915 0.0669 -0.0669 -0.0915 -0.0915 -0.0669 0.0669 0.0915 Ωzz 0.2132 -0.3215 0.3215 -0.2132 0.2132 -0.3215 0.3215 -0.2132
[0060] The matrix normalization results in the general control allocation matrix N as follows:
[0061] M1 M2 M3 M4 M5 M6 M7 M8 Ωz 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 Ωx -1.0000 0.9718 -0.9718 1.0000 1.0000 -0.9718 0.9718 -1.0000 Ωy 1.0000 -0.4584 -0.4584 1.0000 -1.0000 0.4584 0.4584 -1.0000 Ωxx -0.6157 -1.0000 -1.0000 -0.6157 0.6157 1.0000 1.0000 0.6157 Ωyy 1.0000 0.7309 -0.7309 -1.0000 -1.0000 -0.7309 0.7309 1.0000 Ωzz 0.6633 -1.0000 1.0000 -0.6633 0.6633 -1.0000 1.0000 -0.6633
[0062] After the failure of subsystem 1, it does not provide force and torque, then the corresponding A -1 The matrix is as follows:
[0063] M1 M2 M3 M4 M5 M6 M7 M8 Ωz 0.9903 0.9903 0.9903 0.9903 0.9903 0.9903 0.9903 Ωx 0.1228 -0.1228 0.0897 0.0897 -0.1228 0.1228 -0.0897 Ωy -0.0655 -0.0655 0.1064 -0.1064 0.0655 0.0655 -0.1064 Ωxx -2.9494 -2.9494 -1.3521 1.3521 2.9494 2.9494 1.3521 Ωyy 1.6046 -1.6046 -1.5593 -1.5593 -1.6046 1.6046 1.5593 Ωzz -0.5400 0.5400 -0.3582 0.3582 -0.5400 0.5400 -0.3582
[0064] Obtain the pseudo-inverse matrix, transpose and normalize it, and obtain the control allocation matrix N as follows:
[0065] M1 M2 M3 M4 M5 M6 M7 M8 Ωz 0.5725 1.0000 0.6445 0.0000 0.5725 1.0000 0.6445 Ωx 0.4694 -0.8880 0.4186 1.0000 -0.5024 0.0838 -0.5814 Ωy -0.2127 0.1729 0.5814 -1.0000 0.2457 0.6313 -0.4186 Ωxx -0.6824 -1.0000 -0.4788 0.8236 0.6552 0.3376 0.3448 Ωyy 0.3819 0.0367 -0.4186 -1.0000 -0.3489 0.7675 0.5814 Ωzz -0.6379 1.0000 -0.3621 0.0000 -0.6379 1.0000 -0.3621
[0066] In the above control allocation matrix, Ω z The coefficient of the line is used as the throttle control amount distribution coefficient of each power subsystem, Ω xx The coefficient of the line is used as the roll control amount allocation coefficient, Ω yy The coefficient of the line is used as the pitch control amount distribution coefficient, Ω zz The coefficient of the line is used as the yaw control amount allocation coefficient.
[0067] like Figure 2 As shown, the drone fault detection and redundant control method provided by the present invention comprises the following steps:
[0068] S1. Real-time acquisition of the pitch, roll and yaw control values of each of the power subsystems within a preset time;
[0069] S2. Calculate the mean of the pitch, roll and yaw control quantities of each power subsystem within the preset time respectively; when the UAV is disturbed by wind, in order to maintain its stability, its pitch, roll and yaw control quantities will also undergo sudden changes, and the control quantities will return to normal after the disturbance disappears; in order to avoid misjudgment in this situation, it is necessary to calculate the mean of each control quantity within 1s. When the mean value is continuously greater than a certain value, it is determined that a power system failure occurs according to the situation.
[0070] S3. Determine whether the mean of pitch, roll and yaw meets the preset conditions;
[0071] S4. If the preset conditions are met, it is determined that the power subsystem has a fault and the number of the power subsystem is obtained;
[0072] S5. Based on the number, a control allocation matrix is used to perform redundant control on other normal power subsystems.
[0073] The preset time is 0.1-2s, and 1s is preferred in the present invention.
[0074] When a power subsystem fails, the control amount (the control amount refers to the amount that keeps the drone balanced in pitch, roll, heading and altitude (i.e. throttle) during flight, and does not refer to a single power subsystem) of the drone will change rapidly under automatic balancing conditions. After each individual power subsystem fails, its three-channel control amount will be different, and the throttle channel value of the faulty subsystem is the largest. Based on this, the faulty power subsystem can be quickly identified. Therefore, the preset condition is that the channel throttle output of the power subsystem is the maximum, and within the preset time, the mean decrease in the pitch control amount exceeds the first set value, the mean decrease in the roll control amount exceeds the second set value, and the mean decrease in the yaw control amount exceeds the third set value. The first set value is different from the second and third set values. The first set value is 5, and the second and third set values are both 4. Specifically:
[0075] ① When the throttle output of channel 1 is the largest, its pitch control amount decreases by more than 5 within the preset time, the roll control amount increases by more than 4 within the preset time, and the direction control amount decreases by more than 4 within the preset time, then it is determined that the No. 1 power subsystem is faulty, and the subsystem is deemed to be non-existent. The control allocation plan of the UAV is re-planned according to the configuration of the other 7 normal power subsystems, and the control allocation matrix is designed and calculated. According to the calculated control allocation matrix, the 7 power subsystems 2-8 are offline designed to achieve redundant control;
[0076] ② When the throttle output of channel 2 is the largest, its pitch control amount decreases by more than 5 within the preset time, the roll control amount increases by more than 4 within the preset time, and the direction control amount increases by more than 4 within the preset time, then the No. 2 power subsystem is judged to be faulty, and the subsystem is deemed not to exist. The control allocation plan of the UAV is re-planned according to the other normal 7 power subsystem configurations, and the control allocation matrix is designed and calculated. According to the calculated control allocation matrix, the 7 power subsystems 1, 3-8 are designed offline to achieve redundant control.
[0077] ③ When the throttle output of channel 3 is the largest, the pitch control amount increases by more than 5 within the preset time, the roll control amount increases by more than 4 within the preset time, and the direction control amount decreases by more than 4 within the preset time, then the No. 3 power subsystem is judged to be faulty, and the subsystem is deemed to be non-existent. The control allocation scheme of the UAV is re-planned according to the configuration of the other 7 normal power subsystems, and the control allocation matrix is designed and calculated. According to the calculated control allocation matrix, the 7 power subsystems 1-2, 4-8 are offline designed to achieve redundant control;
[0078] ④ When the throttle output of channel 4 is the largest, the increase in its pitch control amount exceeds 5 within the preset time, the increase in its roll control amount exceeds 4 within the preset time, and the increase in its direction control amount exceeds 4 within the preset time, then it is determined that the No. 4 power subsystem is faulty, and the subsystem is deemed to be non-existent. The control allocation scheme of the UAV is re-planned according to the configuration of the other 7 normal power subsystems, and the control allocation matrix is designed and calculated. According to the calculated control allocation matrix, the 7 power subsystems 1-3, 5-8 are offline designed to achieve redundant control;
[0079] ⑤ When the throttle output of channel 5 is the largest, the pitch control amount increases by more than 5 within the preset time, the roll control amount decreases by more than 4 within the preset time, and the direction control amount decreases by more than 4 within the preset time, then the No. 5 power subsystem is judged to be faulty, and the subsystem is deemed to be non-existent. The control allocation scheme of the UAV is re-planned according to the configuration of the other 7 normal power subsystems, and the control allocation matrix is designed and calculated. According to the calculated control allocation matrix, the 7 power subsystems 1-4, 6-8 are offline designed to achieve redundant control;
[0080] ⑥ When the throttle output of channel 6 is the largest, the pitch control amount increases by more than 5 within the preset time, the roll control amount decreases by more than 4 within the preset time, and the direction control amount increases by more than 4 within the preset time, then the No. 6 power subsystem is judged to be faulty, and the subsystem is deemed to be non-existent. The control allocation scheme of the UAV is re-planned according to the configuration of the other 7 normal power subsystems, and the control allocation matrix is designed and calculated. According to the calculated control allocation matrix, the 7 power subsystems 1-5, 7-8 are offline designed to achieve redundant control;
[0081] ⑦ When the throttle output of channel 7 is the largest, its pitch control amount decreases by more than 5 within the preset time, the roll control amount decreases by more than 4 within the preset time, and the direction control amount decreases by more than 4 within the preset time, then it is determined that the No. 7 power subsystem is faulty, and the subsystem is deemed to be non-existent. The control allocation plan of the UAV is re-planned according to the configuration of the other 7 normal power subsystems, and the control allocation matrix is designed and calculated. According to the calculated control allocation matrix, the 7 power subsystems 1-6 and 8 are offline designed to achieve redundant control;
[0082] ⑧ When the throttle output of channel 8 is the largest, its pitch control amount decreases by more than 5 within the preset time, the roll control amount decreases by more than 4 within the preset time, and the direction control amount increases by more than 4 within the preset time, then the No. 8 power subsystem is judged to be faulty, and the subsystem is deemed not to exist. The control allocation plan of the UAV is re-planned according to the other normal 7 power subsystem configurations, and the control allocation matrix is designed and calculated. According to the calculated control allocation matrix, the 7 power subsystems 1-7 are designed offline to achieve redundant control.
[0083] From the eight situations listed above, it can be seen that after identifying that a power subsystem has a fault, the number of the power subsystem is obtained, and the faulty power subsystem is regarded as non-existent. Then, according to the numbers of the other seven normal power subsystems, a designed control allocation matrix is selected to control the other seven power subsystems, and the overall output of the UAV is performed based on the control allocation matrix.
[0084] Preferably, in the method of the present invention, when it is determined that there is no fault in the power subsystem, it is determined that the power subsystem is in normal working condition, and a conventional control allocation matrix is selected, that is, when the UAV is flying normally, the conventional control allocation matrix is used, and when a subsystem fails, the control allocation matrix is used, and the control allocation matrix is used for all normal power subsystems and is no longer used for faulty power subsystems. Then, the overall control quantity output of the UAV is performed according to the control allocation matrix.
[0085] Preferably, the present invention further provides a UAV fault detection and redundant control system, wherein the UAV comprises at least two power subsystems, and the system comprises:
[0086] An acquisition module, used for acquiring in real time the pitch, roll and yaw control quantities of each of the power subsystems within a preset time;
[0087] A calculation module, used to respectively obtain the average value of the pitch, roll and yaw control variables of each power subsystem within the preset time;
[0088] A judgment module, used to judge whether the respective mean values of pitch, roll and yaw meet the preset conditions;
[0089] A determination module, used to determine that the power subsystem has a fault when a preset condition is met, and obtain the number of the power subsystem;
[0090] The redundant control module is used to perform redundant control on other power subsystems using a control allocation matrix according to the number.
[0091] Preferably, to illustrate the method of the present invention, the present invention provides a flight test as follows:
[0092] In the actual flight test of the UAV, the flight control system sends a set command to stop the No. 1 motor, simulate a mid-air fault, test the correctness of the control matrix design, and observe the flight status of the UAV. The three-axis attitude and altitude control effects are as follows:
[0093] Depend on Figure 3It can be obtained that, in the pitch channel, the UAV lowers its head by -5° within 0.5s after the failure of subsystem 1. After 1s, the UAV raises its head to 6.3°. After another 2.5s, the attitude of the UAV recovers to the state before the power system failure. The total adjustment time is about 4s, and the pitch angle changes from -5° to 6.3°. Judging from the control results, the adjustment time is short and the attitude change range is small.
[0094] Depend on Figure 4 It can be obtained that the rolling channel has a relatively good tracking effect throughout the entire process and the control error is relatively small.
[0095] Depend on Figure 5 It can be obtained that, heading channel: after the failure of power subsystem No. 1, the heading of the UAV changed from 11.42° to 8.96° within 0.7s, and then recovered to the state before the failure within 1.4s. The total adjustment time was about 2.1s, the adjustment amplitude was about 3°, and the control effect was good.
[0096] Depend on Figure 6 It can be obtained that, for the height channel, the height dropped from 5.8m to 5.1m within 0.9s after the failure, and then recovered to the state before the failure within 2.4s. The total adjustment time was 3.3s, and the maximum change amplitude was 0.7m.
[0097] In the process of determining whether the No. 1 power subsystem has failed, if Figures 3 to 6 , the horizontal axis 692-696 is the fault time (unit s). During the fault time, the average pitch control amount changes from about 4° to -3°, and the change exceeds 5°; the average roll control amount changes from about -2° to 3°, and the change exceeds 4°; the average yaw control amount changes from about 0° to -7°, and the change exceeds 4°; and the total throttle output of the No. 1 power system is the largest, which meets the fault judgment conditions and can be judged as a fault of the No. 1 power subsystem.
[0098] It can be seen from the actual flight data that the control method of the present invention is suitable for the reconstruction control after the failure of the redundant multi-rotor UAV power subsystem, and the control effect is good and the response is relatively fast.
[0099] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0100] The above description shows and describes several preferred embodiments of the present invention, but as mentioned above, it should be understood that the present invention is not limited to the form disclosed herein, and should not be regarded as excluding other embodiments, but can be used in various other combinations, modifications and environments, and can be modified within the scope of the application concept described herein through the above teachings or the technology or knowledge of the relevant field. The changes and modifications made by those skilled in the art shall not depart from the spirit and scope of the present invention, and shall be within the scope of protection of the claims attached to the present invention.
Claims
1. A method for detecting and controlling a drone fault, characterized in that: The UAV includes at least four power subsystems, including the following steps: S1. Real-time acquisition of the pitch, roll and yaw control values of each of the power subsystems within a preset time; S2. respectively obtain the mean of the pitch, roll and yaw control quantities of each of the power subsystems within the preset time; S3. Determine whether the mean values of pitch, roll and yaw meet preset conditions, the preset conditions being: the channel throttle output of the power subsystem is maximum, and within the preset time, the mean decrease in the pitch control amount exceeds the first set value, the mean decrease in the roll control amount exceeds the second set value, and the mean decrease in the yaw control amount exceeds the third set value, the first set value is different from the second and third set values; the first set value is 5 degrees, and the second and third set values are both 4 degrees; S4. If the preset conditions are met, it is determined that the power subsystem has a fault and the number of the power subsystem is obtained; S5. Based on the number, a control allocation matrix is used to perform redundant control on other normal power subsystems.
2. The method for detecting and controlling a drone fault according to claim 1, characterized in that: Each of the power subsystems includes a connected motor, an electronic speed regulator and a propeller, wherein the electronic speed regulator converts a digital throttle signal into a PWM signal to control the speed of the motor.
3. The method for detecting and controlling a drone fault according to claim 1, characterized in that: The preset time is 0.1-2s.
4. The method for detecting and controlling a drone fault according to claim 1, characterized in that: The control allocation formula of the UAV is as follows: ,in, represents the force generated by each dynamic subsystem, It represents the combined force on the drone in the X, Y, and Z axes. It represents the total torque on the X, Y, and Z axes of the drone. It is a relationship matrix, which represents the relationship between the UAV control instructions and the output of each power subsystem.
5. The method for detecting and controlling a drone fault according to claim 4, characterized in that: For the relationship matrix To find the inverse, the formula is: Where T is the transpose, is the allocation matrix, The control allocation matrix is obtained by performing row normalization processing.
6. The method for detecting and controlling a drone fault according to claim 5, characterized in that: For the relationship matrix The goal of the inversion is to minimize the total power of the UAV.
7. The method for detecting and controlling a drone fault according to claim 1, characterized in that: The S4 also includes determining that the power subsystem is normal if the preset condition is not met, and selecting a conventional control distribution matrix to control all power subsystems.
8. A UAV fault detection and redundant control system, characterized in that: The drone includes at least four power subsystems, including: An acquisition module, used for acquiring in real time the pitch, roll and yaw control quantities of each of the power subsystems within a preset time; A calculation module, used to respectively obtain the average value of the pitch, roll and yaw control variables of each power subsystem within the preset time; a judgment module, used to judge whether the mean values of pitch, roll and yaw meet a preset condition, wherein the preset condition is: the channel throttle output of the power subsystem is maximum, and within the preset time, the mean decrease of the pitch control amount exceeds a first set value, the mean decrease of the roll control amount exceeds a second set value, and the mean decrease of the yaw control amount exceeds a third set value, and the first set value is different from the second and third set values; the first set value is 5 degrees, and the second and third set values are both 4 degrees; A determination module, used to determine that the power subsystem has a fault when a preset condition is met, and obtain the number of the power subsystem; The redundant control module is used to perform redundant control on other normal power subsystems by adopting a control allocation matrix according to the number.
