Method, system, device and medium for controlling no-fly zones and electronic fences for unmanned aerial vehicles

Through the integrated control method of UAV no-fly zone and electronic fence, the control strategies of no-fly zone and electronic fence are unified, which solves the problems of low flight efficiency and difficult maintenance caused by the separate design in the existing technology, and achieves efficient Online comprehensive detection and management simplify the post-maintenance process.

CN113671993BActive Publication Date: 2024-08-23PRODRONE TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111012196.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-31
Publication Date
2024-08-23
Estimated Expiration
2041-08-31

AI Technical Summary

Technical Problem

The existing UAV flight control algorithm separates the no-fly zone and electronic fence control strategies, resulting in low flight control efficiency and increased maintenance difficulty, and the separated design is not conducive to later development and maintenance.

Method used

The integrated control method of drone no-fly zone and electronic fence is used to determine whether the drone is in a legal area or an illegal area by obtaining the area type, and implement corresponding controls based on the location relationship, including prohibiting takeoff or forced landing, speed limit or braking. , and continue flying, unified and efficient algorithm design to achieve online comprehensive detection analysis and comprehensive management.

Benefits of technology

It reduces the processor task burden, combines the no-fly zone and electronic fence functions of multi-rotor drones into one, simplifies post-maintenance, and improves flight control efficiency and maintenance convenience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113671993B
    Figure CN113671993B
Patent Text Reader

Abstract

The present invention is applicable to the field of rotary wing unmanned aerial vehicles, and provides a method, system, device and medium for controlling a no-fly zone and an electronic fence for unmanned aerial vehicles. The method includes the following steps: obtaining the area type, and judging whether the unmanned aerial vehicle is in a legal area or an illegal area based on the area type; when the unmanned aerial vehicle is in an illegal area, the unmanned aerial vehicle is prohibited from taking off or forced to land on the spot; when the unmanned aerial vehicle is in a legal area, the effective closest distance between the unmanned aerial vehicle and the edge of the area is detected in real time; when the unmanned aerial vehicle approaches the edge of the area, the unmanned aerial vehicle is speed-limited or braked; when the unmanned aerial vehicle is not close to the edge of the area, the unmanned aerial vehicle continues to fly according to the original predetermined task. The embodiment of the present invention can ensure that the unmanned aerial vehicle can cope with the no-fly zone or the electronic fence with ease. With respect to the no-fly zone and the electronic fence functions of the unmanned aerial vehicle, the two are integrated to realize online comprehensive detection and analysis, comprehensive management, and comprehensive control, and also realize comprehensive maintenance in the later stage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention belong to the field of rotary-wing unmanned aerial vehicles, and in particular to a method, system, device and medium for controlling a no-fly zone and an electronic fence for unmanned aerial vehicles. Background Art

[0002] A no-fly zone is a specific area defined by a country or region where aircraft are prohibited from flying. If a drone enters a no-fly zone, it will seriously threaten aviation safety. Therefore, for multi-rotor drones, corresponding flight control measures must be taken to prevent them from entering the no-fly zone.

[0003] Correspondingly, the electronic fence is a functional area established by the user to perform tasks within a specific range, and the drone must perform tasks within this area. For example, a plant protection drone sprays pesticides in the field, a surveying and mapping drone surveys the area, etc. For the electronic fence, the flight control must also be designed so that the drone cannot rush out of the fence.

[0004] In the current UAV flight control algorithm, the no-fly zone control strategy and the electronic fence control strategy are usually separated and executed separately. Although this single separation strategy reduces coupling well and is simple and clear in form; but in terms of flight control efficiency, firstly, it increases the burden of flight control, and the flight control needs to run two separate algorithm strategies at the same time. Because the area where the aircraft is at any time is a no-fly zone or an electronic fence, the two cannot be taken at the same time. Secondly, from the perspective of the algorithm itself, the properties of the no-fly zone and the electronic fence are basically similar, and the separation design is not conducive to later development and maintenance. Summary of the invention

[0005] The purpose of the embodiments of the present invention is to provide a method for controlling a no-fly zone for unmanned aerial vehicles and an electronic fence, aiming to solve the problems raised in the above-mentioned background technology.

[0006] The embodiment of the present invention is implemented as follows: a method for controlling a no-fly zone and an electronic fence for a drone, comprising the following steps:

[0007] Get the area type and determine whether the drone is in a legal area or an illegal area based on the area type;

[0008] When the drone is in an illegal area, the drone is prohibited from taking off or making an emergency landing on the spot;

[0009] When the drone is in a legal area, the effective closest distance between the drone and the edge of the area is detected in real time; when the drone approaches the edge of the area, the drone limits its speed or brakes; when the drone is not close to the edge of the area, the drone continues to fly according to the original predetermined mission.

[0010] In a preferred embodiment of the present invention, the effective shortest distance refers to the distance from the only possible future intersection point between the drone and the edge of the electronic fence when the drone flies at a certain target speed in real time to the current position of the drone.

[0011] In a preferred embodiment of the present invention, the step of acquiring the area type includes: reading the area type of the area according to user or predetermined settings, wherein the area type includes a no-fly zone and an electronic fence.

[0012] In a preferred embodiment of the present invention, the legal area is inside the electronic fence area or outside the no-fly zone; the illegal area is outside the electronic fence area or inside the no-fly zone.

[0013] In a preferred embodiment of the present invention, the step of determining whether the drone is in a legal area or an illegal area includes: determining the positional relationship between the drone and any polygonal no-fly zone or electronic fence and / or determining the positional relationship between the drone and any circular no-fly zone or electronic fence.

[0014] In a preferred embodiment of the present invention, the step of determining the positional relationship between the drone and any polygonal no-fly zone or electronic fence specifically includes:

[0015] Draw a horizontal ray from the current position of the drone, and determine whether the point is inside the polygon based on the intersection of the ray and the polygon;

[0016] If the number of intersection points is odd, it means that the current position of the drone is within the polygon.

[0017] If the number of intersection points is even, it means that the current position of the drone is outside the polygon.

[0018] In a preferred embodiment of the present invention, the step of determining the positional relationship between the drone and any circular no-fly zone or electronic fence comprises: calculating the distance d from the current position of the drone to the center of the circular no-fly zone or electronic fence;

[0019] If the distance d>radius r, the drone is outside the no-fly zone or electronic fence;

[0020] If the distance d is less than the radius r, the UAV is within the no-fly zone or electronic fence.

[0021] The embodiment of the present invention further provides a drone no-fly zone and electronic fence control system, the system comprising:

[0022] An acquisition unit, used to acquire the area type;

[0023] The first judgment unit is used to judge whether the drone is in a legal area or an illegal area;

[0024] A first execution unit is used to prohibit the drone from taking off or make an emergency landing on the spot when the drone is in an illegal area;

[0025] The second judgment unit is used to detect the effective minimum distance between the drone and the edge of the area in real time when the drone is in the legal area;

[0026] A second execution unit is used to limit the speed or brake the drone when the drone approaches the edge of the area;

[0027] The third execution unit is used to enable the drone to continue flying according to the original predetermined mission when the drone is not close to the edge of the area.

[0028] An embodiment of the present invention also provides a control device, which includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the drone no-fly zone and electronic fence control method.

[0029] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor executes the steps of the drone no-fly zone and electronic fence control method.

[0030] The embodiments of the present invention provide a set of functional algorithms for integrated control of no-fly zones and electronic fences, which ensure that the drone can cope with no-fly zones or electronic fences with ease. From the perspective of algorithm efficiency and subsequent functional maintenance, the no-fly zone and electronic fence functions of multi-rotor drones are integrated to achieve online comprehensive detection and analysis, comprehensive management, and comprehensive control, as well as subsequent comprehensive maintenance.

[0031] Compared with the prior art, the technical advantages of the drone no-fly zone and electronic fence control method provided by the embodiment of the present invention are: the algorithm of the present application is unified and efficient, reducing the task burden of the processor, and can realize the integration of the no-fly zone and electronic fence functions of the multi-rotor drone, realizing online comprehensive detection and analysis, comprehensive management, and comprehensive control, and also facilitating the comprehensive repair and maintenance in the later stage. In summary, the drone no-fly zone and electronic fence control method provided by the embodiment of the present invention has the advantages of high efficiency and easy maintenance, and has high engineering application significance. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 A flowchart of a method for controlling a no-fly zone and an electronic fence for a drone provided by an embodiment of the present invention;

[0033] Figure 2A schematic diagram of the principle of determining the positional relationship between a drone and any polygonal no-fly zone or electronic fence provided by an embodiment of the present invention;

[0034] Figure 3 A schematic diagram of the principle of determining the positional relationship between a drone and any circular no-fly zone or electronic fence provided by an embodiment of the present invention;

[0035] Figure 4 A structural block diagram of a drone no-fly zone and electronic fence control system provided by an embodiment of the present invention;

[0036] Figure 5 This is a structural block diagram of a control device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0037] 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. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0038] In the current UAV flight control algorithm, the no-fly zone control strategy and the electronic fence control strategy are usually separated and executed separately. Although this single separation strategy reduces coupling well and is simple and clear in form; but in terms of flight control efficiency, firstly, it increases the burden of flight control, and the flight control needs to run two separate algorithm strategies at the same time. Because the area where the aircraft is at any time is a no-fly zone or an electronic fence, the two cannot be taken at the same time. Secondly, from the perspective of the algorithm itself, the properties of the no-fly zone and the electronic fence are basically similar, and the separation design is not conducive to later development and maintenance.

[0039] The embodiments of the present invention provide a set of functional algorithms for integrated control of no-fly zones and electronic fences, which ensure that the drone can cope with no-fly zones or electronic fences with ease. From the perspective of algorithm efficiency and subsequent functional maintenance, the no-fly zone and electronic fence functions of multi-rotor drones are integrated to achieve online comprehensive detection and analysis, comprehensive management, and comprehensive control, as well as subsequent comprehensive maintenance.

[0040] Figure 1 A flow chart of a method for controlling a no-fly zone and an electronic fence for a drone provided by an embodiment of the present invention is shown.

[0041] like Figure 1 As shown, in a preferred embodiment of the present invention, a method for controlling a no-fly zone and an electronic fence for a drone is provided, and the control method comprises the following steps:

[0042] Step S100: Acquiring an area type, wherein the step of acquiring an area type comprises: reading an area type of the area according to a user or a predetermined setting, wherein the area type comprises a no-fly zone and an electronic fence;

[0043] Step S200: judging whether the drone is in a legal area or an illegal area based on the area type;

[0044] Step S300: When the drone is in an illegal area, the drone is prohibited from taking off or forced to land on the spot;

[0045] Step S400: When the drone is in the legal area, the effective closest distance between the drone and the edge of the area is detected in real time. The effective closest distance refers to the distance from the only possible future intersection point between the drone and the edge of the electronic fence when the drone flies at a certain target speed in real time to the current position of the drone.

[0046] Step S500: When the drone approaches the edge of the area, the drone limits speed or brakes;

[0047] Step S600: When the UAV is not close to the edge of the area, the UAV continues to fly according to the original predetermined mission.

[0048] In the embodiment of the present invention, the legal area is inside the electronic fence area or outside the no-fly zone; the illegal area is outside the electronic fence area or inside the no-fly zone.

[0049] It can be understood that by detecting whether the area where the drone is located is a no-fly zone or an electronic fence area, the algorithm chooses to enter the corresponding control link as the entrance of the algorithm; inside the algorithm, based on the similar properties of the no-fly zone and the electronic fence, the same strategy is designed: first, the area shape is detected, where the area shape can be a polygon or a circle; then the position of the drone relative to the area is detected, that is, the drone is detected inside the area or at the tail of the area; then it is detected and determined whether the drone is in a legal area, where the legal area is defined as outside the no-fly zone and inside the electronic fence, and the illegal area is defined as inside the no-fly zone and outside the electronic fence; then a control decision is made on the drone, that is, the flight control of the drone is performed, that is, the drone is prohibited from rushing into the illegal area.

[0050] Furthermore, in an embodiment of the present invention, the two applications of electronic fence and no-fly zone are controlled using a set of algorithms, and only the attribute information is distinguished. For example, first, at the algorithm entrance, it is read according to the user or predetermined settings whether the area is a no-fly zone or an electronic fence. After obtaining the area type, it is determined whether the drone is in a legal area or an illegal area based on the type.

[0051] The legal area is inside the electronic fence area or outside the no-fly zone; the illegal area is outside the electronic fence area or inside the no-fly zone.

[0052] If the aircraft is in an illegal area, take-off is prohibited if the aircraft has not taken off yet, and an emergency landing is required if the aircraft has taken off. If the aircraft is in a legal area, the effective minimum distance between the aircraft and the edge of the area must be detected in real time. If the aircraft is close to the edge, the speed must be limited or the brakes must be applied. If the aircraft is not close to the edge, the flight must continue according to the original mission.

[0053] The "effective closest distance" between the current position of the aircraft and the edge of the area is not the minimum distance in a geometric sense, but refers to the distance from the only possible future intersection with the edge of the electronic fence when the aircraft flies in real time at a certain target speed to the current position of the aircraft.

[0054] Further, in a preferred embodiment of the present invention, the step of determining whether the drone is in a legal area or an illegal area includes:

[0055] Step S201: Determine the positional relationship between the drone and any polygonal no-fly zone or electronic fence;

[0056] and / or

[0057] Step S201: Determine the positional relationship between the drone and any circular no-fly zone or electronic fence.

[0058] Among them, in a preferred embodiment of the present invention, the step of determining the positional relationship between the drone and any polygonal no-fly zone or electronic fence specifically includes:

[0059] Draw a horizontal ray from the current position of the drone, and determine whether the point is inside the polygon based on the intersection of the ray and the polygon;

[0060] If the number of intersection points is odd, it means that the current position of the drone is within the polygon.

[0061] If the number of intersection points is even, it means that the current position of the drone is outside the polygon.

[0062] Specifically, Figure 2 As shown, the principle of determining the positional relationship between the drone and any polygonal no-fly zone or electronic fence is:

[0063] Draw a horizontal ray from the current point of the drone, and determine whether the point is inside the polygon based on the intersection of the ray and the polygon. If the number of intersections is an odd number, it means that the point is inside the polygon.

[0064] The conditions for determining the positional relationship between the drone and any polygonal no-fly zone or electronic fence are:

[0065] First, determine whether the ordinate of point p is between the two points of line segment ab and satisfies the formula: (ay>py)! = (by>py), that is, whether it satisfies the low close and high open (one is equal to, the other is greater than).

[0066] Then determine whether point p is on the left side of the straight line where the edge is located.

[0067] like Figure 2 As shown, with three special points p1, p2 and p3, specifically, according to the above judgment principle and the conditions met, the conclusion that they are inside the polygon can be correctly obtained. Among them:

[0068] ①p0 is a normal point. The edges that meet the above conditions are v0v1, v1v2 and v2v3, a total of 3 edges.

[0069] ②p1 is a special point, and the edges that meet the above conditions are v0v1, v1v2 and v2v3, a total of 3. p1 and v1 are on the same horizontal line, v0v1 and v1v2 both meet the first condition (one is equal to, the other is greater than, low close and high open), and v2v3 meets it normally.

[0070] ③p2 is a special point, and the edge that meets the condition is v2v3, 1. p2 is on the same horizontal line as v3 and v4, v3v4 does not meet the first condition (both are equal), and v4v5 does not meet the first condition (one is equal, the other is less than).

[0071] ④p3 is a special point, and the edge that meets the condition is v4v5, 1. p3 and v5 are on the same horizontal line, and v5v6 does not meet the first condition (one is equal to, and the other is less than).

[0072] Figure 3 A schematic diagram of the principle of determining the positional relationship between a drone and any circular no-fly zone or electronic fence provided by an embodiment of the present invention;

[0073] Further, such as Figure 3 As shown, in another preferred embodiment of the present invention, the step of determining the positional relationship between the drone and any circular no-fly zone or electronic fence includes: calculating the distance d from the current position of the drone to the center of the circular no-fly zone or electronic fence;

[0074] If the distance d>radius r, the drone is outside the no-fly zone or electronic fence;

[0075] If the distance d is less than the radius r, the UAV is within the no-fly zone or electronic fence.

[0076] After the above method determines whether the drone is in or outside a certain area, it can determine whether the aircraft is in a legal area based on the area attributes (no-fly zone or electronic fence).

[0077] Figure 4 A structural block diagram of a drone no-fly zone and electronic fence control system provided in an embodiment of the present invention.

[0078] like Figure 4 As shown, in the preferred implementation manner provided by the present invention, the embodiment of the present invention further provides a drone no-fly zone and electronic fence control system, and the control system 700 includes:

[0079] An acquisition unit 7001 is used to acquire a region type;

[0080] The first determination unit 702 is used to determine whether the drone is in a legal area or an illegal area;

[0081] The first execution unit 703 is used to prohibit the drone from taking off or make an emergency landing on the spot when the drone is in an illegal area;

[0082] The second judgment unit 704 is used to detect the effective minimum distance between the drone and the edge of the area in real time when the drone is in the legal area;

[0083] The second execution unit 705 is used to limit the speed or brake the drone when the drone approaches the edge of the area;

[0084] The third execution unit 706 is used to enable the drone to continue flying according to the original predetermined mission when the drone is not close to the edge of the area.

[0085] Figure 5 A structural block diagram of a control device provided by an embodiment of the present invention is shown.

[0086] like Figure 5 As shown, in an embodiment of the present invention, an embodiment of the present invention further provides a control device 800, which includes a memory 801 and a processor 802, and the memory 801 stores a computer program. When the computer program is executed by the processor 802, the processor 802 executes the steps of the drone no-fly zone and electronic fence control method.

[0087] The embodiment of the present invention further provides a computer-readable storage medium storing a computer program. When the computer program is executed by the processor 802, the processor 802 executes the steps of the drone no-fly zone and electronic fence control method.

[0088] Therefore, the embodiments of the present invention provide a set of functional algorithms for integrated control of no-fly zones and electronic fences, which ensure that the drone can cope with no-fly zones or electronic fences with ease. From the perspective of algorithm efficiency and subsequent functional maintenance, the no-fly zone and electronic fence functions of multi-rotor drones are integrated to achieve online comprehensive detection and analysis, comprehensive management, and comprehensive control, as well as subsequent comprehensive maintenance.

[0089] In summary, the technical advantages of the drone no-fly zone and electronic fence control method provided by the embodiment of the present invention are: the algorithm of the present application is unified and efficient, which reduces the task burden of the processor, and can realize the integration of the no-fly zone and electronic fence functions of the multi-rotor drone, realize online comprehensive detection and analysis, comprehensive management, and comprehensive control, and also facilitate the comprehensive repair and maintenance in the later stage. In summary, the drone no-fly zone and electronic fence control method provided by the embodiment of the present invention has the advantages of high efficiency and easy maintenance, and has high engineering application significance.

[0090] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0091] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0092] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0093] In a typical configuration of an embodiment of the present invention, the terminal, the device of the service network and the computing device include one or more processors (CPU), an input / output interface, a network interface and a memory.

[0094] The memory may include non-permanent storage in a computer-readable medium, in the form of random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0095] Computer readable media include permanent and non-permanent, removable and non-removable media and can store information by any method or technology. The information can be computer readable instructions, data structures, program modules or other data.

[0096] Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include non-transitory media such as modulated data signals and carrier waves.

[0097] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0098] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that the technical solutions described in the above embodiments may still be modified, or some or all of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention.

[0099] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The embodiments of the present disclosure are intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and embodiments are to be regarded as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0100] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for controlling drone no-fly zones and electronic fences, characterized in that: The method comprises the following steps: Reading the area type of the area according to the user or the preset setting, and judging whether the drone is in a legal area or an illegal area based on the area type; wherein the area type includes a no-fly zone and an electronic fence; When the drone is in an illegal area, the drone is prohibited from taking off or making an emergency landing on the spot; When the drone is in the legal area, the effective closest distance between the drone and the edge of the area is detected in real time; when the drone approaches the edge of the area, the drone is speed-limited or braked; when the drone is not close to the edge of the area, the drone continues to fly according to the original predetermined mission; The legal area is inside the electronic fence area or outside the no-fly zone; the illegal area is outside the electronic fence area or inside the no-fly zone; The effective closest distance refers to the distance from the only possible future intersection point between the drone and the edge of the electronic fence when the drone flies at a certain target speed in real time to the current position of the drone.

2. The method for controlling a drone no-fly zone and an electronic fence according to claim 1, characterized in that: The step of determining whether the drone is in a legal area or an illegal area includes: determining the positional relationship between the drone and any polygonal no-fly zone or electronic fence and / or determining the positional relationship between the drone and any circular no-fly zone or electronic fence.

3. The method for controlling a no-fly zone and an electronic fence for unmanned aerial vehicles according to claim 2, characterized in that: The step of determining the positional relationship between the drone and any polygonal no-fly zone or electronic fence specifically includes: Draw a horizontal ray from the current position of the drone, and determine whether the point is inside the polygon based on the intersection of the ray and the polygon; If the number of intersection points is odd, it means that the current position of the drone is within the polygon. If the number of intersection points is even, it means that the current position of the drone is outside the polygon.

4. The method for controlling a drone no-fly zone and an electronic fence according to claim 2 or 3, characterized in that: The step of determining the positional relationship between the drone and any circular no-fly zone or electronic fence comprises: calculating a distance d from the current position of the drone to the center of the circular no-fly zone or electronic fence; If the distance d>radius r, the drone is outside the no-fly zone or electronic fence; If the distance d is less than the radius r, the UAV is within the no-fly zone or electronic fence.

5. A drone no-fly zone and electronic fence control system for implementing the drone no-fly zone and electronic fence control method according to any one of claims 1 to 4, characterized in that: include: An acquisition unit, used to acquire the area type; The first judgment unit is used to judge whether the drone is in a legal area or an illegal area; A first execution unit is used to prohibit the drone from taking off or make an emergency landing on the spot when the drone is in an illegal area; The second judgment unit is used to detect the effective minimum distance between the drone and the edge of the area in real time when the drone is in the legal area; A second execution unit is used to limit the speed or brake the drone when the drone approaches the edge of the area; The third execution unit is used to enable the drone to continue flying according to the original predetermined mission when the drone is not close to the edge of the area.

6. A control device, characterized in that The device includes a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the drone no-fly zone and electronic fence control method as described in any one of claims 1-4.

7. A computer-readable storage medium, characterized in that: A computer program is stored, and when the computer program is executed by a processor, the processor executes the steps of the drone no-fly zone and electronic fence control method as described in any one of claims 1 to 4.