The present disclosure relates to control technology field and, more particularly, to a control method for an unmanned aerial vehicle (UAV), an unmanned aerial vehicle (UAV), and a computer-readable storage medium.
Currently, an unmanned aerial vehicle (UAV) can be controlled by a control device. For example, the control device includes, but is not limited to, a remote controller, a smart phone, a smart wristband, or virtual reality (VR) glasses. The UAV interacts with the control device through a communication link and performs corresponding operations according to instructions from the control device.
In practical applications, the UAV cannot be communicatively linked to a plurality of control devices simultaneously. This is because when the UAV receives control instructions from the plurality of control devices simultaneously or in a same control cycle, the UAV cannot determine to which one of the control instructions it should respond, which causes the UAV to lose control.
In accordance with the disclosure, there is provided a control method for an unmanned aerial vehicle (UAV) including receiving a plurality of control instructions from a plurality of control devices, and executing a control operation according to the plurality of control instructions.
In accordance with the disclosure, there is provided a UAV including a storage memory and a processor. The storage memory stores instructions, and the processor is configured to read the instructions from the storage memory to receive a plurality of control instructions from a plurality of control devices and execute a control operation according to the plurality of control instructions.
In accordance with the disclosure, there is provided a computer readable storage medium storing instruction. When the instructions are executed by a processor, the processor is caused to receive a plurality of control instructions from a plurality of control devices and execute a control operation according to the plurality of control instructions.
Technical solutions of the present disclosure will be described with reference to the drawings of the embodiments of the disclosure. The described embodiments are only some embodiments of the disclosure not all the embodiments. Based on the embodiments of the disclosure, all other embodiments obtained by one of ordinary skill in the art without any creative effort are within the scope of the present disclosure.
Some embodiments of the disclosure are described in detail with reference to the drawings. When no conflict, the features of the embodiments and the embodiments described below can be combined with each other.
In accordance with the disclosure, there is provided a UAV control method.
At 201, the plurality of control instructions are received from the plurality of control devices.
The UAV 10 can receive the plurality of control instructions at 201. As shown in
Each control instruction may include a control content, a control strength, an identification code of the control device, a communication link strength, or a communication interface, etc.
The control content refers to the effect intended to be achieved by controlling the UAV. The control content may be “fly upwards,” “fly downwards,” “fly leftwards,” “fly rightwards,” “fly forward,” “fly backward,” etc., i.e., controlling the UAV to fly upwards, fly downwards, fly leftwards, fly rightwards, fly forward, fly backward, etc. The control devices can be operated as follows to obtain the control instructions described above. Taking the remote controller as an example of the control device as for description, the left stick being pushed up indicates to control the UAV to fly upwards, the left stick being pushed down indicates to control the UAV to fly downwards, the left stick being pushed left indicates to control the UAV to turn left, or the left stick being pushed right indicates to control the UAV to turn right. Further, the right stick being pushed up indicates to control the UAV to fly forward, the right stick being pushed down indicates to control the UAV to fly backward, the right stick being pushed left indicates to control the UAV to fly leftwards, the right stick being pushed right indicates to control the UAV to fly rightwards. The control content can also be set according to specific scenarios and is not described here in detail.
The control strength refers to how fast the UAV can be controlled to achieve the desired effect. For example, the control strength may be related to the angle of the stick of the control device, or related to the duration of triggering a key, and the correlation may be linear or non-linear.
The identification code includes and is not limited to a message authentication code (MAC), an identification number, etc.
The communication link strength refers to the signal strength of the communication link between the UAV and the control device.
The control instructions may also include other contents, such as messages about communication protocols and other contents, which can be set by those skilled in the art according to a specific scenario and is not limited in the disclosure.
In some embodiments, the UAV 10 may determine the plurality of control devices according to the plurality of received control instructions. For example, the control instruction carries the identification code of the control device, and the UAV 10 can directly determine the control device according to the identification code. As another example, the UAV 10 determines the communication links that receive the plurality of control instructions, and then determines the corresponding control device of each control instruction according to matching relationship between communication links and control devices. As another example, the UAV 10 determines communication interfaces that receive the plurality of control instructions, and determines the corresponding control device of each control instruction according to the matching relationship between communication interfaces and control devices. Two or more of the methods described above can be used together to determine the control devices.
At 202, the control operation is executed according to the plurality of control instructions.
The UAV 10 executes the control operation according to the plurality of control instructions at 202.
In some embodiments, the UAV 10 first processes the plurality of control instructions, including overlapping, averaging, etc., and then executes the control operation according to the processed control instructions.
In some other embodiments, the UAV 10 first filters the plurality of control instructions, and then executes the control operation according to the filtered control instructions.
In the embodiments of the present disclosure, the situation where the UAV cannot respond to the control instructions from the plurality of control devices can be avoided. The UAV can execute the control operation according to the plurality of control instructions, so that the control efficiency is improved.
In accordance with the present disclosure, there is provided another control method for the UAV.
At 301, the plurality of control instructions are received from the plurality of control devices.
The process at 301 has the same methods and principles as the process at 201, and will not be described in detail here. For detailed description thereof, reference can be made to
At 302, an instruction processing strategy adopted by the UAV is obtained.
The instruction processing strategy can be pre-set at the UAV. The instruction processing strategy is used to instruct the UAV 10 about how to select a control source. In embodiments of the present disclosure, the instruction processing strategy may be dynamically adjusted according to an external setting instruction. The setting instruction may be from any control device or from a designated control device. For example, the UAV receives the setting instruction sent by one of the control sources, and then adjusts priorities and/or control strategies of the plurality of control devices according to the setting instruction.
In one embodiment, the instruction processing strategy may instruct the UAV 10 to select a single control source. The single control source means that the UAV 10 is controlled by only one control device.
At 303, the control operation is executed according to the instruction processing strategy and the plurality of control instructions.
If the instruction processing strategy of the UAV 10 is to select a single control source, the process at 303 may include one of the following.
In some embodiments, as shown in
In some other embodiments, as shown in
In the embodiments of the present disclosure, the plurality of control instructions are processed with the instruction processing strategy, and the control operation is executed according to the processing results. In this way, the situation where the UAV cannot respond to the control instructions of the plurality of control devices can be avoided in the present disclosure, and the UAV executes the control operation according to the plurality of control instructions, so that the control efficiency is improved.
In accordance with embodiments of the present disclosure, there is provided another control method for the UAV.
At 601, the plurality of control instructions are received from the plurality of control devices.
The process at 601 has the same method and principles as the process at 201, and will not be described in detail here. For detailed description thereof, reference can be made to
At 602, the instruction processing strategy adopted by the UAV is obtained.
The instruction processing strategy can be pre-set at the UAV 10. The instruction processing strategy is used to instruct the UAV 10 about how to select the control source. In the embodiments of the present disclosure, the instruction processing strategy may be dynamically adjusted according to an external setting instruction. For example, the UAV receives the setting instruction sent by one of the control sources, and then adjusts priorities and/or control strategies of the plurality of control devices according to the setting instruction.
In some embodiments, the instruction processing strategy can instruct the UAV 10 to select a compound control source. Selecting the compound control source means that the UAV 10 is jointly controlled by two or more control devices.
At 603, the operation is executed according to the instruction processing strategy and the plurality of control instructions.
If the instruction processing strategy adopted by the UAV instructs to select a compound control source, the plurality of control instructions can be processed according to the instruction processing strategy, and then the control operation is executed according to the processing result. In some embodiments, as shown in
Referring again to
Based on the embodiments of
In the embodiments of the present disclosure, when the instruction processing strategy is to select the compound control source, the second control strategy is obtained. The compliant control instructions are selected according to the second control strategy, so that the UAV can execute the control operation according to the plurality of control instructions to improve the control efficiency and avoid the situation where the response to the control instructions of the plurality of control devices cannot be determined.
In another embodiment, with reference to
In some embodiments, as shown in
Referring again to
Control content “fly upwards”: “fly upwards (100),” “fly upwards (60)”;
Control content “fly downwards”: “fly downwards (150)”;
Control content “fly rightwards”: “fly rightwards (100)”;
Control content “fly forward”: “fly forward (80),” “fly forward (20).”
The total control strength of each control content can be calculated according to the weights and the control strengths as follows:
Control content “fly upwards”: 100*0.5+60*0.3=68;
Control content “fly downwards”: 150*0.2=30;
Control content “fly rightwards”: 100*0.2=20;
Control content “fly forward”: 80*0.5+20*0.3=46.
In this embodiment, the control strength is only related to the magnitude. In practical applications, the control strength can also include directions. In such case, the total control strength of each control instruction under the same control content is a vector sum. When the magnitudes and directions of the control strengths are known, the vector sum can be calculated, which will not be described here.
At least one control instruction corresponding to the same control content is determined according to the total control strength of the same control content, and the UAV executes the control operation. In this way, the UAV can receive the control instructions of all the control devices, and by assigning weights to the control devices, the control effect of each control device can be highlighted and the impact of each control device on the UAV is reduced, so that the UAV can fly evenly.
In practical applications, users who are unfamiliar with the UAV may control the UAV through the control device. In accordance with the present disclosure, there is also provided a method for protecting the UAV, as shown in
In accordance with embodiments of the present disclosure, there is provided another method for controlling the UAV.
At 1101, the plurality of control instructions are received from the plurality of control devices.
The process at 1101 has the same method and principles as the process at 201, and will not be described in detail here. For detailed description thereof, reference can be made to
At 1102, at least one control instruction is selected from the plurality of control instructions.
The at least one control instruction can be selected from the plurality of control instructions according to one of the following manners.
In some embodiments, as shown in
In some other embodiments, as shown in
Referring again to
The control instructions are classified according to the control contents as follows:
Control content “fly upwards”: “fly upwards (100),” “fly upwards (60)”;
Control content “fly downwards”: “fly downwards (150)”;
Control content “fly rightwards”: “fly rightwards (100)”;
Control content “fly forward”: “fly forward (80),” “fly forward (20).”
Assume only one control instruction is selected from each control content, as follows:
Control content “fly upwards”: “fly upwards (100)”;
Control content “fly downwards”: “fly downwards (150)”;
Control content “fly rightwards”: “fly rightwards (100)”;
Control content “fly forward”: “fly forward (80).”
In this embodiment, the control strength is only related to the magnitude. In practical applications, the control strength also includes the direction. The UAV 10 performs the control operation according to the control instructions.
In some other embodiments, if the control instruction is selected only according to the magnitude of the control strength, the obtained control instruction may conflict with a current flight status of the UAV. For example, if the UAV is accelerating forward and the control instruction is selected according to the magnitude of the control strength, a control instruction of “fly forward+fly backward” may be obtained, so that there is a conflict in the change of the flight status of the UAV. Therefore, in one embodiment, a control angle of the control instruction is also determined. If the control angle matches the current flight status of the UAV (for example, if the included angle is within the range of the adjustment angle of the UAV), at least one control instruction with a stronger control strength is selected from the control instructions with matching control angles as the final control instruction. In some embodiments, the vector sum of the conflicting control instructions can be directly calculated. In some embodiments, a control instruction with a stronger control strength or a smaller control strength or matching the current flight status is selected from the conflicting control instructions for executing the control operation.
In some other embodiments, as shown in
In some other embodiments, as shown in
At 1103, the control operation is executed according to the at least one control instruction.
The UAV executes the control operation according to the selected at least one control instruction.
In the embodiment of the present disclosure, at least one control instruction is selected from the plurality of control instructions, and the UAV execute the control operation according to the at least one control instruction to avoid a situation where the response to the control instructions of the plurality of control devices cannot be determined, which can improve the control efficiency of the UAV. In some embodiments, a plurality of users can jointly control the UAV through the plurality of control devices to improve the user experience.
In accordance with the present disclosure, there is also provided an unmanned aerial vehicle (UAV). As shown in
In the embodiments of the disclosure, before the processor 1601 executes the control operation according to the plurality of control instructions, the processor 1601 obtains the instruction processing strategy adopted by the UAV and executes the control operation according to the plurality of control instructions. In some embodiments, the processor 1601 executes the control operation according to the instruction processing strategy and the plurality of control instructions.
In the embodiments of the disclosure, the processor 1601 is configured to execute the control operation according to the instruction processing strategy and the plurality of control instructions. In some embodiments, the processor 1601 obtains the first control strategy when the UAV uses the instruction of the instruction processing strategy to select the single control source and to select the control instructions from the plurality of control instructions from the control device to execute the control operation.
In some embodiments, the processor 1601 is configured to select the control device according to the first control strategy. In some embodiments, the processor 1601 determines the priorities of the control devices sending the control instructions according to the first control strategy, and selects the control device with the highest priority as the control source of the UAV.
In some embodiments, the processor 1601 executes the control operation according to the instruction processing strategy and the plurality of control instructions. For example, when the instruction processing strategy instructs the UAV to select the compound control source, the processor 1601 obtains the second control strategy, obtains the control instructions of different control contents from different control devices according to the second control strategy, and executes the control operation according to the control instructions.
In some embodiments, the processor 1601 executes the control operation according to the weights and the plurality of control instructions. For example, the processor 1601 determines the weights of the control devices of the control instructions and the control content of each control instruction, calculates the total control strength in the same control content according to the control strength of each control instruction and the weights of the control devices, determines the corresponding control instructions of the same control content according to the total control strength, and executes the control operation according to the plurality of control instructions.
In some embodiments, the processor 1601 is configured to determine the corresponding control instructions of the same control content according to the total control strength. For example, the processor 1601 determines the corresponding control instructions according to the strength threshold when the control strength exceeds the strength threshold.
In some embodiments, the processor 1601 is configured to execute the control operation according to the plurality of control instructions. For example, the processor 1601 selects at least one control instruction from the plurality of control commands and executes the control operation according to the at least one control instruction.
In some embodiments, to select the at least one control instruction from the plurality of control instructions, the processor 1601 checks whether the control devices of the plurality of control instructions are the same device, and executes the control operation according to the plurality of control instructions if the control devices are not the same.
In some embodiments, to select the at least one control instruction from the plurality of control instructions, the processor 1601 determines the control strength and control content of each control instruction, and selects at least one control instruction of the same control content at the pre-set position in the control strength order.
In some embodiments, to select the at least one control instruction from the plurality of control instructions, the processor 1601 determines the weights of the control devices sending the control instructions, the control content of each control instruction, and the control strength of each control instruction, sorts the control strength of the control instructions of the same control content in order according to the control strength and the weights of the control devices, and selects at least one control instruction of the same control content at the pre-set position in the control strength order.
In some embodiments of the disclosure, to select at least one control instruction from the plurality of control instructions, the processor 1601 determines the reception time and the control content of each control instruction, and selects at least one control instruction of the same control content at the pre-set position in the reception time sequence.
In some embodiments, the instruction processing strategy adopted by the UAV 10 is dynamically adjusted according to the external setting instruction.
In some embodiments, the processor 1601 is configured to dynamically adjust the instruction processing strategy adopted by the UAV according to the external setting instruction. For example, the processor 1601 adjusts the priorities of the plurality of control devices and/or the control strategy according to the received setting instructions from the control devices.
In some embodiments, the processor 1601 is configured to determine the plurality of control devices sending the plurality of control instructions. For example, the processor 1601 determines the communication links to receive the plurality of control instructions and determines the control devices with matching communication links as the control devices sending the control instructions.
In some embodiments, the control device includes at least one of a physical device or a virtual device virtualized by the physical device.
In some embodiments, the control device includes at least one of a remote joystick, a smart phone, a smart wristband, VR glasses, or a remote controller.
In accordance with the disclosure, there is provided a computer-readable storage medium, several computer instructions are stored in the computer-readable storage medium, the computer instructions are executed to receive the plurality of control instructions from the plurality of control devices, and to execute the control operation according to the plurality of control instructions.
In the embodiments of the disclosure, the provided processing operation of the UAV processor are described in detail, for the relevance thereof, reference can be made to the method embodiments. In some embodiments, the processing operation of the processor of the control device has been described in detail in the above control method. For the relevance thereof, reference is made to the method embodiments. In some embodiments, when the application scenario changes, the control method of the UAV will also change, and the processing operation of the processor of the UAV or of the control device will be adjusted accordingly and will not be described here.
In some embodiments, the devices and methods disclosed can be implemented in other forms. For example, the device embodiments described above are merely illustrative. The division of the units is only a logical function division, and the actual implementation may be according to another division method. For example, a plurality of units or components can be combined or integrated in another system, or some features can be omitted or not be executed. Further, the displayed or discussed mutual coupling or direct coupling or communicative connection can be through some interfaces, the indirect coupling or communicative connection of the devices or units can be electronically, mechanically, or in other forms.
The units described as separate instructions may be or may not be physically separated, the components displayed as units may be or may not be physical units, which can be in one place or be distributed to a plurality of network units. Some or all of the units can be chosen to implement the purpose of the embodiment according to the actual needs.
In the embodiments of the disclosure, individual functional units can be integrated in one processing unit, or can be individual units physically separated, or two or more units can be integrated in one unit. The integrated units above can be implemented by hardware or can be implemented by hardware and software functional unit.
The integrated units implemented by software functional units can be stored in a computer-readable storage medium. The above software functional units stored in a storage medium includes a plurality of instructions for a computing device (such as a personal computer, a server, or network device, etc.) or a processor to execute some of the operations in the embodiments of the disclosure. The storage medium includes USB drive, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, or another medium that can store program codes.
Those of ordinary skilled in the art can understand that, for convenient and simple description, the division of individual functional units are described as an example. In actual applications, the functions above can be assigned to different functional units for implementation, i.e., the internal structure of the device can be divided into different functional units to implement all or some of the functions described above. For the specific operation process of the device described above, reference can be made to the corresponding process in the method embodiments, which will not be described in detail here.
The individual embodiments are merely used to describe the technical solution of the disclosure but not used to limit the disclosure. Although the disclosure is described in detail referring to the individual embodiments, one of ordinary skill in the art should understand that it is still possible to modify the technical solutions in the embodiments, or to replace some or all of the technical features. However, these modifications or substitutions do not cause the essence of the corresponding technical solution to depart from the scope of the technical solutions in the individual embodiments of the disclosure.
This application is a continuation of International Application No. PCT/CN2017/099610, filed Aug. 30, 2017, the entire content of which is incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2017/099610 | Aug 2017 | US |
Child | 16805312 | US |