WO2018076171A1 - Mode control method and device, and unmanned aerial vehicle - Google Patents

Mode control method and device, and unmanned aerial vehicle Download PDF

Info

Publication number
WO2018076171A1
WO2018076171A1 PCT/CN2016/103221 CN2016103221W WO2018076171A1 WO 2018076171 A1 WO2018076171 A1 WO 2018076171A1 CN 2016103221 W CN2016103221 W CN 2016103221W WO 2018076171 A1 WO2018076171 A1 WO 2018076171A1
Authority
WO
WIPO (PCT)
Prior art keywords
drone
preset
mode
detecting
clicks
Prior art date
Application number
PCT/CN2016/103221
Other languages
French (fr)
Chinese (zh)
Inventor
罗昊
欧迪
陈朝兵
郑大阳
王文韬
Original Assignee
深圳市大疆创新科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to CN201680013018.2A priority Critical patent/CN107438827A/en
Priority to PCT/CN2016/103221 priority patent/WO2018076171A1/en
Publication of WO2018076171A1 publication Critical patent/WO2018076171A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a mode control method, device, and drone.
  • drones have been widely used in such fields as investigation, disaster relief, observation of wildlife, surveying and mapping, news reporting, and power inspection.
  • an external device such as a remote controller to control the drone to enter or exit the packing mode, that is, the external device must be relied upon to implement the packing mode, the dependency is strong, and the mode selection efficiency is low.
  • the embodiment of the invention provides a mode control method, a device and a drone, which can improve the mode selection efficiency of the drone without relying on external devices.
  • an embodiment of the present invention provides a mode control method, including:
  • the control changes the mode of the drone.
  • an embodiment of the present invention further provides a mode control apparatus, including:
  • a detecting module configured to detect a continuous click event of a preset button set on the drone, and count the number of clicks included in the continuous click event
  • a control module configured to control, when the number of clicks meets a preset mode change condition, to change a mode of the drone.
  • an embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a program, and the program includes some or all of the steps of the mode control method of the first aspect.
  • an embodiment of the present invention further provides a drone, including: a memory, a processor, and a communication interface, where the processor is respectively connected to the memory and the communication interface;
  • the memory is configured to store program instructions
  • the processor is configured to invoke a program instruction stored in the memory to execute:
  • the control changes the mode of the drone.
  • the number of clicks included in the continuous click event can be statistically obtained by detecting a continuous click event of the preset button set on the drone, thereby automatically determining when the click number meets the preset mode change condition.
  • Ground, intelligent control of the mode of changing the drone thus enabling the control of the flying drone mode through the body button without relying on external components, which improves the mode selection efficiency of the drone.
  • FIG. 1 is a schematic flowchart of a mode control method according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart diagram of another mode control method according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of a manner of determining whether a mode change condition is met according to an embodiment of the present invention
  • FIG. 4 is a schematic flowchart of another manner for determining whether a mode change condition is met according to an embodiment of the present invention.
  • FIG. 5 is a schematic flowchart of still another manner for determining whether a mode change condition is met according to an embodiment of the present disclosure
  • FIG. 6 is a schematic structural diagram of a mode control apparatus according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a drone according to an embodiment of the present invention.
  • the embodiment of the invention discloses a mode control method, a device and a drone, which can improve the mode selection efficiency of the drone without relying on external devices. The details are explained below.
  • FIG. 1 is a schematic flowchart diagram of a mode control method according to an embodiment of the present invention.
  • the method of the embodiment of the present invention may be specifically applied to a drone.
  • the UAV can be an unmanned aerial vehicle, an unmanned vehicle, or an unmanned vehicle.
  • the present embodiment is described by taking an unmanned aerial vehicle as an example.
  • the mode control method in the embodiment of the present invention may include the following steps:
  • the preset button may be an original button disposed on the drone, such as a power button; in addition, the preset button may also be other buttons that are additionally set.
  • the continuous click event may include at least two click operations on the preset button.
  • the click operation of the preset button and the click event between the last click operation of the preset button may be detected as a continuous click event for the first time.
  • the last click operation may be determined by determining that the preset time range after a click operation is not detected within 1 s, and the click operation may be the last click operation.
  • Embodiments of the present invention trigger a drone mode change by detecting a continuous click event on the preset button.
  • Control when the number of clicks meets a preset mode change condition, to change a mode of the drone.
  • the preset mode change condition may include the number of clicks corresponding to the continuous click event. Exceeding the preset number threshold and/or the duration corresponding to the number of clicks is lower than a preset first time threshold and/or the interval between each two adjacent click operations in the continuous click event is lower than a preset number
  • the second time threshold and the like are not limited in the embodiment of the present invention. The first time threshold is greater than the second time threshold.
  • the packaging mode can be used to control the fuselage components of the folding drone, and the fuselage components include a landing gear, an arm, a rotor, and the like.
  • controlling the drone into the packaging mode may include controlling a process of folding (or lowering) the fuselage components such as the landing gear, the arm, the rotor, etc., so as to place the packaged drone, for example, the package may be A good drone is placed in a placement box that matches the shape of the packaged drone.
  • controlling the drone to exit the packaging mode may include the process of unfolding (or lifting) the fuselage components such as the landing gear, the arm, and the rotor.
  • the number of clicks included in the continuous click event can be statistically obtained by detecting a continuous click event of the preset button set on the drone, so that when the number of clicks is determined to satisfy the mode change condition Automatically and intelligently control the mode of changing the drone, thereby realizing the control of the drone mode through the body button without relying on external devices, which improves the mode selection efficiency of the drone.
  • FIG. 2 is a schematic flowchart diagram of another mode control method according to an embodiment of the present invention. Specifically, as shown in FIG. 2, the mode control method in the embodiment of the present invention may include the following steps:
  • the preset button may be a power button or other button disposed on the drone.
  • the click event After receiving the control command triggered by the operation of the preset button on the body of the drone, such as the power button, the click event may be detected according to the preset time window to detect whether there is a preset in the time window. Continuous click event.
  • the preset time window may be a preset time period after receiving a control command triggered by the power button, such as 2 s.
  • the continuous click event of the preset button may be specifically: detecting a switch state of the drone, the switch state includes a power on state and a power off state; and when detecting that the drone is in a power on state, detecting a preset Whether there is a continuous click event for the preset button in the first time window corresponding to the power-on state; when detecting that the drone is in a power-off state, detecting a preset corresponding to the shutdown state Whether there is a continuous click event for the preset button in the second time window.
  • the time window for detecting whether there is a continuous click event may be separately preset according to different states of the drone, for example, the time window in which the drone is in the power-on state may be set to be smaller than the time in the shutdown state. Window to increase the response sensitivity of the drone when it is turned on.
  • the manner of determining whether the number of clicks meets a preset mode change condition may be specifically as follows:
  • a number threshold may be preset. Therefore, when the number of clicks included in the click event of the preset button, such as the power button, is detected to exceed (equal to or greater than) the threshold, for example, 4 times, it is determined that the click event included in the click event satisfies a preset mode change condition. .
  • the threshold of the number may be obtained by the system, or may be obtained by a user-defined setting, which is not limited by the embodiment of the present invention.
  • the determining whether the number of clicks meets a preset mode change condition may also be specifically:
  • a first time threshold such as 2 s
  • a first time threshold such as 2 s
  • the duration is compared with the set first time threshold, such as 2s. When the duration is less than 2s, it can be determined that the number of clicks included in the click event satisfies the mode change condition.
  • the steps 2041-2042 and the steps 2043-2045 may be combined for determining whether the mode change condition is met, that is, the number of clicks that may be included in the continuous click event exceeds the number threshold, and the duration thereof is lower than the first At the time threshold, it is determined that the continuous click event satisfies the mode change condition, and the mode control (change) of the drone can be performed, thereby further improving the accuracy of the mode change operation.
  • the determining whether the number of clicks meets a preset mode change condition may also be specifically:
  • a second time threshold may be preset, and the second time threshold is smaller than the first time threshold. Therefore, by comparing the time interval between each adjacent two click operations among the clicks included in the click event of the power button, the time interval is compared with the second time threshold such as 0.3s, when any phase When the time interval between the two points of the neighbor, that is, the operation, is lower than the second time threshold, it can be determined that the click event included in the click event satisfies the mode change condition. Further, the steps 2041-2042, steps 2043-2045, and steps 2046-2048 may be combined in combination or all in combination to determine whether the mode change condition is satisfied.
  • the continuous click event may be determined to satisfy the mode change condition when the number of clicks included in the continuous click event exceeds the number threshold and the duration thereof is lower than the first time threshold; or the number of clicks that may be included in the continuous click event When the time interval exceeding the number threshold and the interval between any two adjacent click operations corresponding to the number of clicks is lower than the second time threshold, determining that the continuous click event satisfies the mode change condition; or may be included in the continuous click event When the duration corresponding to the number of clicks is lower than the first time threshold and the time interval between any two adjacent click operations corresponding to the number of clicks is lower than the second time threshold, it is determined that the continuous click event satisfies the mode change condition Or may be that the number of clicks included in the continuous click event exceeds the threshold, the duration corresponding to the number of clicks is lower than the first time threshold, and the time interval between any two adjacent click operations corresponding to the number of clicks is When the second time threshold is lower, it is determined that the continuous click event satisfie
  • the current mode of the drone can be changed to a preset mode corresponding to the mode change condition, such as controlling the The human machine enters or exits the packing mode.
  • the unmanned computer can be controlled; when the drone is detected to be in a shutdown state, the drone can be controlled to be powered on.
  • the threshold is set to 4 in advance
  • the first time threshold is 2 s
  • the second time threshold is 0.3 s
  • the first time window is 1 s
  • the second time window is 3 s.
  • the type of the click event can be further determined, when a continuous short press is detected (the time between each adjacent click operation of the power button twice)
  • the power button is pressed 4 times to enter the packing mode, control the stacking of the fuselage components, and shut down.
  • the drone is in the off state, if it receives a control command triggered by clicking the power button (after receiving the control command, it can issue a prompt, such as controlling the LED on the drone to indicate the total power of the system), then it can be detected within 3s.
  • the type of the click event can be further determined.
  • the packing mode can be exited, and the control is expanded. Body parts and can be turned on.
  • the duration of the click event may be further detected, that is, the total time of the short press of the power button 4 times, and the duration is less than 2 s (first time threshold) When the mode is triggered to enter or exit, it will not be described here.
  • the number of clicks included in the continuous click event is counted, and whether the number of clicks corresponding to the continuous click event exceeds the pre-determination Deciding whether the number threshold and/or the duration corresponding to the number of clicks is lower than a preset first time threshold and/or whether the time interval between each two adjacent click operations in the consecutive click event is lower than a preset number a second time threshold or the like to determine whether the continuous click event satisfies a preset mode change condition, and automatically, intelligently, and quickly control the mode of changing the drone when determining that the number of clicks satisfies the mode change condition,
  • the utility model realizes the control of the drone mode through the button of the body without relying on an external device such as a remote controller, thereby improving the mode selection efficiency of the drone and the operation is simple.
  • FIG. 6 is a schematic structural diagram of a mode control apparatus according to an embodiment of the present invention.
  • the mode control apparatus 10 of the embodiment of the present invention may be disposed in a drone.
  • the apparatus 10 includes The module 11 and the control module 12 are detected. among them,
  • the detecting module 11 is configured to detect a continuous click event of a preset button set on the drone, and count the number of clicks included in the continuous click event.
  • the preset button may be an original button disposed on the drone, such as a power button; in addition, the preset button may also be other buttons that are additionally set. Further, the continuous click event may include at least two click operations on the preset button.
  • the control module 12 is configured to control a change of a mode of the drone when the number of clicks satisfies a preset mode change condition.
  • the preset mode change condition may include that the number of clicks corresponding to the continuous click event exceeds a preset number threshold and/or the duration corresponding to the number of clicks is lower than a preset first time threshold and/or the continuous
  • the time interval between the two adjacent click operations in the click event is lower than the preset second time threshold and the like, which is not limited in the embodiment of the present invention.
  • the first time threshold is greater than the second time threshold.
  • control module 12 is further configured to: when the number of clicks exceeds a preset number threshold, determine that the number of clicks meets a preset mode change condition.
  • control module 12 is further configured to obtain a duration corresponding to the number of clicks included in the continuous click event; and when the duration is lower than a preset first time threshold, determine the The number of clicks meets the preset mode change conditions.
  • control module 12 is further configured to obtain a time interval between each two consecutive click operations in the continuous click event; when the interval between any two adjacent click operations is lower than the pre- When the second time threshold is set, it is determined that the number of clicks satisfies a preset mode change condition.
  • the control module 12 detects that the number of clicks corresponding to the click event of the preset button, such as the power button, exceeds the threshold, and/or the duration corresponding to the click is lower than the first time threshold and/or the continuous When the time interval between each two adjacent click operations in the click event is lower than the second time threshold, it can be determined that the click event includes the number of clicks satisfying the preset mode change condition.
  • the detecting module 11 may be specifically configured to: when detecting a continuous click event of a preset button disposed on the drone:
  • the detecting module 11 can perform the detection of the click event according to the preset time window, and detect the time window. Whether there is a preset continuous click event within.
  • the preset time window may be a preset time period after receiving a control command triggered by the power button.
  • the detecting module 11 may be specifically configured to: when detecting a continuous click event of the preset button within a preset time range after receiving the control command,
  • the switch state including a power on state and a power off state
  • the first time window and the second time window may be set to be the same or may be set differently, for example, the first time window is set to be smaller than the second time window to improve the sensitivity of the command response in the power-on state.
  • control module 12 may be specifically configured to meet the stated number of clicks.
  • the mode changes the condition detecting whether the current mode of the drone is a packing mode; when the current mode of the drone is a packing mode, controlling the drone to exit the packing mode; when the unmanned When the current mode of the machine is not the packing mode, the drone is controlled to enter the packing mode.
  • the packaging mode can be used to control a fuselage component of the folding drone, and the fuselage component can include at least one of a landing gear, an arm, and a rotor.
  • control module 12 is further configured to: after detecting the switch state of the drone, and before detecting the change of the mode of the drone, when detecting the When the drone is in the power-on state, the unmanned computer is controlled; when the drone is detected to be in the power-off state, the drone is controlled to be turned on.
  • the number of clicks included in the continuous click event can be statistically obtained by detecting a continuous click event of the preset button set on the drone, so that when the number of clicks is determined to satisfy the mode change condition Automatically and intelligently control the mode of changing the drone, thereby realizing the control of the drone mode through the body button without relying on external devices, which improves the mode selection efficiency of the drone.
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores program instructions, where the computer storage medium stores program instructions, and the program execution may include the corresponding embodiments of FIG. 1 to FIG. Part or all of the steps of the mode control method.
  • FIG. 7 is a schematic structural diagram of a UAV according to an embodiment of the present invention.
  • the UAV 1 in the embodiment of the present invention may include: a communication interface 300, a memory 200, and a processor 100.
  • the processor 100 is connected to the communication interface 300 and the memory 200, respectively.
  • the drone 1 of the embodiment of the present invention may further include a body, an arm that can be raised or lowered relative to the body (ie, the arm can be deformed), a rotor disposed on the arm, and a power supply. Body parts such as landing gear, etc., are not described here.
  • the drone can be an unmanned aerial vehicle (UAV) that can be remotely controlled by a user to perform special tasks.
  • UAV unmanned aerial vehicle
  • the UAV can be mounted with a shooting device. Through the shooting device, the user can monitor the flight area, which can be effectively applied to disaster relief, geological monitoring and the like.
  • the UAV can also be mounted on a container including a tank for containing a mixed liquid of pesticides, water, and a spray mechanism, and is applied to the agricultural field.
  • the UAV can also be equipped with a radar device, an infrared device, etc., and may also include a firepower system in the military field.
  • the communication interface 300 can include various standard buttons, a touch screen, a camera, a speaker, and the like. It may also include a wired interface, a wireless interface, and the like.
  • the communication interface 300 can also be coupled to a remote control at the ground end for receiving data from the ground end. Based on the communication interface 300, flight control commands to the drone can be triggered to achieve control of the drone.
  • the memory 200 may include a volatile memory such as a random-access memory (RAM); the memory 200 may also include a non-volatile memory such as a flash. A flash memory or the like; the memory 200 may further include a combination of the above types of memories.
  • RAM random-access memory
  • flash non-volatile memory
  • a flash memory or the like; the memory 200 may further include a combination of the above types of memories.
  • the processor 100 can be a central processing unit (CPU).
  • the processor may further include a hardware chip.
  • the hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof.
  • the PLD may be a complex programmable logic device (CPLD) or a field-programmable gate array (FPGA).
  • the memory 200 is further configured to store program instructions.
  • the processor 100 can invoke the program instructions to implement a mode control method as shown in the embodiments of FIGS. 1 through 5 of the present application.
  • the processor 100 may invoke a program instruction stored in the memory 200 to execute:
  • the control changes the mode of the drone.
  • processor 100 further performs the following steps:
  • processor 100 further performs the following steps:
  • processor 100 further performs the following steps:
  • the processor 100 performs the following steps when performing the detecting a continuous click event on a preset button set on the drone:
  • processor 100 when the processor 100 performs a continuous click event on the preset button within a preset time range after detecting the receiving the control command, performing the following steps:
  • the switch state including a power on state and a power off state
  • the processor 100 when the processor 100 performs the control to change the mode of the drone, the processor 100 specifically performs the following steps:
  • the drone is controlled to enter the packaging mode.
  • the packaging mode can be used to control a fuselage component of the folding drone, the fuselage component can include at least one of a landing gear, an arm, and a rotor.
  • the processor 100 performs the following steps after performing the detecting the switch state of the drone and before performing the control to change the mode of the drone:
  • the drone When the drone is detected to be in a shutdown state, the drone is controlled to be turned on.
  • the preset button may be a power button disposed on the drone.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the modules is only a logical function division.
  • there may be another division manner for example, multiple modules or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or module, and may be electrical, mechanical or otherwise.
  • the modules described as separate components may or may not be physically separated.
  • the components displayed as modules may or may not be physical modules, that is, may be located in one place, or may be distributed to multiple network modules. . Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of hardware plus software function modules.
  • the above-described integrated modules implemented in the form of software function modules can be stored in a computer readable storage medium.
  • the software function modules described above are stored in a storage medium and include instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform the methods of the various embodiments of the present invention. Part of the steps.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program code. .

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Toys (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A mode control method and device, and an unmanned aerial vehicle. The method comprises: detecting an event of continuous clicks on a preset key arranged on an unmanned aerial vehicle, and counting the number of times of clicks comprised in the event of continuous clicks (101); and when the number of times of clicks satisfies a preset mode change condition, controlling to change a mode of the unmanned aerial vehicle (102). By using the method, the mode selection efficiency of an unmanned aerial vehicle can be improved without depending on an external component.

Description

模式控制方法、装置及无人机Mode control method, device and drone
本专利文件披露的内容包含受版权保护的材料。该版权为版权所有人所有。版权所有人不反对任何人复制专利与商标局的官方记录和档案中所存在的该专利文件或该专利披露。The disclosure of this patent document contains material that is subject to copyright protection. This copyright is the property of the copyright holder. The copyright owner has no objection to the reproduction of the patent document or the patent disclosure in the official records and files of the Patent and Trademark Office.
技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种模式控制方法、装置及无人机。The present invention relates to the field of communications technologies, and in particular, to a mode control method, device, and drone.
背景技术Background technique
随着飞行技术以及终端技术的不断发展,无人机在侦查、灾难救援、观察野生动物、测绘、新闻报道、电力巡检等领域得到广泛应用。目前,无人机在运输时常常需要被设置为打包模式,以进行飞行控制。然而,一般是通过外部器件如遥控器发出的控制指令来控制无人机进入或退出该打包模式的,即必须依赖外部器件才能实现该打包模式,依赖性较强,且模式选择效率低。With the continuous development of flight technology and terminal technology, drones have been widely used in such fields as investigation, disaster relief, observation of wildlife, surveying and mapping, news reporting, and power inspection. Currently, drones often need to be set to a packing mode for flight control when transporting. However, it is generally controlled by an external device such as a remote controller to control the drone to enter or exit the packing mode, that is, the external device must be relied upon to implement the packing mode, the dependency is strong, and the mode selection efficiency is low.
发明内容Summary of the invention
本发明实施例提供一种模式控制方法、装置及无人机,能够提升无人机的模式选择效率,而无需依赖于外部器件。The embodiment of the invention provides a mode control method, a device and a drone, which can improve the mode selection efficiency of the drone without relying on external devices.
第一方面,本发明实施例提供了一种模式控制方法,包括:In a first aspect, an embodiment of the present invention provides a mode control method, including:
检测对设置于无人机上的预设按键的连续点击事件,并统计所述连续点击事件包括的点击次数;Detecting a continuous click event of a preset button set on the drone, and counting the number of clicks included in the continuous click event;
当所述点击次数满足预设的模式更改条件时,控制对所述无人机的模式进行更改。When the number of clicks satisfies a preset mode change condition, the control changes the mode of the drone.
第二方面,本发明实施例还提供了一种模式控制装置,包括:In a second aspect, an embodiment of the present invention further provides a mode control apparatus, including:
检测模块,用于检测对设置于无人机上的预设按键的连续点击事件,并统计所述连续点击事件包括的点击次数;a detecting module, configured to detect a continuous click event of a preset button set on the drone, and count the number of clicks included in the continuous click event;
控制模块,用于在所述点击次数满足预设的模式更改条件时,控制对所述无人机的模式进行更改。 And a control module, configured to control, when the number of clicks meets a preset mode change condition, to change a mode of the drone.
第三方面,本发明实施例还提供了一种计算机存储介质,所述计算机存储介质存储有程序,所述程序执行时包括上述第一方面的模式控制方法的部分或全部的步骤。In a third aspect, an embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a program, and the program includes some or all of the steps of the mode control method of the first aspect.
第四方面,本发明实施例还提供了一种无人机,包括:存储器、处理器和通信接口,所述处理器分别与所述存储器和所述通信接口连接;其中,In a fourth aspect, an embodiment of the present invention further provides a drone, including: a memory, a processor, and a communication interface, where the processor is respectively connected to the memory and the communication interface;
所述存储器,用于存储程序指令;The memory is configured to store program instructions;
所述处理器,用于调用所述存储器中存储的程序指令执行:The processor is configured to invoke a program instruction stored in the memory to execute:
通过所述通信接口检测对设置于无人机上的预设按键的连续点击事件,并统计所述连续点击事件包括的点击次数;Detecting a continuous click event of a preset button set on the drone through the communication interface, and counting the number of clicks included in the continuous click event;
当所述点击次数满足预设的模式更改条件时,控制对所述无人机的模式进行更改。When the number of clicks satisfies a preset mode change condition, the control changes the mode of the drone.
实施本发明实施例,具有如下有益效果:Embodiments of the present invention have the following beneficial effects:
本发明实施例可通过检测对设置于无人机上的预设按键的连续点击事件,统计得到该连续点击事件包括的点击次数,从而能够在确定该点击次数满足预设的模式更改条件时,自动地、智能地控制更改无人机的模式,从而实现了通过机身按键来进行飞行无人机模式的控制,而无需依赖外部器件,这就提升了无人机的模式选择效率。In the embodiment of the present invention, the number of clicks included in the continuous click event can be statistically obtained by detecting a continuous click event of the preset button set on the drone, thereby automatically determining when the click number meets the preset mode change condition. Ground, intelligent control of the mode of changing the drone, thus enabling the control of the flying drone mode through the body button without relying on external components, which improves the mode selection efficiency of the drone.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present disclosure, and other drawings may be obtained from those skilled in the art without any inventive effort.
图1是本发明实施例提供的一种模式控制方法的流程示意图;1 is a schematic flowchart of a mode control method according to an embodiment of the present invention;
图2是本发明实施例提供的另一种模式控制方法的流程示意图;2 is a schematic flowchart diagram of another mode control method according to an embodiment of the present invention;
图3是本发明实施例提供的一种判断是否满足模式更改条件的方式的流程示意图;3 is a schematic flowchart of a manner of determining whether a mode change condition is met according to an embodiment of the present invention;
图4是本发明实施例提供的另一种判断是否满足模式更改条件的方式的流程示意图; 4 is a schematic flowchart of another manner for determining whether a mode change condition is met according to an embodiment of the present invention;
图5是本发明实施例提供的又一种判断是否满足模式更改条件的方式的流程示意图;FIG. 5 is a schematic flowchart of still another manner for determining whether a mode change condition is met according to an embodiment of the present disclosure;
图6是本发明实施例提供的一种模式控制装置的结构示意图;6 is a schematic structural diagram of a mode control apparatus according to an embodiment of the present invention;
图7是本发明实施例提供的一种无人机的结构示意图。FIG. 7 is a schematic structural diagram of a drone according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without departing from the inventive scope are the scope of the present disclosure.
本发明实施例公开了一种模式控制方法、装置及无人机,能够提升无人机的模式选择效率,而无需依赖于外部器件。以下分别详细说明。The embodiment of the invention discloses a mode control method, a device and a drone, which can improve the mode selection efficiency of the drone without relying on external devices. The details are explained below.
请参见图1,图1是本发明实施例提供的一种模式控制方法的流程示意图。具体的,本发明实施例的所述方法可具体应用于无人机上。所述无人机可以为无人飞行器、无人船、或无人车等,本实施例以无人飞行器为例进行说明。如图1所示,本发明实施例的所述模式控制方法可以包括以下步骤:Referring to FIG. 1, FIG. 1 is a schematic flowchart diagram of a mode control method according to an embodiment of the present invention. Specifically, the method of the embodiment of the present invention may be specifically applied to a drone. The UAV can be an unmanned aerial vehicle, an unmanned vehicle, or an unmanned vehicle. The present embodiment is described by taking an unmanned aerial vehicle as an example. As shown in FIG. 1, the mode control method in the embodiment of the present invention may include the following steps:
101、检测对设置于无人机上的预设按键的连续点击事件,并统计所述连续点击事件包括的点击次数。101. Detect a continuous click event on a preset button set on the drone, and count the number of clicks included in the continuous click event.
其中,该预设按键可以是设置于无人机上的原有按键,如电源按键;此外,该预设按键还可以是额外设置的其他按键。进一步的,该连续点击事件可包括对该预设按键的至少两次点击操作。可选地,可以将第一次检测到对该预设按键的点击操作,以及最后一次对该预设按键的点击操作之间的点击事件作为连续点击事件。该最后一次点击操作可以是指某一点击操作后预设时间范围如1s内未检测到点击操作而确定出的,即可将该点击操作作为最后一次点击操作。本发明实施例通过检测该预设按键上的连续点击事件来触发进行无人机模式更改。The preset button may be an original button disposed on the drone, such as a power button; in addition, the preset button may also be other buttons that are additionally set. Further, the continuous click event may include at least two click operations on the preset button. Alternatively, the click operation of the preset button and the click event between the last click operation of the preset button may be detected as a continuous click event for the first time. The last click operation may be determined by determining that the preset time range after a click operation is not detected within 1 s, and the click operation may be the last click operation. Embodiments of the present invention trigger a drone mode change by detecting a continuous click event on the preset button.
102、当所述点击次数满足预设的模式更改条件时,控制对所述无人机的模式进行更改。102. Control, when the number of clicks meets a preset mode change condition, to change a mode of the drone.
可选地,该预设的模式更改条件可以包括该连续点击事件对应的点击次数 超过预设数目阈值和/或该点击次数对应的持续时间低于预设的第一时间阈值和/或该连续点击事件中每两次相邻点击操作之间的时间间隔低于预设的第二时间阈值等等,本发明实施例不做限定。其中,该第一时间阈值大于该第二时间阈值。Optionally, the preset mode change condition may include the number of clicks corresponding to the continuous click event. Exceeding the preset number threshold and/or the duration corresponding to the number of clicks is lower than a preset first time threshold and/or the interval between each two adjacent click operations in the continuous click event is lower than a preset number The second time threshold and the like are not limited in the embodiment of the present invention. The first time threshold is greater than the second time threshold.
若判断结果为该连续点击事件包括的点击次数满足预设的模式更改条件,则可表明需要对无人机的模式进行更改,由此可更改无人机的打包模式,比如控制无人机进入或退出打包模式。其中,该打包模式可用于控制收叠无人机的机身部件,该机身部件包括起落架、机臂、旋翼等等器件。具体的,控制无人机进入打包模式即可包括控制收叠(或降下)起落架、机臂、旋翼等机身部件的过程,以便于放置该打包好的无人机,比如可将该打包好的无人机放置于与该打包好的无人机的形态相匹配的放置箱中。相应地,控制无人机退出打包模式即可包括展开(或抬起)起落架、机臂、旋翼等机身部件的过程。If the result of the judgment is that the number of clicks included in the continuous click event satisfies the preset mode change condition, it may indicate that the mode of the drone needs to be changed, thereby changing the packaging mode of the drone, such as controlling the drone entry. Or exit the packaging mode. Wherein, the packaging mode can be used to control the fuselage components of the folding drone, and the fuselage components include a landing gear, an arm, a rotor, and the like. Specifically, controlling the drone into the packaging mode may include controlling a process of folding (or lowering) the fuselage components such as the landing gear, the arm, the rotor, etc., so as to place the packaged drone, for example, the package may be A good drone is placed in a placement box that matches the shape of the packaged drone. Accordingly, controlling the drone to exit the packaging mode may include the process of unfolding (or lifting) the fuselage components such as the landing gear, the arm, and the rotor.
在本发明实施例中,可通过检测对设置于无人机上的预设按键的连续点击事件,统计得到该连续点击事件包括的点击次数,从而能够在确定该点击次数满足所述模式更改条件时,自动地、智能地控制更改无人机的模式,从而实现了通过机身按键来进行无人机模式的控制,而无需依赖外部器件,这就提升了无人机的模式选择效率。In the embodiment of the present invention, the number of clicks included in the continuous click event can be statistically obtained by detecting a continuous click event of the preset button set on the drone, so that when the number of clicks is determined to satisfy the mode change condition Automatically and intelligently control the mode of changing the drone, thereby realizing the control of the drone mode through the body button without relying on external devices, which improves the mode selection efficiency of the drone.
进一步的,请参见图2,图2是本发明实施例提供的另一种模式控制方法的流程示意图。具体的,如图2所示,本发明实施例的所述模式控制方法可以包括以下步骤:Further, please refer to FIG. 2. FIG. 2 is a schematic flowchart diagram of another mode control method according to an embodiment of the present invention. Specifically, as shown in FIG. 2, the mode control method in the embodiment of the present invention may include the following steps:
201、接收用户点击对设置于无人机上的预设按键触发的控制指令。201. The receiving user clicks a control command triggered by a preset button set on the drone.
202、响应所述控制指令,检测接收到所述控制指令后的预设时间范围内是否存在对所述预设按键的连续点击事件。202. responsive to the control instruction, detecting whether there is a continuous click event for the preset button within a preset time range after receiving the control command.
可选地,该预设按键可以为设置于所述无人机上的电源按键或其他按键。当接收到对无人机机身上的预设按键如电源按键进行操作触发的控制指令之后,即可按照预设的时间窗进行点击事件的检测,检测在该时间窗内是否存在预设的连续点击事件。其中,该预设时间窗可以是指接收到电源按键触发的控制指令后的预设时间段,如2s。Optionally, the preset button may be a power button or other button disposed on the drone. After receiving the control command triggered by the operation of the preset button on the body of the drone, such as the power button, the click event may be detected according to the preset time window to detect whether there is a preset in the time window. Continuous click event. The preset time window may be a preset time period after receiving a control command triggered by the power button, such as 2 s.
可选地,所述检测接收到所述控制指令后的预设时间范围内是否存在对所 述预设按键的连续点击事件,可以具体为:检测所述无人机的开关状态,所述开关状态包括开机状态和关机状态;当检测到所述无人机处于开机状态时,检测预设的与所述开机状态对应的第一时间窗内是否存在对所述预设按键的连续点击事件;当检测到所述无人机处于关机状态时,检测预设的与所述关机状态对应的第二时间窗内是否存在对所述预设按键的连续点击事件。具体的,用于检测是否存在连续点击事件的时间窗可以根据无人机的不同状态分别预置得到,比如可将无人机处于开机状态下的该时间窗设置为小于处于关机状态下的时间窗,以在无人机处于开机状态时,提升其响应灵敏度。Optionally, the detecting whether there is a pair within a preset time range after receiving the control instruction The continuous click event of the preset button may be specifically: detecting a switch state of the drone, the switch state includes a power on state and a power off state; and when detecting that the drone is in a power on state, detecting a preset Whether there is a continuous click event for the preset button in the first time window corresponding to the power-on state; when detecting that the drone is in a power-off state, detecting a preset corresponding to the shutdown state Whether there is a continuous click event for the preset button in the second time window. Specifically, the time window for detecting whether there is a continuous click event may be separately preset according to different states of the drone, for example, the time window in which the drone is in the power-on state may be set to be smaller than the time in the shutdown state. Window to increase the response sensitivity of the drone when it is turned on.
203、统计所述连续点击事件包括的点击次数。203. Count the number of clicks included in the continuous click event.
204、判断所述点击次数是否满足预设的模式更改条件。204. Determine whether the click number meets a preset mode change condition.
作为一种可选的实施方式,请参见图3,该判断所述点击次数是否满足预设的模式更改条件的方式可以具体为:As an optional implementation manner, referring to FIG. 3, the manner of determining whether the number of clicks meets a preset mode change condition may be specifically as follows:
2041、判断所述点击次数是否超过预设的数目阈值;2041. Determine whether the number of clicks exceeds a preset number threshold;
2042、若所述点击次数超过所述数目阈值,则确定所述点击次数满足预设的模式更改条件。2042. If the number of clicks exceeds the threshold, determine that the number of clicks meets a preset mode change condition.
具体的,可预先设置一个数目阈值。由此可在检测到对预设按键如电源按键的点击事件包括的点击次数超过(等于或大于)该数目阈值,如4次时,确定该点击事件包括的点击次数满足预设的模式更改条件。可选地,为了提升模式更改的准确性,还可以是在检测到该点击次数与该数目阈值相同时,再确定其满足模式更改条件。其中,该数目阈值可由系统设置得到,或者由用户自定义设置得到,本发明实施例不做限定。Specifically, a number threshold may be preset. Therefore, when the number of clicks included in the click event of the preset button, such as the power button, is detected to exceed (equal to or greater than) the threshold, for example, 4 times, it is determined that the click event included in the click event satisfies a preset mode change condition. . Optionally, in order to improve the accuracy of the mode change, it may also be determined that the number of clicks is the same as the number threshold, and then it is determined that the mode change condition is satisfied. The threshold of the number may be obtained by the system, or may be obtained by a user-defined setting, which is not limited by the embodiment of the present invention.
作为一种可选的实施方式,请参见图4,所述判断所述点击次数是否满足预设的模式更改条件,还可以具体为:As an optional implementation manner, refer to FIG. 4, the determining whether the number of clicks meets a preset mode change condition may also be specifically:
2043、获取所述连续点击事件包括的点击次数对应的持续时间;2043. Obtain a duration corresponding to the number of clicks included in the continuous click event;
2044、判断所述持续时间是否低于预设的第一时间阈值;2044. Determine whether the duration is lower than a preset first time threshold.
2045、若所述持续时间低于所述第一时间阈值,则确定所述点击次数满足预设的模式更改条件。2045. If the duration is lower than the first time threshold, determine that the number of clicks meets a preset mode change condition.
具体的,还可预先设置一个第一时间阈值,如2s。由此可通过检测对电源按键的点击事件包括的点击次数的持续时间,也即该点击事件的总时长,并 将该持续时间与该设置的第一时间阈值如2s进行比较,当该持续时间低于2s时,即可确定该点击事件包括的点击次数满足模式更改条件。进一步地,该步骤2041-2042和步骤2043-2045可结合用于确定是否满足模式更改条件,也即,可在连续点击事件包括的点击次数超过该数目阈值、且其持续时间低于该第一时间阈值时,确定该连续点击事件满足模式更改条件,即可对无人机进行模式控制(更改),从而进一步提升了模式更改操作的准确性。Specifically, a first time threshold, such as 2 s, may also be preset. Thus, by detecting the duration of the number of clicks included in the click event of the power button, that is, the total duration of the click event, and The duration is compared with the set first time threshold, such as 2s. When the duration is less than 2s, it can be determined that the number of clicks included in the click event satisfies the mode change condition. Further, the steps 2041-2042 and the steps 2043-2045 may be combined for determining whether the mode change condition is met, that is, the number of clicks that may be included in the continuous click event exceeds the number threshold, and the duration thereof is lower than the first At the time threshold, it is determined that the continuous click event satisfies the mode change condition, and the mode control (change) of the drone can be performed, thereby further improving the accuracy of the mode change operation.
作为一种可选的实施方式,请参见图5,所述判断所述点击次数是否满足预设的模式更改条件,还可以具体为:As an optional implementation manner, referring to FIG. 5, the determining whether the number of clicks meets a preset mode change condition may also be specifically:
2046、获取所述连续点击事件中每两次相邻点击操作之间的时间间隔;2046. Obtain a time interval between each two adjacent click operations in the continuous click event.
2047、分别判断每两次相邻点击操作之间的时间间隔是否低于预设的第二时间阈值;2047. Determine whether the time interval between each two adjacent click operations is lower than a preset second time threshold.
2048、若任两次相邻点击操作之间的时间间隔均低于所述第二时间阈值,则确定所述点击次数满足预设的模式更改条件。2048. If the time interval between two adjacent click operations is lower than the second time threshold, determine that the number of clicks meets a preset mode change condition.
具体的,还可预先设置一个第二时间阈值,该第二时间阈值小于上述的第一时间阈值。由此还可通过检测对电源按键的点击事件包括的点击次数中每相邻的两次点击操作之间的时间间隔,将该时间间隔与该第二时间阈值如0.3s进行比较,当任意相邻的两次点即操作之间的时间间隔均低于该第二时间阈值时,即可确定该点击事件包括的点击次数满足模式更改条件。进一步地,该步骤2041-2042、步骤2043-2045和步骤2046-2048可两两结合或者全部结合用于确定是否满足模式更改条件。也即,可在连续点击事件包括的点击次数超过该数目阈值、且其持续时间低于该第一时间阈值时,确定该连续点击事件满足模式更改条件;或者可在连续点击事件包括的点击次数超过该数目阈值、且该点击次数对应的任两次相邻点击操作之间的时间间隔均低于第二时间阈值时,确定该连续点击事件满足模式更改条件;或者可在连续点击事件包括的点击次数对应的持续时间低于该第一时间阈值、且该点击次数对应的任两次相邻点击操作之间的时间间隔均低于第二时间阈值时,确定该连续点击事件满足模式更改条件;或者可在连续点击事件包括的点击次数超过该数目阈值、该点击次数对应的持续时间低于该第一时间阈值、且该点击次数对应的任两次相邻点击操作之间的时间间隔均低于第二时间阈值时,确定该连续点击事件满足模式更改 条件。由此可对无人机进行模式控制(更改),从而进一步提升了模式更改操作的准确性。Specifically, a second time threshold may be preset, and the second time threshold is smaller than the first time threshold. Therefore, by comparing the time interval between each adjacent two click operations among the clicks included in the click event of the power button, the time interval is compared with the second time threshold such as 0.3s, when any phase When the time interval between the two points of the neighbor, that is, the operation, is lower than the second time threshold, it can be determined that the click event included in the click event satisfies the mode change condition. Further, the steps 2041-2042, steps 2043-2045, and steps 2046-2048 may be combined in combination or all in combination to determine whether the mode change condition is satisfied. That is, the continuous click event may be determined to satisfy the mode change condition when the number of clicks included in the continuous click event exceeds the number threshold and the duration thereof is lower than the first time threshold; or the number of clicks that may be included in the continuous click event When the time interval exceeding the number threshold and the interval between any two adjacent click operations corresponding to the number of clicks is lower than the second time threshold, determining that the continuous click event satisfies the mode change condition; or may be included in the continuous click event When the duration corresponding to the number of clicks is lower than the first time threshold and the time interval between any two adjacent click operations corresponding to the number of clicks is lower than the second time threshold, it is determined that the continuous click event satisfies the mode change condition Or may be that the number of clicks included in the continuous click event exceeds the threshold, the duration corresponding to the number of clicks is lower than the first time threshold, and the time interval between any two adjacent click operations corresponding to the number of clicks is When the second time threshold is lower, it is determined that the continuous click event satisfies the mode change condition. This allows mode control (change) of the drone, further improving the accuracy of the mode change operation.
205、当所述点击次数满足所述模式更改条件时,检测所述无人机的当前模式是否为打包模式。205. When the number of clicks satisfies the mode change condition, detect whether the current mode of the drone is a packed mode.
可选地,若检测到对电源按键的连续点击事件满足预设的模式更改条件时,即可将无人机的当前模式更改为预置的与该模式更改条件对应的模式,比如控制该无人机进入或退出打包模式。Optionally, if it is detected that the continuous click event of the power button meets the preset mode change condition, the current mode of the drone can be changed to a preset mode corresponding to the mode change condition, such as controlling the The human machine enters or exits the packing mode.
206、当所述无人机的当前模式为打包模式时,控制所述无人机退出所述打包模式。206. When the current mode of the drone is a packaging mode, control the drone to exit the packaging mode.
207、当所述无人机的当前模式不为打包模式时,控制所述无人机进入所述打包模式。207. When the current mode of the drone is not in a packaging mode, control the drone to enter the packaging mode.
进一步可选地,在所述检测所述无人机的开关状态之后,并在所述控制对所述无人机的模式进行更改之前,当检测到所述无人机处于开机状态时,则可控制所述无人机关机;当检测到所述无人机处于关机状态时,则可控制所述无人机开机。Further optionally, after detecting the switch state of the drone, and before detecting the change of the mode of the drone, when detecting that the drone is in a power on state, The unmanned computer can be controlled; when the drone is detected to be in a shutdown state, the drone can be controlled to be powered on.
举例来说,假设预先设置得到该数目阈值为4,第一时间阈值为2s,第二时间阈值为0.3s,第一时间窗为1s,第二时间窗为3s。当无人机处于开机状态下,若接收到点击电源按键触发的控制指令(接收到该控制指令之后可发出提示,如控制无人机上的多个LED灯同时闪烁),则可检测1s内即第一时间窗内是否存在对该电源按键的点击事件,若存在,则可进一步判断该点击事件的类型,当检测到连续短按(每相邻两次对该电源按键的点击操作间的时间间隔低于0.3s即第二时间阈值)电源按键4次,即可进入打包模式,控制收叠机身部件,并可进行关机。当无人机处于关机状态下,若接收到点击电源按键触发的控制指令(接收到该控制指令之后可发出提示,如控制无人机上的LED灯指示系统总电量),则可检测3s内即第二时间窗内是否存在对该电源按键的点击事件,若存在,则可进一步判断该点击事件的类型,当检测到连续短按电源按键4次,即可退出打包模式,控制展开收叠的机身部件,并可进行开机。此外,进入或退出打包模式之前,还可进一步检测该点击事件的持续时间,即该连续短按电源按键4次的总时间,并在该持续时间低于2s(第一时间阈值) 时触发进入或退出该打包模式,此处不赘述。For example, it is assumed that the threshold is set to 4 in advance, the first time threshold is 2 s, the second time threshold is 0.3 s, the first time window is 1 s, and the second time window is 3 s. When the drone is turned on, if it receives a control command triggered by clicking the power button (after receiving the control command, it can issue a prompt, such as controlling multiple LEDs on the drone to flash at the same time), then it can be detected within 1 s. Whether there is a click event on the power button in the first time window, if yes, the type of the click event can be further determined, when a continuous short press is detected (the time between each adjacent click operation of the power button twice) When the interval is lower than 0.3s or the second time threshold, the power button is pressed 4 times to enter the packing mode, control the stacking of the fuselage components, and shut down. When the drone is in the off state, if it receives a control command triggered by clicking the power button (after receiving the control command, it can issue a prompt, such as controlling the LED on the drone to indicate the total power of the system), then it can be detected within 3s. Whether there is a click event on the power button in the second time window, if yes, the type of the click event can be further determined. When the continuous short press of the power button is detected 4 times, the packing mode can be exited, and the control is expanded. Body parts and can be turned on. In addition, before entering or exiting the packaging mode, the duration of the click event may be further detected, that is, the total time of the short press of the power button 4 times, and the duration is less than 2 s (first time threshold) When the mode is triggered to enter or exit, it will not be described here.
在本发明实施例中,可通过检测对设置于无人机上的预设按键的连续点击事件,统计得到该连续点击事件包括的点击次数,并通过判断该连续点击事件对应的点击次数是否超过预设数目阈值和/或该点击次数对应的持续时间是否低于预设的第一时间阈值和/或该连续点击事件中每两次相邻点击操作之间的时间间隔是否低于预设的第二时间阈值等,来确定该连续点击事件是否满足预设的模式更改条件,并在确定该点击次数满足所述模式更改条件时,自动地、智能地、快速地控制更改无人机的模式,使得实现了通过机身按键来进行无人机模式的控制,而无需依赖外部器件如遥控器,从而提升了无人机的模式选择效率,操作简单。In the embodiment of the present invention, by detecting a continuous click event of a preset button set on the drone, the number of clicks included in the continuous click event is counted, and whether the number of clicks corresponding to the continuous click event exceeds the pre-determination Deciding whether the number threshold and/or the duration corresponding to the number of clicks is lower than a preset first time threshold and/or whether the time interval between each two adjacent click operations in the consecutive click event is lower than a preset number a second time threshold or the like to determine whether the continuous click event satisfies a preset mode change condition, and automatically, intelligently, and quickly control the mode of changing the drone when determining that the number of clicks satisfies the mode change condition, The utility model realizes the control of the drone mode through the button of the body without relying on an external device such as a remote controller, thereby improving the mode selection efficiency of the drone and the operation is simple.
请参见图6,图6是本发明实施例提供的一种模式控制装置的结构示意图,本发明实施例的所述模式控制装置10可以设置在无人机中,具体的,所述装置10包括检测模块11以及控制模块12。其中,Referring to FIG. 6, FIG. 6 is a schematic structural diagram of a mode control apparatus according to an embodiment of the present invention. The mode control apparatus 10 of the embodiment of the present invention may be disposed in a drone. Specifically, the apparatus 10 includes The module 11 and the control module 12 are detected. among them,
所述检测模块11,用于检测对设置于无人机上的预设按键的连续点击事件,并统计所述连续点击事件包括的点击次数。The detecting module 11 is configured to detect a continuous click event of a preset button set on the drone, and count the number of clicks included in the continuous click event.
其中,该预设按键可以是设置于无人机上的原有按键,如电源按键;此外,该预设按键还可以是额外设置的其他按键。进一步的,该连续点击事件可包括对该预设按键的至少两次点击操作。The preset button may be an original button disposed on the drone, such as a power button; in addition, the preset button may also be other buttons that are additionally set. Further, the continuous click event may include at least two click operations on the preset button.
所述控制模块12,用于在所述点击次数满足预设的模式更改条件时,控制对所述无人机的模式进行更改。The control module 12 is configured to control a change of a mode of the drone when the number of clicks satisfies a preset mode change condition.
可选地,该预设的模式更改条件可以包括该连续点击事件对应的点击次数超过预设数目阈值和/或该点击次数对应的持续时间低于预设的第一时间阈值和/或该连续点击事件中每两次相邻点击操作之间的时间间隔低于预设的第二时间阈值等等,本发明实施例不做限定。其中,该第一时间阈值大于该第二时间阈值。Optionally, the preset mode change condition may include that the number of clicks corresponding to the continuous click event exceeds a preset number threshold and/or the duration corresponding to the number of clicks is lower than a preset first time threshold and/or the continuous The time interval between the two adjacent click operations in the click event is lower than the preset second time threshold and the like, which is not limited in the embodiment of the present invention. The first time threshold is greater than the second time threshold.
可选地,所述控制模块12,还可用于当所述点击次数超过预设的数目阈值时,确定所述点击次数满足预设的模式更改条件。Optionally, the control module 12 is further configured to: when the number of clicks exceeds a preset number threshold, determine that the number of clicks meets a preset mode change condition.
可选地,所述控制模块12,还可用于获取所述连续点击事件包括的点击次数对应的持续时间;当所述持续时间低于预设的第一时间阈值时,确定所述 点击次数满足预设的模式更改条件。Optionally, the control module 12 is further configured to obtain a duration corresponding to the number of clicks included in the continuous click event; and when the duration is lower than a preset first time threshold, determine the The number of clicks meets the preset mode change conditions.
可选地,所述控制模块12,还可用于获取所述连续点击事件中每两次相邻点击操作之间的时间间隔;当任两次相邻点击操作之间的时间间隔均低于预设的第二时间阈值时,确定所述点击次数满足预设的模式更改条件。Optionally, the control module 12 is further configured to obtain a time interval between each two consecutive click operations in the continuous click event; when the interval between any two adjacent click operations is lower than the pre- When the second time threshold is set, it is determined that the number of clicks satisfies a preset mode change condition.
具体的,当控制模块12检测得到对该预设按键如电源按键的点击事件对应的点击次数超过该数目阈值和/或该点击次数对应的持续时间低于该第一时间阈值和/或该连续点击事件中每两次相邻点击操作之间的时间间隔低于该第二时间阈值时,即可确定该点击事件包括的点击次数满足预设的模式更改条件。Specifically, when the control module 12 detects that the number of clicks corresponding to the click event of the preset button, such as the power button, exceeds the threshold, and/or the duration corresponding to the click is lower than the first time threshold and/or the continuous When the time interval between each two adjacent click operations in the click event is lower than the second time threshold, it can be determined that the click event includes the number of clicks satisfying the preset mode change condition.
进一步可选地,所述检测模块11在检测对设置于无人机上的预设按键的连续点击事件时,可具体用于:Further, the detecting module 11 may be specifically configured to: when detecting a continuous click event of a preset button disposed on the drone:
接收用户点击对设置于无人机上的预设按键触发的控制指令;Receiving a control command triggered by a user to click on a preset button set on the drone;
响应所述控制指令,检测接收到所述控制指令后的预设时间范围内是否存在对所述预设按键的连续点击事件。In response to the control instruction, detecting whether there is a continuous click event for the preset button within a preset time range after receiving the control command.
具体的,当接收到对无人机机身上的预设按键如电源按键进行操作触发的控制指令之后,检测模块11即可按照预设的时间窗进行点击事件的检测,检测在该时间窗内是否存在预设的连续点击事件。其中,该预设时间窗可以是指接收到电源按键触发的控制指令后的预设时间段。Specifically, after receiving the control command triggered by the operation of the preset button on the body of the drone, such as the power button, the detecting module 11 can perform the detection of the click event according to the preset time window, and detect the time window. Whether there is a preset continuous click event within. The preset time window may be a preset time period after receiving a control command triggered by the power button.
进一步可选地,所述检测模块11在检测接收到所述控制指令后的预设时间范围内是否存在对所述预设按键的连续点击事件时,可具体用于:Further, the detecting module 11 may be specifically configured to: when detecting a continuous click event of the preset button within a preset time range after receiving the control command,
检测所述无人机的开关状态,所述开关状态包括开机状态和关机状态;Detecting a switch state of the drone, the switch state including a power on state and a power off state;
当检测到所述无人机处于开机状态时,检测预设的与所述开机状态对应的第一时间窗内是否存在对所述预设按键的连续点击事件;When detecting that the drone is in a power-on state, detecting whether there is a continuous click event for the preset button in a preset first time window corresponding to the power-on state;
当检测到所述无人机处于关机状态时,检测预设的与所述关机状态对应的第二时间窗内是否存在对所述预设按键的连续点击事件。When it is detected that the drone is in a shutdown state, detecting whether there is a continuous click event for the preset button in a second time window corresponding to the shutdown state.
其中,该第一时间窗和第二时间窗可以设置为相同,也可以设置为不同,比如将第一时间窗设置为小于该第二时间窗,以提升开机状态下指令响应的灵敏度。The first time window and the second time window may be set to be the same or may be set differently, for example, the first time window is set to be smaller than the second time window to improve the sensitivity of the command response in the power-on state.
进一步可选地,所述控制模块12,可具体用于在所述点击次数满足所述 模式更改条件时,检测所述无人机的当前模式是否为打包模式;当所述无人机的当前模式为打包模式时,控制所述无人机退出所述打包模式;当所述无人机的当前模式不为打包模式时,控制所述无人机进入所述打包模式。Further optionally, the control module 12 may be specifically configured to meet the stated number of clicks. When the mode changes the condition, detecting whether the current mode of the drone is a packing mode; when the current mode of the drone is a packing mode, controlling the drone to exit the packing mode; when the unmanned When the current mode of the machine is not the packing mode, the drone is controlled to enter the packing mode.
其中,该打包模式可用于控制收叠无人机的机身部件,该机身部件可包括起落架、机臂、旋翼中的至少一项。Wherein, the packaging mode can be used to control a fuselage component of the folding drone, and the fuselage component can include at least one of a landing gear, an arm, and a rotor.
进一步可选地,所述控制模块12,还可用于在所述检测所述无人机的开关状态之后,并在所述控制对所述无人机的模式进行更改之前,当检测到所述无人机处于开机状态时,控制所述无人机关机;当检测到所述无人机处于关机状态时,控制所述无人机开机。Further optionally, the control module 12 is further configured to: after detecting the switch state of the drone, and before detecting the change of the mode of the drone, when detecting the When the drone is in the power-on state, the unmanned computer is controlled; when the drone is detected to be in the power-off state, the drone is controlled to be turned on.
在本发明实施例中,可通过检测对设置于无人机上的预设按键的连续点击事件,统计得到该连续点击事件包括的点击次数,从而能够在确定该点击次数满足所述模式更改条件时,自动地、智能地控制更改无人机的模式,从而实现了通过机身按键来进行无人机模式的控制,而无需依赖外部器件,这就提升了无人机的模式选择效率。In the embodiment of the present invention, the number of clicks included in the continuous click event can be statistically obtained by detecting a continuous click event of the preset button set on the drone, so that when the number of clicks is determined to satisfy the mode change condition Automatically and intelligently control the mode of changing the drone, thereby realizing the control of the drone mode through the body button without relying on external devices, which improves the mode selection efficiency of the drone.
本发明实施例还提供了一种计算机存储介质,该计算机存储介质中存储有程序指令,该计算机存储介质中存储有程序指令,所述程序执行时可包括如图1至图5对应实施例的模式控制方法的部分或全部步骤。The embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores program instructions, where the computer storage medium stores program instructions, and the program execution may include the corresponding embodiments of FIG. 1 to FIG. Part or all of the steps of the mode control method.
再请参见图7,图7是本发明实施例提供的一种无人机的结构示意图,本发明实施例中的所述无人机1可包括:通信接口300、存储器200和处理器100,所述处理器100分别与所述通信接口300及所述存储器200连接。进一步地,本发明实施例的所述无人机1还可包括机身、可相对机身抬起或下降的机臂(也即机臂可变形)、设置于机臂上的旋翼、供电电源、起落架等机身部件,此处不赘述。该无人机可以为无人机(unmanned aerial vehicle,简称UAV),其可由用户远程遥控控制,以执行特殊任务。例如,该UAV上可以挂载拍摄设备,通过拍摄设备,用户可以实现对飞行区域进行监控,从而可有效应用于抢险救灾、地质监测等场景。UAV上还可以挂载包括用于容纳农药、水等混合液体的箱体以及喷洒机构构成的喷洒装置,从而应用在农业领域。此外,该UAV还可挂载雷达装置、红外装置等,在军事领域还可以包括火力系统等。Referring to FIG. 7, FIG. 7 is a schematic structural diagram of a UAV according to an embodiment of the present invention. The UAV 1 in the embodiment of the present invention may include: a communication interface 300, a memory 200, and a processor 100. The processor 100 is connected to the communication interface 300 and the memory 200, respectively. Further, the drone 1 of the embodiment of the present invention may further include a body, an arm that can be raised or lowered relative to the body (ie, the arm can be deformed), a rotor disposed on the arm, and a power supply. Body parts such as landing gear, etc., are not described here. The drone can be an unmanned aerial vehicle (UAV) that can be remotely controlled by a user to perform special tasks. For example, the UAV can be mounted with a shooting device. Through the shooting device, the user can monitor the flight area, which can be effectively applied to disaster relief, geological monitoring and the like. The UAV can also be mounted on a container including a tank for containing a mixed liquid of pesticides, water, and a spray mechanism, and is applied to the agricultural field. In addition, the UAV can also be equipped with a radar device, an infrared device, etc., and may also include a firepower system in the military field.
所述通信接口300可包括标准的各种按键、触摸屏、摄像头、扬声器等, 还可以包括有线接口、无线接口等。该通信接口300还可与地面端的遥控器相连,用于接收来自地面端的数据。基于该通信接口300,可触发对无人机的飞行控制指令,从而实现对无人机的控制。The communication interface 300 can include various standard buttons, a touch screen, a camera, a speaker, and the like. It may also include a wired interface, a wireless interface, and the like. The communication interface 300 can also be coupled to a remote control at the ground end for receiving data from the ground end. Based on the communication interface 300, flight control commands to the drone can be triggered to achieve control of the drone.
所述存储器200可以包括易失性存储器(volatile memory),例如随机存取存储器(random-access memory,简称RAM);存储器200也可以包括非易失性存储器(non-volatile memory),例如快闪存储器(flash memory)等;存储器200还可以包括上述种类的存储器的组合。The memory 200 may include a volatile memory such as a random-access memory (RAM); the memory 200 may also include a non-volatile memory such as a flash. A flash memory or the like; the memory 200 may further include a combination of the above types of memories.
所述处理器100可以为一个中央处理器(central processing unit,简称CPU)。所述处理器还可以进一步包括硬件芯片。硬件芯片可以是专用集成电路(application-specific integrated circuit,简称ASIC),可编程逻辑器件(programmable logic device,简称PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,简称CPLD),现场可编程逻辑门阵列(field-programmable gate array,简称FPGA)等。The processor 100 can be a central processing unit (CPU). The processor may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The PLD may be a complex programmable logic device (CPLD) or a field-programmable gate array (FPGA).
可选地,所述存储器200还用于存储程序指令。所述处理器100可以调用所述程序指令,实现如本申请图1至图5实施例中所示的模式控制方法。Optionally, the memory 200 is further configured to store program instructions. The processor 100 can invoke the program instructions to implement a mode control method as shown in the embodiments of FIGS. 1 through 5 of the present application.
具体的,所述处理器100可调用所述存储器200中存储的程序指令执行:Specifically, the processor 100 may invoke a program instruction stored in the memory 200 to execute:
通过所述通信接口300检测对设置于无人机上的预设按键的连续点击事件,并统计所述连续点击事件包括的点击次数;Detecting a continuous click event of a preset button set on the drone through the communication interface 300, and counting the number of clicks included in the continuous click event;
当所述点击次数满足预设的模式更改条件时,控制对所述无人机的模式进行更改。When the number of clicks satisfies a preset mode change condition, the control changes the mode of the drone.
可选地,所述处理器100还执行以下步骤:Optionally, the processor 100 further performs the following steps:
当所述点击次数超过预设的数目阈值时,确定所述点击次数满足预设的模式更改条件。When the number of clicks exceeds a preset number threshold, it is determined that the number of clicks satisfies a preset mode change condition.
可选地,所述处理器100还执行以下步骤:Optionally, the processor 100 further performs the following steps:
获取所述连续点击事件包括的点击次数对应的持续时间;Obtaining a duration corresponding to the number of clicks included in the continuous click event;
当所述持续时间低于预设的第一时间阈值时,确定所述点击次数满足预设的模式更改条件。When the duration is lower than a preset first time threshold, it is determined that the number of clicks satisfies a preset mode change condition.
可选地,所述处理器100还执行以下步骤:Optionally, the processor 100 further performs the following steps:
获取所述连续点击事件中每两次相邻点击操作之间的时间间隔; Obtaining a time interval between each two adjacent click operations in the continuous click event;
当任两次相邻点击操作之间的时间间隔均低于预设的第二时间阈值时,确定所述点击次数满足预设的模式更改条件。When the time interval between any two adjacent click operations is lower than a preset second time threshold, it is determined that the number of clicks satisfies a preset mode change condition.
进一步可选地,所述处理器100在执行所述检测对设置于无人机上的预设按键的连续点击事件时,具体执行以下步骤:Further, optionally, the processor 100 performs the following steps when performing the detecting a continuous click event on a preset button set on the drone:
通过所述通信接口300接收用户点击对设置于无人机上的预设按键触发的控制指令;Receiving, by the communication interface 300, a control command triggered by the user to click on a preset button set on the drone;
响应所述控制指令,检测接收到所述控制指令后的预设时间范围内是否存在对所述预设按键的连续点击事件。In response to the control instruction, detecting whether there is a continuous click event for the preset button within a preset time range after receiving the control command.
进一步可选地,所述处理器100在执行所述检测接收到所述控制指令后的预设时间范围内是否存在对所述预设按键的连续点击事件时,具体执行以下步骤:Further, optionally, when the processor 100 performs a continuous click event on the preset button within a preset time range after detecting the receiving the control command, performing the following steps:
检测所述无人机的开关状态,所述开关状态包括开机状态和关机状态;Detecting a switch state of the drone, the switch state including a power on state and a power off state;
当检测到所述无人机处于开机状态时,检测预设的与所述开机状态对应的第一时间窗内是否存在对所述预设按键的连续点击事件;When detecting that the drone is in a power-on state, detecting whether there is a continuous click event for the preset button in a preset first time window corresponding to the power-on state;
当检测到所述无人机处于关机状态时,检测预设的与所述关机状态对应的第二时间窗内是否存在对所述预设按键的连续点击事件。When it is detected that the drone is in a shutdown state, detecting whether there is a continuous click event for the preset button in a second time window corresponding to the shutdown state.
进一步可选地,所述处理器100在执行所述控制对所述无人机的模式进行更改时,具体执行以下步骤:Further optionally, when the processor 100 performs the control to change the mode of the drone, the processor 100 specifically performs the following steps:
检测所述无人机的当前模式是否为打包模式;Detecting whether the current mode of the drone is a packed mode;
当所述无人机的当前模式为打包模式时,控制所述无人机退出所述打包模式;Controlling the drone to exit the packaging mode when the current mode of the drone is a packaging mode;
当所述无人机的当前模式不为打包模式时,控制所述无人机进入所述打包模式。When the current mode of the drone is not in the packaging mode, the drone is controlled to enter the packaging mode.
可选地,该打包模式可用于控制收叠无人机的机身部件,该机身部件可包括起落架、机臂、旋翼中的至少一项。Optionally, the packaging mode can be used to control a fuselage component of the folding drone, the fuselage component can include at least one of a landing gear, an arm, and a rotor.
进一步可选地,所述处理器100在执行所述检测所述无人机的开关状态之后,并在执行所述控制对所述无人机的模式进行更改之前,还执行以下步骤:Further optionally, the processor 100 performs the following steps after performing the detecting the switch state of the drone and before performing the control to change the mode of the drone:
当检测到所述无人机处于开机状态时,控制所述无人机关机;Controlling the unmanned office machine when detecting that the drone is in a power on state;
当检测到所述无人机处于关机状态时,控制所述无人机开机。 When the drone is detected to be in a shutdown state, the drone is controlled to be turned on.
进一步可选地,所述预设按键可以为设置于所述无人机上的电源按键。Further optionally, the preset button may be a power button disposed on the drone.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the details that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
在本发明所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be another division manner, for example, multiple modules or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or module, and may be electrical, mechanical or otherwise.
所述该作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated. The components displayed as modules may or may not be physical modules, that is, may be located in one place, or may be distributed to multiple network modules. . Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of hardware plus software function modules.
上述以软件功能模块的形式实现的集成的模块,可以存储在一个计算机可读取存储介质中。上述软件功能模块存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-described integrated modules implemented in the form of software function modules can be stored in a computer readable storage medium. The software function modules described above are stored in a storage medium and include instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform the methods of the various embodiments of the present invention. Part of the steps. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program code. .
本领域技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的装置的具体工作过程,可以参考前述 方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of each functional module described above is exemplified. In practical applications, the above function assignment can be completed by different functional modules as needed, that is, the device is installed. The internal structure is divided into different functional modules to perform all or part of the functions described above. For the specific working process of the device described above, reference may be made to the foregoing Corresponding processes in the method embodiments are not described herein again.
最后应说明的是:以上各实施例仅用以说明本公开的技术方案,而非对其限制;尽管参照前述各实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本公开各实施例技术方案的范围。 It should be noted that the above embodiments are merely illustrative of the technical solutions of the present disclosure, and are not intended to be limiting; although the present disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present disclosure. range.

Claims (30)

  1. 一种模式控制方法,其特征在于,包括:A mode control method, comprising:
    检测对设置于无人机上的预设按键的连续点击事件,并统计所述连续点击事件包括的点击次数;Detecting a continuous click event of a preset button set on the drone, and counting the number of clicks included in the continuous click event;
    当所述点击次数满足预设的模式更改条件时,控制对所述无人机的模式进行更改。When the number of clicks satisfies a preset mode change condition, the control changes the mode of the drone.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    当所述点击次数超过预设的数目阈值时,确定所述点击次数满足预设的模式更改条件。When the number of clicks exceeds a preset number threshold, it is determined that the number of clicks satisfies a preset mode change condition.
  3. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 2, wherein the method further comprises:
    获取所述连续点击事件包括的点击次数对应的持续时间;Obtaining a duration corresponding to the number of clicks included in the continuous click event;
    当所述持续时间低于预设的第一时间阈值时,确定所述点击次数满足预设的模式更改条件。When the duration is lower than a preset first time threshold, it is determined that the number of clicks satisfies a preset mode change condition.
  4. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 2, wherein the method further comprises:
    获取所述连续点击事件中每两次相邻点击操作之间的时间间隔;Obtaining a time interval between each two adjacent click operations in the continuous click event;
    当任两次相邻点击操作之间的时间间隔均低于预设的第二时间阈值时,确定所述点击次数满足预设的模式更改条件。When the time interval between any two adjacent click operations is lower than a preset second time threshold, it is determined that the number of clicks satisfies a preset mode change condition.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述检测对设置于无人机上的预设按键的连续点击事件,包括:The method according to any one of claims 1 to 4, wherein the detecting a continuous click event on a preset button provided on the drone includes:
    接收用户点击对设置于无人机上的预设按键触发的控制指令;Receiving a control command triggered by a user to click on a preset button set on the drone;
    响应所述控制指令,检测接收到所述控制指令后的预设时间范围内是否存在对所述预设按键的连续点击事件。In response to the control instruction, detecting whether there is a continuous click event for the preset button within a preset time range after receiving the control command.
  6. 根据权利要求5所述的方法,其特征在于,所述检测接收到所述控制 指令后的预设时间范围内是否存在对所述预设按键的连续点击事件,包括:The method of claim 5 wherein said detecting receives said control Whether there are consecutive click events for the preset button within the preset time range after the command, including:
    检测所述无人机的开关状态,所述开关状态包括开机状态和关机状态;Detecting a switch state of the drone, the switch state including a power on state and a power off state;
    当检测到所述无人机处于开机状态时,检测预设的与所述开机状态对应的第一时间窗内是否存在对所述预设按键的连续点击事件;When detecting that the drone is in a power-on state, detecting whether there is a continuous click event for the preset button in a preset first time window corresponding to the power-on state;
    当检测到所述无人机处于关机状态时,检测预设的与所述关机状态对应的第二时间窗内是否存在对所述预设按键的连续点击事件。When it is detected that the drone is in a shutdown state, detecting whether there is a continuous click event for the preset button in a second time window corresponding to the shutdown state.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述控制对所述无人机的模式进行更改,包括:The method according to any one of claims 1 to 6, wherein the controlling changes to the mode of the drone include:
    检测所述无人机的当前模式是否为打包模式;Detecting whether the current mode of the drone is a packed mode;
    当所述无人机的当前模式为打包模式时,控制所述无人机退出所述打包模式;Controlling the drone to exit the packaging mode when the current mode of the drone is a packaging mode;
    当所述无人机的当前模式不为打包模式时,控制所述无人机进入所述打包模式。When the current mode of the drone is not in the packaging mode, the drone is controlled to enter the packaging mode.
  8. 根据权利要求7所述的方法,其特征在于,所述打包模式用于控制收叠无人机的机身部件,所述机身部件包括起落架、机臂、旋翼中的至少一项。The method of claim 7, wherein the packing mode is for controlling a fuselage component of the folding drone, the fuselage component comprising at least one of a landing gear, an arm, and a rotor.
  9. 根据权利要求6所述的方法,其特征在于,在所述检测所述无人机的开关状态之后,并在所述控制对所述无人机的模式进行更改之前,所述方法还包括:The method according to claim 6, wherein after the detecting the switch state of the drone, and before the controlling changes the mode of the drone, the method further comprises:
    当检测到所述无人机处于开机状态时,控制所述无人机关机;Controlling the unmanned office machine when detecting that the drone is in a power on state;
    当检测到所述无人机处于关机状态时,控制所述无人机开机。When the drone is detected to be in a shutdown state, the drone is controlled to be turned on.
  10. 根据权利要求1-9任一项所述的方法,其特征在于,所述预设按键为设置于所述无人机上的电源按键。The method according to any one of claims 1 to 9, wherein the preset button is a power button provided on the drone.
  11. 一种模式控制装置,其特征在于,包括:A mode control device, comprising:
    检测模块,用于检测对设置于无人机上的预设按键的连续点击事件,并统 计所述连续点击事件包括的点击次数;a detection module for detecting continuous click events on preset buttons set on the drone Counting the number of clicks included in the continuous click event;
    控制模块,用于在所述点击次数满足预设的模式更改条件时,控制对所述无人机的模式进行更改。And a control module, configured to control, when the number of clicks meets a preset mode change condition, to change a mode of the drone.
  12. 根据权利要求11所述的装置,其特征在于,The device of claim 11 wherein:
    所述控制模块,还用于当所述点击次数超过预设的数目阈值时,确定所述点击次数满足预设的模式更改条件。The control module is further configured to: when the number of clicks exceeds a preset number threshold, determine that the number of clicks meets a preset mode change condition.
  13. 根据权利要求11或12所述的装置,其特征在于,Device according to claim 11 or 12, characterized in that
    所述控制模块,还用于获取所述连续点击事件包括的点击次数对应的持续时间;当所述持续时间低于预设的第一时间阈值时,确定所述点击次数满足预设的模式更改条件。The control module is further configured to acquire a duration corresponding to the number of clicks included in the continuous click event; and when the duration is lower than a preset first time threshold, determining that the click times meet a preset mode change condition.
  14. 根据权利要求11或12所述的装置,其特征在于,Device according to claim 11 or 12, characterized in that
    所述控制模块,还用于获取所述连续点击事件中每两次相邻点击操作之间的时间间隔;当任两次相邻点击操作之间的时间间隔均低于预设的第二时间阈值时,确定所述点击次数满足预设的模式更改条件。The control module is further configured to acquire a time interval between each two adjacent click operations in the continuous click event; when the interval between any two adjacent click operations is lower than a preset second time At the threshold, it is determined that the number of clicks satisfies a preset mode change condition.
  15. 根据权利要求11-14任一项所述的装置,其特征在于,所述检测模块在检测对设置于无人机上的预设按键的连续点击事件时具体用于:The device according to any one of claims 11 to 14, wherein the detecting module is specifically configured to: when detecting a continuous click event of a preset button provided on the drone:
    接收用户点击对设置于无人机上的预设按键触发的控制指令;Receiving a control command triggered by a user to click on a preset button set on the drone;
    响应所述控制指令,检测接收到所述控制指令后的预设时间范围内是否存在对所述预设按键的连续点击事件。In response to the control instruction, detecting whether there is a continuous click event for the preset button within a preset time range after receiving the control command.
  16. 根据权利要求15所述的装置,其特征在于,所述检测模块在检测接收到所述控制指令后的预设时间范围内是否存在对所述预设按键的连续点击事件时具体用于:The device according to claim 15, wherein the detecting module is specifically configured to: when detecting a continuous click event of the preset button within a preset time range after receiving the control command:
    检测所述无人机的开关状态,所述开关状态包括开机状态和关机状态;Detecting a switch state of the drone, the switch state including a power on state and a power off state;
    当检测到所述无人机处于开机状态时,检测预设的与所述开机状态对应的 第一时间窗内是否存在对所述预设按键的连续点击事件;When it is detected that the drone is in a power on state, detecting a preset corresponding to the boot state Whether there is a continuous click event for the preset button in the first time window;
    当检测到所述无人机处于关机状态时,检测预设的与所述关机状态对应的第二时间窗内是否存在对所述预设按键的连续点击事件。When it is detected that the drone is in a shutdown state, detecting whether there is a continuous click event for the preset button in a second time window corresponding to the shutdown state.
  17. 根据权利要求11-16任一项所述的装置,其特征在于,Apparatus according to any of claims 11-16, wherein
    所述控制模块,具体用于在所述点击次数满足所述模式更改条件时,检测所述无人机的当前模式是否为打包模式;当所述无人机的当前模式为打包模式时,控制所述无人机退出所述打包模式;当所述无人机的当前模式不为打包模式时,控制所述无人机进入所述打包模式。The control module is configured to: when the number of clicks meets the mode change condition, detect whether a current mode of the drone is a packed mode; and when a current mode of the drone is a packed mode, control The drone exits the packing mode; when the current mode of the drone is not the packing mode, the drone is controlled to enter the packing mode.
  18. 根据权利要求17所述的装置,其特征在于,所述打包模式用于控制收叠无人机的机身部件,所述机身部件包括起落架、机臂、旋翼中的至少一项。The apparatus according to claim 17, wherein said packing mode is for controlling a fuselage component of a folding drone, said fuselage component comprising at least one of a landing gear, an arm, and a rotor.
  19. 根据权利要求16所述的装置,其特征在于,The device of claim 16 wherein:
    所述控制模块,还用于在所述检测所述无人机的开关状态之后,并在所述控制对所述无人机的模式进行更改之前,当检测到所述无人机处于开机状态时,控制所述无人机关机;当检测到所述无人机处于关机状态时,控制所述无人机开机。The control module is further configured to: after detecting the switch state of the drone, and before detecting that the mode of the drone is changed, when detecting that the drone is powered on And controlling the unmanned aerial vehicle; when detecting that the drone is in a shutdown state, controlling the drone to be powered on.
  20. 根据权利要求11-19任一项所述的装置,其特征在于,所述预设按键为设置于所述无人机上的电源按键。The device according to any one of claims 11 to 19, wherein the preset button is a power button provided on the drone.
  21. 一种无人机,其特征在于,包括:存储器、处理器和通信接口,所述处理器分别与所述存储器和所述通信接口连接;其中,An unmanned aerial vehicle, comprising: a memory, a processor, and a communication interface, wherein the processor is respectively connected to the memory and the communication interface; wherein
    所述存储器,用于存储程序指令;The memory is configured to store program instructions;
    所述处理器,用于调用所述存储器中存储的程序指令执行:The processor is configured to invoke a program instruction stored in the memory to execute:
    通过所述通信接口检测对设置于无人机上的预设按键的连续点击事件,并统计所述连续点击事件包括的点击次数;Detecting a continuous click event of a preset button set on the drone through the communication interface, and counting the number of clicks included in the continuous click event;
    当所述点击次数满足预设的模式更改条件时,控制对所述无人机的模式进 行更改。Controlling the mode of the drone when the number of clicks satisfies a preset mode change condition Line changes.
  22. 根据权利要求21所述的无人机,其特征在于,所述处理器在还执行以下步骤:The drone according to claim 21, wherein said processor further performs the following steps:
    当所述点击次数超过预设的数目阈值时,确定所述点击次数满足预设的模式更改条件。When the number of clicks exceeds a preset number threshold, it is determined that the number of clicks satisfies a preset mode change condition.
  23. 根据权利要求21或22所述的无人机,其特征在于,所述处理器还执行以下步骤:The drone according to claim 21 or 22, wherein the processor further performs the following steps:
    获取所述连续点击事件包括的点击次数对应的持续时间;Obtaining a duration corresponding to the number of clicks included in the continuous click event;
    当所述持续时间低于预设的第一时间阈值时,确定所述点击次数满足预设的模式更改条件。When the duration is lower than a preset first time threshold, it is determined that the number of clicks satisfies a preset mode change condition.
  24. 根据权利要求21或22所述的无人机,其特征在于,所述处理器还执行以下步骤:The drone according to claim 21 or 22, wherein the processor further performs the following steps:
    获取所述连续点击事件中每两次相邻点击操作之间的时间间隔;Obtaining a time interval between each two adjacent click operations in the continuous click event;
    当任两次相邻点击操作之间的时间间隔均低于预设的第二时间阈值时,确定所述点击次数满足预设的模式更改条件。When the time interval between any two adjacent click operations is lower than a preset second time threshold, it is determined that the number of clicks satisfies a preset mode change condition.
  25. 根据权利要求21-24任一项所述的无人机,其特征在于,所述处理器在执行所述检测对设置于无人机上的预设按键的连续点击事件时,具体执行以下步骤:The unmanned aerial vehicle according to any one of claims 21 to 24, wherein the processor performs the following steps when performing the detecting of a continuous click event of a preset button provided on the drone:
    通过所述通信接口接收用户点击对设置于无人机上的预设按键触发的控制指令;Receiving, by the communication interface, a control instruction triggered by a user to click on a preset button set on the drone;
    响应所述控制指令,检测接收到所述控制指令后的预设时间范围内是否存在对所述预设按键的连续点击事件。In response to the control instruction, detecting whether there is a continuous click event for the preset button within a preset time range after receiving the control command.
  26. 根据权利要求25所述的无人机,其特征在于,所述处理器在执行所述检测接收到所述控制指令后的预设时间范围内是否存在对所述预设按键的 连续点击事件时,具体执行以下步骤:The drone according to claim 25, wherein the processor has the presence of the preset button within a preset time range after detecting the detection of receiving the control command When you continuously click on an event, perform the following steps:
    检测所述无人机的开关状态,所述开关状态包括开机状态和关机状态;Detecting a switch state of the drone, the switch state including a power on state and a power off state;
    当检测到所述无人机处于开机状态时,检测预设的与所述开机状态对应的第一时间窗内是否存在对所述预设按键的连续点击事件;When detecting that the drone is in a power-on state, detecting whether there is a continuous click event for the preset button in a preset first time window corresponding to the power-on state;
    当检测到所述无人机处于关机状态时,检测预设的与所述关机状态对应的第二时间窗内是否存在对所述预设按键的连续点击事件。When it is detected that the drone is in a shutdown state, detecting whether there is a continuous click event for the preset button in a second time window corresponding to the shutdown state.
  27. 根据权利要求21-26任一项所述的无人机,其特征在于,所述处理器在执行所述控制对所述无人机的模式进行更改时,具体执行以下步骤:The drone according to any one of claims 21 to 26, wherein the processor performs the following steps when performing the control to change the mode of the drone:
    检测所述无人机的当前模式是否为打包模式;Detecting whether the current mode of the drone is a packed mode;
    当所述无人机的当前模式为打包模式时,控制所述无人机退出所述打包模式;Controlling the drone to exit the packaging mode when the current mode of the drone is a packaging mode;
    当所述无人机的当前模式不为打包模式时,控制所述无人机进入所述打包模式。When the current mode of the drone is not in the packaging mode, the drone is controlled to enter the packaging mode.
  28. 根据权利要求27所述的无人机,其特征在于,所述打包模式用于控制收叠无人机的机身部件,所述机身部件包括起落架、机臂、旋翼中的至少一项。The drone according to claim 27, wherein said packing mode is for controlling a fuselage component of the folding drone, said fuselage component comprising at least one of a landing gear, an arm, and a rotor .
  29. 根据权利要求26所述的无人机,其特征在于,所述处理器在执行所述检测所述无人机的开关状态之后,并在执行所述控制对所述无人机的模式进行更改之前,还执行以下步骤:The drone according to claim 26, wherein said processor changes said mode of said drone after said detecting said switch state of said drone and performing said control Previously, the following steps were also performed:
    当检测到所述无人机处于开机状态时,控制所述无人机关机;Controlling the unmanned office machine when detecting that the drone is in a power on state;
    当检测到所述无人机处于关机状态时,控制所述无人机开机。When the drone is detected to be in a shutdown state, the drone is controlled to be turned on.
  30. 根据权利要求21-29任一项所述的无人机,其特征在于,所述预设按键为设置于所述无人机上的电源按键。 The drone according to any one of claims 21 to 29, wherein the preset button is a power button provided on the drone.
PCT/CN2016/103221 2016-10-25 2016-10-25 Mode control method and device, and unmanned aerial vehicle WO2018076171A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201680013018.2A CN107438827A (en) 2016-10-25 2016-10-25 Mode control method, device and unmanned plane
PCT/CN2016/103221 WO2018076171A1 (en) 2016-10-25 2016-10-25 Mode control method and device, and unmanned aerial vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/103221 WO2018076171A1 (en) 2016-10-25 2016-10-25 Mode control method and device, and unmanned aerial vehicle

Publications (1)

Publication Number Publication Date
WO2018076171A1 true WO2018076171A1 (en) 2018-05-03

Family

ID=60458679

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/103221 WO2018076171A1 (en) 2016-10-25 2016-10-25 Mode control method and device, and unmanned aerial vehicle

Country Status (2)

Country Link
CN (1) CN107438827A (en)
WO (1) WO2018076171A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110851070A (en) * 2019-11-12 2020-02-28 新石器慧通(北京)科技有限公司 Parking method and device, unmanned vehicle and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103245032A (en) * 2012-02-08 2013-08-14 珠海格力电器股份有限公司 Air conditioner and control method and device thereof
US20130253733A1 (en) * 2012-03-26 2013-09-26 Hon Hai Precision Industry Co., Ltd. Computing device and method for controlling unmanned aerial vehicle in flight space
CN103558990A (en) * 2013-11-05 2014-02-05 广东欧珀移动通信有限公司 Method and system for rapidly opening or operating applications on mobile terminal
CN105094533A (en) * 2015-06-30 2015-11-25 努比亚技术有限公司 Method and mobile terminal for entering single-hand mode based on multi-functional key
CN105677473A (en) * 2016-02-29 2016-06-15 北京小米移动软件有限公司 Method and device for switching application program

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204998786U (en) * 2015-08-06 2016-01-27 广州极飞电子科技有限公司 Power module and unmanned aerial vehicle who has this power module
CN105129082B (en) * 2015-09-01 2018-07-27 湖南云顶智能科技有限公司 Propeller Folding device for unmanned plane
CN105388911B (en) * 2015-12-16 2018-08-17 深圳市中航佳智能科技有限公司 A kind of UAV Intelligent control takeoff method
CN105678990A (en) * 2015-12-31 2016-06-15 赵旭 Remote controller, and detection and control method thereof
CN111736630B (en) * 2016-07-29 2024-01-12 深圳市大疆创新科技有限公司 Unmanned aerial vehicle control method and device, storage medium and unmanned aerial vehicle

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103245032A (en) * 2012-02-08 2013-08-14 珠海格力电器股份有限公司 Air conditioner and control method and device thereof
US20130253733A1 (en) * 2012-03-26 2013-09-26 Hon Hai Precision Industry Co., Ltd. Computing device and method for controlling unmanned aerial vehicle in flight space
CN103558990A (en) * 2013-11-05 2014-02-05 广东欧珀移动通信有限公司 Method and system for rapidly opening or operating applications on mobile terminal
CN105094533A (en) * 2015-06-30 2015-11-25 努比亚技术有限公司 Method and mobile terminal for entering single-hand mode based on multi-functional key
CN105677473A (en) * 2016-02-29 2016-06-15 北京小米移动软件有限公司 Method and device for switching application program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110851070A (en) * 2019-11-12 2020-02-28 新石器慧通(北京)科技有限公司 Parking method and device, unmanned vehicle and storage medium

Also Published As

Publication number Publication date
CN107438827A (en) 2017-12-05

Similar Documents

Publication Publication Date Title
US10156854B2 (en) UAV and UAV landing control device and method
US20200265398A1 (en) Point of sale modular processor system
Sruthy et al. WiFi enabled home security surveillance system using Raspberry Pi and IoT module
US11310439B2 (en) Privacy device and method for use with network enabled cameras
CN106292799B (en) Unmanned plane, remote control and its control method
CN106325297B (en) A kind of control method and control terminal of aircraft
CN105373015A (en) Energy saving controller based on motion identification
CN107078358B (en) Battery temperature detection method, control system, battery and unmanned vehicle
US20180329713A1 (en) Fitness sensor with low power attributes in sensor hub
CN106647798B (en) A kind of take off control method and the control device that takes off of aircraft
CN104731321A (en) Multi-device interaction method and system based on gesture recognition
US20230285860A1 (en) Virtual character control method and apparatus, storage medium and electronic device
Kumar WSN based automatic irrigation and security system using Raspberry Pi Board
WO2018076171A1 (en) Mode control method and device, and unmanned aerial vehicle
Verma et al. Development of an effective system for remote monitoring of banana ripening process
DE102016100697B4 (en) Mobile device and method for operating a mobile device
CN109074096A (en) The control method and relevant device of a kind of unmanned plane, controlling terminal
WO2018018632A1 (en) Unmanned aerial vehicle control method, device, storage medium and unmanned aerial vehicle
CN101833480B (en) Method for realizing watchdog by using timer and resetting pin of singlechip
CN106375966B (en) Message treatment method and intelligent terminal
CN107624096B (en) Function control method and device based on aircraft
CN109192128A (en) Myopia prevention display device and method based on cloud control
WO2020087334A1 (en) Simulation method for unmanned aerial vehicle, terminal device, and computer readable storage medium
CN207852055U (en) A kind of correcting sitting posture control device
JP6938251B2 (en) Field management system, field management method and management machine

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16920402

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16920402

Country of ref document: EP

Kind code of ref document: A1