WO2020233607A1 - Unmanned aerial vehicle control method and apparatus and computer-readable storage medium - Google Patents

Unmanned aerial vehicle control method and apparatus and computer-readable storage medium Download PDF

Info

Publication number
WO2020233607A1
WO2020233607A1 PCT/CN2020/091345 CN2020091345W WO2020233607A1 WO 2020233607 A1 WO2020233607 A1 WO 2020233607A1 CN 2020091345 W CN2020091345 W CN 2020091345W WO 2020233607 A1 WO2020233607 A1 WO 2020233607A1
Authority
WO
WIPO (PCT)
Prior art keywords
drone
nose
orientation
physical
control terminal
Prior art date
Application number
PCT/CN2020/091345
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 深圳市道通智能航空技术有限公司
Publication of WO2020233607A1 publication Critical patent/WO2020233607A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/08Control of attitude, i.e. control of roll, pitch, or yaw
    • G05D1/0808Control of attitude, i.e. control of roll, pitch, or yaw specially adapted for aircraft

Definitions

  • This application relates to, but is not limited to, the field of intelligent control technology, and in particular to a drone control method and device, and a computer-readable storage medium.
  • Unmanned Aerial Vehicle which is an unmanned aircraft that uses radio remote control equipment and self-provided programs to control the terminal. It involves sensor technology, communication technology, information processing technology, intelligent control technology and power propulsion technology, etc. It is a product of high technology content in the information age.
  • the embodiments of the present invention provide a drone control method and device, and a computer-readable storage medium, which can improve flight safety and user ease of use.
  • the embodiment of the present invention provides a drone control method, including:
  • a virtual machine head is generated, wherein the virtual machine head faces away from the control terminal and is located between the drone and the control terminal.
  • the direction of the drone is controlled according to the direction of the virtual machine head and the control instruction of the control terminal.
  • the detecting whether the drift speed of the drone at this time is greater than or equal to a preset drift speed threshold includes:
  • the vision sensor of the drone detects whether the drift speed of the drone at this time is greater than or equal to the preset drift speed threshold.
  • the generating the virtual nose when the drift speed of the drone is greater than or equal to the preset drift speed threshold includes:
  • the orientation of the virtual nose is determined to generate the virtual nose.
  • the determining the orientation of the physical nose of the drone includes:
  • the orientation of the physical nose of the drone is determined by the inertial measurement device of the drone.
  • the determining the orientation of the physical nose of the drone and determining the orientation of the virtual nose according to the orientation of the physical nose of the drone includes:
  • the orientation of the virtual nose is the orientation of the physical nose of the drone.
  • the determining the orientation of the physical nose of the drone and determining the orientation of the virtual nose according to the orientation of the physical nose of the drone includes:
  • the determining the orientation of the physical nose of the drone and determining the orientation of the virtual nose according to the orientation of the physical nose of the drone includes:
  • the determining the orientation of the physical nose of the drone, and determining the orientation of the virtual nose according to the orientation of the physical nose of the drone further includes:
  • the orientation of the virtual nose is the orientation of the physical nose of the drone.
  • the embodiment of the present invention provides a computer-readable storage medium having one or more programs stored on the computer-readable storage medium, and the one or more programs may be executed by one or more processors to realize The drone control method described in any one of the above.
  • the embodiment of the present invention provides a drone control device, including:
  • the determining module is used to determine that the drone passively enters the attitude mode, wherein when the drone enters the attitude mode, the drone is in a hovering self-check state;
  • the detection module is used to detect whether the drift speed of the drone at this time is greater than or equal to a preset drift speed threshold
  • the virtual nose generating module is used to generate a virtual nose when the drift speed of the drone is greater than or equal to the preset drift speed threshold, wherein the virtual nose is facing away from the control terminal, and Located on the connection between the drone and the control terminal;
  • the control module is used to control the direction of the drone according to the direction of the virtual machine head and the control instruction of the control terminal.
  • the detection module is configured to detect whether the drift speed of the drone at this time is greater than or equal to the preset drift speed threshold through the vision sensor of the drone.
  • the virtual machine head generation module is used to:
  • the orientation of the virtual nose is determined to generate the virtual nose.
  • the virtual nose generating module is used to determine the orientation of the physical nose of the drone through the inertial measurement device of the drone.
  • the virtual machine head generation module is specifically configured to:
  • the orientation of the virtual nose is the orientation of the physical nose of the drone.
  • the virtual machine head generation module is specifically configured to:
  • the virtual machine head generation module is specifically configured to:
  • the orientation of the virtual nose is the orientation of the physical nose of the drone.
  • the embodiment of the present invention provides an unmanned aerial vehicle, which is characterized in that it includes:
  • An arm connected to the fuselage
  • a power device arranged on the arm, the power device is used to provide power for the drone to fly;
  • the flight control chip is located in the fuselage
  • the flight control chip is used to execute the drone control method described in any one of the above.
  • the UAV control method and device, and computer-readable storage medium provided by the embodiments of the present invention generate a virtual machine head parallel when the UAV passively switches to the attitude mode and the drift speed of the UAV is greater than or equal to the drift speed threshold.
  • the target flight direction of the drone is manipulated according to the orientation of the virtual nose, which avoids that the controller cannot take into account the orientation of the physical nose in emergency avoidance situations, and the wrong control commands given when subconsciously using their own sense of direction to avoid danger lead to failure.
  • the situation of man-machine bombing improves flight safety and user ease of use.
  • Figure 1 is a three-dimensional structural diagram of an unmanned aerial vehicle according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of a method for controlling drones according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a process of generating a virtual machine head according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a situation where the physical nose of the drone according to an embodiment of the present invention is located on the connection between the drone and the control terminal, and the physical nose of the drone is facing away from the control terminal;
  • FIG. 5 is a schematic diagram of a situation where the physical nose of the drone according to an embodiment of the present invention is located on the connection between the drone and the control terminal, and the physical nose of the drone faces the control terminal;
  • Figure 6 shows that the orientation of the physical nose of the drone according to the embodiment of the present invention is not on the connection between the drone and the control terminal, and the orientation of the physical nose of the drone is in line with the connection between the drone and the control terminal.
  • Figure 7 shows that the orientation of the physical nose of the drone according to an embodiment of the present invention is not on the connection between the drone and the control terminal, and the orientation of the physical nose of the drone is in line with the connection between the drone and the control terminal.
  • Fig. 8 is a schematic structural diagram of a drone control device according to an embodiment of the present invention.
  • the embodiment of the present invention provides a four-rotor drone. Please refer to FIG. 1.
  • the drone 1000 includes a fuselage 200, four arms 300 extending from the fuselage 200, and are respectively installed on each arm 300.
  • the power unit 400 and the flight control chip (not shown in the figure) arranged on the fuselage 200.
  • the illustrated UAV 1000 is a four-rotor unmanned aerial vehicle, and the number of power units 400 is four.
  • the drone 1000 may be any other suitable type of unmanned aerial vehicle, such as a fixed-wing unmanned aerial vehicle.
  • the power plant 400 is applied to other types of unmanned aerial vehicles, the number of the power plant 400 can be changed according to actual needs, which is not limited in the present invention.
  • the arm 300 and the body 200 are fixedly connected.
  • the arm 300 and the body 200 are integrally formed.
  • the arm 300 may also be connected to the body 200 in a manner that can be expanded or folded relative to the body 200.
  • the arm 300 may be connected to the main body 200 through a rotating shaft mechanism, so that the arm 300 can be expanded or folded relative to the main body 200.
  • the power device 400 includes a driving device 40 and a propeller assembly 80 driven by the driving device 40.
  • the propeller assembly 80 is installed on the output shaft of the driving device 40.
  • the propeller assembly 80 is driven by the driving device 40. Rotate downward to generate the lift or thrust that makes the drone 1000 fly.
  • the driving device 40 may be any suitable type of motor, such as a brush motor, a brushless motor, a DC motor, a stepping motor, an AC induction motor, and so on.
  • the smart battery provides power for the drone, and the driving device 40 drives the propeller assembly 80 to rotate.
  • the drone 1000 may also include a pan/tilt (not shown), the pan/tilt is installed at the bottom of the fuselage 200, and the pan/tilt is used to carry a high-definition digital camera or other camera device to eliminate high-definition digital
  • the disturbance of the camera or other imaging devices ensures the clarity and stability of the video captured by the camera or other imaging devices.
  • the gimbal is set on the front or back of the drone. At this time, the left and right sides of the drone are blind spots. When novices control left and right in the blind spots, they are prone to danger.
  • Existing drone control terminals all use the orientation of the drone's physical nose as a reference to manipulate the target flight direction of the drone.
  • the operator may not be able to take into account the physical aircraft in emergency avoidance situations.
  • the orientation of the head In the embodiment provided by the present invention, by changing the orientation of the generated virtual nose to the orientation of the physical nose or the opposite direction to the orientation of the physical nose, the front and rear flight instructions of the existing drone control terminal can be simply executed. Translation is convenient for the operator to control in emergency situations.
  • the drone 1000 may further include a flight control chip (flight control chip), which is arranged on the fuselage 200.
  • the flight control chip senses the surrounding environment of the drone through various sensors and controls the flight of the drone.
  • the flight control chip may include a flight control module, and the flight control module may be a processing unit (processing unit), an application specific integrated circuit (ASIC) or a field programmable gate array (Field Programmable Gate Array, FPGA) .
  • the flight control module of the drone sends a throttle signal to the ESC, and the ESC receives the throttle signal, generates and sends to the motor for control
  • the motor performs control signals for starting and controlling the rotation speed of the motor.
  • the flight control chip periodically (or non-periodically) checks the quality of the GPS signal received by the drone and the motion control mode of the drone. When the GPS signal received by the drone is poor, it may cause the drone to passively enter the attitude mode. The so-called “passive” means that the drone enters the attitude mode without receiving a control command from the control terminal. It should be noted that the attitude mode of the UAV is different from the position mode. Attitude mode refers to a flight mode in which only the aircraft barometer, IMU and other sensors are used to maintain the flight altitude and basic attitude. Position mode (including GPS mode), in this mode, the drone can be positioned and altitude.
  • Attitude mode is suitable for flying environments with no GPS signal or poor GPS signal, because it does not enable the navigation system and only relies on the accelerator and gyroscope to control the aircraft attitude.
  • the attitude of the aircraft itself can remain stable. In actual operation, the drone will obviously drift and cannot hover, and the position of the drone needs to be corrected manually.
  • the drone control terminal for example, the drone remote control
  • the drone control terminal only stabilizes the attitude of the drone, and cannot control the position and flight speed.
  • the drone control terminal can ensure that the drone's attitude will not roll over on its own, but it cannot guarantee the speed and position changes. It has a certain initial speed and the speed changes constantly under the action of external forces. Gives an illusion of uncontrollable.
  • the drone In the absence of a lever, the drone will move horizontally. In a windy or narrow space environment, flying in attitude mode is more dangerous, which is also the main reason for many novices. There are many reasons for the unmanned aerial vehicle to passively switch to the attitude mode, including: poor GPS satellite signals, the vision sensor system cannot meet the positioning conditions, and the compass is severely interfered. In these cases, the UAV may passively switch to the attitude mode.
  • the drone control method and device and computer readable storage medium of this application are only for the drone passively switch to the attitude mode, that is, when the drone passively switches to the attitude mode, the drone will automatically Enter the hovering self-check state, and the drift speed of the drone is greater than or equal to the preset drift speed threshold for discussion.
  • a virtual nose facing the drone control terminal is generated, and the virtual nose The nose is a reference to manipulate the target flight direction of the UAV, so as to ensure that in an emergency, the manipulator can get the correct intentional response to the hazard avoidance command issued in his own direction when the direction of the physical nose is not taken into consideration.
  • the drone is flying in the position mode, and the drone is manually switched to the attitude mode to fly (some drones support manual switching to the attitude mode, but to prevent accidental touches, the factory default does not allow manual Switch to the attitude mode, you can make relevant settings in the control software of the drone control terminal), etc., all use the physical nose of the drone as a reference to manipulate the target flight direction of the drone, which is not the focus of the present invention. Content.
  • the vision sensor of the drone detects whether the drift speed of the drone at this time is greater than or equal to a preset drift speed threshold.
  • the preset drift speed threshold is mainly determined according to the error of the sensor and the actual demand. For example, if the sensor error is large, the preset drift speed threshold is correspondingly small, and at the same time, according to the actual demand, the program writer Determined according to actual debugging results.
  • a virtual machine head is generated, wherein the virtual machine head faces away from the control terminal and is located between the drone and the control terminal.
  • Fig. 3 shows a flowchart of a specific process of generating the virtual machine head.
  • the orientation of the virtual nose of the drone is determined based on the orientation of the physical nose of the drone, the orientation of the physical nose of the drone must first be determined.
  • the physical nose of the drone refers to the actual, physical nose of the drone.
  • the orientation of the physical nose of the drone is determined by the inertial measurement device of the drone.
  • the inertial measurement device includes a gyroscope and an accelerometer on the drone.
  • the heading angle data fusion module running inside the UAV provides heading estimation for the flight control system.
  • the estimation of the heading angle is mainly related to the sensor data of the built-in gyroscope and accelerometer of the drone.
  • the bad GPS signal mainly affects the position coordinates of the drone, and the estimation of the heading angle is weak. Therefore, the physical of the drone
  • the orientation judgment of the nose is accurate and reliable.
  • Judging the orientation of the physical nose of the drone includes: judging whether the orientation of the physical nose of the drone is located on the connection line between the drone and the control terminal.
  • connection between the drone and the control terminal refers to the connection between the position coordinates of the drone and the position coordinates of the control terminal.
  • the location coordinates may be GPS coordinates.
  • the location coordinates of the drone can also be located in other ways, such as base station positioning, WiFi AP positioning, and Bluetooth positioning (iBeacon).
  • the position coordinates of the drone refer to the position coordinates obtained by the last positioning of the drone before switching to the attitude mode.
  • the processor executes the code very fast, the time from determining that the drone passively switches to the attitude mode and drifts out of control, to generating the virtual nose and manipulating it according to the orientation of the virtual nose Short, the drift distance of the drone is very limited at this time, so it is still credible to determine the position coordinates obtained from the last positioning before drifting.
  • the orientation of the physical nose of the drone is on the connection line between the drone and the control terminal, there are the following two situations. 1) When the physical nose of the drone faces away from the control terminal, it is determined that the orientation of the virtual nose is the orientation of the physical nose of the drone. In this case, the positional relationship between the physical nose and the virtual nose of the drone is shown in Figure 4. 2) When the orientation of the physical nose of the drone faces the control terminal, it is determined that the orientation of the virtual nose is the opposite direction of the orientation of the physical nose of the drone. In this case, the positional relationship between the physical nose and the virtual nose of the drone is shown in Figure 5.
  • the orientation of the physical nose of the drone is not on the connection between the drone and the control terminal, there are the following two situations. 1) When the orientation of the physical nose of the drone is at an acute angle with the connection between the drone and the control terminal, it is first necessary to control the physical nose of the drone to rotate to the The drone is connected to the control terminal and faces the control terminal, and then it is determined that the direction of the virtual nose is opposite to the direction of the physical nose of the drone. In this case, the positional relationship between the physical nose and the virtual nose of the drone is shown in Figure 6.
  • the drone can directly determine that the virtual nose can be a mirror image of the physical nose or the physical nose itself, without requiring complex calculations. It is understandable that in this case, it is not necessary to control the drone to rotate to the connection line.
  • the drone can obtain the position of the virtual nose through a specific rotation matrix according to the position of the physical nose at this time. And orientation.
  • the flight control chip controls the direction of the drone according to the orientation of the virtual machine head and the control instruction of the control terminal.
  • a virtual nose is generated, thereby controlling the orientation of the virtual nose. State the direction of the drone.
  • the operator of the drone uses the control terminal to control the actual direction of the drone by controlling the direction of the virtual nose with the direction of the virtual nose as a reference.
  • a simple translation of the front and back flight instructions of the existing drone control terminal is realized, from taking the physical nose of the drone as the reference to the virtual nose of the drone as the reference, which is convenient
  • the manipulator responded urgently. This allows the operator to more easily judge and control the flight direction of the UAV to face emergency avoidance situations, thereby avoiding dangerous situations caused by operational errors.
  • FIG. 2 is a flowchart of a drone control method according to an embodiment of the present invention. The method is executed by the flight control chip of the drone. The method includes:
  • Step 201 Determine that the drone passively enters the attitude mode.
  • the drone after entering the attitude mode, the drone is in a hovering self-checking state.
  • the UAV passively switches to the attitude mode, including: poor GPS satellite signal, the vision sensor system cannot meet the positioning conditions, and the compass is severely interfered. Under these circumstances, the UAV may be passive. Switch to attitude mode.
  • the attitude mode does not enable the navigation system, and only relies on the accelerator and gyroscope to control the attitude of the aircraft. To put it simply, in the attitude mode, the drone control device controls the terminal to ensure that the drone's attitude will not roll over on its own, but it cannot guarantee the speed and position (fixed-point hovering) changes.
  • Step 202 Detect whether the drift speed of the drone at this time is greater than or equal to a preset drift speed threshold.
  • the drift speed of the drone is detected by a vision sensor of the drone, and the preset drift speed threshold is mainly determined according to the error of the sensor.
  • Step 203 When the drift speed of the drone is greater than or equal to the preset drift speed threshold, generate a virtual nose, where the virtual nose faces away from the control terminal and is located in the unmanned aircraft.
  • the connection between the computer and the control terminal Refer to Figure 3 for the specific process of generating the virtual machine head.
  • Step 204 Control the direction of the drone according to the direction of the virtual machine head and the control instruction of the control terminal.
  • the operator of the drone uses the control terminal to control the actual direction of the drone by controlling the direction of the virtual nose as a reference.
  • step 203 may further include:
  • Step 2031 Determine the orientation of the physical nose of the drone.
  • the physical nose of the drone is the actual, physical nose of the drone.
  • the orientation of the physical nose of the drone is determined by the inertial measurement device of the drone.
  • the inertial measurement device includes a gyroscope and an accelerometer on the drone.
  • the estimation of the heading angle is mainly related to the sensor data of the built-in gyroscope and accelerometer of the UAV.
  • the bad GPS signal mainly affects the position coordinates of the UAV, and the estimation of the heading angle is weak.
  • Step 2032 Determine whether the orientation of the physical nose of the drone is located on the connection line between the drone and the control terminal.
  • the connection between the drone and the control terminal refers to the connection between the position coordinates of the drone and the position coordinates of the control terminal, and the position coordinates may be GPS coordinates.
  • the position coordinates of the drone are the position coordinates obtained from the last positioning of the drone before switching to the attitude mode. Since the state self-check is carried out in real time, and the processor executes the code very fast, the time from determining that the drone passively switches to the attitude mode and drifts out of control, to generating the virtual nose and manipulating it according to the orientation of the virtual nose Short, the drift distance of the drone is very limited at this time, so it is still credible to determine the position coordinates obtained from the last positioning before drifting.
  • step 2033 If yes, the method proceeds to step 2033.
  • step 2034 If not, the method proceeds to step 2034.
  • Step 2033 Determine whether the physical nose of the drone is facing away from the control terminal.
  • step 2035 If yes, the method proceeds to step 2035.
  • step 2036 If not, the method proceeds to step 2036.
  • Step 2035 Determine the orientation of the virtual nose as the orientation of the physical nose of the drone. In this case, see Fig. 4 for the relationship between the orientation of the physical nose of the drone and the orientation of the virtual nose.
  • Step 2036 Determine that the direction of the virtual nose is the opposite of the direction of the physical nose of the drone. In this case, refer to Figure 5 for the relationship between the orientation of the physical nose of the drone and the orientation of the virtual nose.
  • step 2034 When it is determined that the orientation of the physical nose of the drone is not on the connection between the drone and the control terminal, the method proceeds to step 2034.
  • Step 2034 Determine whether the orientation of the physical nose of the drone is at an acute angle with the connection line between the drone and the control terminal.
  • step 2037 If yes, the method proceeds to step 2037.
  • Step 2037 Control the physical nose of the drone to rotate to the connection between the drone and the control terminal and face the control terminal; determine that the direction of the virtual nose is the drone The opposite direction of the physical head. In this case, see Figure 6 for the orientation and rotation direction of the physical nose of the drone.
  • step 2038 If not, the method proceeds to step 2038.
  • Step 2038 Control the physical nose of the drone to rotate to the connection between the drone and the control terminal and face away from the control terminal; determine that the direction of the virtual nose is the unmanned The orientation of the physical head of the machine. See Figure 7 for the orientation and rotation direction of the physical nose of the drone in this case.
  • the orientation of the physical nose is controlled to rotate to the desired position.
  • the drone is connected to the control terminal and faces or faces away from the control terminal. The purpose is to make the physical nose complete the steering at the fastest speed, thereby judging the direction of the virtual nose to quickly and easily generate virtual Nose.
  • the embodiment of the present invention also provides a computer-readable storage medium.
  • a person of ordinary skill in the art can understand that all or part of the processes in the method of the above-mentioned embodiments can be completed by instructing relevant hardware by a computer program.
  • the program may be stored in the computer readable storage medium, and when the one or more programs can be executed by one or more processors, the program may include the processes of the foregoing embodiments.
  • the storage medium may be a magnetic disk, an optical disc, a read only memory (ROM, Read Only Memory), or a random access memory (RAM, Random Access Memory), etc.
  • an embodiment of the present invention also provides a drone control device, which includes a determination module 801, a detection module 802, a virtual machine head generation module 803, and a control module 804.
  • the determining module 801 is configured to determine that the drone passively enters the attitude mode, wherein when the drone enters the attitude mode, the drone is in a hovering self-check state.
  • the detection module 802 is configured to detect whether the drift speed of the drone at this time is greater than or equal to a preset drift speed threshold.
  • the detection module 802 detects the drift speed of the drone through the vision sensor of the drone, and the preset drift threshold is set according to the error of the sensor.
  • the virtual nose generating module 803 is configured to determine the direction of the physical nose of the drone when the drift speed of the drone is greater than or equal to the preset drift speed threshold, according to the drone
  • the orientation of the physical nose of the drone is determined to determine the orientation of the virtual nose to generate a virtual nose, where the virtual nose is facing away from the control terminal and is located on the connection line between the drone and the control terminal on.
  • the virtual nose generating module 803 is used to determine the orientation of the physical nose of the drone through the inertial measurement device of the drone.
  • the inertial measurement device of the drone includes an accelerometer and a gyroscope.
  • the connection between the drone and the control terminal refers to the connection between the position coordinates of the drone and the position coordinates of the control terminal, and the position coordinates may be GPS coordinates.
  • the position coordinates of the drone are the position coordinates obtained from the last positioning of the drone before switching to the attitude mode.
  • the virtual nose generating module 803 is used to determine whether the orientation of the physical nose of the drone is located on the connection line between the drone and the control terminal.
  • the virtual nose generating module 803 determines that the orientation of the virtual nose is the physical machine of the drone. Head orientation; 2) when the physical nose of the drone faces the control terminal, the virtual nose generating module 803 determines that the virtual nose is the physical orientation of the drone The opposite direction of the nose.
  • the virtual nose generating module 803 controls the physical nose of the drone to rotate to the connection between the drone and the control terminal and face the control terminal; determine that the orientation of the virtual nose is the physical drone of the drone The head is facing in the opposite direction. 2) When the orientation of the physical nose of the drone is at an obtuse or right angle to the connection between the drone and the control terminal, as shown in FIG. 7, the virtual nose generating module 803 Control the physical nose of the drone to rotate to the connection between the drone and the control terminal and face away from the control terminal; determine the orientation of the virtual nose as the physical drone The orientation of the head.
  • the virtual nose generating module 803 is used to determine the angle between the orientation of the physical nose of the drone and the coordinate line connecting the drone to the drone control terminal. Control the orientation of the physical nose to rotate to the connection between the drone and the control terminal and face or back to the control terminal. The purpose of this is to enable the physical head to complete the steering at the fastest speed, so as to determine the direction of the virtual head to quickly and easily generate the virtual head.
  • the control module 804 is configured to control the direction of the drone according to the direction of the virtual machine head and the control instruction of the control terminal.
  • the determination module 801, the detection module 802, and the virtual nose generation module 803 are generally set on the drone and executed by the flight control chip of the drone, and the control module 804 can be set on the drone.
  • the drone can also be set on the drone control terminal.
  • the control module 804 sends a flight control instruction to the existing drone control terminal (the flight control instruction is based on the physical nose of the drone.
  • the direction of the drone is the reference object) after a translation process (that is, it is transformed into the direction of the generated virtual nose as the reference object), and then the target flight direction of the drone is manipulated.
  • the determination module 801, the detection module 802, the virtual machine head generation module 803, and the control module 804 are installed on different physical devices, data communication can be performed through the communication modules on the physical devices where they are located.
  • This application proposes an adaptive mirroring operation mode for drone drifting out of control.
  • the built-in determination module in the drone program determines that the drone passively switches to the attitude mode, and the detection module uses vision and other sensors to determine that it should be hovering
  • the virtual nose generation module generates a virtual nose
  • the control module controls the target flight direction of the drone according to the direction of the virtual nose, so that the drone is controlled like a mirror opposite
  • the situation of the bomber further, by checking the orientation of the physical nose of the drone in real time, if necessary, rotate the orientation of the physical nose to the connection between the drone and the control terminal.
  • the control terminal of the man-machine can simplify the various possibilities of generating the orientation of the virtual nose to only two directions, that is, the orientation of the physical nose of the drone is the same or opposite, which simplifies the algorithm and compares the existing The front and back flight instructions of the drone control terminal are simply translated.

Landscapes

  • Engineering & Computer Science (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)
  • Toys (AREA)

Abstract

Disclosed are an unmanned aerial vehicle control method and apparatus and an unmanned aerial vehicle (1000). The method comprises: determining that an unmanned aerial vehicle passively enters an attitude mode (201), wherein the unmanned aerial vehicle is in a hovering self-detect state after the unmanned aerial vehicle enters the attitude mode; detecting whether the drift speed of the unmanned aerial vehicle at that time is greater than or equal to a preset drift speed threshold value or not (202); if so, generating a virtual nose, wherein the orientation of the virtual nose faces away from a control terminal and is located on the connecting line of the unmanned aerial vehicle and the control terminal (203); and controlling the direction of the unmanned aerial vehicle according to the orientation of the virtual nose and a control instruction of the control terminal (204). When the unmanned aerial vehicle is passively switched to the attitude mode and the drift speed thereof is greater than or equal to the drift speed threshold value, the virtual nose is generated and the target flight direction of the unmanned aerial vehicle is controlled according to the orientation of the virtual nose, avoiding the problem that under the circumstance of urgent danger prevention, a controller cannot take the physical nose orientation into account and subconsciously gives the wrong control commands according to his or her own sense of direction to avoid the danger and increasing flight safety.

Description

一种无人机控制方法与装置、计算机可读存储介质UAV control method and device, and computer readable storage medium
本申请要求于2019年5月20日提交中国专利局、申请号为201910418981.4、申请名称为“一种无人机控制方法与装置、计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on May 20, 2019, the application number is 201910418981.4, and the application name is "a drone control method and device, computer-readable storage medium", all of which The content is incorporated in this application by reference.
技术领域Technical field
本申请涉及但不限于智能控制技术领域,尤其涉及一种无人机控制方法与装置、计算机可读存储介质。This application relates to, but is not limited to, the field of intelligent control technology, and in particular to a drone control method and device, and a computer-readable storage medium.
背景技术Background technique
无人驾驶飞机简称无人机(Unmanned Aerial Vehicle,UAV),是利用无线电遥控设备和自备的程序控制终端操纵的不载人飞机。它涉及传感器技术、通信技术、信息处理技术、智能控制技术以及动力推进技术等,是信息时代高技术含量的产物。The unmanned aircraft is abbreviated as Unmanned Aerial Vehicle (UAV), which is an unmanned aircraft that uses radio remote control equipment and self-provided programs to control the terminal. It involves sensor technology, communication technology, information processing technology, intelligent control technology and power propulsion technology, etc. It is a product of high technology content in the information age.
操纵和使用上的简易化、智能化使得消费级无人机的普及率日益提高,目前比较常见的消费级无人机应用场景主要是航拍,由于这些消费级无人机多以旋翼机为主,其控制特性与全球定位系统(Global Positioning System,GPS)信号接收特性都决定了这些无人机产品最好在宽阔无遮挡且GPS信号良好的空旷区域内进行飞行,但事实上,在高大建筑物附近飞行或是飞行过程中遇到GPS信号不良的情况也是有可能发生的。高大的建筑物会影响其附近的GPS信号质量,而当GPS信号质量不足以支持无人机稳定定位而进入姿态模式时,无人机极易发生位置漂移,进而与障碍物发生碰撞后从高处坠落。当发生这种紧急状况时,绝大多数操控者会下意识地以自己的方向来操纵遥控器的摇杆,而事实上,遥控器对无人机的操纵是根据机头决定前后左右朝向的,当发生紧急意外时若机头面向操控者,此时如果操控者以自己的前后左右为方向对无人机进行紧急避险操纵时,两者的前后左右恰好相反,本意是远离障碍物的操作实际上变成了更快地撞向障碍物。事实上,在紧急情况下操控者是很难顾及到机头朝向检查的,基本都会下意识地以自身的前后左右做出判断及避险操纵,而这往往是新手“炸机”的主要原因。The simplification and intelligence of operation and use have made the popularity of consumer drones increasing. At present, the most common consumer drone application scenarios are mainly aerial photography, because these consumer drones are mostly rotorcraft , Its control characteristics and Global Positioning System (Global Positioning System, GPS) signal reception characteristics determine that these UAV products are best to fly in a wide open area with no obstruction and good GPS signals, but in fact, in tall buildings It is also possible to fly near objects or encounter poor GPS signals during the flight. Tall buildings will affect the GPS signal quality nearby, and when the GPS signal quality is not enough to support the stable positioning of the drone and enter the attitude mode, the drone is prone to position drift, and then it will move from height after colliding with obstacles. Fall. When this kind of emergency situation occurs, most of the operators will subconsciously manipulate the joystick of the remote control in their own direction. In fact, the control of the drone by the remote control is based on the front and rear direction of the drone. When an emergency accident occurs, if the nose of the aircraft faces the controller, if the controller uses his own front, back, left, and right to perform emergency avoidance maneuvers on the UAV, the front, back, left, and right directions of the two are exactly opposite. The original intention is to operate away from obstacles. In fact, it becomes faster to hit the obstacle. In fact, in an emergency, it is difficult for the manipulator to consider the direction of the nose of the aircraft. Basically, he will subconsciously make judgments and avoid danger with his own front, back, left, and right, and this is often the main reason for the novice "explosion".
发明内容Summary of the invention
本发明实施例提供了一种无人机控制方法与装置、计算机可读存储介质,能够提高飞行的安全性及用户易用性。The embodiments of the present invention provide a drone control method and device, and a computer-readable storage medium, which can improve flight safety and user ease of use.
本发明实施例提供了一种无人机控制方法,包括:The embodiment of the present invention provides a drone control method, including:
确定无人机被动进入姿态模式,其中,当所述无人机进入所述姿态模式后,所述无人机处于悬停自检状态;Determining that the drone passively enters the attitude mode, wherein after the drone enters the attitude mode, the drone is in a hovering self-check state;
检测此时所述无人机的漂移速度是否大于或等于预设的漂移速度阈值;Detecting whether the drift speed of the drone at this time is greater than or equal to a preset drift speed threshold;
当所述无人机的漂移速度大于或等于所述预设的漂移速度阈值时,生成虚拟机头,其中,所述虚拟机头的朝向背向控制终端,且位于所述无人机与所述控制终端的连线上;When the drift speed of the drone is greater than or equal to the preset drift speed threshold, a virtual machine head is generated, wherein the virtual machine head faces away from the control terminal and is located between the drone and the control terminal. On the connection of the control terminal;
根据所述虚拟机头的朝向和所述控制终端的控制指令控制所述无人机的方向。The direction of the drone is controlled according to the direction of the virtual machine head and the control instruction of the control terminal.
可选地,所述检测此时所述无人机的漂移速度是否大于或等于预设的漂移速度阈值,包括:Optionally, the detecting whether the drift speed of the drone at this time is greater than or equal to a preset drift speed threshold includes:
通过所述无人机的视觉传感器检测此时所述无人机的漂移速度是否大于或等于所述预设的漂移速度阈值。The vision sensor of the drone detects whether the drift speed of the drone at this time is greater than or equal to the preset drift speed threshold.
可选地,所述当所述无人机的漂移速度大于或等于所述预设的漂移速度阈值时,生成所述虚拟机头,包括:Optionally, the generating the virtual nose when the drift speed of the drone is greater than or equal to the preset drift speed threshold includes:
判断所述无人机的物理机头的朝向;Determine the orientation of the physical nose of the drone;
根据所述无人机的物理机头的朝向,确定所述虚拟机头的朝向,以生成所述虚拟机头。According to the orientation of the physical nose of the drone, the orientation of the virtual nose is determined to generate the virtual nose.
可选地,所述判断所述无人机的物理机头的朝向,包括:Optionally, the determining the orientation of the physical nose of the drone includes:
通过所述无人机的惯性测量装置判断所述无人机的物理机头的朝向。The orientation of the physical nose of the drone is determined by the inertial measurement device of the drone.
可选地,所述判断所述无人机的物理机头的朝向,根据所述无人机的物理机头的朝向,确定所述虚拟机头的朝向,包括:Optionally, the determining the orientation of the physical nose of the drone and determining the orientation of the virtual nose according to the orientation of the physical nose of the drone includes:
判断所述无人机的物理机头的朝向是否位于所述无人机与所述控制终端的连线上;Judging whether the orientation of the physical nose of the drone is located on the connection line between the drone and the control terminal;
若是,则判断所述无人机的物理机头的朝向是否背向所述控制终端;If yes, determine whether the physical nose of the drone is facing away from the control terminal;
若是,则:If yes, then:
确定所述虚拟机头的朝向为所述无人机的物理机头的朝向。It is determined that the orientation of the virtual nose is the orientation of the physical nose of the drone.
可选地,所述判断所述无人机的物理机头的朝向,根据所述无人机的物理机头的朝向,确定所述虚拟机头的朝向,包括:Optionally, the determining the orientation of the physical nose of the drone and determining the orientation of the virtual nose according to the orientation of the physical nose of the drone includes:
判断所述无人机的物理机头的朝向是否位于所述无人机与所述控制终端的连线上;Judging whether the orientation of the physical nose of the drone is located on the connection line between the drone and the control terminal;
若是,则判断所述无人机的物理机头的朝向是否背向所述控制终端;If yes, determine whether the physical nose of the drone is facing away from the control terminal;
若否,则:If not, then:
确定所述虚拟机头的朝向为所述无人机的物理机头的朝向的反方向。It is determined that the orientation of the virtual nose is the opposite of the orientation of the physical nose of the drone.
可选地,所述判断所述无人机的物理机头的朝向,根据所述无人机的物理机头的朝向,确定所述虚拟机头的朝向,包括:Optionally, the determining the orientation of the physical nose of the drone and determining the orientation of the virtual nose according to the orientation of the physical nose of the drone includes:
判断所述无人机的物理机头的朝向是否位于所述无人机与所述控制终端的连线上;Judging whether the orientation of the physical nose of the drone is located on the connection line between the drone and the control terminal;
若否,If not,
则判断所述无人机的物理机头的朝向是否与所述无人机与所述控制终端的连线呈锐角夹角;Determining whether the orientation of the physical nose of the drone is at an acute angle with the connection line between the drone and the control terminal;
若是,则:If yes, then:
控制所述无人机的物理机头旋转至所述无人机与所述控制终端的连线上并朝向所述控制终端;Control the physical nose of the drone to rotate to the connection between the drone and the control terminal and face the control terminal;
确定所述虚拟机头的朝向为所述无人机物理机头的朝向的反方向。It is determined that the orientation of the virtual nose is the opposite of the orientation of the physical nose of the drone.
可选地,所述判断所述无人机的物理机头的朝向,根据所述无人机的物理机头的朝向,确定所述虚拟机头的朝向,还包括:Optionally, the determining the orientation of the physical nose of the drone, and determining the orientation of the virtual nose according to the orientation of the physical nose of the drone, further includes:
判断所述无人机的物理机头的朝向是否位于所述无人机与所述控制终端的连线上;Judging whether the orientation of the physical nose of the drone is located on the connection line between the drone and the control terminal;
若否,If not,
则判断所述无人机的物理机头的朝向是否与所述无人机与所述控制终端的连线呈锐角夹角;Determining whether the orientation of the physical nose of the drone is at an acute angle with the connection line between the drone and the control terminal;
若否,If not,
控制所述无人机的物理机头旋转至所述无人机与所述控制终端的连线上并背向所述控制终端;Controlling the physical nose of the drone to rotate to the connection between the drone and the control terminal and facing away from the control terminal;
确定所述虚拟机头的朝向为所述无人机物理机头的朝向。It is determined that the orientation of the virtual nose is the orientation of the physical nose of the drone.
本发明实施例提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现如以上任一项所述的无人机控制方法。The embodiment of the present invention provides a computer-readable storage medium having one or more programs stored on the computer-readable storage medium, and the one or more programs may be executed by one or more processors to realize The drone control method described in any one of the above.
本发明实施例提供了一种无人机控制装置,包括:The embodiment of the present invention provides a drone control device, including:
确定模块,用于确定无人机被动进入姿态模式,其中,当所述无人机进入所述姿态模式后,所述无人机处于悬停自检状态;The determining module is used to determine that the drone passively enters the attitude mode, wherein when the drone enters the attitude mode, the drone is in a hovering self-check state;
检测模块,用于检测此时所述无人机的漂移速度是否大于或等于预设的漂移速度阈值;The detection module is used to detect whether the drift speed of the drone at this time is greater than or equal to a preset drift speed threshold;
虚拟机头生成模块,用于当所述无人机的漂移速度大于或等于所述预设的漂移速度阈值时,生成虚拟机头,其中,所述虚拟机头的朝向背向控制终端,且位于所述无人机与所述控制终端的连线上;以及The virtual nose generating module is used to generate a virtual nose when the drift speed of the drone is greater than or equal to the preset drift speed threshold, wherein the virtual nose is facing away from the control terminal, and Located on the connection between the drone and the control terminal; and
控制模块,用于根据所述虚拟机头的朝向和所述控制终端的控制指令控制所述无人机的方向。The control module is used to control the direction of the drone according to the direction of the virtual machine head and the control instruction of the control terminal.
可选地,所述检测模块用于通过所述无人机的视觉传感器检测此时所述无人机的漂移速度是否大于或等于所述预设的漂移速度阈值。Optionally, the detection module is configured to detect whether the drift speed of the drone at this time is greater than or equal to the preset drift speed threshold through the vision sensor of the drone.
可选地,所述虚拟机头生成模块用于:Optionally, the virtual machine head generation module is used to:
判断所述无人机的物理机头的朝向;Determine the orientation of the physical nose of the drone;
根据所述无人机的物理机头的朝向,确定所述虚拟机头的朝向,以生成所述虚拟机头。According to the orientation of the physical nose of the drone, the orientation of the virtual nose is determined to generate the virtual nose.
可选地,所述虚拟机头生成模块用于通过所述无人机的惯性测量装置判断所述无人机的物理机头的朝向。Optionally, the virtual nose generating module is used to determine the orientation of the physical nose of the drone through the inertial measurement device of the drone.
可选地,所述虚拟机头生成模块具体用于:Optionally, the virtual machine head generation module is specifically configured to:
判断所述无人机的物理机头的朝向是否位于所述无人机与所述控制终端 的连线上;Judging whether the orientation of the physical nose of the drone is located on the connection line between the drone and the control terminal;
若是,则判断所述无人机的物理机头的朝向是否背向所述控制终端;If yes, determine whether the physical nose of the drone is facing away from the control terminal;
若是,则:If yes, then:
确定所述虚拟机头的朝向为所述无人机的物理机头的朝向。It is determined that the orientation of the virtual nose is the orientation of the physical nose of the drone.
可选地,所述虚拟机头生成模块具体用于:Optionally, the virtual machine head generation module is specifically configured to:
判断所述无人机的物理机头的朝向是否位于所述无人机与所述控制终端的连线上;Judging whether the orientation of the physical nose of the drone is located on the connection line between the drone and the control terminal;
若否,If not,
则判断所述无人机的物理机头的朝向是否与所述无人机与所述控制终端的连线呈锐角夹角;Determining whether the orientation of the physical nose of the drone is at an acute angle with the connection line between the drone and the control terminal;
若是,则:If yes, then:
控制所述无人机的物理机头旋转至所述无人机与所述控制终端的连线上并朝向所述控制终端;Control the physical nose of the drone to rotate to the connection between the drone and the control terminal and face the control terminal;
确定所述虚拟机头的朝向为所述无人机物理机头的朝向的反方向。It is determined that the orientation of the virtual nose is the opposite of the orientation of the physical nose of the drone.
可选地,所述虚拟机头生成模块具体用于:Optionally, the virtual machine head generation module is specifically configured to:
判断所述无人机的物理机头的朝向是否位于所述无人机与所述控制终端的连线上;Judging whether the orientation of the physical nose of the drone is located on the connection line between the drone and the control terminal;
若否,If not,
则判断所述无人机的物理机头的朝向是否与所述无人机与所述控制终端的连线呈锐角夹角;Determining whether the orientation of the physical nose of the drone is at an acute angle with the connection line between the drone and the control terminal;
若否,If not,
控制所述无人机的物理机头旋转至所述无人机与所述控制终端的连线上并背向所述控制终端;Controlling the physical nose of the drone to rotate to the connection between the drone and the control terminal and facing away from the control terminal;
确定所述虚拟机头的朝向为所述无人机物理机头的朝向。It is determined that the orientation of the virtual nose is the orientation of the physical nose of the drone.
本发明实施例提供了一种无人机,其特征在于,包括:The embodiment of the present invention provides an unmanned aerial vehicle, which is characterized in that it includes:
机身;body;
机臂,与所述机身相连;An arm, connected to the fuselage;
动力装置,设于所述机臂,所述动力装置用于提供所述无人机飞行的动力;以及A power device arranged on the arm, the power device is used to provide power for the drone to fly; and
飞控芯片,设于所述机身;The flight control chip is located in the fuselage;
其中,所述飞控芯片用于执行如上述中任一项所述的无人机控制方法。Wherein, the flight control chip is used to execute the drone control method described in any one of the above.
本发明实施例提供的无人机控制方法与装置、计算机可读存储介质,通过在无人机被动切换至姿态模式且无人机的漂移速度大于或等于漂移速度阈值时,生成虚拟机头并根据虚拟机头的朝向来操纵无人机的目标飞行方向,避免了紧急避险情况下操控者无法顾及物理机头的朝向,下意识以自身方向感进行避险时给出的错误操纵命令导致无人机炸机的情况,提高了飞行的安全性及用户易用性。The UAV control method and device, and computer-readable storage medium provided by the embodiments of the present invention generate a virtual machine head parallel when the UAV passively switches to the attitude mode and the drift speed of the UAV is greater than or equal to the drift speed threshold. The target flight direction of the drone is manipulated according to the orientation of the virtual nose, which avoids that the controller cannot take into account the orientation of the physical nose in emergency avoidance situations, and the wrong control commands given when subconsciously using their own sense of direction to avoid danger lead to failure. The situation of man-machine bombing improves flight safety and user ease of use.
附图说明Description of the drawings
此处所说明的附图用来提供对本发明实施例的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described here are used to provide a further understanding of the embodiments of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and the description thereof are used to explain the present invention, and do not constitute an improper limitation of the present invention. In the attached picture:
图1为本发明实施例的一种无人机的立体结构图;Figure 1 is a three-dimensional structural diagram of an unmanned aerial vehicle according to an embodiment of the present invention;
图2为本发明实施例的一种无人机控制方法的流程示意图;2 is a schematic flowchart of a method for controlling drones according to an embodiment of the present invention;
图3为本发明实施例的一种生成虚拟机头的流程示意图;3 is a schematic diagram of a process of generating a virtual machine head according to an embodiment of the present invention;
图4为本发明实施例的无人机的物理机头的朝向位于无人机与控制终端的连线上,无人机的物理机头的朝向背向控制终端的情况示意图;4 is a schematic diagram of a situation where the physical nose of the drone according to an embodiment of the present invention is located on the connection between the drone and the control terminal, and the physical nose of the drone is facing away from the control terminal;
图5为本发明实施例的无人机的物理机头的朝向位于无人机与控制终端的连线上,无人机的物理机头的朝向面向控制终端的情况示意图;5 is a schematic diagram of a situation where the physical nose of the drone according to an embodiment of the present invention is located on the connection between the drone and the control terminal, and the physical nose of the drone faces the control terminal;
图6为本发明实施例的无人机的物理机头的朝向不位于无人机与控制终端的连线上,无人机的物理机头的朝向与无人机与控制终端的连线呈锐角夹角的情况示意图;Figure 6 shows that the orientation of the physical nose of the drone according to the embodiment of the present invention is not on the connection between the drone and the control terminal, and the orientation of the physical nose of the drone is in line with the connection between the drone and the control terminal. Schematic diagram of the acute angle included;
图7为本发明实施例的无人机的物理机头的朝向不位于无人机与控制终端的连线上,无人机的物理机头的朝向与无人机与控制终端的连线呈钝角或直角夹角的情况示意图;Figure 7 shows that the orientation of the physical nose of the drone according to an embodiment of the present invention is not on the connection between the drone and the control terminal, and the orientation of the physical nose of the drone is in line with the connection between the drone and the control terminal. Schematic diagram of obtuse or right angles;
图8为本发明实施例的一种无人机控制装置的结构示意图。Fig. 8 is a schematic structural diagram of a drone control device according to an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。另外,虽然在装置示意图中进行了功能模块的划分,在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于装置示意图中的模块划分,或流程图中的顺序执行所示出或描述的步骤。In order to make the objectives, technical solutions, and advantages of the present invention clearer, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments in this application and the features in the embodiments can be combined with each other arbitrarily if there is no conflict. In addition, although the functional modules are divided in the schematic diagram of the device, and the logical sequence is shown in the flowchart, in some cases, the module division in the schematic diagram of the device may be different from the module division in the schematic diagram, or the sequence in the flowchart may be executed. Steps shown or described.
本发明的实施例提供了一种四旋翼无人机,请参阅图1,无人机1000包括机身200、四个自机身200延伸的机臂300、分别装设在每个机臂300上的动力装置400以及设于机身200的飞控芯片(图中未示出)。图示无人机1000为四旋翼无人飞行器,动力装置400的数量为四个。在其他可能的实施例中,无人机1000可以是其他任何合适类型的无人飞行器,例如固定翼无人机飞行器等。在动力装置400应用于其他类型无人飞行器的场合,动力装置400的数量可以根据实际需要改变,本发明对此不作限定。The embodiment of the present invention provides a four-rotor drone. Please refer to FIG. 1. The drone 1000 includes a fuselage 200, four arms 300 extending from the fuselage 200, and are respectively installed on each arm 300. The power unit 400 and the flight control chip (not shown in the figure) arranged on the fuselage 200. The illustrated UAV 1000 is a four-rotor unmanned aerial vehicle, and the number of power units 400 is four. In other possible embodiments, the drone 1000 may be any other suitable type of unmanned aerial vehicle, such as a fixed-wing unmanned aerial vehicle. When the power plant 400 is applied to other types of unmanned aerial vehicles, the number of the power plant 400 can be changed according to actual needs, which is not limited in the present invention.
在发明的一实施例中,机臂300与机身200固定连接,优选地,机臂300与机身200一体成型。在其他可能的实施例中,机臂300还可以可相对于机身200展开或折叠的方式与机身200相连。例如,机臂300可以通过一转轴机构与机身200相连,以实现机臂300可相对于机身200展开或折叠。In an embodiment of the invention, the arm 300 and the body 200 are fixedly connected. Preferably, the arm 300 and the body 200 are integrally formed. In other possible embodiments, the arm 300 may also be connected to the body 200 in a manner that can be expanded or folded relative to the body 200. For example, the arm 300 may be connected to the main body 200 through a rotating shaft mechanism, so that the arm 300 can be expanded or folded relative to the main body 200.
在本发明的一实施例中,动力装置400包括驱动装置40和由驱动装置40 驱动的螺旋桨组件80,螺旋桨组件80装设于驱动装置40的输出轴上,螺旋桨组件80在驱动装置40的驱动下旋转以产生使无人机1000飞行的升力或推力。驱动装置40可以是任何合适类型的电机,例如有刷电机、无刷电机、直流电机、步进电机、交流感应电机等。所述智能电池为无人机提供动力,驱动驱动装置40带动螺旋桨组件80旋转。In an embodiment of the present invention, the power device 400 includes a driving device 40 and a propeller assembly 80 driven by the driving device 40. The propeller assembly 80 is installed on the output shaft of the driving device 40. The propeller assembly 80 is driven by the driving device 40. Rotate downward to generate the lift or thrust that makes the drone 1000 fly. The driving device 40 may be any suitable type of motor, such as a brush motor, a brushless motor, a DC motor, a stepping motor, an AC induction motor, and so on. The smart battery provides power for the drone, and the driving device 40 drives the propeller assembly 80 to rotate.
在其他可能的实施例中,无人机1000还可以包括云台(图未示),该云台安装于机身200的底部,云台用于搭载高清数码相机或其他摄像装置以消除高清数码相机或其他摄像装置受到的扰动,保证相机或其他摄像装置拍摄的视频的清晰稳定。一般情况下,云台设置在无人机的前侧或后侧,此时,无人机的左右两侧为盲区,新手在盲区中进行左右控制的时候往往容易发生危险。现有的无人机控制终端都是以无人机的物理机头的朝向为参照物,来操纵所述无人机的目标飞行方向,因此紧急避险情况下操控者有可能无法顾及物理机头的朝向。本发明提供的实施例,通过将生成虚拟机头的朝向为物理机头的朝向或物理机头的朝向的反方向,可以对现有的无人机控制终端的前、后飞行指令进行简单的翻译,便于紧急情况下操控者进行操控。In other possible embodiments, the drone 1000 may also include a pan/tilt (not shown), the pan/tilt is installed at the bottom of the fuselage 200, and the pan/tilt is used to carry a high-definition digital camera or other camera device to eliminate high-definition digital The disturbance of the camera or other imaging devices ensures the clarity and stability of the video captured by the camera or other imaging devices. Under normal circumstances, the gimbal is set on the front or back of the drone. At this time, the left and right sides of the drone are blind spots. When novices control left and right in the blind spots, they are prone to danger. Existing drone control terminals all use the orientation of the drone's physical nose as a reference to manipulate the target flight direction of the drone. Therefore, the operator may not be able to take into account the physical aircraft in emergency avoidance situations. The orientation of the head. In the embodiment provided by the present invention, by changing the orientation of the generated virtual nose to the orientation of the physical nose or the opposite direction to the orientation of the physical nose, the front and rear flight instructions of the existing drone control terminal can be simply executed. Translation is convenient for the operator to control in emergency situations.
在本发明的一实施例中,无人机1000还可以包括飞控芯片(飞行控制芯片),设于机身200上。所述飞控芯片通过各种传感器感知无人机周围的环境,并控制无人机的飞行。所述飞控芯片可以包括飞行控制模块,所述飞行控制模块可以是处理模块(processing unit),专用集成电路(Application Specific Integrated Circuit,ASIC)或者现场可编程门阵列(Field Programmable Gate Array,FPGA)。当用户通过控制终端输入控制无人机的飞行姿态等的指令时,无人机的飞行控制模块向电调板发送一油门信号,电调板接收该油门信号,生成并向电机发送用于对电机进行启动、和控制电机运行的转速等的控制信号。In an embodiment of the present invention, the drone 1000 may further include a flight control chip (flight control chip), which is arranged on the fuselage 200. The flight control chip senses the surrounding environment of the drone through various sensors and controls the flight of the drone. The flight control chip may include a flight control module, and the flight control module may be a processing unit (processing unit), an application specific integrated circuit (ASIC) or a field programmable gate array (Field Programmable Gate Array, FPGA) . When the user inputs instructions to control the flight attitude of the drone through the control terminal, the flight control module of the drone sends a throttle signal to the ESC, and the ESC receives the throttle signal, generates and sends to the motor for control The motor performs control signals for starting and controlling the rotation speed of the motor.
所述飞控芯片周期性(或非周期性)地检查无人机接收的GPS信号质量和无人机的运动控制模式。无人机接收的GPS信号不良时有可能使得无人机被动进入姿态模式。所谓“被动”是指无人机在没有接收到控制终端控制指令的情况下进入姿态模式。需要说明的是,无人机的姿态模式是区别于位置模式而言的。姿态模式是指,只使用飞行器气压计,IMU等传感器来保持飞行高度和基本姿态的飞行模式。位置模式(包括GPS模式),这种模式下可以对无人机进行定位和定高。姿态模式,适合于没有GPS信号或GPS信号不佳的飞行环境,因为它不启用导航系统,只依赖加速器和陀螺仪来控制飞机姿态。飞机本身的姿态可以保持稳定。实际操作中,无人机会明显的出现漂移,无法悬停,需要手动地修正无人机的位置。在姿态模式下,无人机控制终端(例如,无人机遥控器)只对无人机进行姿态增稳,无法控制位置及飞行速度。简单来说,在姿态模式下,无人机控制终端能保证无人机姿态不会自行侧翻,但无法保证速度和位置的变化,具备一定初速度同时受外力作用下,速度不断变化,容易给人一种不受控制的错觉。在没有打杆的情况下,无人机会发生水平方向的移动。在有风或狭窄空间环境,在姿态模式飞行比较危险,这也是很多新手炸机主要 原因。所述无人机被动切换至姿态模式的原因有多种,包括:GPS卫星信号差,视觉传感系统无法满足定位条件,指南针受到严重干扰等。在这些情况下,无人机都有可能被动切换至姿态模式。The flight control chip periodically (or non-periodically) checks the quality of the GPS signal received by the drone and the motion control mode of the drone. When the GPS signal received by the drone is poor, it may cause the drone to passively enter the attitude mode. The so-called "passive" means that the drone enters the attitude mode without receiving a control command from the control terminal. It should be noted that the attitude mode of the UAV is different from the position mode. Attitude mode refers to a flight mode in which only the aircraft barometer, IMU and other sensors are used to maintain the flight altitude and basic attitude. Position mode (including GPS mode), in this mode, the drone can be positioned and altitude. Attitude mode is suitable for flying environments with no GPS signal or poor GPS signal, because it does not enable the navigation system and only relies on the accelerator and gyroscope to control the aircraft attitude. The attitude of the aircraft itself can remain stable. In actual operation, the drone will obviously drift and cannot hover, and the position of the drone needs to be corrected manually. In the attitude mode, the drone control terminal (for example, the drone remote control) only stabilizes the attitude of the drone, and cannot control the position and flight speed. To put it simply, in the attitude mode, the drone control terminal can ensure that the drone's attitude will not roll over on its own, but it cannot guarantee the speed and position changes. It has a certain initial speed and the speed changes constantly under the action of external forces. Gives an illusion of uncontrollable. In the absence of a lever, the drone will move horizontally. In a windy or narrow space environment, flying in attitude mode is more dangerous, which is also the main reason for many novices. There are many reasons for the unmanned aerial vehicle to passively switch to the attitude mode, including: poor GPS satellite signals, the vision sensor system cannot meet the positioning conditions, and the compass is severely interfered. In these cases, the UAV may passively switch to the attitude mode.
需要说明的是,本申请的无人机控制方法与装置、计算机可读存储介质,只针对无人机被动切换至姿态模式,即当无人机被动切换至姿态模式时,无人机将自动进入悬停自检状态,且无人机的漂移速度大于或等于预设的漂移速度阈值的情况进行讨论,这种情况下生成背向无人机控制终端的虚拟机头,并以所述虚拟机头为参照物操纵所述无人机的目标飞行方向,从而保证在紧急情况下操控者在无法顾及物理机头的朝向时以自身方向发出的避险操纵指令得到正确意图的响应。在其它情况下,例如,无人机在位置模式下飞行、无人机手动切换至姿态模式下飞行(部分无人机支持手动切换至姿态模式,但为防止误触,出厂一般默认不允许手动切换至姿态模式,可在无人机控制终端的控制软件中进行相关设置)等,均以无人机的物理机头为参照物操纵所述无人机的目标飞行方向,不是本发明重点讨论的内容。It should be noted that the drone control method and device and computer readable storage medium of this application are only for the drone passively switch to the attitude mode, that is, when the drone passively switches to the attitude mode, the drone will automatically Enter the hovering self-check state, and the drift speed of the drone is greater than or equal to the preset drift speed threshold for discussion. In this case, a virtual nose facing the drone control terminal is generated, and the virtual nose The nose is a reference to manipulate the target flight direction of the UAV, so as to ensure that in an emergency, the manipulator can get the correct intentional response to the hazard avoidance command issued in his own direction when the direction of the physical nose is not taken into consideration. In other cases, for example, the drone is flying in the position mode, and the drone is manually switched to the attitude mode to fly (some drones support manual switching to the attitude mode, but to prevent accidental touches, the factory default does not allow manual Switch to the attitude mode, you can make relevant settings in the control software of the drone control terminal), etc., all use the physical nose of the drone as a reference to manipulate the target flight direction of the drone, which is not the focus of the present invention. Content.
当所述飞控芯片确定无人机被动进入姿态模式之后,所述无人机的视觉传感器检测此时所述无人机的漂移速度是否大于或等于预设的漂移速度阈值。其中,所述预设的漂移速度阈值主要是根据传感器的误差以及实际需求来确定的,例如,传感器误差大,预设的漂移速度阈值对应地较小,并且同时根据实际需求,由程序编写者根据实际调试结果而确定。After the flight control chip determines that the drone passively enters the attitude mode, the vision sensor of the drone detects whether the drift speed of the drone at this time is greater than or equal to a preset drift speed threshold. Wherein, the preset drift speed threshold is mainly determined according to the error of the sensor and the actual demand. For example, if the sensor error is large, the preset drift speed threshold is correspondingly small, and at the same time, according to the actual demand, the program writer Determined according to actual debugging results.
当所述无人机的漂移速度大于或等于所述预设的漂移速度阈值时,生成虚拟机头,其中,所述虚拟机头的朝向背向控制终端,且位于所述无人机与所述控制终端的连线上。图3示出了生成所述虚拟机头的具体过程的流程图。When the drift speed of the drone is greater than or equal to the preset drift speed threshold, a virtual machine head is generated, wherein the virtual machine head faces away from the control terminal and is located between the drone and the control terminal. The connection of the control terminal. Fig. 3 shows a flowchart of a specific process of generating the virtual machine head.
因为所述虚拟机头的朝向根据无人机的物理机头的朝向判断,所以首先要判断无人机的物理机头的朝向。Because the orientation of the virtual nose of the drone is determined based on the orientation of the physical nose of the drone, the orientation of the physical nose of the drone must first be determined.
所述无人机的物理机头,指的是无人机实际的、物理意义上的机头。所述无人机的物理机头的朝向由所述无人机的惯性测量装置判断。所述惯性测量装置,包括无人机上的陀螺仪和加速度计。无人机内部实时运行的航向角数据融合模块为飞行控制系统提供航向估计。航向角的估计主要与无人机内装的陀螺仪与加速度计的传感数据相关,GPS信号不良主要影响无人机的位置坐标,对航向角的估计影响微弱,因而所述无人机的物理机头的朝向判断是精确可信的。The physical nose of the drone refers to the actual, physical nose of the drone. The orientation of the physical nose of the drone is determined by the inertial measurement device of the drone. The inertial measurement device includes a gyroscope and an accelerometer on the drone. The heading angle data fusion module running inside the UAV provides heading estimation for the flight control system. The estimation of the heading angle is mainly related to the sensor data of the built-in gyroscope and accelerometer of the drone. The bad GPS signal mainly affects the position coordinates of the drone, and the estimation of the heading angle is weak. Therefore, the physical of the drone The orientation judgment of the nose is accurate and reliable.
判断无人机的物理机头的朝向包括:判断所述无人机的物理机头的朝向是否位于所述无人机与所述控制终端的连线上。Judging the orientation of the physical nose of the drone includes: judging whether the orientation of the physical nose of the drone is located on the connection line between the drone and the control terminal.
在本实施例中,所述无人机与所述控制终端的连线指的是所述无人机的位置坐标和所述控制终端的位置坐标的连线。所述位置坐标可以是GPS坐标。除了GPS定位,无人机的位置坐标还可以通过其他方式定位,例如,基站定位、WiFi AP定位、蓝牙定位(iBeacon)等。所述无人机的位置坐标,指的是所述无人机在切换至所述姿态模式之前的最近一次定位得到的位置坐标。由于状 态自检是实时进行的,而处理器执行代码速度极快,所以从判定无人机被动切换至姿态模式并失控漂移,到生成虚拟机头并根据虚拟机头的朝向进行操纵的时间极短,此时无人机的漂移距离非常有限,所以判定漂移前的最近一次定位得到的位置坐标还是可信的。In this embodiment, the connection between the drone and the control terminal refers to the connection between the position coordinates of the drone and the position coordinates of the control terminal. The location coordinates may be GPS coordinates. In addition to GPS positioning, the location coordinates of the drone can also be located in other ways, such as base station positioning, WiFi AP positioning, and Bluetooth positioning (iBeacon). The position coordinates of the drone refer to the position coordinates obtained by the last positioning of the drone before switching to the attitude mode. Since the state self-check is carried out in real time, and the processor executes the code very fast, the time from determining that the drone passively switches to the attitude mode and drifts out of control, to generating the virtual nose and manipulating it according to the orientation of the virtual nose Short, the drift distance of the drone is very limited at this time, so it is still credible to determine the position coordinates obtained from the last positioning before drifting.
如果所述无人机的物理机头的朝向位于所述无人机与所述控制终端的连线上,则存在以下两种情况。1)当所述无人机的物理机头的朝向背向所述控制终端时,确定所述虚拟机头的朝向为所述无人机的物理机头的朝向。该情况下无人机的物理机头和虚拟机头的位置关系如图4所示。2)当所述无人机的物理机头的朝向面向所述控制终端时,确定所述虚拟机头的朝向为所述无人机的物理机头的朝向的反方向。该情况下无人机的物理机头和虚拟机头的位置关系如图5所示。If the orientation of the physical nose of the drone is on the connection line between the drone and the control terminal, there are the following two situations. 1) When the physical nose of the drone faces away from the control terminal, it is determined that the orientation of the virtual nose is the orientation of the physical nose of the drone. In this case, the positional relationship between the physical nose and the virtual nose of the drone is shown in Figure 4. 2) When the orientation of the physical nose of the drone faces the control terminal, it is determined that the orientation of the virtual nose is the opposite direction of the orientation of the physical nose of the drone. In this case, the positional relationship between the physical nose and the virtual nose of the drone is shown in Figure 5.
如果无人机的物理机头的朝向不是位于所述无人机与所述控制终端的连线上,则存在以下两种情况。1)当所述无人机的物理机头的朝向与所述无人机与所述控制终端的连线呈锐角夹角时,首先需要控制所述无人机的物理机头旋转至所述无人机与所述控制终端的连线上并朝向所述控制终端,而后确定所述虚拟机头的朝向为所述无人机物理机头的朝向的反方向。该情况下无人机的物理机头和虚拟机头的位置关系如图6所示。2)当所述无人机的物理机头的朝向与所述无人机与所述控制终端的连线呈钝角或直角时,首先需要控制所述无人机的物理机头旋转至所述无人机与所述控制终端的连线上并背向所述控制终端,再确定所述虚拟机头的朝向为所述无人机物理机头的朝向。该情况下无人机的物理机头和虚拟机头的位置关系如图7所示。当物理机头的朝向与连线呈夹角时,首先控制无人机的物理机头旋转至连线上的目的在于简化无人机内部的计算量,提高无人机的反应速度。这是由于将物理机头旋转至连线上,无人机可以直接确定虚拟机头可以是物理机头的镜像或者物理机头本身,不需要进行复杂的运算。可以理解的是,这种情况下,控制无人机旋转至连线上并不是必须的,无人机可以根据此时物理机头的位置朝向,通过特定的旋转矩阵求得虚拟机头的位置和朝向。If the orientation of the physical nose of the drone is not on the connection between the drone and the control terminal, there are the following two situations. 1) When the orientation of the physical nose of the drone is at an acute angle with the connection between the drone and the control terminal, it is first necessary to control the physical nose of the drone to rotate to the The drone is connected to the control terminal and faces the control terminal, and then it is determined that the direction of the virtual nose is opposite to the direction of the physical nose of the drone. In this case, the positional relationship between the physical nose and the virtual nose of the drone is shown in Figure 6. 2) When the orientation of the physical nose of the drone is at an obtuse or right angle to the connection between the drone and the control terminal, it is first necessary to control the physical nose of the drone to rotate to the The drone is connected to the control terminal and faces away from the control terminal, and then the orientation of the virtual nose is determined to be the orientation of the physical nose of the drone. In this case, the positional relationship between the physical nose and the virtual nose of the drone is shown in Figure 7. When the orientation of the physical nose and the connection are at an angle, the purpose of first controlling the rotation of the physical nose of the drone to the connection is to simplify the calculations inside the drone and improve the response speed of the drone. This is because the physical nose is rotated to the connection, the drone can directly determine that the virtual nose can be a mirror image of the physical nose or the physical nose itself, without requiring complex calculations. It is understandable that in this case, it is not necessary to control the drone to rotate to the connection line. The drone can obtain the position of the virtual nose through a specific rotation matrix according to the position of the physical nose at this time. And orientation.
生成所述虚拟机头之后,飞控芯片根据所述虚拟机头的朝向和所述控制终端的控制指令,来控制所述无人机的方向。After the virtual machine head is generated, the flight control chip controls the direction of the drone according to the orientation of the virtual machine head and the control instruction of the control terminal.
当确定所述无人机被动进入姿态模式后,检测到所述无人机的漂移速度大于或等于预设的漂移速度阈值时,生成虚拟机头,从而通过控制虚拟机头的朝向来控制所述无人机的方向。此时,无人机的操控者使用所述控制终端,以虚拟机头的方向为参照物,通过控制虚拟机头的方向来控制无人机的实际方向。这样就实现了对现有的无人机控制终端的前、后飞行指令进行简单的翻译,从以无人机的物理机头为参照物到无人机的虚拟机头为参照物,方便了操控者进行紧急反应。这使得操控者能够更加简单地判断和控制无人机的飞行方向,以面对紧急避险情况,从而避免了由于操作失误而导致的险情。When it is determined that the UAV passively enters the attitude mode, and it is detected that the drift speed of the UAV is greater than or equal to the preset drift speed threshold, a virtual nose is generated, thereby controlling the orientation of the virtual nose. State the direction of the drone. At this time, the operator of the drone uses the control terminal to control the actual direction of the drone by controlling the direction of the virtual nose with the direction of the virtual nose as a reference. In this way, a simple translation of the front and back flight instructions of the existing drone control terminal is realized, from taking the physical nose of the drone as the reference to the virtual nose of the drone as the reference, which is convenient The manipulator responded urgently. This allows the operator to more easily judge and control the flight direction of the UAV to face emergency avoidance situations, thereby avoiding dangerous situations caused by operational errors.
请参阅图2,图2是本发明实施例提供的一种无人机控制方法的流程图, 该方法由上述无人机的飞控芯片执行,该方法包括:Please refer to FIG. 2. FIG. 2 is a flowchart of a drone control method according to an embodiment of the present invention. The method is executed by the flight control chip of the drone. The method includes:
步骤201:确定无人机被动进入姿态模式。Step 201: Determine that the drone passively enters the attitude mode.
在本发明的实施例中,当进入姿态模式后,无人机处于悬停自检的状态。所述无人机被动切换至姿态模式的原因有多种,包括:GPS卫星信号差,视觉传感系统无法满足定位条件,指南针受到严重干扰等,在这些情况下,无人机都有可能被动切换至姿态模式。所述姿态模式不启用导航系统,只依赖加速器和陀螺仪来控制飞机姿态。简单来说,在姿态模式下,无人机控制装置控制终端能保证无人机姿态不会自行侧翻,但无法保证速度和位置(定点悬停)的变化。In the embodiment of the present invention, after entering the attitude mode, the drone is in a hovering self-checking state. There are many reasons why the UAV passively switches to the attitude mode, including: poor GPS satellite signal, the vision sensor system cannot meet the positioning conditions, and the compass is severely interfered. Under these circumstances, the UAV may be passive. Switch to attitude mode. The attitude mode does not enable the navigation system, and only relies on the accelerator and gyroscope to control the attitude of the aircraft. To put it simply, in the attitude mode, the drone control device controls the terminal to ensure that the drone's attitude will not roll over on its own, but it cannot guarantee the speed and position (fixed-point hovering) changes.
步骤202:检测此时所述无人机的漂移速度是否大于或等于预设的漂移速度阈值。Step 202: Detect whether the drift speed of the drone at this time is greater than or equal to a preset drift speed threshold.
在本发明的一个实施例中,所述无人机的漂移速度是通过所述无人机的视觉传感器来检测的,并且所述预设的漂移速度阈值主要是根据传感器的误差来确定的。In an embodiment of the present invention, the drift speed of the drone is detected by a vision sensor of the drone, and the preset drift speed threshold is mainly determined according to the error of the sensor.
步骤203:当所述无人机的漂移速度大于或等于所述预设的漂移速度阈值时,生成虚拟机头,其中,所述虚拟机头的朝向背向控制终端,且位于所述无人机与所述控制终端的连线上。生成所述虚拟机头的具体过程参见图3。Step 203: When the drift speed of the drone is greater than or equal to the preset drift speed threshold, generate a virtual nose, where the virtual nose faces away from the control terminal and is located in the unmanned aircraft. The connection between the computer and the control terminal. Refer to Figure 3 for the specific process of generating the virtual machine head.
步骤204:根据所述虚拟机头的朝向和所述控制终端的控制指令控制所述无人机的方向。Step 204: Control the direction of the drone according to the direction of the virtual machine head and the control instruction of the control terminal.
在本发明的实施例中,姿态模式下,无人机的操控者使用所述控制终端,以虚拟机头的方向为参照物,通过控制虚拟机头的方向来控制无人机的实际方向。In the embodiment of the present invention, in the attitude mode, the operator of the drone uses the control terminal to control the actual direction of the drone by controlling the direction of the virtual nose as a reference.
图3示出了本发明步骤203其中一个实施例的具体流程图。在本发明的一实施例中,步骤203还可以包括:Figure 3 shows a specific flow chart of one embodiment of step 203 of the present invention. In an embodiment of the present invention, step 203 may further include:
步骤2031:确定无人机的物理机头的朝向。Step 2031: Determine the orientation of the physical nose of the drone.
在该实施例中,所述无人机的物理机头是所述无人机的实际的、物理意义上的机头。所述无人机的物理机头的朝向是通过所述无人机的惯性测量装置判断的。所述惯性测量装置,包括无人机上的陀螺仪和加速度计。航向角的估计主要与无人机内装的陀螺仪与加速度计的传感数据相关,GPS信号不良主要影响无人机的位置坐标,对航向角的估计影响微弱。In this embodiment, the physical nose of the drone is the actual, physical nose of the drone. The orientation of the physical nose of the drone is determined by the inertial measurement device of the drone. The inertial measurement device includes a gyroscope and an accelerometer on the drone. The estimation of the heading angle is mainly related to the sensor data of the built-in gyroscope and accelerometer of the UAV. The bad GPS signal mainly affects the position coordinates of the UAV, and the estimation of the heading angle is weak.
步骤2032:判断所述无人机的物理机头的朝向是否位于所述无人机与所述控制终端的连线上。Step 2032: Determine whether the orientation of the physical nose of the drone is located on the connection line between the drone and the control terminal.
在本实施例中,所述无人机与所述控制终端的连线是指所述无人机的位置坐标和所述控制终端的位置坐标的连线,所述位置坐标可以是GPS坐标。所述无人机的位置坐标为所述无人机在切换至所述姿态模式之前的最近一次定位得到的位置坐标。由于状态自检是实时进行的,而处理器执行代码速度极快,所以从判定无人机被动切换至姿态模式并失控漂移,到生成虚拟机头并根据虚拟机头的朝向进行操纵的时间极短,此时无人机的漂移距离非常有限,所以判 定漂移前的最近一次定位得到的位置坐标还是可信的。In this embodiment, the connection between the drone and the control terminal refers to the connection between the position coordinates of the drone and the position coordinates of the control terminal, and the position coordinates may be GPS coordinates. The position coordinates of the drone are the position coordinates obtained from the last positioning of the drone before switching to the attitude mode. Since the state self-check is carried out in real time, and the processor executes the code very fast, the time from determining that the drone passively switches to the attitude mode and drifts out of control, to generating the virtual nose and manipulating it according to the orientation of the virtual nose Short, the drift distance of the drone is very limited at this time, so it is still credible to determine the position coordinates obtained from the last positioning before drifting.
若是,则该方法进行到步骤2033。If yes, the method proceeds to step 2033.
若否,则该方法进行到步骤2034。If not, the method proceeds to step 2034.
步骤2033:判断所述无人机的物理机头的朝向是否背向所述控制终端。Step 2033: Determine whether the physical nose of the drone is facing away from the control terminal.
若是,则该方法进行到步骤2035。If yes, the method proceeds to step 2035.
若否,则该方法进行到步骤2036。If not, the method proceeds to step 2036.
步骤2035:确定所述虚拟机头的朝向为所述无人机的物理机头的朝向。该情况下无人机的物理机头的朝向和虚拟机头的朝向关系参见图4。Step 2035: Determine the orientation of the virtual nose as the orientation of the physical nose of the drone. In this case, see Fig. 4 for the relationship between the orientation of the physical nose of the drone and the orientation of the virtual nose.
步骤2036:确定所述虚拟机头的朝向为所述无人机的物理机头的朝向的反方向。该情况下无人机的物理机头的朝向和虚拟机头的朝向关系参见图5。Step 2036: Determine that the direction of the virtual nose is the opposite of the direction of the physical nose of the drone. In this case, refer to Figure 5 for the relationship between the orientation of the physical nose of the drone and the orientation of the virtual nose.
当判断所述无人机的物理机头的朝向不是位于所述无人机与所述控制终端的连线上时,方法进行到步骤2034。When it is determined that the orientation of the physical nose of the drone is not on the connection between the drone and the control terminal, the method proceeds to step 2034.
步骤2034:判断所述无人机的物理机头的朝向是否与所述无人机与所述控制终端的连线呈锐角夹角。Step 2034: Determine whether the orientation of the physical nose of the drone is at an acute angle with the connection line between the drone and the control terminal.
若是,则该方法进行到步骤2037。If yes, the method proceeds to step 2037.
步骤2037:控制所述无人机的物理机头旋转至所述无人机与所述控制终端的连线上并朝向所述控制终端;确定所述虚拟机头的朝向为所述无人机物理机头的朝向的反方向。该情况下无人机的物理机头的朝向以及旋转方向参见图6。Step 2037: Control the physical nose of the drone to rotate to the connection between the drone and the control terminal and face the control terminal; determine that the direction of the virtual nose is the drone The opposite direction of the physical head. In this case, see Figure 6 for the orientation and rotation direction of the physical nose of the drone.
若否,则该方法进行到步骤2038。If not, the method proceeds to step 2038.
步骤2038:控制所述无人机的物理机头旋转至所述无人机与所述控制终端的连线上并背向所述控制终端;确定所述虚拟机头的朝向为所述无人机物理机头的朝向。该情况下无人机的物理机头的朝向以及旋转方向参见图7。Step 2038: Control the physical nose of the drone to rotate to the connection between the drone and the control terminal and face away from the control terminal; determine that the direction of the virtual nose is the unmanned The orientation of the physical head of the machine. See Figure 7 for the orientation and rotation direction of the physical nose of the drone in this case.
在本发明的一个实施例中,通过判断无人机的物理机头的朝向与无人机到无人机控制终端的坐标连线之间的夹角角度,控制物理机头的朝向旋转至所述无人机与所述控制终端的连线上并朝向或背向所述控制终端,目的是使得物理机头以最快的速度完成转向,从而判断虚拟机头的方向以快速便捷地生成虚拟机头。In an embodiment of the present invention, by judging the angle between the orientation of the physical nose of the drone and the coordinate connection between the drone and the drone control terminal, the orientation of the physical nose is controlled to rotate to the desired position. The drone is connected to the control terminal and faces or faces away from the control terminal. The purpose is to make the physical nose complete the steering at the fastest speed, thereby judging the direction of the virtual nose to quickly and easily generate virtual Nose.
本发明的实施例还提供了一种计算机可读存储介质,本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于所述计算机可读取存储介质中,所述程序在由所述一个或者多个程序可被一个或者多个处理器执行时,可包括如上述各实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(ROM,Read Only Memory)或随机存储记忆体(RAM,Random Access Memory)等。The embodiment of the present invention also provides a computer-readable storage medium. A person of ordinary skill in the art can understand that all or part of the processes in the method of the above-mentioned embodiments can be completed by instructing relevant hardware by a computer program. The program may be stored in the computer readable storage medium, and when the one or more programs can be executed by one or more processors, the program may include the processes of the foregoing embodiments. The storage medium may be a magnetic disk, an optical disc, a read only memory (ROM, Read Only Memory), or a random access memory (RAM, Random Access Memory), etc.
如图8所示,本发明实施例还提供了一种无人机控制装置,包括确定模块801、检测模块802、虚拟机头生成模块803、以及控制模块804。As shown in FIG. 8, an embodiment of the present invention also provides a drone control device, which includes a determination module 801, a detection module 802, a virtual machine head generation module 803, and a control module 804.
确定模块801,用于确定无人机被动进入姿态模式,其中,当所述无人机进入所述姿态模式后,所述无人机处于悬停自检状态。The determining module 801 is configured to determine that the drone passively enters the attitude mode, wherein when the drone enters the attitude mode, the drone is in a hovering self-check state.
检测模块802,用于检测此时所述无人机的漂移速度是否大于或等于预设的漂移速度阈值。所述检测模块802通过所述无人机的视觉传感器检测所述无人机的漂移速度,所述预设的漂移阈值根据传感器的误差而设定。The detection module 802 is configured to detect whether the drift speed of the drone at this time is greater than or equal to a preset drift speed threshold. The detection module 802 detects the drift speed of the drone through the vision sensor of the drone, and the preset drift threshold is set according to the error of the sensor.
虚拟机头生成模块803,用于当所述无人机的漂移速度大于或等于所述预设的漂移速度阈值时,判断所述无人机的物理机头的朝向,根据所述无人机的物理机头的朝向,确定所述虚拟机头的朝向,生成虚拟机头,其中,所述虚拟机头的朝向背向控制终端,且位于所述无人机与所述控制终端的连线上。The virtual nose generating module 803 is configured to determine the direction of the physical nose of the drone when the drift speed of the drone is greater than or equal to the preset drift speed threshold, according to the drone The orientation of the physical nose of the drone is determined to determine the orientation of the virtual nose to generate a virtual nose, where the virtual nose is facing away from the control terminal and is located on the connection line between the drone and the control terminal on.
在本发明的一个实施例中,虚拟机头生成模块803用于通过所述无人机的惯性测量装置判断所述无人机的物理机头的朝向。所述无人机的惯性测量装置包括加速度计和陀螺仪。所述无人机与所述控制终端的连线是指所述无人机的位置坐标和所述控制终端的位置坐标的连线,所述位置坐标可以是GPS坐标。所述无人机的位置坐标为所述无人机在切换至所述姿态模式之前的最近一次定位得到的位置坐标。In an embodiment of the present invention, the virtual nose generating module 803 is used to determine the orientation of the physical nose of the drone through the inertial measurement device of the drone. The inertial measurement device of the drone includes an accelerometer and a gyroscope. The connection between the drone and the control terminal refers to the connection between the position coordinates of the drone and the position coordinates of the control terminal, and the position coordinates may be GPS coordinates. The position coordinates of the drone are the position coordinates obtained from the last positioning of the drone before switching to the attitude mode.
在本发明的一个实施例中,所述虚拟机头生成模块803用于判断所述无人机的物理机头的朝向是否位于所述无人机与所述控制终端的连线上。In an embodiment of the present invention, the virtual nose generating module 803 is used to determine whether the orientation of the physical nose of the drone is located on the connection line between the drone and the control terminal.
若是,1)当所述无人机的物理机头的朝向背向所述控制终端时,则所述虚拟机头生成模块803确定所述虚拟机头的朝向为所述无人机的物理机头的朝向;2)当所述无人机的物理机头的朝向面向所述控制终端时,则所述虚拟机头生成模块803确定所述虚拟机头的朝向为所述无人机的物理机头的朝向的反方向。If yes, 1) when the physical nose of the drone is facing away from the control terminal, the virtual nose generating module 803 determines that the orientation of the virtual nose is the physical machine of the drone. Head orientation; 2) when the physical nose of the drone faces the control terminal, the virtual nose generating module 803 determines that the virtual nose is the physical orientation of the drone The opposite direction of the nose.
若否,1)当所述无人机的物理机头的朝向与所述无人机与所述控制终端的连线呈锐角夹角时,如图6所示,所述虚拟机头生成模块803控制所述无人机的物理机头旋转至所述无人机与所述控制终端的连线上并朝向所述控制终端;确定所述虚拟机头的朝向为所述无人机物理机头的朝向的反方向。2)当所述无人机的物理机头的朝向与所述无人机与所述控制终端的连线呈钝角或直角夹角时,如图7所示,所述虚拟机头生成模块803控制所述无人机的物理机头旋转至所述无人机与所述控制终端的连线上并背向所述控制终端;确定所述虚拟机头的朝向为所述无人机物理机头的朝向。If not, 1) When the orientation of the physical nose of the drone is at an acute angle with the connection between the drone and the control terminal, as shown in FIG. 6, the virtual nose generating module 803 controls the physical nose of the drone to rotate to the connection between the drone and the control terminal and face the control terminal; determine that the orientation of the virtual nose is the physical drone of the drone The head is facing in the opposite direction. 2) When the orientation of the physical nose of the drone is at an obtuse or right angle to the connection between the drone and the control terminal, as shown in FIG. 7, the virtual nose generating module 803 Control the physical nose of the drone to rotate to the connection between the drone and the control terminal and face away from the control terminal; determine the orientation of the virtual nose as the physical drone The orientation of the head.
在本发明的实施例中,所述虚拟机头生成模块803用于通过判断无人机的物理机头的朝向与无人机到无人机控制终端的坐标连线之间的夹角角度,控制物理机头的朝向旋转至所述无人机与所述控制终端的连线上并朝向或背向所述控制终端。这样做的目的是使得物理机头以最快的速度完成转向,从而判断虚拟机头的方向以快速便捷地生成虚拟机头。In the embodiment of the present invention, the virtual nose generating module 803 is used to determine the angle between the orientation of the physical nose of the drone and the coordinate line connecting the drone to the drone control terminal. Control the orientation of the physical nose to rotate to the connection between the drone and the control terminal and face or back to the control terminal. The purpose of this is to enable the physical head to complete the steering at the fastest speed, so as to determine the direction of the virtual head to quickly and easily generate the virtual head.
控制模块804,用于根据所述虚拟机头的朝向和所述控制终端的控制指令控制所述无人机的方向。The control module 804 is configured to control the direction of the drone according to the direction of the virtual machine head and the control instruction of the control terminal.
需要说明的是,所述确定模块801、检测模块802与虚拟机头生成模块803 一般设置在所述无人机上,由无人机的飞行控制芯片所执行,所述控制模块804可以设置在所述无人机上,也可以设置在所述无人机控制终端上,所述控制模块804对现有的无人机控制终端发出的操控飞行指令(该操纵飞行指令以无人机的物理机头的朝向为参照物)进行一次翻译处理(即将其变换为以生成的虚拟机头的朝向为参照物)后,再操纵无人机的目标飞行方向。确定模块801、检测模块802、虚拟机头生成模块803、以及控制模块804设置在不同的物理装置上时,可以通过其各自所在的物理装置上的通信模块进行数据通信。It should be noted that the determination module 801, the detection module 802, and the virtual nose generation module 803 are generally set on the drone and executed by the flight control chip of the drone, and the control module 804 can be set on the drone. The drone can also be set on the drone control terminal. The control module 804 sends a flight control instruction to the existing drone control terminal (the flight control instruction is based on the physical nose of the drone. The direction of the drone is the reference object) after a translation process (that is, it is transformed into the direction of the generated virtual nose as the reference object), and then the target flight direction of the drone is manipulated. When the determination module 801, the detection module 802, the virtual machine head generation module 803, and the control module 804 are installed on different physical devices, data communication can be performed through the communication modules on the physical devices where they are located.
本申请提出了一种针对无人机漂移失控的自适应镜像操纵模式,当无人机程序中内置的确定模块认定无人机被动切换至姿态模式且检测模块通过视觉等传感器判断本应该悬停的无人机有比较大的漂移速度时,虚拟机头生成模块生成虚拟机头,并且控制模块根据虚拟机头的朝向来操纵无人机的目标飞行方向,让无人机如同镜子对面的操控者一般,沿着操控者的方向感运动,以此来避免紧急避险情况下操控者无法顾及物理机头的朝向,下意识地以自身方向感进行避险时给出的错误操纵命令导致无人机炸机的情况;进一步地,通过实时检查无人机物理机头的朝向,必要时将物理机头的朝向旋转至所述无人机与所述控制终端的连线上朝向或背向无人机的控制终端,从而可以将生成虚拟机头的朝向的各种可能性简化到只有两种方向,即与无人机的物理机头的朝向相同或相反,简化了算法,对现有的无人机控制终端的前、后飞行指令进行简单的翻译。This application proposes an adaptive mirroring operation mode for drone drifting out of control. When the built-in determination module in the drone program determines that the drone passively switches to the attitude mode, and the detection module uses vision and other sensors to determine that it should be hovering When the drone has a relatively large drift speed, the virtual nose generation module generates a virtual nose, and the control module controls the target flight direction of the drone according to the direction of the virtual nose, so that the drone is controlled like a mirror opposite In general, they move along the controller’s sense of direction to prevent the controller from being unable to take into account the orientation of the physical nose in emergency avoidance situations, and subconsciously use their sense of direction to give wrong control commands when avoiding danger. The situation of the bomber; further, by checking the orientation of the physical nose of the drone in real time, if necessary, rotate the orientation of the physical nose to the connection between the drone and the control terminal. The control terminal of the man-machine can simplify the various possibilities of generating the orientation of the virtual nose to only two directions, that is, the orientation of the physical nose of the drone is the same or opposite, which simplifies the algorithm and compares the existing The front and back flight instructions of the drone control terminal are simply translated.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现,相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本发明不限制于任何特定形式的硬件和软件的结合。Those of ordinary skill in the art can understand that all or part of the steps in the above method can be completed by a program instructing relevant hardware, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk, or an optical disk. Optionally, all or part of the steps of the foregoing embodiments can also be implemented by using one or more integrated circuits. Accordingly, each module/unit in the foregoing embodiments can be implemented in the form of hardware or software functional modules. Form realization. The present invention is not limited to the combination of any specific form of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The foregoing descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention can have various modifications and changes. Any modification, equivalent replacement, improvement, etc., made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (17)

  1. 一种无人机控制方法,其特征在于,包括:An unmanned aerial vehicle control method, characterized in that it comprises:
    确定无人机被动进入姿态模式,其中,当所述无人机进入所述姿态模式后,所述无人机处于悬停自检状态;Determining that the drone passively enters the attitude mode, wherein after the drone enters the attitude mode, the drone is in a hovering self-check state;
    检测此时所述无人机的漂移速度是否大于或等于预设的漂移速度阈值;Detecting whether the drift speed of the drone at this time is greater than or equal to a preset drift speed threshold;
    当所述无人机的漂移速度大于或等于所述预设的漂移速度阈值时,生成虚拟机头,其中,所述虚拟机头的朝向背向控制终端,且位于所述无人机与所述控制终端的连线上;When the drift speed of the drone is greater than or equal to the preset drift speed threshold, a virtual machine head is generated, wherein the virtual machine head faces away from the control terminal and is located between the drone and the control terminal. On the connection of the control terminal;
    根据所述虚拟机头的朝向和所述控制终端的控制指令控制所述无人机的方向。The direction of the drone is controlled according to the direction of the virtual machine head and the control instruction of the control terminal.
  2. 根据权利要求1所述的方法,其特征在于,所述检测此时所述无人机的漂移速度是否大于或等于预设的漂移速度阈值,包括:The method according to claim 1, wherein the detecting whether the drift speed of the drone at this time is greater than or equal to a preset drift speed threshold comprises:
    通过所述无人机的视觉传感器检测此时所述无人机的漂移速度是否大于或等于所述预设的漂移速度阈值。The vision sensor of the drone detects whether the drift speed of the drone at this time is greater than or equal to the preset drift speed threshold.
  3. 根据权利要求1或2所述的方法,其特征在于,所述当所述无人机的漂移速度大于或等于所述预设的漂移速度阈值时,生成所述虚拟机头,包括:The method of claim 1 or 2, wherein the generating the virtual nose when the drift speed of the drone is greater than or equal to the preset drift speed threshold comprises:
    判断所述无人机的物理机头的朝向;Determine the orientation of the physical nose of the drone;
    根据所述无人机的物理机头的朝向,确定所述虚拟机头的朝向,以生成所述虚拟机头。According to the orientation of the physical nose of the drone, the orientation of the virtual nose is determined to generate the virtual nose.
  4. 根据权利要求3所述的方法,其特征在于,所述判断所述无人机的物理机头的朝向,包括:The method according to claim 3, wherein the determining the orientation of the physical nose of the drone comprises:
    通过所述无人机的惯性测量装置判断所述无人机的物理机头的朝向。The orientation of the physical nose of the drone is determined by the inertial measurement device of the drone.
  5. 根据权利要求3或4所述的方法,其特征在于,所述判断所述无人机的物理机头的朝向,根据所述无人机的物理机头的朝向,确定所述虚拟机头的朝向,包括:The method according to claim 3 or 4, wherein the judging the orientation of the physical nose of the drone, and determining the orientation of the virtual nose according to the orientation of the physical nose of the drone Orientation, including:
    判断所述无人机的物理机头的朝向是否位于所述无人机与所述控制终端的连线上;Judging whether the orientation of the physical nose of the drone is located on the connection line between the drone and the control terminal;
    若是,则判断所述无人机的物理机头的朝向是否背向所述控制终端;If yes, determine whether the physical nose of the drone is facing away from the control terminal;
    若是,则:If yes, then:
    确定所述虚拟机头的朝向为所述无人机的物理机头的朝向。It is determined that the orientation of the virtual nose is the orientation of the physical nose of the drone.
  6. 根据权利要求3或4所述的方法,其特征在于,所述判断所述无人机的物理机头的朝向,根据所述无人机的物理机头的朝向,确定所述虚拟机头的朝向,包括:The method according to claim 3 or 4, wherein the judging the orientation of the physical nose of the drone, and determining the orientation of the virtual nose according to the orientation of the physical nose of the drone Orientation, including:
    判断所述无人机的物理机头的朝向是否位于所述无人机与所述控制终端的连线上;Judging whether the orientation of the physical nose of the drone is located on the connection line between the drone and the control terminal;
    若是,则判断所述无人机的物理机头的朝向是否背向所述控制终端;If yes, determine whether the physical nose of the drone is facing away from the control terminal;
    若否,则:If not, then:
    确定所述虚拟机头的朝向为所述无人机的物理机头的朝向的反方向。It is determined that the orientation of the virtual nose is the opposite of the orientation of the physical nose of the drone.
  7. 根据权利要求3或4所述的方法,其特征在于,所述判断所述无人机的物理机头的朝向,根据所述无人机的物理机头的朝向,确定所述虚拟机头的朝向,包括:The method according to claim 3 or 4, wherein the judging the orientation of the physical nose of the drone, and determining the orientation of the virtual nose according to the orientation of the physical nose of the drone Orientation, including:
    判断所述无人机的物理机头的朝向是否位于所述无人机与所述控制终端的连线上;Judging whether the orientation of the physical nose of the drone is located on the connection line between the drone and the control terminal;
    若否,If not,
    则判断所述无人机的物理机头的朝向是否与所述无人机与所述控制终端的连线呈锐角夹角;Determining whether the orientation of the physical nose of the drone is at an acute angle with the connection line between the drone and the control terminal;
    若是,则:If yes, then:
    控制所述无人机的物理机头旋转至所述无人机与所述控制终端的连线上并朝向所述控制终端;Control the physical nose of the drone to rotate to the connection between the drone and the control terminal and face the control terminal;
    确定所述虚拟机头的朝向为所述无人机物理机头的朝向的反方向。It is determined that the orientation of the virtual nose is the opposite of the orientation of the physical nose of the drone.
  8. 根据权利要求3或4所述的方法,其特征在于,所述判断所述无人机的物理机头的朝向,根据所述无人机的物理机头的朝向,确定所述虚拟机头的朝向,还包括:The method according to claim 3 or 4, wherein the judging the orientation of the physical nose of the drone, and determining the orientation of the virtual nose according to the orientation of the physical nose of the drone Orientation, also includes:
    判断所述无人机的物理机头的朝向是否位于所述无人机与所述控制终端的连线上;Judging whether the orientation of the physical nose of the drone is located on the connection line between the drone and the control terminal;
    若否,If not,
    则判断所述无人机的物理机头的朝向是否与所述无人机与所述控制终端的连线呈锐角夹角;Determining whether the orientation of the physical nose of the drone is at an acute angle with the connection line between the drone and the control terminal;
    若否,If not,
    控制所述无人机的物理机头旋转至所述无人机与所述控制终端的连线上并背向所述控制终端;Controlling the physical nose of the drone to rotate to the connection between the drone and the control terminal and facing away from the control terminal;
    确定所述虚拟机头的朝向为所述无人机物理机头的朝向。It is determined that the orientation of the virtual nose is the orientation of the physical nose of the drone.
  9. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现如权利要求1至权利要求8中任一项所述的无人机控制方法。A computer-readable storage medium, characterized in that one or more programs are stored on the computer-readable storage medium, and the one or more programs can be executed by one or more processors to realize The drone control method according to any one of 1 to claim 8.
  10. 一种无人机控制装置,其特征在于,包括:An unmanned aerial vehicle control device, characterized in that it comprises:
    确定模块,用于确定无人机被动进入姿态模式,其中,当所述无人机进入所述姿态模式后,所述无人机处于悬停自检状态;The determining module is used to determine that the drone passively enters the attitude mode, wherein when the drone enters the attitude mode, the drone is in a hovering self-check state;
    检测模块,用于检测此时所述无人机的漂移速度是否大于或等于预设的漂移速度阈值;The detection module is used to detect whether the drift speed of the drone at this time is greater than or equal to a preset drift speed threshold;
    虚拟机头生成模块,用于当所述无人机的漂移速度大于或等于所述预设的漂移速度阈值时,生成虚拟机头,其中,所述虚拟机头的朝向背向控制终端,且位于所述无人机与所述控制终端的连线上;以及The virtual nose generating module is used to generate a virtual nose when the drift speed of the drone is greater than or equal to the preset drift speed threshold, wherein the virtual nose is facing away from the control terminal, and Located on the connection between the drone and the control terminal; and
    控制模块,用于根据所述虚拟机头的朝向和所述控制终端的控制指令控制所述无人机的方向。The control module is used to control the direction of the drone according to the direction of the virtual machine head and the control instruction of the control terminal.
  11. 根据权利要求10所述的装置,其特征在于,所述检测模块用于通过所述无人机的视觉传感器检测此时所述无人机的漂移速度是否大于或等于所述预设的漂移速度阈值。The device according to claim 10, wherein the detection module is configured to detect whether the drift speed of the drone at this time is greater than or equal to the preset drift speed through the vision sensor of the drone Threshold.
  12. 根据权利要求10或11所述的装置,其特征在于,所述虚拟机头生成模块用于:The device according to claim 10 or 11, wherein the virtual machine head generation module is used for:
    判断所述无人机的物理机头的朝向;Determine the orientation of the physical nose of the drone;
    根据所述无人机的物理机头的朝向,确定所述虚拟机头的朝向,以生成所述虚拟机头。According to the orientation of the physical nose of the drone, the orientation of the virtual nose is determined to generate the virtual nose.
  13. 根据权利要求12所述的装置,其特征在于,所述虚拟机头生成模块用于通过所述无人机的惯性测量装置判断所述无人机的物理机头的朝向。The device according to claim 12, wherein the virtual nose generating module is used to determine the orientation of the physical nose of the drone through an inertial measurement device of the drone.
  14. 根据权利要求12或13所述的装置,其特征在于,所述虚拟机头生成模块具体用于:The device according to claim 12 or 13, wherein the virtual head generation module is specifically configured to:
    判断所述无人机的物理机头的朝向是否位于所述无人机与所述控制终端的连线上;Judging whether the orientation of the physical nose of the drone is located on the connection line between the drone and the control terminal;
    若是,则判断所述无人机的物理机头的朝向是否背向所述控制终端;If yes, determine whether the physical nose of the drone is facing away from the control terminal;
    若是,则:If yes, then:
    确定所述虚拟机头的朝向为所述无人机的物理机头的朝向。It is determined that the orientation of the virtual nose is the orientation of the physical nose of the drone.
  15. 根据权利要求12或13所述的装置,其特征在于,所述虚拟机头生成模块具体用于:The device according to claim 12 or 13, wherein the virtual head generation module is specifically configured to:
    判断所述无人机的物理机头的朝向是否位于所述无人机与所述控制终端的连线上;Judging whether the orientation of the physical nose of the drone is located on the connection line between the drone and the control terminal;
    若否,If not,
    则判断所述无人机的物理机头的朝向是否与所述无人机与所述控制终端的连线呈锐角夹角;Determining whether the orientation of the physical nose of the drone is at an acute angle with the connection line between the drone and the control terminal;
    若是,则:If yes, then:
    控制所述无人机的物理机头旋转至所述无人机与所述控制终端的连线上并朝向所述控制终端;Control the physical nose of the drone to rotate to the connection between the drone and the control terminal and face the control terminal;
    确定所述虚拟机头的朝向为所述无人机物理机头的朝向的反方向。It is determined that the orientation of the virtual nose is the opposite of the orientation of the physical nose of the drone.
  16. 根据权利要求12或13所述的装置,其特征在于,所述虚拟机头生成模块具体用于:The device according to claim 12 or 13, wherein the virtual head generation module is specifically configured to:
    判断所述无人机的物理机头的朝向是否位于所述无人机与所述控制终端的连线上;Judging whether the orientation of the physical nose of the drone is located on the connection line between the drone and the control terminal;
    若否,If not,
    则判断所述无人机的物理机头的朝向是否与所述无人机与所述控制终端的连线呈锐角夹角;Determining whether the orientation of the physical nose of the drone is at an acute angle with the connection line between the drone and the control terminal;
    若否,If not,
    控制所述无人机的物理机头旋转至所述无人机与所述控制终端的连线上并背向所述控制终端;Controlling the physical nose of the drone to rotate to the connection between the drone and the control terminal and facing away from the control terminal;
    确定所述虚拟机头的朝向为所述无人机物理机头的朝向。It is determined that the orientation of the virtual nose is the orientation of the physical nose of the drone.
  17. 一种无人机,其特征在于,包括:An unmanned aerial vehicle, characterized in that it includes:
    机身;body;
    机臂,与所述机身相连;An arm, connected to the fuselage;
    动力装置,设于所述机臂,所述动力装置用于提供所述无人机飞行的动力;以及A power device arranged on the arm, the power device is used to provide power for the drone to fly; and
    飞控芯片,设于所述机身;The flight control chip is located in the fuselage;
    其中,所述飞控芯片用于执行如权利要求1-8中任一项所述的无人机控制方法。Wherein, the flight control chip is used to execute the drone control method according to any one of claims 1-8.
PCT/CN2020/091345 2019-05-20 2020-05-20 Unmanned aerial vehicle control method and apparatus and computer-readable storage medium WO2020233607A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910418981.4A CN110109475A (en) 2019-05-20 2019-05-20 A kind of unmanned aerial vehicle (UAV) control method and apparatus, computer readable storage medium
CN201910418981.4 2019-05-20

Publications (1)

Publication Number Publication Date
WO2020233607A1 true WO2020233607A1 (en) 2020-11-26

Family

ID=67491188

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/091345 WO2020233607A1 (en) 2019-05-20 2020-05-20 Unmanned aerial vehicle control method and apparatus and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN110109475A (en)
WO (1) WO2020233607A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110109475A (en) * 2019-05-20 2019-08-09 深圳市道通智能航空技术有限公司 A kind of unmanned aerial vehicle (UAV) control method and apparatus, computer readable storage medium
CN110687927A (en) * 2019-09-05 2020-01-14 深圳市道通智能航空技术有限公司 Flight control method, aircraft and flight system
CN110866989A (en) * 2019-12-09 2020-03-06 浙江顿悟科技有限公司 Unmanned aerial vehicle-based power system inspection method
CN111103898A (en) * 2019-12-25 2020-05-05 深圳市道通智能航空技术有限公司 Unmanned aerial vehicle protection method and device and unmanned aerial vehicle

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104898697A (en) * 2015-05-18 2015-09-09 国家电网公司 Three-dimensional dynamic model of unmanned plane and control method
CN107943083A (en) * 2017-12-11 2018-04-20 梁金凤 A kind of flight system of precise control
WO2018110848A1 (en) * 2016-12-14 2018-06-21 Samsung Electronics Co., Ltd. Method for operating unmanned aerial vehicle and electronic device for supporting the same
CN108646770A (en) * 2018-03-28 2018-10-12 深圳臻迪信息技术有限公司 A kind of UAV Flight Control method, apparatus and system
CN109270941A (en) * 2017-07-18 2019-01-25 李保文 A kind of aerial unmanned plane ultra-viewing distance remote control method
CN110109475A (en) * 2019-05-20 2019-08-09 深圳市道通智能航空技术有限公司 A kind of unmanned aerial vehicle (UAV) control method and apparatus, computer readable storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR3020169A1 (en) * 2014-04-16 2015-10-23 Parrot ROTATING WING DRONE WITH VIDEO CAMERA DELIVERING STABILIZED IMAGE SEQUENCES
CN105700548A (en) * 2016-01-20 2016-06-22 杭州米为科技有限公司 Unmanned plane and unmanned plane control method
CN106023554A (en) * 2016-06-17 2016-10-12 深圳市元征科技股份有限公司 Remote control method and remote controller
CN106483953B (en) * 2016-10-28 2019-03-15 深圳市道通智能航空技术有限公司 A kind of method, apparatus and unmanned plane of the heading adjusting unmanned plane
CN106444848B (en) * 2016-11-28 2018-11-30 广州极飞科技有限公司 Control the method and device of unmanned plane during flying
CN108122553B (en) * 2017-12-20 2020-12-08 深圳市道通智能航空技术有限公司 Unmanned aerial vehicle control method and device, remote control equipment and unmanned aerial vehicle system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104898697A (en) * 2015-05-18 2015-09-09 国家电网公司 Three-dimensional dynamic model of unmanned plane and control method
WO2018110848A1 (en) * 2016-12-14 2018-06-21 Samsung Electronics Co., Ltd. Method for operating unmanned aerial vehicle and electronic device for supporting the same
CN109270941A (en) * 2017-07-18 2019-01-25 李保文 A kind of aerial unmanned plane ultra-viewing distance remote control method
CN107943083A (en) * 2017-12-11 2018-04-20 梁金凤 A kind of flight system of precise control
CN108646770A (en) * 2018-03-28 2018-10-12 深圳臻迪信息技术有限公司 A kind of UAV Flight Control method, apparatus and system
CN110109475A (en) * 2019-05-20 2019-08-09 深圳市道通智能航空技术有限公司 A kind of unmanned aerial vehicle (UAV) control method and apparatus, computer readable storage medium

Also Published As

Publication number Publication date
CN110109475A (en) 2019-08-09

Similar Documents

Publication Publication Date Title
WO2020233607A1 (en) Unmanned aerial vehicle control method and apparatus and computer-readable storage medium
US11693401B2 (en) Method, device, and system for redundancy control
US11874656B2 (en) Unmanned aerial vehicle modular command priority determination and filtering system
US20200019189A1 (en) Systems and methods for operating unmanned aerial vehicle
WO2018218516A1 (en) Unmanned aerial vehicle return route planning method and apparatus
JP6671375B2 (en) How to fly a drone
WO2018072133A1 (en) Method for controlling mobile device, control system and mobile device
CN108701362B (en) Obstacle avoidance during target tracking
WO2019144271A1 (en) Method and device for controlling unmanned aerial vehicle, and unmanned aerial vehicle
US20220244746A1 (en) Method of controlling an aircraft, flight control device for an aircraft, and aircraft with such flight control device
WO2019119201A1 (en) Gimbal control method, unmanned aerial vehicle, gimbal, and storage medium
WO2018107419A1 (en) Control method, device and apparatus, and movable platform
EP3771956B1 (en) Systems and methods for generating flight paths for navigating an aircraft
JP4012749B2 (en) Remote control system
US20200169666A1 (en) Target observation method, related device and system
US20190367166A1 (en) Unmanned flying object and method of controlling unmanned flying object
WO2023025200A1 (en) Control method and apparatus for forced landing of unmanned aerial vehicle, remote control apparatus, and storage medium
WO2018187936A1 (en) Unmanned aerial vehicle and obstacle avoidance control method therefor
WO2017166080A1 (en) Method and device for indicating execution state, and unmanned aerial vehicle
KR20190000771A (en) AHRS flight control device based on mobile platform
WO2019000328A1 (en) Control method of unmanned aerial vehicle, control terminal, and unmanned aerial vehicle
WO2018112848A1 (en) Flight control method and apparatus
WO2020237529A1 (en) Flight control method and apparatus for unmanned aerial vehicle, and unmanned aerial vehicle
EP3288828B1 (en) Unmanned aerial vehicle system and method for controlling an unmanned aerial vehicle
WO2021238743A1 (en) Flight control method and apparatus for unmanned aerial vehicle, and unmanned aerial vehicle

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: 20809365

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: 20809365

Country of ref document: EP

Kind code of ref document: A1