UAV flight control method, terminal device and storage medium

By monitoring and adjusting the flight missions of drones, the problem of difficulty in cooperative cooperation between drones when encountering other drones is solved, and the efficient completion of flight missions is achieved.

CN118584980BActive Publication Date: 2024-10-18SHENZHEN HUA GU LONG TECHNOLY CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411074389.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2024-10-18
Estimated Expiration
2044-08-07

AI Technical Summary

Technical Problem

Existing UAV flight control methods are difficult to cooperate when encountering other UAVs, resulting in low efficiency of flight missions.

Method used

By obtaining the drone flight mission input by the user, monitoring and establishing communication, determining common waypoints, adjusting the flight mission to optimize the drone's flight path, and achieving coordinated execution of missions.

Benefits of technology

It significantly improves the efficiency of drones in completing flight missions and reduces the flight process between waypoints.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118584980B_ABST
    Figure CN118584980B_ABST
Patent Text Reader

Abstract

The present application belongs to the field of communications, and more particularly to a method for controlling the flight of a drone, a terminal device, and a storage medium. In the method, when a controlled drone meets other drones, the flight missions of the two drones can be analyzed to determine the overlapping common waypoints, and then the common waypoints are allocated according to the convenience for the drone flight, so that the flight missions of the two drones are updated, so that the two drones fly with new flight missions, and when they fly to the common waypoints, they both execute the subtasks of the drone and the subtasks of the other drone on its behalf; in the present application, part of the waypoints and corresponding subtasks of the controlled drone are transferred to other drones for execution, and when the controlled drone executes a subtask, the drone can also be controlled to execute the subtasks of other drones at the same time, thereby reducing the flight process of the drone between waypoints, and significantly improving the efficiency of the drone in completing the flight mission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular to a UAV flight control method, terminal equipment and storage medium. Background Art

[0002] The flight of a drone usually needs to be controlled by a control terminal. Before the control terminal controls the flight of the drone, the user needs to set the corresponding flight waypoints on the terminal device, as well as the tasks to be performed at each waypoint;

[0003] When a drone flies into the air, it may encounter drones of other users. The waypoints set in these drones often overlap. However, since each drone is controlled independently, each drone can only fly one by one according to the pre-set flight waypoints, and it is difficult to form coordinated cooperation with other drones to reduce the waypoints required to fly, making it less efficient in completing the flight mission. Summary of the invention

[0004] In view of this, an embodiment of the present application provides a UAV flight control method, a terminal device and a storage medium, which can solve the problem of low efficiency of existing UAV flight control methods in controlling UAVs to complete flight missions.

[0005] A first aspect of an embodiment of the present application provides a drone flight control method, the drone flight control method comprising:

[0006] S1: Obtaining a flight mission of a first drone input by a user, wherein the flight mission includes a waypoint sequence, the waypoint sequence includes a plurality of waypoints and subtasks corresponding to each waypoint, and each waypoint includes the waypoint coordinates of the waypoint;

[0007] S2: mobilizing the first UAV to fly to each waypoint according to the sequence of the waypoints, and performing a corresponding subtask at each waypoint;

[0008] S3: During the flight of the first UAV, monitoring whether the first UAV detects the second UAV;

[0009] S4: If the first drone detects the second drone, the first drone is controlled to establish communication with the second drone, thereby obtaining the flight mission of the second drone;

[0010] S5: Determine a common waypoint between the flight mission of the first UAV and the flight mission of the second UAV;

[0011] S6: for any shared waypoint, determine an adapted drone for the shared waypoint from the first drone and the second drone according to the influence of the shared waypoint on the flight distances of the first drone and the second drone, and the other drone is a non-adapted drone;

[0012] S7: retaining the shared waypoint in the flight mission of the adapted UAV, removing the shared waypoint and the corresponding subtask in the flight mission of the non-adapted UAV, and adding the subtask of the non-adapted UAV corresponding to the shared waypoint to the flight mission of the adapted UAV, so as to complete the update of the flight missions of the two UAVs for the shared waypoint;

[0013] S8: After completing the update of the flight missions of the two UAVs for each common waypoint, sending the two updated flight missions to the corresponding UAVs respectively;

[0014] S9: Control the first UAV to execute the corresponding updated flight mission, and when flying to each common waypoint in the flight mission, execute two subtasks corresponding to the common waypoint, and send the execution result information generated when executing the subtask originally belonging to the second UAV to the second UAV;

[0015] S10: receiving in real time the execution result information generated by each second drone after executing the subtask originally belonging to the first drone.

[0016] A second aspect of an embodiment of the present application provides a terminal device, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the drone flight control method;

[0017] A third aspect of an embodiment of the present application provides a terminal-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the processor executes the steps of the drone flight control method.

[0018] Compared with the prior art, the embodiments of the present application have the following beneficial effects: the method provided by the present invention includes obtaining the flight mission of the first drone input by the user; mobilizing the first drone to fly to each waypoint according to the sequence of waypoints, and executing corresponding subtasks at each waypoint; during the flight of the first drone, monitoring whether the first drone detects the second drone; if the first drone detects the second drone, controlling the first drone to establish communication with the second drone, and then obtaining the flight mission of the second drone; determining the common waypoints between the flight mission of the first drone and the flight mission of the second drone; for any common waypoint, determining an adaptive drone for the common waypoint from the first drone and the second drone according to the degree of influence of the common waypoint on the flight distance of the first drone and the second drone, respectively, and the other drone is a non-adaptive drone; retaining the common waypoint in the flight mission of the adaptive drone, removing the common waypoint and the corresponding subtasks in the flight mission of the non-adaptive drone, and assigning the non-adaptive drone to the corresponding waypoint. The subtasks of the shared waypoints are added to the flight missions of the adapted UAVs to complete the update of the flight missions of the two UAVs for the shared waypoints; after completing the update of the flight missions of the two UAVs for each shared waypoint, the two updated flight missions are sent to the corresponding UAVs respectively; the first UAV is controlled to execute the corresponding updated flight mission, and when flying to each shared waypoint in the flight mission, the two subtasks corresponding to the shared waypoints are executed, and the execution result information generated when executing the subtasks originally belonging to the second UAV is sent to the second UAV; the execution result information generated by each second UAV after executing the subtasks originally belonging to the first UAV is received in real time; in the present application, part of the waypoints and corresponding subtasks of the controlled UAV are transferred to other UAVs for execution, and when the controlled UAV executes a subtask, the UAV can also be controlled to execute the subtasks of other UAVs at the same time, thereby reducing the flight process of the UAV between waypoints and significantly improving the efficiency of the UAV in completing the flight mission. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0020] Figure 1 It is a schematic diagram of the implementation flow of the UAV flight control method provided in the embodiment of the present application;

[0021] Figure 2 is an application environment diagram of the UAV flight control method provided by an embodiment of the present application;

[0022] Figure 3 Schematic diagram of the waypoints of the UAV flight control method provided in the embodiment of the present application;

[0023] Figure 4 It is a schematic diagram of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0025] In order to illustrate the technical solution described in this application, a specific embodiment is provided below for illustration.

[0026] Figure 1 A UAV flight control method provided in Embodiment 1 of the present application is shown, and the UAV flight control method includes:

[0027] S1: Obtaining a flight mission of a first drone input by a user, wherein the flight mission includes a waypoint sequence, the waypoint sequence includes a plurality of waypoints and subtasks corresponding to each waypoint, and each waypoint includes the waypoint coordinates of the waypoint;

[0028] S2: mobilizing the first UAV to fly to each waypoint according to the sequence of the waypoints, and performing a corresponding subtask at each waypoint;

[0029] S3: During the flight of the first UAV, monitoring whether the first UAV detects the second UAV;

[0030] S4: If the first drone detects the second drone, the first drone is controlled to establish communication with the second drone, thereby obtaining the flight mission of the second drone;

[0031] S5: Determine a common waypoint between the flight mission of the first UAV and the flight mission of the second UAV;

[0032] S6: for any shared waypoint, determine an adapted drone for the shared waypoint from the first drone and the second drone according to the influence of the shared waypoint on the flight distances of the first drone and the second drone, and the other drone is a non-adapted drone;

[0033] S7: retaining the shared waypoint in the flight mission of the adapted UAV, removing the shared waypoint and the corresponding subtask in the flight mission of the non-adapted UAV, and adding the subtask of the non-adapted UAV corresponding to the shared waypoint to the flight mission of the adapted UAV, so as to complete the update of the flight missions of the two UAVs for the shared waypoint;

[0034] S8: After completing the update of the flight missions of the two UAVs for each common waypoint, sending the two updated flight missions to the corresponding UAVs respectively;

[0035] S9: Control the first UAV to execute the corresponding updated flight mission, and when flying to each common waypoint in the flight mission, execute two subtasks corresponding to the common waypoint, and send the execution result information generated when executing the subtask originally belonging to the second UAV to the second UAV;

[0036] S10: receiving in real time the execution result information generated by each second drone after executing the subtask originally belonging to the first drone.

[0037] In this implementation, if Figure 2 As shown, the method is executed in a terminal device, which may be an independent physical server or terminal, or a server cluster composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud servers, cloud databases, cloud storage and CDN; the first drone is a drone controlled by the terminal device; the second drone is other drones flying in the same airspace, which are controlled by another control terminal; when the first drone and the second drone are in flight, if they have not established communication with other drones, both drones keep sending invitation signals to the outside to invite other drones to establish communication with them, so as to complete the flight mission in collaboration; after the first drone detects the invitation signal of the second drone, it notifies the terminal device, and then establishes communication with the second drone under the control of the terminal device.

[0038] In this embodiment, if Figure 3As shown in the figure, a waypoint is a space point with specific waypoint coordinates; a shared waypoint is a waypoint included in the flight missions of both drones; each waypoint in the waypoint sequence is arranged in a sequence pre-set by the user; a subtask of a waypoint is a task performed by the drone at the waypoint after it flies to the waypoint, such as taking a bird's-eye view of a specific object (such as a building); the flight mission of the second drone is a task set by another user at the second drone control terminal, and the second drone is controlled by the second drone control terminal to fly according to the flight mission; the influence degree of a shared waypoint is the degree of reduction in the flight distance of the drone after removing the shared waypoint from the flight mission; for each shared waypoint, the shared waypoint and the corresponding subtask are assigned to The corresponding drone with lower impact can perform the subtask of the corresponding drone with higher impact, so that the flight distance of the corresponding drone with higher impact can be significantly shortened; the subtask of the non-adaptive drone corresponding to the common waypoint is added to the flight mission of the adaptive drone, that is, the subtask is added to the common waypoint corresponding to the subtask in the flight mission of the adaptive drone; after the two drones have each performed the subtask of the other drone, the execution result information (such as the photos taken) can be sent to the other drone. Finally, both parties can complete their respective flight missions without flying to all waypoints, and obtain the execution result information of each subtask set in advance.

[0039] In the present application, part of the waypoints and corresponding subtasks of the controlled UAV are transferred to other UAVs for execution, and when the controlled UAV executes a subtask, the UAV can also be controlled to execute subtasks of other UAVs at the same time, thereby reducing the flight process of the UAV between waypoints and significantly improving the efficiency of the UAV in completing flight missions.

[0040] As a preferred embodiment, the waypoint coordinates include three waypoint parameters: longitude, latitude and altitude, and a deviation threshold is preset for each waypoint parameter;

[0041] The flight mission of the first UAV is used as the first flight mission, and the waypoint in the first flight mission is used as the first waypoint; the flight mission of the second UAV is used as the second flight mission, and the waypoint in the second flight mission is used as the second waypoint;

[0042] Determining a common waypoint between the flight mission of the first UAV and the flight mission of the second UAV includes:

[0043] S51: removing the first waypoint whose corresponding subtask has been completed from the first flight task to obtain a first remaining waypoint;

[0044] S52: removing the second waypoints whose corresponding subtasks have been completed from the second flight mission to obtain second remaining waypoints;

[0045] S53: taking the first remaining waypoint as the basic waypoint according to the order of the corresponding waypoint sequence;

[0046] S54: Determine whether there is an adaptation waypoint in the second remaining waypoints, wherein the deviation of each waypoint parameter of the adaptation waypoint and the waypoint parameter corresponding to the basic waypoint is less than the deviation threshold value corresponding to the waypoint parameter;

[0047] S55: If there is an adaptation waypoint in the second remaining waypoints, the adaptation waypoint and the basic waypoint are regarded as the same waypoint, that is, a shared waypoint, and the waypoint coordinates of the basic waypoint are used as the waypoint coordinates of the shared waypoint;

[0048] S56: Take a first remaining waypoint as a basic waypoint, and execute steps S54 to S56 until all common waypoints of the first flight mission and the second flight mission are determined.

[0049] In this embodiment, the two drones may have completed some of the subtasks of the waypoints before establishing communication, so this part of the task is first deleted from the flight task; the waypoint coordinates are (longitude, latitude, altitude), such as (30.45° east longitude, 28.73° north latitude, 145m); the critical deviation value is a preset value, such as 0.1° for longitude, 0.1° for latitude, and 0.5m for altitude. The specific value depends on the actual accuracy requirements and is not limited here; for the basic waypoint and the adapted waypoint, since each waypoint parameter of the two is less than the critical deviation value, there is almost no difference in the results obtained by executing the same subtask at these two points, so the two waypoints can be regarded as the same waypoint to increase the probability of determining a common waypoint from the two flight tasks; the waypoint coordinates of the basic waypoint are used as the waypoint coordinates of the shared waypoint, that is, the coordinates of the adapted waypoint are replaced by the waypoint coordinates of the basic waypoint, so that the waypoint coordinates of the shared waypoint displayed in the two flight tasks are consistent.

[0050] As a preferred embodiment, determining an adapted drone for the shared waypoint from the first drone and the second drone according to the influence of the shared waypoint on the flight distances of the first drone and the second drone, respectively, and the other drone being a non-adapted drone includes:

[0051] S61: Determine the influence degree of the shared waypoint on the flight distance of the first UAV, that is, the first influence degree;

[0052] S62: Determine the influence degree of the shared waypoint on the flight distance of the second UAV, that is, the second influence degree;

[0053] S63: comparing the first impact degree and the second impact degree, if the first impact degree is greater than the second impact degree, the second UAV is an adapted UAV and the first UAV is a non-adapted UAV;

[0054] S64: If the first impact degree is not greater than the second impact degree, the first drone is an adapted drone and the second drone is a non-adapted drone.

[0055] Determining the influence of the shared waypoint on the flight distance of the first UAV includes:

[0056] S611: Determine the shortest distance between every two adjacent waypoints in the waypoint sequence of the first flight mission;

[0057] S612: Accumulate the shortest distances to obtain a first initial distance L 1S ;

[0058] S613: After removing the shared waypoint from the waypoint sequence of the first flight mission, determine the shortest distance between every two adjacent waypoints in the remaining waypoints of the waypoint sequence;

[0059] S614: Accumulate the shortest distances to obtain a first adjusted distance L 1R ;

[0060] S615: Calculate the distance difference D1=L between the first initial distance and the first adjusted distance 1S -L 1R ;

[0061] S616: The calculated ratio of the distance difference to the first initial distance is P1 = D1 / L 1S , that is, the first degree of impact.

[0062] Determining the influence of the shared waypoint on the flight distance of the second UAV includes:

[0063] S621: Determine the shortest distance between every two adjacent waypoints in the waypoint sequence of the second flight mission;

[0064] S622: Accumulate the shortest distances to obtain a second initial distance L 2S ;

[0065] S623: After removing the shared waypoint from the waypoint sequence of the second flight mission, determine the shortest distance between every two adjacent waypoints in the remaining waypoints of the waypoint sequence;

[0066] S624: Accumulate the shortest distances to obtain a second adjustment distance L 2R ;

[0067] S625: Calculate the distance difference D2=L between the second initial distance and the second adjusted distance 2S -L 2R ;

[0068] S626: The calculated ratio of the distance difference to the second initial distance is P2 = D2 / L 2S , which is the second degree of influence.

[0069] In this embodiment, when calculating the shortest distance between two waypoints (i.e., the straight-line distance), the longitude difference and latitude difference between the two waypoints can be first converted into a length difference, and then the distance between the waypoints is calculated together with the altitude difference. For example, if the longitude difference is 0.05° (each 1 degree of longitude is equivalent to a length of 100km), then this longitude difference is 5km; in this embodiment, a corresponding adaptive drone is determined for each shared waypoint based on the degree of influence, so that a reasonable allocation of each shared waypoint can be achieved.

[0070] As a preferred embodiment, before sending the two updated flight missions to the corresponding drones respectively, the process further includes:

[0071] S801: Determine a first impact degree corresponding to each shared waypoint in the updated second flight mission;

[0072] S802: Accumulate the determined first impact degrees to obtain a first benefit degree;

[0073] S803: Determine a second impact degree corresponding to each shared waypoint in the updated first flight mission;

[0074] S804: Accumulate the determined second impact degrees to obtain a second benefit degree;

[0075] S805: Determine the difference between the first benefit level and the second benefit level. If the difference is greater than a preset value, transfer a common waypoint and a corresponding subtask in the flight mission of the UAV with a smaller benefit level to the flight mission of another UAV, thereby further updating the first flight mission and the second flight mission, and execute steps S801 to S805 until the difference between the first benefit level and the second benefit level is less than the preset value.

[0076] Transferring a common waypoint and corresponding subtask from the flight mission of the less benefited UAV to the flight mission of another UAV includes:

[0077] The shared waypoints in the flight missions of the UAVs with a smaller benefit are arranged in order of influence on the UAVs from small to large, to obtain a first shared waypoint sequence;

[0078] The shared waypoint ranked first in the first shared waypoint sequence and the corresponding subtask are deleted from the flight mission of the UAV, and the shared waypoint and the corresponding subtask are added to the flight mission of another UAV.

[0079] In this embodiment, the first benefit level represents the cumulative reduction in the flight distance of the first UAV after completing the flight mission update, and the second benefit level represents the cumulative reduction in the flight distance of the second UAV after completing the flight mission update. If the difference between the two is greater than the preset value, it represents that the benefit levels of the two UAVs are greater. In order to improve the fairness of the distribution, the common nodes in the UAV with a smaller benefit level can be transferred to the flight mission of the UAV with a larger benefit level, so that the benefit levels of the two UAVs are equivalent (less than the preset value); in addition, each time the common nodes are transferred, the common nodes with a smaller impact level are transferred first to maintain the gradualness of the adjustment, thereby avoiding excessive changes in the benefit levels of the two UAVs due to the adjustment.

[0080] As a preferred embodiment, after step S8, the following steps are further included:

[0081] Receive the feedback information sent by the second UAV, and determine whether the feedback information is an approval message or a rejection message; if the feedback message is an approval message, execute step S9 and step S10; if the feedback message is a rejection message, transfer a common waypoint and the corresponding subtask in the first flight mission to the second flight mission to update the first flight mission and the second flight mission again, send the updated first flight mission to the first UAV, and send the updated second flight mission to the second UAV, repeat this step until the feedback message is an approval message, and then execute step S9 and step S10.

[0082] In this embodiment, if the feedback information is a rejection message, it indicates that the user corresponding to the second drone is not satisfied with the current allocation plan of the shared waypoints. At this time, the first drone can be allowed to undertake more tasks of the shared waypoints, that is, the second drone can benefit more, so as to increase the probability of the second drone receiving the allocation plan; if the user of the first drone is unwilling to undertake more tasks of the shared waypoints, the communication with the second drone can also be stopped, and the first drone can continue to detect other drones to establish communication with other second drones, and execute subsequent steps until the flight mission is completed.

[0083] A terminal device provided in the second embodiment of the present application includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the drone flight control method, specifically including:

[0084] S1: Obtaining a flight mission of a first drone input by a user, wherein the flight mission includes a waypoint sequence, the waypoint sequence includes a plurality of waypoints and subtasks corresponding to each waypoint, and each waypoint includes the waypoint coordinates of the waypoint;

[0085] S2: mobilizing the first UAV to fly to each waypoint according to the sequence of the waypoints, and performing a corresponding subtask at each waypoint;

[0086] S3: During the flight of the first UAV, monitoring whether the first UAV detects the second UAV;

[0087] S4: If the first drone detects the second drone, the first drone is controlled to establish communication with the second drone, thereby obtaining the flight mission of the second drone;

[0088] S5: Determine a common waypoint between the flight mission of the first UAV and the flight mission of the second UAV;

[0089] S6: for any shared waypoint, determine an adapted drone for the shared waypoint from the first drone and the second drone according to the influence of the shared waypoint on the flight distances of the first drone and the second drone, and the other drone is a non-adapted drone;

[0090] S7: retaining the shared waypoint in the flight mission of the adapted UAV, removing the shared waypoint and the corresponding subtask in the flight mission of the non-adapted UAV, and adding the subtask of the non-adapted UAV corresponding to the shared waypoint to the flight mission of the adapted UAV, so as to complete the update of the flight missions of the two UAVs for the shared waypoint;

[0091] S8: After completing the update of the flight missions of the two UAVs for each common waypoint, sending the two updated flight missions to the corresponding UAVs respectively;

[0092] S9: Control the first UAV to execute the corresponding updated flight mission, and when flying to each common waypoint in the flight mission, execute two subtasks corresponding to the common waypoint, and send the execution result information generated when executing the subtask originally belonging to the second UAV to the second UAV;

[0093] S10: receiving in real time the execution result information generated by each second drone after executing the subtask originally belonging to the first drone.

[0094] A terminal-readable storage medium is provided in the third embodiment of the present application. A computer program is stored on the terminal-readable storage medium. When the computer program is executed by a processor, the processor executes the steps of the drone flight control method, specifically including:

[0095] S1: Obtaining a flight mission of a first drone input by a user, wherein the flight mission includes a waypoint sequence, the waypoint sequence includes a plurality of waypoints and subtasks corresponding to each waypoint, and each waypoint includes the waypoint coordinates of the waypoint;

[0096] S2: mobilizing the first UAV to fly to each waypoint according to the sequence of the waypoints, and performing a corresponding subtask at each waypoint;

[0097] S3: During the flight of the first UAV, monitoring whether the first UAV detects the second UAV;

[0098] S4: If the first drone detects the second drone, the first drone is controlled to establish communication with the second drone, thereby obtaining the flight mission of the second drone;

[0099] S5: Determine a common waypoint between the flight mission of the first UAV and the flight mission of the second UAV;

[0100] S6: for any shared waypoint, determine an adapted drone for the shared waypoint from the first drone and the second drone according to the influence of the shared waypoint on the flight distances of the first drone and the second drone, and the other drone is a non-adapted drone;

[0101] S7: retaining the shared waypoint in the flight mission of the adapted UAV, removing the shared waypoint and the corresponding subtask in the flight mission of the non-adapted UAV, and adding the subtask of the non-adapted UAV corresponding to the shared waypoint to the flight mission of the adapted UAV, so as to complete the update of the flight missions of the two UAVs for the shared waypoint;

[0102] S8: After completing the update of the flight missions of the two UAVs for each common waypoint, sending the two updated flight missions to the corresponding UAVs respectively;

[0103] S9: Control the first UAV to execute the corresponding updated flight mission, and when flying to each common waypoint in the flight mission, execute two subtasks corresponding to the common waypoint, and send the execution result information generated when executing the subtask originally belonging to the second UAV to the second UAV;

[0104] S10: receiving in real time the execution result information generated by each second drone after executing the subtask originally belonging to the first drone.

[0105] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0106] It should be understood that when used in the present application specification, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0107] It should also be understood that the term “and / or” used in the specification of the present application refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0108] As used in the present specification, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting" depending on the context. Similarly, the phrase "if it is determined" or "if [the described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [the described condition or event] is detected" or "in response to detecting [the described condition or event]" depending on the context.

[0109] In addition, in the description of the present specification, the terms "first", "second", "third", etc. are only used to distinguish descriptions, and cannot be understood as indicating or implying relative importance. It should also be understood that although the terms "first", "second", etc. are used to describe various elements in some embodiments of the present application in the text, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element. For example, the first table can be named as the second table, and similarly, the second table can be named as the first table, without departing from the scope of the various described embodiments. The first table and the second table are both tables, but they are not the same table.

[0110] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0111] The drone flight control method provided in the embodiment of the present application can be applied to terminal devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), etc. The embodiment of the present application does not impose any restrictions on the specific type of the terminal device.

[0112] For example, the terminal device can be a station (STAION, ST) in a WLAN, a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA) device, a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a vehicle networking terminal, a computer, a laptop computer, a handheld communication device, a handheld computing device, a satellite wireless device, a wireless modem card, a TV set top box (STB), a customer premises equipment (CPE) and / or other devices for communicating on a wireless system and a next-generation communication system, such as a mobile terminal in a 5G network or a mobile terminal in a future evolved Public Land Mobile Network (PLMN) network, etc.

[0113] Figure 4 Schematic diagram of the structure of a terminal device provided by an embodiment of the present application. Figure 4 As shown, the terminal device of this embodiment includes: at least one processor and a memory, wherein the memory stores a computer program that can be run on the processor. When the processor executes the computer program, the steps in the above-mentioned various UAV flight control method embodiments are implemented, such as Figure 1 Steps S1 to S10 are shown.

[0114] The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The terminal device may include, but is not limited to, a processor and a memory. Those skilled in the art will understand that Figure 4It is only an example of a terminal device and does not constitute a limitation of the terminal device. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device may also include an input sending device, a network access device, a bus, etc.

[0115] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0116] In some embodiments, the memory may be an internal storage unit of the terminal device, such as a hard disk or memory of the terminal device. The memory may also be an external storage device of the terminal device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device. Furthermore, the memory may include both an internal storage unit and an external storage device of the terminal device. The memory is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory may also be used to temporarily store data that has been sent or is to be sent.

[0117] In addition, each functional unit in each embodiment of the present application 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 software functional units.

[0118] An embodiment of the present application provides a computer program product. When the computer program product is run on a mobile terminal device, the mobile terminal device can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0119] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device that can carry the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium, etc.

[0120] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0121] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0122] 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.

[0123] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A UAV flight control method, characterized in that: The UAV flight control method comprises: S1: Obtaining a flight mission of a first drone input by a user, wherein the flight mission includes a waypoint sequence, the waypoint sequence includes a plurality of waypoints and subtasks corresponding to each waypoint, and each waypoint includes the waypoint coordinates of the waypoint; S2: mobilizing the first UAV to fly to each waypoint according to the sequence of the waypoints, and performing a corresponding subtask at each waypoint; S3: During the flight of the first UAV, monitoring whether the first UAV detects the second UAV; S4: If the first drone detects the second drone, the first drone is controlled to establish communication with the second drone, thereby obtaining the flight mission of the second drone; S5: Determine a common waypoint between the flight mission of the first UAV and the flight mission of the second UAV; S6: for any shared waypoint, determine an adapted drone for the shared waypoint from the first drone and the second drone according to the influence of the shared waypoint on the flight distances of the first drone and the second drone, and the other drone is a non-adapted drone; S7: retaining the shared waypoint in the flight mission of the adapted UAV, removing the shared waypoint and the corresponding subtask in the flight mission of the non-adapted UAV, and adding the subtask of the non-adapted UAV corresponding to the shared waypoint to the flight mission of the adapted UAV, so as to complete the update of the flight missions of the two UAVs for the shared waypoint; S8: After completing the update of the flight missions of the two UAVs for each common waypoint, sending the two updated flight missions to the corresponding UAVs respectively; S9: Control the first UAV to execute the corresponding updated flight mission, and when flying to each common waypoint in the flight mission, execute two subtasks corresponding to the common waypoint, and send the execution result information generated when executing the subtask originally belonging to the second UAV to the second UAV; S10: receiving in real time the execution result information generated by each second drone after executing the subtask originally belonging to the first drone; Determining an adapted drone for the shared waypoint from the first drone and the second drone according to the influence of the shared waypoint on the flight distances of the first drone and the second drone, respectively, and the other drone being a non-adapted drone includes: S61: Determine the influence degree of the shared waypoint on the flight distance of the first UAV, that is, the first influence degree; S62: Determine the influence degree of the shared waypoint on the flight distance of the second UAV, that is, the second influence degree; S63: comparing the first impact degree and the second impact degree, if the first impact degree is greater than the second impact degree, the second UAV is an adapted UAV and the first UAV is a non-adapted UAV; S64: If the first impact degree is not greater than the second impact degree, the first UAV is an adapted UAV and the second UAV is a non-adapted UAV; Determining the influence of the shared waypoint on the flight distance of the first UAV includes: S611: Determine the shortest distance between every two adjacent waypoints in the waypoint sequence of the first flight mission; S612: Accumulate the shortest distances to obtain a first initial distance L 1S ; S613: After removing the shared waypoint from the waypoint sequence of the first flight mission, determine the shortest distance between every two adjacent waypoints in the remaining waypoints of the waypoint sequence; S614: Accumulate the shortest distances to obtain a first adjusted distance L 1R ; S615: Calculate the distance difference D1=L between the first initial distance and the first adjusted distance 1S -L 1R ; S616: The calculated ratio of the distance difference to the first initial distance is P1 = D1 / L 1S , i.e. the first degree of influence; Determining the influence of the shared waypoint on the flight distance of the second UAV includes: S621: Determine the shortest distance between every two adjacent waypoints in the waypoint sequence of the second flight mission; S622: Accumulate the shortest distances to obtain a second initial distance L 2S ; S623: After removing the shared waypoint from the waypoint sequence of the second flight mission, determine the shortest distance between every two adjacent waypoints in the remaining waypoints of the waypoint sequence; S624: Accumulate the shortest distances to obtain a second adjustment distance L 2R ; S625: Calculate the distance difference D2=L between the second initial distance and the second adjusted distance 2S -L 2R ; S626: The calculated ratio of the distance difference to the second initial distance is P2 = D2 / L 2S , which is the second degree of influence.

2. The method according to claim 1, characterized in that The waypoint coordinates include three waypoint parameters: longitude, latitude, and altitude. For each waypoint parameter, a deviation threshold is preset. The flight mission of the first UAV is used as the first flight mission, and the waypoint in the first flight mission is used as the first waypoint; the flight mission of the second UAV is used as the second flight mission, and the waypoint in the second flight mission is used as the second waypoint; Determining a common waypoint between the flight mission of the first UAV and the flight mission of the second UAV includes: S51: removing the first waypoint whose corresponding subtask has been completed from the first flight task to obtain a first remaining waypoint; S52: removing the second waypoints whose corresponding subtasks have been completed from the second flight mission to obtain second remaining waypoints; S53: taking the first remaining waypoint as the basic waypoint according to the order of the corresponding waypoint sequence; S54: Determine whether there is an adaptive waypoint in the second remaining waypoints, wherein the deviation of each waypoint parameter of the adaptive waypoint and the waypoint parameter corresponding to the basic waypoint is less than the deviation threshold value corresponding to the waypoint parameter; S55: If there is an adaptation waypoint in the second remaining waypoints, the adaptation waypoint and the basic waypoint are regarded as the same waypoint, that is, a shared waypoint, and the waypoint coordinates of the basic waypoint are used as the waypoint coordinates of the shared waypoint; S56: Take a first remaining waypoint as a basic waypoint, and execute steps S54 to S56 until all common waypoints of the first flight mission and the second flight mission are determined.

3. The method according to claim 1, characterized in that Before sending the two updated flight missions to the corresponding drones, it also includes: S801: Determine a first impact degree corresponding to each shared waypoint in the updated second flight mission; S802: Accumulate the determined first impact degrees to obtain a first benefit degree; S803: Determine a second impact degree corresponding to each shared waypoint in the updated first flight mission; S804: Accumulate the determined second impact degrees to obtain a second benefit degree; S805: Determine the difference between the first benefit level and the second benefit level. If the difference is greater than a preset value, transfer a common waypoint and a corresponding subtask in the flight mission of the UAV with a smaller benefit level to the flight mission of another UAV, thereby further updating the first flight mission and the second flight mission, and execute steps S801 to S805 until the difference between the first benefit level and the second benefit level is less than the preset value.

4. The method according to claim 3, characterized in that Transferring a common waypoint and corresponding subtask from the flight mission of the less benefited UAV to the flight mission of another UAV includes: The shared waypoints in the flight missions of the UAVs with a smaller benefit are arranged in order of influence on the UAVs from small to large, to obtain a first shared waypoint sequence; The shared waypoint ranked first in the first shared waypoint sequence and the corresponding subtask are deleted from the flight mission of the UAV, and the shared waypoint and the corresponding subtask are added to the flight mission of another UAV.

5. The method according to claim 1, characterized in that After step S8, the method further includes: Receive the feedback information sent by the second UAV, and determine whether the feedback information is an approval message or a rejection message; if the feedback message is an approval message, execute step S9 and step S10; if the feedback message is a rejection message, transfer a common waypoint and the corresponding subtask in the first flight mission to the second flight mission to update the first flight mission and the second flight mission again, send the updated first flight mission to the first UAV, and send the updated second flight mission to the second UAV, repeat this step until the feedback message is an approval message, and then execute step S9 and step S10.

6. A terminal device, characterized in that: The invention comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the unmanned aerial vehicle flight control method according to any one of claims 1 to 5.

7. A terminal-readable storage medium, characterized in that: A computer program is stored on the terminal-readable storage medium. When the computer program is executed by the processor, the processor executes the steps of the drone flight control method described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Unmanned aerial vehicle control method and device and computer readable storage medium

    CN112805650A

  • Multi-unmanned aerial vehicle cooperative inspection method and device and storage medium

    CN118092507A

  • Multi-point unmanned aerial vehicle flight mission intelligent planning method and system, and electronic equipment

    CN118153920A

  • Unmanned aerial vehicle and methods for controlling same

    US20140316616A1

  • Unmanned aerial vehicle control method and apparatus, and computer readable storage medium

    WO2021195887A1