A UAV carrying a charging cable for flying and a working method thereof

By integrating the cable collection and distribution mechanism, inductive module and anti-winding module on the drone, the drone's power shortage and winding problems are solved, the battery life and work efficiency are improved, and the flight safety is ensured.

CN115716549BActive Publication Date: 2024-12-06NANTONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211392070.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-08
Publication Date
2024-12-06
Estimated Expiration
2042-11-08

AI Technical Summary

Technical Problem

The battery power consumption of existing drones is too fast when performing tasks, and they need to interrupt the task and return to charging, resulting in short effective working time and low working efficiency. It is easy to wrap around and be affected by the electromagnetic environment when carrying charging lines, affecting safety.

Method used

A drone carrying charging cable was designed, equipped with a cable retrieval mechanism, inductive module, anti-winding module and emergency protection module. The automatic management and safe flight of charging cables are achieved through force sensors, cameras and path planning modules to avoid Entanglement and electromagnetic interference.

Benefits of technology

It effectively improves the endurance and working efficiency of the drone, avoids the impact of charging wire wrapping and electromagnetic environment on the drone, and ensures safety and sufficient power during flight.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115716549B_ABST
    Figure CN115716549B_ABST
Patent Text Reader

Abstract

The present invention provides a UAV that can fly with a charging cable and a working method thereof, and belongs to the technical field of UAVs. The problems of insufficient power, long working time and low efficiency when the UAV is working are solved. The technical scheme is as follows: it includes a UAV body, a retractable wire mechanism, a positioning module, an obstacle avoidance module, an electric induction module, an anti-winding module, an emergency protection module and a path planning module. The retractable wire mechanism is connected with a force sensor, a path planning module and an emergency protection module. The emergency protection module is connected with a current sensor, a camera and a fixing frame of the retractable wire mechanism. The electric induction module is connected with an electromagnetic sensor and a path planning module. The path planning module includes a main control system and a planning system. The beneficial effects of the present invention are as follows: the present invention effectively improves the endurance of the UAV, increases the effective working time of the UAV, and greatly improves the working efficiency of the UAV.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of unmanned aerial vehicles, and in particular to an unmanned aerial vehicle carrying a charging cable for flying, a system and a working method thereof. Background Art

[0002] As a representative technological product of the new era, the market value and application prospects of drones are obvious to all. With the continuous expansion of drone application fields, the battery power of industrial and agricultural drones will be consumed too quickly during operation. When the battery energy of drones is too low during the mission, the drone needs to interrupt the mission, return to the ground to charge, and then fly into the air to continue the mission. Therefore, there are shortcomings such as short effective working time and low work efficiency.

[0003] After searching domestic literature and patents, it was found that the existing patent "A Take-away UAV Charging System" (application number: CN202010962034.4) discloses a take-away UAV charging system, including a charging platform equipped with a power supply and one or more take-away charging devices installed in the charging platform, the take-away charging device includes: an adsorption plug, movably installed on the charging platform, for external connection to the UAV; a first controller, installed in the charging platform and connected to the power supply; a charging cable, connecting the adsorption plug with the first controller; a retractable device, for rewinding the charging cable; after the adsorption plug is electrically connected to the UAV, the UAV can pull and take out the charging cable on the retractable device and leave the charging platform. Take-away charging is to charge the UAV in flight by carrying the charging cable away from the charging platform. However, this method pulls and takes out the charging cable on the retractable device by the UAV, without considering the problem that the pulled charging cable brings additional tension to the UAV when the UAV flies too far, and does not consider the problem that the UAV will encounter obstacles and get entangled when the charging cable is pulled out in the air. Secondly, this method still requires the drone to stop working and return to charge, and does not effectively improve the working efficiency of the drone, so this method has certain limitations.

[0004] After searching domestic literature and patents, it was found that the existing patent "A UAV aerial charging system, charging method, device, equipment and medium" (application number: 202010802360.9) discloses a UAV aerial charging system, method, device, equipment and medium, the system includes: a first UAV and a second UAV; the first UAV includes a first power supply and a first wireless charging coil electrically connected to the first power supply; the second UAV includes a second power supply and a second wireless charging coil electrically connected to the second power supply; in the process of the first UAV performing an aerial flight mission, when the remaining power of the first power supply is lower than the set threshold, the second UAV takes off, so that the position between the second wireless charging coil and the first wireless charging coil meets the preset position relationship, and the electric energy of the second power supply is provided to the first power supply through the second wireless charging coil and the first wireless charging coil. Although this method achieves the purpose of charging the UAV during the UAV's mission, thereby improving the UAV's mission execution efficiency. However, the process of using the second UAV to power the first UAV is too cumbersome, and it is impossible to ensure the long-term supply of power, so this method has certain limitations.

[0005] After searching domestic literature and patents, it is found that the existing patent "Wireless Charging Coil Switching Circuit, Device, UAV and Control Method Thereof" (Application No.: 201910645958.9) discloses a wireless charging coil switching circuit, device, UAV and control method thereof. The UAV receives a first control instruction. When the first control instruction is an adsorption instruction and the magnet is located at the initial position, the steering gear is controlled to operate in a first direction so that the magnet enters the wireless charging coil, enables the DC chip, and controls the switch tube to be turned on, so that the power supply device supplies power to the wireless charging coil, so that the magnet is magnetized by the wireless charging coil to realize the adsorption function; when the first control instruction is a charging instruction and the magnet is located in the wireless charging coil, the steering gear is controlled to operate in a second direction so that the magnet leaves the wireless charging coil so that the wireless charging coil performs the charging function, so that the UAV can be charged and realize the adsorption function based on the wireless charging coil. However, this method is still based on the mode that the UAV is insufficient in power, needs to interrupt the work task, and returns to charge. Therefore, there are still shortcomings such as the short effective working time of the UAV and low work efficiency. Therefore, this method has certain limitations.

[0006] How to solve the above technical problems is the subject faced by the present invention. Summary of the invention

[0007] The purpose of the present invention is to provide a UAV that carries a charging cable for flying and a working method thereof; to solve the problems of insufficient power, long working time and low efficiency when the UAV is working; the present invention effectively improves the endurance of the UAV, increases the effective working time of the UAV, and greatly improves the working efficiency of the UAV.

[0008] In order to achieve the above-mentioned invention object, the technical solution adopted by the present invention is specifically as follows:

[0009] A UAV carrying a charging cable for flying comprises a UAV body, wherein the UAV body comprises a wire-retracting mechanism, a camera bracket, a camera, a wire-retracting mechanism fixing frame, a chassis slide rail, and a charging cable; the wire-retracting mechanism fixing frame comprises a trapezoidal locking device; the wire-retracting mechanism is fixed directly below the UAV body through the trapezoidal locking device in the wire-retracting mechanism fixing frame, and the camera is installed below the UAV body through the camera bracket; the camera bracket comprises a slider; the slider is connected to the chassis slide rail; and the charging cable is connected between the UAV body and the wire-retracting mechanism.

[0010] The wire-reeling and reeling mechanism comprises a force sensor, a wire-reeling box cover, a wire-reeling reel, a wire-reeling box, a spiral transmission mechanism, a synchronous brush motor, an electronic meter counter, a conductive slip ring, a fixed housing, and a trapezoidal block; the force sensor is located at the charging wire inlet and outlet of the wire-reeling box; there is a hole on the wire-reeling reel; the wire-reeling reel is located inside the wire-reeling box for winding the wire; the spiral transmission mechanism comprises a nut and a lead screw located at the charging wire inlet and outlet of the wire-reeling box; the electronic meter counter is connected to the wire-reeling reel and is located outside the wire-reeling box for measuring the length of the wire-reeling; the synchronous brush motor is connected to the wire-reeling reel for providing power to the wire-reeling reel; one end of the charging wire passes through a pre-punched hole in the wire-reeling reel and is connected to one end of the rotor on the conductive slip ring; the conductive slip ring is fixed on the wire-reeling and reeling mechanism's wire-reeling and reeling mechanism, and one end of the stator on the conductive slip ring is connected to the transfer interface on the chassis of the drone body; the fixed housing is used to protect the conductive slip ring; the trapezoidal block is used to connect to the trapezoidal locking device.

[0011] The wire retracting and releasing mechanism is located inside the wire winding box, and the charging wire is evenly wound on the wire winding drum; the inlet and outlet of the wire winding box are equipped with the spiral transmission mechanism; the charging wire passes through the spiral transmission mechanism, and combined with the wire winding speed of the wire winding drum, the nut moves left and right on the lead screw, so that the charging wire can be wound on the wire winding drum as neatly as possible.

[0012] A UAV carrying a charging cable for flying also includes a positioning module, an obstacle avoidance module, an electric induction module, an anti-entanglement module, an emergency protection module and a path planning module installed on the UAV body; the output ends of the positioning module, the obstacle avoidance module, the electric induction module, the anti-entanglement module, the emergency protection module and the path planning module are all connected to the input end of the UAV flight control system, and the UAV flight control system is installed inside the UAV body.

[0013] In order to better achieve the above-mentioned invention object, the present invention also provides a working method of a drone carrying a charging cable for flying, comprising:

[0014] S1: Path planning, the path planning module completes the path planning to form a first trajectory line; if the trajectory is smooth or the slope k of any ascending or descending process of the curve is in the range of |k| greater than or equal to 0 and less than or equal to 45°, the UAV body selects a simple flight mode, and calculates the straight-line distance D meters from the starting point to the end point according to the Euclidean distance inspired by the Pythagorean theorem. At this time, the data is transmitted to the wire-retracting and releasing mechanism, and the wire-retracting and releasing mechanism releases d meters of wire;

[0015] Where: D = d

[0016] If the trajectory is tortuous or the slope k of any ascending or descending process of the curve is in the range of |k| greater than 45° or any tangent p of the curve is perpendicular to the x-axis, the drone body selects the complex flight mode and uses the path planning A-Star (A) search algorithm*, that is, combined with the following distance calculation formula,

[0017] Including the Manhattan distance formula H(i)=(abs(ix-gx)+abs(iy-gy)),

[0018] Chebyshev distance formula H(i)=Max(abs(ix-gx),abs(iy-gy)),

[0019] Euclidean distance formula H(i)=sqrt((ix-gx) 2 +(iy-gy) 2 ) and the Octile distance formula , a theoretical distance L1 from the starting point to the end point is obtained, and the data is transmitted to the wire-retracting and releasing mechanism, and the wire-retracting and releasing mechanism releases L1 meters of wire;

[0020] Wherein, in the path planning A-Star (A) search algorithm*, in each distance formula, ix represents the x-axis coordinate value of the starting point i, iy represents the y-axis coordinate value of the starting point i, gx represents the x-axis coordinate value of the end point g, gy represents the y-axis coordinate value of the end point g, abs() is a function for obtaining an absolute value, and sqrt() is a function for obtaining a square root;

[0021] S2: Reduce the pay-in and pay-out error. After the UAV body determines the flight mode, it flies according to the planned path and uses the PTK positioning technology, that is, the RTK positioning technology is based on the very similar errors between the rover station and the reference station. It uses the GPS carrier phase observation value for real-time kinematic positioning. Transmit the spatial position signal in real time to obtain an actual flight trajectory, that is, the second trajectory line; Analyze and compare the length L1 of the first trajectory line with the length L2 of the second trajectory line, and calculate the actual distance according to the trajectory line length;

[0022] If L1 > L2, the pay-in and pay-out mechanism winds the wire;

[0023] If L1 < L2, the pay-in and pay-out mechanism pays out the wire;

[0024] If L1 = L2, the pay-in and pay-out mechanism remains in the locked state;

[0025] During the flight of the UAV body, the force sensors at the outlet of the pay-in and pay-out mechanism and the force sensor at the power interface of the charging wire transmit the tension value data N1 and N2 to the control end in real time. When N1 = N2 or |N1 - N2| is less than or equal to the set threshold a3, that is, the actual pay-out length is too small and the charging wire is in a taut state, the synchronous belt brush motor accelerates the pay-out according to the set acceleration;

[0026] When |N1 - N2| is greater than the set threshold a3, the pay-in and pay-out system is normal; The electronic counter in the pay-in and pay-out mechanism monitors the pay-out length in real time. Analyze and compare the actual pay-out length d1 with the theoretical pay-out length d2. If d1 > d2, the pay-in and pay-out mechanism winds the wire;

[0027] If d1 < d2, the pay-in and pay-out mechanism pays out the wire;

[0028] If d1 = d2, the pay-in and pay-out mechanism remains in the locked state.

[0029] During the pay-in process, the charging wire passes through the screw drive mechanism at the inlet and outlet of the wire winding box. Combining with the pay-in speed of the wire winding disk, when the wire winding disk rotates one week, the first circle of the charging wire is completely wound on the wire winding disk, and the nut slowly moves to the right on the screw rod. When the wire winding disk rotates another week, the second circle of the charging wire is completely wound on the wire winding disk, and the nut continues to slowly move to the right on the screw rod until the first row of the charging wire is completely wound. Then the nut changes direction and slowly moves to the left on the screw rod to wind the second row of the charging wire, and so on, so that the charging wire is wound on the wire winding disk as neatly as possible.

[0030] S3: Emergency protection: When the drone encounters leakage caused by collision or scratching of high-voltage wires during flight, the drone may be damaged. At this time, the electromagnetic sensor can detect the electromagnetic field strength near the drone body. When the electromagnetic field strength near the drone body is detected to be too high, the state detection system in the path planning module will feed back the task execution status and subsystem status to the task generation and scheduling layer. The drone body will react quickly to generate a behavior plan according to the current situation and autonomously avoid the area.

[0031] When an emergency occurs during the flight of the drone, the force sensor detects that the tension value at the outlet of the retractable wire mechanism carried by the drone body rises sharply, then the state detection system of the path planning module feeds back the task execution status and subsystem status to the task generation and scheduling layer, and the drone body reacts according to the current situation and quickly generates a behavior plan, and the drone body hovers. Among them, the force sensor transmits data back to the control end, and the camera observes the situation generated by the charging line at this time, and transmits it to the visual recognition system connected to it to make a judgment. If the emergency is being pressed by a heavy object, the alarm module will sound an alarm, and manual intervention will be required to solve it, and the drone will continue to fly; if the emergency is the entanglement of the charging line, the state detection system of the path planning module will feed back the task execution status and subsystem status to the task generation and scheduling layer, and the drone body will return to the set threshold a2 seconds ago by itself, and then the visual recognition system will make a judgment again. If the winding situation is solved, it will proceed directly to the next step; if the winding situation is not solved, manual intervention is required before the next step. At this time, the drone activates the re-planning module, and the drone body responds to the current situation and quickly generates a behavior plan. The control instruction generation layer receives the emergency control instructions, the path is re-planned, and the drone body continues to fly.

[0032] When the charging line is short-circuited, the current value in the circuit increases suddenly. At this time, the current sensor transmits data to the control system, and the power is cut off manually to ensure the safety of the drone. Under normal circumstances, the trapezoidal opening of the trapezoidal locking device on the fixing frame of the retractable wire mechanism is staggered and fixed with the trapezoidal block on the retractable wire mechanism to ensure that the retractable wire mechanism is firmly fixed directly below the drone body; when an emergency occurs in the drone body and the charging line is discarded when necessary, the emergency protection module is activated, the drone body observes the surrounding situation through the camera, and the drone descends to a safe area. Then, the trapezoidal locking device rotates 90 degrees clockwise, the trapezoidal opening coincides with the trapezoidal block, and the retractable wire mechanism is separated from the drone body by gravity; at the same time, the charging line connected to the retractable wire mechanism and the drone body is separated from the adapter by gravity to achieve the detachment of the retractable wire mechanism.

[0033] Compared with the prior art, the present invention has the following beneficial effects:

[0034] 1. The present invention sets an electric induction module, which is connected to an electromagnetic sensor and a path planning module. The drone is susceptible to interference from factors such as weather and electromagnetic environment during flight. During flight, if the drone encounters leakage caused by collision or scratching of high-voltage wires, the drone may be damaged. The electromagnetic sensor can detect the electromagnetic field strength near the drone body. When it is detected that the electromagnetic field strength near the drone body is too large, the state detection system in the path planning module will feed back the task execution status and subsystem status to the task generation and scheduling layer. The drone body will react according to the current situation and quickly generate a behavior plan, and autonomously avoid flying in this area, which can avoid the influence of the electromagnetic environment on the electronic devices in the drone body and effectively improve the safety of the drone during flight.

[0035] 2. The present invention provides an anti-entanglement module, which is connected to a force sensor, a camera, an alarm module and a path planning module. The force sensor is used to detect the tension value at the outlet of the retractable wire mechanism carried by the drone body, and the camera is connected to a visual recognition module. When an emergency occurs in the drone, the force sensor detects that the tension value between the charging cable and the power interface of the drone body rises sharply, then the state detection system of the path planning module feeds back the task execution status and subsystem status to the task generation and scheduling layer, the drone body reacts according to the current situation and quickly generates a behavior plan, and the drone body hovers; the force sensor transmits data back to the control end, at which time the camera observes the situation generated by the charging cable and transmits it to the visual recognition system to make a judgment; if the emergency is being pressed by a heavy object, the alarm module sounds an alarm, and manual intervention is required to solve it, and the drone continues to fly; if the emergency is the entanglement of the charging cable, the state detection system of the path planning module feeds back the task execution status and subsystem status to the task generation and scheduling layer, and the drone body returns to the set threshold a2 seconds ago by itself, and then the visual recognition system makes a judgment again. If the winding situation is solved, it will directly proceed to the next step; if the winding situation is not solved, it will be necessary to intervene manually before proceeding to the next step. At this time, the drone activates the re-planning module, the drone body reacts according to the current situation and quickly generates a behavior plan, the control instruction generation layer obtains the control instruction of the emergency, the path is re-planned, and the drone body continues to fly. This module effectively improves the feasibility of UAVs flying with charging cables, thereby effectively improving the UAV's sustained endurance and thus improving the UAV's work efficiency.

[0036] 3. The present invention provides an emergency protection module, which is connected to a current sensor, a camera and a fixing frame for the retractable wire mechanism; the current sensor is located in the circuit. When the charging line is short-circuited, the current value in the circuit increases suddenly. At this time, the data is transmitted to the control system, and the power is cut off manually to ensure the safety of the drone body. Under normal circumstances, the trapezoidal block rotates 90 degrees clockwise in the trapezoidal locking device and intersects with the trapezoidal mouth to ensure that the retractable wire mechanism is firmly fixed directly below the drone body; when an emergency occurs in the drone body and the charging line is discarded when necessary, the emergency protection module is activated, the drone body observes the surrounding situation through the camera, and the drone body descends to a safe area. Then, the trapezoidal locking device rotates 90 degrees clockwise, the trapezoidal mouth overlaps with the trapezoidal block, and the retractable wire mechanism is separated from the drone body by gravity; at the same time, the charging line connected to the retractable wire mechanism and the drone body is separated from the adapter by gravity to achieve the retractable wire mechanism falling off. It not only ensures that the drone has sufficient power during flight and operation, but also avoids damage to the drone in emergency situations.

[0037] 4. The present invention can provide a sufficiently long charging cable for use by drones, and can effectively avoid the risk of entanglement caused by the charging cable being too long and unable to be recovered in time when the drone returns. It solves the problems of entanglement, circuit problems, and excessive or insufficient charging cables caused by the theoretical difference between the charging cables required and the actual charging cables. It provides solutions to a series of problems that may occur when drones are flying with charging cables. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention.

[0039] Figure 1 This is a structural diagram of a new type of UAV that carries a charging cable and flies according to the present invention;

[0040] Figure 2 This is a detailed view of a camera bracket of a new type of UAV carrying a charging cable for flying according to the present invention;

[0041] Figure 3 This is a structural schematic diagram of a wire-retracting and -releasing mechanism of a novel UAV carrying a charging wire for flying according to the present invention;

[0042] Figure 4 This is a detailed diagram of the spiral transmission mechanism in the wire-retracting and -releasing mechanism of a new type of UAV carrying a charging wire for flying according to the present invention;

[0043] Figure 5This is a detailed diagram of a trapezoidal locking device of a new type of UAV carrying a charging cable for flight according to the present invention;

[0044] Figure 6 This is a logical structure diagram of a novel anti-entanglement module of a UAV carrying a charging cable for flight according to the present invention;

[0045] Figure 7 This is a schematic diagram of the logical structure of a new type of UAV visual recognition system that flies with a charging cable according to the present invention;

[0046] Figure 8 This is a logical structure diagram of a new type of UAV path planning module for flying with a charging cable according to the present invention;

[0047] Fig. 9 This is a diagram of an algorithm for reducing the error of the retracting and releasing wires for a new type of UAV carrying a charging wire for flight according to the present invention.

[0048] Among them, the accompanying drawings are marked as: 1, UAV body, 2, wire-retracting and releasing mechanism, 3, camera bracket, 4, camera, 5, wire-retracting and releasing mechanism fixing frame, 6, chassis slide rail, 7, charging cable, 51, trapezoidal locking device, 31, slider, 21, winding box cover, 22, winding reel, 23, winding box, 24, spiral transmission mechanism, 25, synchronous belt brush motor, 26, electronic meter, 27, conductive slip ring, 28, fixed shell, 29, trapezoidal block, 241, nut, 242, screw, 511, trapezoidal mouth. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. Of course, the specific embodiments described here are only used to explain the present invention and are not used to limit the present invention. Example

[0050] Combination Figures 1 to 5 The technical solution provided by the present invention is: a UAV carrying a charging cable for flying, comprising a UAV body 1, the UAV body 1 comprising a wire-retracting mechanism 2, a camera bracket 3, a camera 4, a wire-retracting mechanism fixing frame 5, a chassis slide rail 6, and a charging cable 7; the wire-retracting mechanism fixing frame 5 comprises a trapezoidal locking device 51; the wire-retracting mechanism 2 is fixed directly below the UAV body 1 through the trapezoidal locking device 51 in the wire-retracting mechanism fixing frame 5, and the camera 4 is installed below the UAV body 1 through the camera bracket 3; the camera bracket 3 comprises a slider 31; the slider 31 is connected to the chassis slide rail 6; the charging cable 7 is connected between the UAV body 1 and the wire-retracting mechanism 2.

[0051] The wire-reeling and retracting mechanism includes a force sensor, a winding box cover 21, a winding reel 22, a winding box 23, a spiral transmission mechanism 24, a synchronous belt brush motor 25, an electronic meter 26, a conductive slip ring 27, a fixed housing 28, and a trapezoidal block 29; the force sensor is located at the charging wire inlet and outlet of the winding box 23; there is a hole 221 on the winding reel 22; the winding reel 22 is located inside the winding box 23 for winding the wire; the spiral transmission mechanism 24 includes a nut 241 and a screw rod 242 located at the charging wire inlet and outlet of the winding box 23; the electronic meter 26 and the winding reel 2 2 is connected to the outside of the winding box 23 for measuring the length of the unwinding wire; the synchronous brush motor 25 is connected to the winding drum 22 to provide power for the winding drum 22; one end of the charging line 7 passes through the pre-punched hole 221 of the winding drum 22 and is connected to one end of the rotor on the conductive slip ring 27; the conductive slip ring 27 is fixed on the winding box cover 21 of the wire retracting and unwinding mechanism 2, and one end of the stator on the conductive slip ring 27 is connected to the transfer interface on the chassis of the drone body 1; the fixed shell 28 is used to protect the conductive slip ring 27; the trapezoidal block 29 is used to connect with the trapezoidal locking device 51.

[0052] The wire-reeling and reeling mechanism is used to wind the charging wire evenly on the wire reel 22 and is located inside the wire winding box 23. The inlet and outlet of the wire winding box 23 are provided with a spiral transmission mechanism 24. The charging wire passes through the spiral transmission mechanism 24. Combined with the wire-reeling speed of the wire reel 22, the nut 241 moves left and right on the screw rod 242, so that the charging wire can be wound on the wire reel 22 as neatly as possible.

[0053] A UAV carrying a charging cable for flying also includes a positioning module, an obstacle avoidance module, an electric induction module, an anti-entanglement module, an emergency protection module and a path planning module installed on a UAV body 1; the output ends of the positioning module, the obstacle avoidance module, the electric induction module, the anti-entanglement module, the emergency protection module and the path planning module are all connected to the input end of the UAV flight control system, and the UAV flight control system is installed inside the UAV body 1.

[0054] Combination Figures 6 to 9 A method for operating a drone carrying a charging cable, comprising:

[0055] S1: Path planning. The path planning module completes the path planning to form the first trajectory line. If the trajectory is smooth or the slope k of any ascending or descending process of the curve is in the range of |k| greater than or equal to 0 and less than or equal to 45°, the UAV body (1) selects the simple flight mode and calculates the straight-line distance D meters from the starting point to the end point according to the Euclidean distance inspired by the Pythagorean theorem. At this time, the data is transmitted to the wire-retracting and releasing mechanism, and the wire-retracting and releasing mechanism releases d meters of wire.

[0056] Where: D = d

[0057] If the trajectory is tortuous or the slope k of any ascending or descending process of the curve has a value range where |k| is greater than 45° or any curve tangent p is perpendicular to the x-axis, the UAV body (1) selects a complex flight mode. According to the path planning A-Star(A) search algorithm*, that is, combining the following distance calculation formulas,

[0058] including the Manhattan distance formula H(i)=(abs(i.x - g.x)+abs(i.y - g.y)),

[0059] the Chebyshev distance formula H(i)=Max(abs(i.x - g.x),abs(i.y - g.y)),

[0060] the Euclidean distance formula H(i)=sqrt((i.x - g.x) 2 +(i.y - g.y) 2 ) and the Octile distance formula , the theoretical distance L1 from the starting point to the end point is obtained, and the data is transmitted to the wire winding and unwinding mechanism 2, and the wire winding and unwinding mechanism 2 unwinds L1 meters of wire;

[0061] Among them, in the path planning A-Star(A) search algorithm*, in each distance formula, i.x represents the x-axis coordinate value of the starting point i, i.y represents the y-axis coordinate value of the starting point i, g.x represents the x-axis coordinate value of the end point g, g.y represents the y-axis coordinate value of the end point g, abs() is a function for obtaining the absolute value, and sqrt() is a function for obtaining the square root;

[0062] S2: Reduce the wire winding and unwinding error. After the UAV body 1 determines the flight mode, it flies according to the planned path, and through the PTK positioning technology, that is, the RTK positioning technology is based on the very similar errors between the rover station and the reference station. It uses GPS carrier phase observations for real-time kinematic positioning. The spatial position signal is transmitted in real time to obtain an actual flight trajectory, that is, the second trajectory line; The length L1 of the first trajectory line and the length L2 of the second trajectory line are analyzed and compared, and the actual distance is calculated according to the trajectory line length;

[0063] If L1 > L2, the wire winding and unwinding mechanism winds the wire;

[0064] If L1 < L2, the wire winding and unwinding mechanism unwinds the wire;

[0065] If L1 = L2, the wire winding and unwinding mechanism remains in the locked state;

[0066] During the flight of the UAV body 1, the force sensors at the outlet of the wire winding and unwinding mechanism and at the power interface of the charging wire transmit the tensile force value data to the control end in real time, which are N1 and N2 respectively. When N1 = N2 or |N1 - N2| is less than or equal to the set threshold a3, that is, the actual wire unwinding length is too small and the charging wire is in a taut state, the synchronous belt brush motor 25 accelerates the wire unwinding at the set acceleration;

[0067] When |N1 - N2| is greater than the set threshold a3, the wire winding and unwinding system is normal; the electronic counter 26 in the wire winding and unwinding mechanism monitors the wire unwinding length in real time, and analyzes and compares the actual wire unwinding length d1 with the theoretical wire unwinding length d2. If d1 > d2, the wire winding and unwinding mechanism 2 winds up the wire;

[0068] If d1 < d2, the wire winding and unwinding mechanism 2 unwinds the wire;

[0069] If d1 = d2, the wire winding and unwinding mechanism 2 remains in the locked state.

[0070] During the wire winding process, the charging wire passes through the spiral transmission mechanism 24 at the inlet and outlet of the wire winding box 23. Combining with the wire winding speed of the wire winding disc 22, when the wire winding disc 22 rotates one week, the first circle of the charging wire is completely wound on the wire winding disc 22, and the nut 241 slowly moves to the right on the lead screw 242. When the wire winding disc 22 rotates another week, the second circle of the charging wire is completely wound on the wire winding disc 22, and the nut 241 continues to slowly move to the right on the lead screw 242 until the first row of the charging wire is completely wound. Then the nut 241 changes direction and slowly moves to the left on the lead screw 242 to wind the second row of the charging wire, and so on, so that the charging wire is wound on the wire winding disc as neatly as possible.

[0071] S3: Emergency protection. When the UAV encounters a leakage situation caused by collision, abrasion, etc. of the high-voltage wire during flight, it may damage the UAV. At this time, the electromagnetic inductor can detect the electromagnetic field intensity near the UAV body 1. When the detected electromagnetic field intensity near the UAV body 1 is too large, among them, the status detection system in the path planning module feeds back the task execution situation and the subsystem status to the task generation and scheduling layer, and the UAV body 1 makes a reaction according to the situation at that time and quickly generates a behavior plan to autonomously avoid flying in this area;

[0072] When an emergency occurs during the flight of the drone, the force sensor detects that the tension value at the outlet of the retractable wire mechanism carried by the drone body 1 rises sharply, then the state detection system of the path planning module feeds back the task execution status and subsystem status to the task generation and scheduling layer, and the drone body 1 reacts quickly to generate a behavior plan according to the current situation, and the drone body hovers. Among them, the force sensor transmits the data back to the control end, and the camera 3 observes the situation generated by the charging line at this time, and transmits it to the visual recognition system connected to it to make a judgment. If the emergency is being pressed by a heavy object, the alarm module will sound an alarm, and manual intervention will be required to solve it, and the drone will continue to fly; if the emergency is the entanglement of the charging line, the state detection system of the path planning module will feed back the task execution status and subsystem status to the task generation and scheduling layer, and the drone body 1 will return to the set threshold a2 seconds ago by itself, and then the visual recognition system will make a judgment again. If the winding situation is solved, it will go directly to the next step; if the winding situation is not solved, manual intervention is required before the next step. At this time, the drone activates the re-planning module, and the drone body 1 responds quickly to the current situation to generate a behavior plan. The control instruction generation layer receives the emergency control instruction, the path is re-planned, and the drone body 1 continues to fly.

[0073] When the charging line is short-circuited, the current value in the circuit increases suddenly. At this time, the current sensor transmits data to the control system, and the power is cut off manually to ensure the safety of the drone body 1. Under normal circumstances, the trapezoidal opening 511 of the trapezoidal locking device 51 on the fixing frame 5 of the retractable wire mechanism is staggered and fixed with the trapezoidal block 29 on the retractable wire mechanism 2 to ensure that the retractable wire mechanism 2 is firmly fixed directly below the drone body 1; when an emergency occurs in the drone body 1, the charging line is discarded when necessary, the emergency protection module is activated, the drone body 1 observes the surrounding situation through the camera 4, and the drone body 1 descends to a safe area. Then, the trapezoidal locking device 51 rotates 90 degrees clockwise, the trapezoidal opening 511 overlaps with the trapezoidal block 29, and the retractable wire mechanism 2 is separated from the drone body 1 by gravity; at the same time, the charging 7) connected to the retractable wire mechanism 2 and the drone body 1 is separated from the adapter by gravity to realize the retractable wire mechanism falling off. Example 1

[0074] Based on Example 1, the positioning module is used to obtain the current location information of the drone in real time, including the GPS positioning system and the PTK positioning technology;

[0075] The obstacle avoidance module uses millimeter wave radar to avoid obstacles encountered by the drone during flight and ensure the safety of the drone body 1;

[0076] The electric induction module is used to detect the electromagnetic field near the drone body 1;

[0077] The anti-entanglement module is used to solve the problem of wire entanglement caused by the drone body carrying the charging cable during flight and the problem of the charging cable being pressed by heavy objects;

[0078] The emergency protection module is used to prevent the drone body 1 from being damaged when a short circuit occurs in the charging cable, and the drone body 1 from discarding the charging cable when the charging cable becomes entangled and cannot be resolved, or the charging cable is damaged;

[0079] The path planning module is used to complete the path planning of the UAV body 1, and complete the path replanning, path tracking and trajectory tracking when an emergency occurs.

[0080] The electric induction module is connected to an electromagnetic sensor and a path planning module; the electromagnetic sensor is used to detect the electromagnetic field strength near the drone body 1; in the path planning module, if the electromagnetic sensor detects that the electromagnetic field strength near the drone body 1 is too large, the state detection system in the path planning module will feed back the task execution status and subsystem status to the task generation and scheduling layer, and the drone body 1 will react quickly to generate a behavior plan according to the current situation and autonomously avoid flying in this area to avoid the influence of the electromagnetic environment on the electronic devices in the drone body 1 and ensure the safety of the drone body 1.

[0081] The anti-entanglement module is connected to a force sensor, a camera 4, an alarm module and a path planning module; the force sensor is used to detect the tension value of the charging line at the outlet end of the retractable wire mechanism carried by the drone body 1; the camera 4 is connected to a visual recognition module; the visual recognition module obtains information through the camera 4, pre-processes the obtained information including denoising and smoothing, then extracts the wire features and uses the camera automatic tracking technology to track and shoot the entangled part at a fixed point, and finally uploads the picture to the terminal for processing.

[0082] The emergency protection module is connected with a current sensor, a camera 4 and a wire-retracting mechanism fixing frame 5; the current sensor is located in the circuit. When the charging line is short-circuited, the current value in the circuit increases suddenly. At this time, the data is transmitted to the control system, and the power is cut off manually to ensure the safety of the drone body 1. Under normal circumstances, the trapezoidal block 29 rotates 90 degrees clockwise in the trapezoidal locking device 51 and intersects with the trapezoidal mouth 511 to ensure that the wire-retracting mechanism 2 is firmly fixed directly below the drone body 1; when an emergency occurs in the drone body 1 and the charging line is discarded when necessary, the emergency protection module is activated, the drone body 1 observes the surrounding situation through the camera 4, and the drone body 1 descends to a safe area. Then, the trapezoidal locking device 51 rotates 90 degrees clockwise, the trapezoidal mouth 511 overlaps with the trapezoidal block 29, and the wire-retracting mechanism 2 is separated from the drone body 1 by gravity; at the same time, the charging line 7 connected to the wire-retracting mechanism 2 and the drone body 1 is separated from the adapter by gravity to achieve the detachment of the wire-retracting mechanism.

[0083] The path planning module includes the main control system and the planning system; the main control system consists of three basic structures: task generation and scheduling, motion behavior planning, and task planning and control instruction generation. The task generation and scheduling layer obtains the flight task, and the specific behavior plan is obtained through the motion behavior planning and task planning layer. The final control instruction is then obtained by the control instruction generation layer and sent to other functional agents; each functional agent sends status information to the status detection system of the main control system, and the status detection system feeds back the task execution status and subsystem status to the task generation and scheduling layer so as to adjust the task planning according to the specific situation; the planning system includes the motion behavior planning module and the re-planning module; when encountering an emergency, the re-planning module can be enabled, which can respond quickly according to the current situation and quickly generate a behavior plan to guide the control instruction generation layer to obtain emergency control instructions; at the same time, the status detection system can complete the path tracking and trajectory tracking of the UAV; in addition, the ground control system has intervention capabilities at three levels.

[0084] Anti-entanglement module, if the UAV has an emergency, the force sensor detects that the tension value at the outlet of the retractable wire mechanism carried by the UAV body 1 rises sharply, then the state detection system of the path planning module feeds back the task execution status and subsystem status to the task generation and scheduling layer, the UAV body 1 reacts quickly to generate a behavior plan according to the current situation, and the UAV body 1 hovers; the force sensor transmits the data back to the control end, at which time the camera 4 observes the situation generated by the charging cable and transmits it to the visual recognition system for it to make a judgment; if the emergency is being pressed by a heavy object, the alarm module sounds an alarm, and manual intervention is required to solve it; if the emergency is the entanglement of the charging cable, the state detection system of the path planning module feeds back the task execution status and subsystem status to the task generation and scheduling layer, the UAV body 1 returns to the set threshold a2 seconds ago by itself, and then the visual recognition system makes a judgment again. If the winding problem is solved, it will proceed directly to the next step; if the winding problem is not solved, manual intervention is required before proceeding to the next step. At this time, the drone activates the re-planning module, and the drone body 1 responds quickly to the current situation to generate a behavior plan. The control instruction generation layer receives the emergency control instruction, the path is re-planned, and the drone body 1 continues to fly. Example 2

[0085] On the basis of Example 2, one end of the charging cable 7 passes through the pre-punched hole 221 of the winding drum 22 and is connected to one end of the rotor on the conductive slip ring 27; the conductive slip ring 27 is fixed on the winding box cover 21 of the reel 2, and the stator end of the conductive slip ring 27 is connected to the adapter on the chassis of the drone body 1; one end of the other charging cable 7 is connected to the adapter on the chassis of the drone body 1, and the other end is connected to the charging port on the drone body 1, and the other end of the reel 2 is connected to the power supply to start charging.

[0086] The path planning module completes the path planning to form the first trajectory line; if the trajectory is smooth or the slope k of any ascending or descending process of the curve is in the range of |k| greater than or equal to 0 and less than or equal to 45°, the UAV body 1 selects the simple flight mode, and calculates the straight-line distance D meters from the starting point to the end point according to the Euclidean distance inspired by the Pythagorean theorem. At this time, the data is transmitted to the wire-retracting and releasing mechanism, and the wire-retracting and releasing mechanism releases d meters of wire;

[0087] Where: D = d

[0088] If the trajectory is tortuous or the slope k of any ascending or descending process of the curve is in the range of |k| greater than 45° or any tangent p of the curve is perpendicular to the x-axis, the UAV body 1 selects the complex flight mode and uses the path planning A-Star (A) search algorithm*, that is, combined with the following distance calculation formula,

[0089] Including the Manhattan distance formula H(i)=(abs(ix-gx)+abs(iy-gy)),

[0090] Chebyshev distance formula H(i)=Max(abs(ix-gx),abs(iy-gy)),

[0091] Euclidean distance formula H(i)=sqrt((ix-gx) 2 +(iy-gy) 2 ) and the Octile distance formula , the theoretical distance L1 from the starting point to the end point is obtained, the data is transmitted to the wire-retracting and releasing mechanism 2, and the wire-retracting and releasing mechanism 2 releases L1 meters of wire;

[0092] Among them, in the path planning A-Star (A) search algorithm*, in each distance formula, ix represents the x-axis coordinate value of the starting point i, iy represents the y-axis coordinate value of the starting point i, gx represents the x-axis coordinate value of the end point g, gy represents the y-axis coordinate value of the end point g, abs() is a function for obtaining the absolute value, and sqrt() is a function for obtaining the square root;

[0093] After the UAV body 1 determines the flight mode, it flies according to the planned path and uses PTK positioning technology, that is, RTK positioning technology is based on the fact that the errors of the mobile station and the base station are very similar. It uses the GPS carrier phase observation value for real-time dynamic positioning. The spatial position signal is transmitted in real time to obtain an actual flight trajectory, that is, the second trajectory line; the length of the first trajectory line L1 is analyzed and compared with the length of the second trajectory line L2, and the actual distance is converted according to the trajectory line length;

[0094] If L1>L2, the reel-in mechanism reels in the wire;

[0095] If L1 < L2, the pay-off and take-up mechanism pays out the wire.

[0096] If L1 = L2, the pay-off and take-up mechanism remains in the locked state.

[0097] During the flight of the UAV body 1, the force sensors at the outlet of the pay-off and take-up mechanism and the force sensors at the power interface of the charging wire transmit the tensile force value data to the control end in real time, which are N1 and N2 respectively. When N1 = N2 or |N1 - N2| is less than or equal to the set threshold a3, that is, the actual pay-out length is too small and the charging wire is in a taut state, the synchronous belt brush motor 25 accelerates the pay-out of the wire according to the set acceleration.

[0098] When |N1 - N2| is greater than the set threshold a3, the pay-off and take-up system is normal; the electronic counter 26 in the pay-off and take-up mechanism monitors the pay-out length in real time, and analyzes and compares the actual pay-out length d1 with the theoretical pay-out length d2. If d1 > d2, the pay-off and take-up mechanism 2 takes up the wire.

[0099] If d1 < d2, the pay-off and take-up mechanism 2 pays out the wire.

[0100] If d1 = d2, the pay-off and take-up mechanism 2 remains in the locked state.

[0101] During the take-up process, the charging wire passes through the screw drive mechanism 24 at the inlet and outlet of the wire winding box 23. Combining with the take-up speed of the wire winding disc 22, when the wire winding disc 22 rotates one week, the first circle of the charging wire is completely wound on the wire winding disc 22, and the nut 241 slowly moves to the right on the lead screw 242. When the wire winding disc 22 rotates one more week, the second circle of the charging wire is completely wound on the wire winding disc 22, and the nut 241 continues to slowly move to the right on the lead screw 242 until the first row of the charging wire is completely wound. Then the nut 241 changes direction and slowly moves to the left on the lead screw 242 to wind the second row of the charging wire, and so on, so that the charging wire is wound on the wire winding disc as neatly as possible.

[0102] When the UAV is in flight and encounters a leakage situation caused by the collision or abrasion of the high-voltage wire, etc., it may damage the UAV. At this time, the electromagnetic inductor can detect the electromagnetic field intensity near the UAV body 1. When the detected electromagnetic field intensity near the UAV body 1 is too large, among them, the status detection system in the path planning module feeds back the task execution situation and the subsystem status to the task generation and scheduling layer, and the UAV body 1 makes a reaction according to the situation at that time and quickly generates a behavior plan to autonomously avoid flying in this area.

[0103] When an emergency occurs during the flight of the drone, the force sensor detects that the tension value at the outlet of the retractable wire mechanism carried by the drone body 1 rises sharply, then the state detection system of the path planning module feeds back the task execution status and subsystem status to the task generation and scheduling layer, and the drone body 1 reacts quickly to generate a behavior plan according to the current situation, and the drone body hovers. Among them, the force sensor transmits the data back to the control end, and the camera 3 observes the situation generated by the charging line at this time, and transmits it to the visual recognition system connected to it to make a judgment. If the emergency is being pressed by a heavy object, the alarm module will sound an alarm, and manual intervention will be required to solve it, and the drone will continue to fly; if the emergency is the entanglement of the charging line, the state detection system of the path planning module will feed back the task execution status and subsystem status to the task generation and scheduling layer, and the drone body 1 will return to X seconds ago by itself, where X is the set threshold a2 seconds, and then the visual recognition system will make a judgment again. If the winding situation is solved, it will directly proceed to the next step; if the winding situation is not solved, manual intervention is required before proceeding to the next step. At this time, the drone activates the re-planning module, and the drone body 1 responds quickly to the current situation to generate a behavior plan. The control instruction generation layer receives the emergency control instruction, the path is re-planned, and the drone body 1 continues to fly.

[0104] When the charging line is short-circuited, the current value in the circuit increases suddenly. At this time, the current sensor transmits data to the control system, and the power is cut off manually to ensure the safety of the drone body 1. Under normal circumstances, the trapezoidal opening 511 of the trapezoidal locking device 51 on the fixing frame 5 of the retractable wire mechanism is staggered and fixed with the trapezoidal block 29 on the retractable wire mechanism 2 to ensure that the retractable wire mechanism 2 is firmly fixed directly below the drone body 1; when an emergency occurs in the drone body 1 and the charging line is discarded when necessary, the emergency protection module is activated, the drone body 1 observes the surrounding situation through the camera 4, and the drone body 1 descends to a safe area. Then, the trapezoidal locking device 51 rotates 90 degrees clockwise, the trapezoidal opening 511 overlaps with the trapezoidal block 29, and the retractable wire mechanism 2 is separated from the drone body 1 by gravity; at the same time, the charging line 7 connected to the retractable wire mechanism 2 and the drone body 1 is separated from the adapter by gravity to achieve the detachment of the retractable wire mechanism.

[0105] In summary, the drone carries a charging cable to complete the work.

[0106] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A drone that flies with a charging cable, characterized in that: The invention comprises an unmanned aerial vehicle (UAV) body (1), characterized in that the UAV body (1) comprises a wire-retracting and unretracting mechanism (2), a camera bracket (3), a camera (4), a wire-retracting and unretracting mechanism fixing frame (5), a chassis slide rail (6) and a charging cable (7); the wire-retracting and unretracting mechanism fixing frame (5) comprises a trapezoidal locking device (51); the wire-retracting and unretracting mechanism (2) is fixed directly below the UAV body (1) through the trapezoidal locking device (51) in the wire-retracting and unretracting mechanism fixing frame (5), and the camera (4) is installed below the UAV body (1) through the camera bracket (3); the camera bracket (3) comprises a slider (31); the slider (31) is connected to the chassis slide rail (6); the charging cable (7) is connected between the UAV body (1) and the wire-retracting and unretracting mechanism (2); The wire retracting and releasing mechanism comprises a force sensor, a winding box cover (21), a winding reel (22), a winding box (23), a spiral transmission mechanism (24), a synchronous belt brush motor (25), an electronic meter (26), a conductive slip ring (27), a fixed housing (28) and a trapezoidal block (29); the force sensor is located at the charging wire inlet and outlet of the winding box (23); the winding reel (22) has a hole (221); the winding reel (22) is located inside the winding box (23) for winding the wire; the spiral transmission mechanism (24) comprises a nut (241) and a screw rod (242), wherein the nut (241) and the screw rod (242) are located at the charging wire inlet and outlet of the winding box (23); the electronic meter ( 26) is connected to the winding drum (22) on the outside of the winding box (23) and is used to measure the length of the unwinding wire; the synchronous brush motor (25) is connected to the winding drum (22) and is used to provide power for the winding drum (22); the charging line (7) passes through the pre-punched hole (221) of the winding drum (22) and is connected to the rotor on the conductive slip ring (27); the conductive slip ring (27) is fixed to the winding box cover (21) of the wire retracting and unwinding mechanism (2), and the stator lead wire on the conductive slip ring (27) is connected to the transfer interface on the chassis of the drone body (1); the fixed shell (28) is used to protect the conductive slip ring (27); the trapezoidal block (29) is used to connect to the trapezoidal locking device (51); The charging wire of the wire retracting and releasing mechanism is evenly wound on the wire reel (22) and is located inside the wire reel box (23); the inlet and outlet of the wire reel box (23) are equipped with the spiral transmission mechanism (24); the charging wire passes through the spiral transmission mechanism (24), and the nut (241) moves left and right on the lead screw (242), so that the charging wire is evenly wound on the wire reel (22); It also includes a positioning module, an obstacle avoidance module, an electric induction module, an anti-winding module, an emergency protection module, and a path planning module installed on the UAV body (1); the output ends of the positioning module, the obstacle avoidance module, the electric induction module, the anti-winding module, the emergency protection module, and the path planning module are all connected to the input end of the UAV flight control system, and the UAV flight control system is installed inside the UAV body (1).

2. A method for operating a drone carrying a charging cable according to claim 1, characterized in that: The method includes the following steps: S1: Path planning. The path planning module completes the path planning to form a first trajectory line; if the trajectory is smooth or the slope k of any rising or falling process of the curve has a value range where |k| is greater than or equal to 0 and less than or equal to 45°, the UAV body (1) selects a simple flight mode, and calculates the straight-line distance D meters from the starting point to the end point according to the Euclidean distance inspired by the Pythagorean theorem. At this time, the data is transmitted to the wire winding and unwinding mechanism, and the wire winding and unwinding mechanism unwinds d meters of wire; Where: D = d If the slope k of any rising or falling process of the trajectory curve has a value range where |k| is greater than 45° or any curve tangent p is perpendicular to the x-axis, the UAV body (1) selects a complex flight mode, and according to the path planning search algorithm, the following distance calculation formulas are included, including the Manhattan distance formula H(i)=(abs(i.x - g.x)+abs(i.y - g.y)), the Chebyshev distance formula H(i)=Max(abs(i.x - g.x),abs(i.y - g.y)), Euclidean distance formula H(i)=sqrt((ix-gx) 2 +(iy-gy) 2 ) and the Octile distance formula , a theoretical distance L1 from the starting point to the end point is obtained, and the data is transmitted to the wire-retracting and releasing mechanism (2), and the wire-retracting and releasing mechanism (2) releases L1 meters of wire; where, in the path planning search algorithm, in each distance formula, i.x represents the x-axis coordinate value of the starting point i, i.y represents the y-axis coordinate value of the starting point i, g.x represents the x-axis coordinate value of the end point g, g.y represents the y-axis coordinate value of the end point g, abs() is a function to obtain the absolute value, and sqrt() is a function to obtain the square root; S2: Reduce the wire winding and unwinding error. After the UAV body (1) determines the flight mode, it flies according to the planned path, and through the PTK positioning technology; it transmits the spatial position signal in real time to obtain an actual flight trajectory, that is, a second trajectory line; the length L1 of the first trajectory line and the length L2 of the second trajectory line are analyzed and compared, and the actual distance is calculated according to the trajectory line length; If L1 > L2, the wire winding and unwinding mechanism winds the wire; If L1 < L2, the wire winding and unwinding mechanism unwinds the wire; If L1 = L2, the wire winding and unwinding mechanism remains in the locked state; During the flight of the UAV body (1), the force sensors at the outlet of the wire winding and unwinding mechanism and the force sensors at the power interface of the charging wire transmit the tension value data N1 and N2 to the control end in real time. When N1 = N2 or |N1 - N2| is less than or equal to the set threshold a3, that is, the actual wire unwinding length is too small and the charging wire is in a taut state, the synchronous belt brush motor (25) accelerates the wire unwinding according to the set acceleration; |N1 - N2| is greater than the set threshold a3, the wire winding and unwinding system is normal; the electronic counter (26) in the wire winding and unwinding mechanism monitors the wire unwinding length in real time. The actual wire unwinding length d1 and the theoretical wire unwinding length d2 are analyzed and compared. If d1 > d2, the wire winding and unwinding mechanism (2) winds the wire; If d1 < d2, the wire winding and unwinding mechanism (2) unwinds the wire; If d1=d2, the wire-reeling and retracting mechanism (2) remains locked; During the wire-winding process, the charging wire passes through the spiral transmission mechanism (24) at the inlet and outlet of the wire winding box (23). Combined with the wire-winding speed of the wire winding drum (22), the wire winding drum (22) rotates one circle, the first circle of the charging wire is wound around the wire winding drum (22), the nut (241) moves slowly to the right on the screw rod (242), the wire winding drum (22) continues to rotate one circle, the second circle of the charging wire is wound around the wire winding drum (22), the nut (241) continues to move slowly to the right on the screw rod (242), until the first row of the charging wire is wound, the nut (241) changes direction on the screw rod (242) and moves slowly to the left, the second row of the charging wire is wound, and so on, so that the charging wire is wound around the wire winding drum as neatly as possible; S3: Emergency protection. When the drone encounters leakage caused by collision or scratching of high-voltage wires during flight, the drone may be damaged. At this time, the electromagnetic sensor can detect the electromagnetic field strength near the drone body (1). When it is detected that the electromagnetic field strength near the drone body (1) is too high; Among them, the state detection system in the path planning module feeds back the task execution status and subsystem status to the task generation and scheduling layer. The UAV body (1) responds to the current situation and quickly generates a behavior-planned path, and autonomously avoids the path of the behavior plan; When an emergency occurs during the flight of the drone, the force sensor detects that the tension value at the outlet of the retractable wire mechanism carried by the drone body (1) rises sharply, and the state detection system of the path planning module feeds back the task execution status and the subsystem status to the task generation and scheduling layer, and the drone body (1) reacts according to the current situation and quickly generates a behavior plan, and the drone body hovers; The force sensor transmits data back to the control end, and the camera (4) observes the situation generated by the charging cable and transmits it to the visual recognition system connected thereto so that it can make a judgment; If the emergency situation is being crushed by a heavy object, the alarm module will sound an alarm, and human intervention will be required to solve the problem, and the drone will continue to fly; If the emergency situation is that the charging cable is entangled, the status detection system of the path planning module will feed back the task execution status and subsystem status to the task generation and scheduling layer, and the drone body (1) will return to the set time threshold a2 seconds before the original route, and then the visual recognition system will make a judgment again. If the entanglement problem is solved, it will directly proceed to the next step; If the winding problem is not solved, manual intervention is required before proceeding to the next step; At this time, the drone activates the re-planning module, and the drone body (1) reacts to the current situation and quickly generates a behavior plan. The control command generation layer receives the emergency control command, re-plans the path, and the drone body (1) continues to fly; When a short circuit occurs in the charging line, the current value in the circuit increases suddenly. At this time, the current sensor transmits data to the control system, and manual intervention is performed to cut off the power to ensure the safety of the drone body (1); Under normal circumstances, the trapezoidal opening (511) of the trapezoidal locking device (51) on the fixing frame (5) of the retractable and retractable wire mechanism is staggered and fixed with the trapezoidal block (29) on the retractable and retractable wire mechanism (2), so as to ensure that the retractable and retractable wire mechanism (2) is firmly fixed directly below the drone body (1); When an emergency occurs in the drone body (1) and the charging cable needs to be discarded, the emergency protection module is activated, the drone body (1) observes the surrounding situation through the camera (4), and the drone body (1) descends to a safe area. Then, the trapezoidal locking device (51) rotates 90 degrees clockwise, the trapezoidal opening (511) overlaps with the trapezoidal block (29), and the retractable wire mechanism (2) is separated from the drone body (1) by gravity; at the same time, the charging cable (7) connected to the retractable wire mechanism (2) and the drone body (1) is separated from the adapter by gravity to achieve the detachment of the retractable wire mechanism.