Unmanned aerial vehicle flight angle control method, medium and inspection system

Through touch operations on the monitoring page, combined action commands are generated and the direction of the drone head and gimbal are adjusted, which solves the problems of operation complexity and calculation difficulty in drone inspection, and improves inspection efficiency and equipment compatibility .

CN118915779APending Publication Date: 2024-11-08GUANGDONG ELECTRIC POWER SCI RES INST ENERGY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410958138.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

During the existing drone inspection, remote control personnel need to control the drone's flight angle through complex button operations, resulting in high operational complexity and high computing difficulty. UAVs that do not have computing power modules require external computing. Force modules are used to achieve target recognition and have weak compatibility.

Method used

Through the touch operation of the monitoring page, we obtain the coordinates of the touch point, determine the rotation direction and angle of the drone head and gimbal according to the relationship between the coordinates and the center of the screen, generate combined action commands, and adjust the drone head and cloud according to the relationship between the coordinates and the center of the screen, and determine the rotation direction and angle of the drone head and gimbal, generate combined action instructions, and adjust the drone head and cloud The direction of the station reduces operational complexity, reduces calculation difficulty, and enhances device compatibility.

Benefits of technology

It reduces the operational complexity of remote control personnel, improves patrol efficiency, and reduces the difficulty of calculating the plane distance between the drone and the target object. It does not require an external computing module to achieve target recognition, and enhances equipment compatibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118915779A_ABST
    Figure CN118915779A_ABST
Patent Text Reader

Abstract

The invention discloses an unmanned aerial vehicle flight angle control method, a medium and an inspection system, and belongs to the technical field of unmanned aerial vehicles, and the method comprises the steps: responding to a touch operation of a user on a real-time picture in a monitoring page, and according to a position relation between a coordinate of a touch point in the real-time picture and a central point of the real-time picture, determining a flight angle of the unmanned aerial vehicle; determining the rotation direction of the head of the unmanned aerial vehicle and the rotation direction of the holder; according to the position relation between the coordinates of the touch point in the real-time picture and the center point of the real-time picture and the angle of the horizontal field angle and the angle of the vertical field angle of the unit pixel of the real-time picture, the rotation angle of the unmanned aerial vehicle head and the rotation angle of the holder are determined; adjusting the orientation of the head of the unmanned aerial vehicle according to the rotation direction and angle of the head of the unmanned aerial vehicle; and the direction of the holder is adjusted according to the rotating direction and angle of the holder, so that the operation complexity of remote control personnel is reduced, a single-step control instruction does not need to be completed through a button any more, and the inspection efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of unmanned aerial vehicles, and in particular to a control method, medium and inspection system for the flight angle of an unmanned aerial vehicle. Background Art

[0002] In the current application scenarios where drone inspection application modes are constantly innovating, manual control of drones mainly relies on the joystick of the on-site remote control to complete the control of the drone flight. With the continuous increase in application scenarios, such as forest fires, fire point hidden danger inspections at construction sites, etc., the drone finds a high temperature point during the inspection process. At this time, the remote control room needs to observe the surrounding area of ​​the current drone inspection on site, and rotate the drone and the gimbal by operating the position clicked on the touch screen to achieve the goal of looking around the surrounding key areas.

[0003] Currently, calculating the distance between a drone and the plane of a target object requires a lot of training of the recognition algorithm to accurately match the target object, which requires a huge workload; the distance from a point to the plane of the target object needs to be combined with various factors and conditions, and the calculation complexity is large; for drones that do not have a computing power module, an external computing power module is required to realize target recognition, and the compatibility is relatively weak. Summary of the invention

[0004] The present invention provides a method, medium and inspection system for controlling the flight angle of a drone, so as to reduce the operation complexity of remote control personnel, eliminate the need to complete single-step control instructions through buttons, and improve inspection efficiency.

[0005] The present invention provides a method for controlling the flight angle of a drone, which is applied to a control module of an inspection system, wherein the inspection system comprises: a drone and a drone monitoring module; the drone monitoring module comprises a monitoring page; the monitoring page is used to display a first-person perspective image of the drone; the drone comprises a pan / tilt platform and a control module;

[0006] The control method comprises:

[0007] In response to a user's touch operation on a real-time image in a monitoring page, obtaining coordinates of the touch point in the real-time image;

[0008] Determine the direction of rotation of the drone head and the direction of rotation of the gimbal according to the positional relationship between the coordinates of the touch point in the real-time picture and the center point of the real-time picture;

[0009] Determine the rotation angle of the drone head and the rotation angle of the gimbal according to the positional relationship between the coordinates of the touch point in the real-time picture and the center point of the real-time picture, and the horizontal field angle and the vertical field angle of the unit pixel of the real-time picture;

[0010] Adjust the direction of the drone's nose according to the direction and angle of rotation of the drone's nose;

[0011] Adjust the direction of the gimbal according to the direction and angle of the gimbal rotation.

[0012] Furthermore, according to the positional relationship between the coordinates of the touch point in the real-time picture and the center point of the real-time picture, the direction of rotation of the drone head and the direction of rotation of the gimbal are determined, specifically:

[0013] Calculating respectively a first distance between a component of the coordinate of the touch point in a direction on the X-axis of the real-time image and the center point, and a second distance between a component of the coordinate of the touch point in a direction on the Y-axis of the real-time image and the center point;

[0014] Determining the direction in which the drone head rotates according to the first distance;

[0015] The direction in which the pan / tilt head rotates is determined according to the size of the second distance.

[0016] Further, the first distance between the component of the coordinate of the touch point in the direction on the X-axis of the real-time screen and the center point, and the second distance between the component of the coordinate of the touch point in the direction on the Y-axis of the real-time screen and the center point are calculated respectively, specifically:

[0017] Get the width and height of the real-time image of the monitoring page;

[0018] Divide the width of the real-time image by 2 to get the X coordinate of the center point of the real-time image;

[0019] Divide the height of the real-time image by 2 to get the Y coordinate of the center point of the real-time image;

[0020] Subtracting the X coordinate of the center point of the real-time image from the X coordinate of the touch point in the real-time image to obtain a first distance between the component of the coordinate of the touch point in the X-axis direction of the real-time image and the center point;

[0021] The Y coordinate of the touch point in the real-time image is subtracted from the Y coordinate of the center point of the real-time image to obtain a second distance between the component of the coordinate of the touch point in the Y-axis direction of the real-time image and the center point.

[0022] Furthermore, the determining of the direction of rotation of the drone head according to the first distance is specifically as follows:

[0023] If the magnitude of the first distance is greater than 0, it is determined that the drone head rotates clockwise, that is, rotates to the right;

[0024] If the magnitude of the first distance is less than 0, it is determined that the drone head rotates counterclockwise, that is, rotates to the left;

[0025] If the first distance is equal to 0, it is determined that the nose of the drone is not moving.

[0026] Further, the determining the direction of the pan / tilt head rotation according to the size of the second distance is specifically:

[0027] If the second distance is greater than 0, it is determined that the gimbal rotates downward;

[0028] If the second distance is less than 0, it is determined that the gimbal rotates upward;

[0029] If the second distance is equal to 0, it is determined that the gimbal is not moving.

[0030] Furthermore, the angle of rotation of the drone head and the angle of rotation of the gimbal are determined according to the positional relationship between the coordinates of the touch point in the real-time picture and the center point of the real-time picture, and the horizontal field angle and the vertical field angle of the unit pixel of the real-time picture, specifically:

[0031] Divide the horizontal field of view of the drone camera by the width of the real-time image to get the horizontal field of view per pixel of the real-time image;

[0032] Divide the vertical field of view of the drone camera by the height of the real-time image to get the vertical field of view per pixel of the real-time image;

[0033] The absolute value of the first distance is multiplied by the horizontal field angle of the unit pixel of the real-time image to obtain the rotation angle of the drone head;

[0034] The absolute value of the second distance is multiplied by the vertical field angle of the unit pixel of the real-time image to obtain the angle of the pan / tilt rotation.

[0035] Furthermore, the adjustment of the head orientation of the drone according to the direction of rotation of the drone head and the angle of rotation of the drone head is specifically as follows:

[0036] Get the current nose direction of the drone;

[0037] According to the direction of the drone's nose rotation, the current nose angle of the drone is added or subtracted from the angle of the drone's nose rotation to obtain the drone's aircraft deflection angle;

[0038] The nose direction of the aircraft is controlled according to the aircraft deflection angle.

[0039] Further, the adjusting the direction of the pan / tilt according to the direction of rotation of the pan / tilt and the angle of rotation of the pan / tilt is specifically as follows:

[0040] Get the current gimbal angle of the drone;

[0041] According to the direction of gimbal rotation, add or subtract the gimbal rotation angle from the current gimbal angle of the drone to get the gimbal rotation angle value;

[0042] The pan / tilt angle is controlled according to the rotation angle value.

[0043] As a preferred solution, the present invention generates combined action instructions through touch operations on the monitoring page to guide the direction of the drone's nose and the direction of the pan-tilt rotation, reducing the operational complexity of the remote control personnel, and no longer requiring buttons to complete single-step control instructions, thereby improving inspection efficiency. The present invention generates combined action instructions through touch operations on the monitoring page, and does not require calculation of the distance between the drone and the plane of the target object, thereby reducing the difficulty of calculation. The present invention generates combined action instructions through the drone control module to guide the direction of the drone's nose and the direction of the pan-tilt rotation, and does not require an external computing power module to achieve target recognition, thereby reducing the difficulty of calculation and enhancing device compatibility.

[0044] Accordingly, the present invention also provides an inspection system, comprising: a drone and a drone monitoring module;

[0045] The drone monitoring module includes a monitoring page; the monitoring page is used to display the first-person perspective image of the drone;

[0046] The drone includes a gimbal and a control module;

[0047] The control module is used for:

[0048] In response to a user's touch operation on a real-time image in a monitoring page, obtaining coordinates of the touch point in the real-time image;

[0049] Determine the direction of rotation of the drone head and the direction of rotation of the gimbal according to the positional relationship between the coordinates of the touch point in the real-time picture and the center point of the real-time picture;

[0050] Determine the rotation angle of the drone head and the rotation angle of the gimbal according to the positional relationship between the coordinates of the touch point in the real-time picture and the center point of the real-time picture, and the horizontal field angle and the vertical field angle of the unit pixel of the real-time picture;

[0051] Adjust the direction of the drone's nose according to the direction and angle of rotation of the drone's nose;

[0052] Adjust the direction of the gimbal according to the direction and angle of the gimbal rotation.

[0053] Correspondingly, the present invention also provides a computer-readable storage medium, which includes a stored computer program; wherein, when the computer program is running, it controls the device where the computer-readable storage medium is located to execute a method for controlling the flight angle of a drone as described in the content of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 It is a flow chart of an embodiment of a method for controlling the flight angle of a drone provided by the present invention;

[0055] Figure 2 It is a structural schematic diagram of an embodiment of the inspection system provided by the present invention. DETAILED DESCRIPTION

[0056] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0057] Embodiment 1

[0058] Please refer to Figure 1 , a method for controlling the flight angle of a drone provided by an embodiment of the present invention is applied to a control module of an inspection system, the inspection system comprising: a drone and a drone monitoring module; the drone monitoring module comprises a monitoring page; the monitoring page is used to display a first-person perspective image of the drone; the drone comprises a gimbal and a control module;

[0059] The control method comprises steps S101-S103:

[0060] Step S101: in response to a user's touch operation on a real-time image in a monitoring page, obtaining coordinates of a touch point in the real-time image;

[0061] In this embodiment, the user can realize touch-pointing flight on the observation point on the screen through configuration on the operating platform of different drones, and the screen displays the monitoring page, which is the first-person perspective of the drone. When a certain position in the screen needs to be manually viewed, it is necessary to click the position to be observed in the screen through the real-time screen of the interface to move the aircraft gimbal and the nose direction.

[0062] Step S102: determining the direction of rotation of the drone head and the direction of rotation of the gimbal according to the positional relationship between the coordinates of the touch point in the real-time image and the center point of the real-time image;

[0063] Furthermore, according to the positional relationship between the coordinates of the touch point in the real-time picture and the center point of the real-time picture, the direction of rotation of the drone head and the direction of rotation of the gimbal are determined, specifically:

[0064] Calculating respectively a first distance between a component of the coordinate of the touch point in a direction on the X-axis of the real-time image and the center point, and a second distance between a component of the coordinate of the touch point in a direction on the Y-axis of the real-time image and the center point;

[0065] Determining the direction in which the drone head rotates according to the first distance;

[0066] The direction in which the pan / tilt head rotates is determined according to the size of the second distance.

[0067] Further, the first distance between the component of the coordinate of the touch point in the direction on the X-axis of the real-time screen and the center point, and the second distance between the component of the coordinate of the touch point in the direction on the Y-axis of the real-time screen and the center point are calculated respectively, specifically:

[0068] Get the width and height of the real-time image of the monitoring page;

[0069] Divide the width of the real-time image by 2 to get the X coordinate of the center point of the real-time image;

[0070] Divide the height of the real-time image by 2 to get the Y coordinate of the center point of the real-time image;

[0071] Subtracting the X coordinate of the center point of the real-time image from the X coordinate of the touch point in the real-time image to obtain a first distance between the component of the coordinate of the touch point in the X-axis direction of the real-time image and the center point;

[0072] The Y coordinate of the touch point in the real-time image is subtracted from the Y coordinate of the center point of the real-time image to obtain a second distance between the component of the coordinate of the touch point in the Y-axis direction of the real-time image and the center point.

[0073] In this embodiment, the width and height of the real-time image of the drone on the monitoring page are obtained, and the width is defined as screenWidth and the height is defined as screenHeight, both in pixels.

[0074] Get the horizontal field of view angle hFov and the vertical field of view angle vFov of the drone camera;

[0075] The horizontal field angle of a unit pixel of the real-time image is un itHFov = hFov / screenWi dth;

[0076] The vertical field angle of the unit pixel of the real-time image is unitVFov = vFov / screenWidth;

[0077] Get the coordinates (touchX, touchY) of the point touched by the finger in the real-time image;

[0078] Calculate the coordinates of the center point of the real-time image (centerX, centerY):

[0079] The Y coordinate in the real-time screen is centerX=screenWidth / 2;

[0080] The Y coordinate in the real-time screen is centerY=screenHeight / 2;

[0081] Calculate the distance between the components of the current clicked coordinates on the X and Y axes and the center point:

[0082] The first distance is changeXLength=touchX-centerX;

[0083] The second distance is changeYLength=touchY-centerY.

[0084] Furthermore, the determining of the direction of rotation of the drone head according to the first distance is specifically as follows:

[0085] If the magnitude of the first distance is greater than 0, it is determined that the drone head rotates clockwise, that is, rotates to the right;

[0086] If the magnitude of the first distance is less than 0, it is determined that the drone head rotates counterclockwise, that is, rotates to the left;

[0087] If the first distance is equal to 0, it is determined that the nose of the drone is not moving.

[0088] Further, the determining the direction of the pan / tilt head rotation according to the size of the second distance is specifically:

[0089] If the second distance is greater than 0, it is determined that the gimbal rotates downward;

[0090] If the second distance is less than 0, it is determined that the gimbal rotates upward;

[0091] If the second distance is equal to 0, it is determined that the gimbal is not moving.

[0092] Step S103: determining the rotation angle of the drone head and the rotation angle of the gimbal according to the positional relationship between the coordinates of the touch point in the real-time picture and the center point of the real-time picture, and the horizontal field angle and the vertical field angle of the unit pixel of the real-time picture;

[0093] Furthermore, the angle of rotation of the drone head and the angle of rotation of the gimbal are determined according to the positional relationship between the coordinates of the touch point in the real-time picture and the center point of the real-time picture, and the horizontal field angle and the vertical field angle of the unit pixel of the real-time picture, specifically:

[0094] Divide the horizontal field of view of the drone camera by the width of the real-time image to get the horizontal field of view per pixel of the real-time image;

[0095] Divide the vertical field of view of the drone camera by the height of the real-time image to get the vertical field of view per pixel of the real-time image;

[0096] The absolute value of the first distance is multiplied by the horizontal field angle of the unit pixel of the real-time image to obtain the rotation angle of the drone head;

[0097] The absolute value of the second distance is multiplied by the vertical field angle of the unit pixel of the real-time image to obtain the angle of the pan / tilt rotation.

[0098] In this embodiment, the rotation angle of the drone head is needRotateYawAngle=abs(changeXlength)*unitHFov;

[0099] The angle of gimbal rotation is needRotateGimbalAngle=abs(changeYlength)*unitVFov.

[0100] Step S104: adjusting the head orientation of the drone according to the direction and angle of rotation of the drone head;

[0101] Furthermore, the adjustment of the head orientation of the drone according to the direction of rotation of the drone head and the angle of rotation of the drone head is specifically as follows:

[0102] Get the current nose direction of the drone;

[0103] According to the direction of the drone's nose rotation, the current nose angle of the drone is added or subtracted from the angle of the drone's nose rotation to obtain the drone's aircraft deflection angle;

[0104] The nose direction of the aircraft is controlled according to the aircraft deflection angle.

[0105] In this embodiment, the deflection range currently accepted by the aircraft is [-180, 180], and the drone receives the absolute value of the deflection with due north as 0 degrees;

[0106] If the drone's nose rotates clockwise, the final angle value needs to be calculated based on the drone's current angle plus the angle the drone needs to rotate;

[0107] If the drone's nose rotates counterclockwise, the final angle value needs to be calculated based on the drone's current angle minus the angle the drone needs to rotate;

[0108] The calculated final angle value needs to be converted into a value in the range [-180, 180] and then sent to the aircraft for nose heading control.

[0109] Step S105: adjusting the direction of the pan / tilt head according to the direction of rotation of the pan / tilt head and the angle of rotation of the pan / tilt head.

[0110] Further, the adjusting the direction of the pan / tilt according to the direction of rotation of the pan / tilt and the angle of rotation of the pan / tilt is specifically as follows:

[0111] Get the current gimbal angle of the drone;

[0112] According to the direction of gimbal rotation, add or subtract the gimbal rotation angle from the current gimbal angle of the drone to get the gimbal rotation angle value;

[0113] The pan / tilt angle is controlled according to the rotation angle value.

[0114] In this embodiment, the current pitch angle of the gimbal accepted by the aircraft is [30, -90], and the horizontal direction of the drone is 0 degrees;

[0115] If the gimbal rotates downward, the current gimbal angle of the drone is added to the angle that the drone gimbal needs to rotate to calculate the final gimbal rotation angle;

[0116] If the gimbal rotates upward, the final gimbal rotation angle is calculated by subtracting the angle required for the gimbal to rotate from the current gimbal angle of the drone;

[0117] Send the gimbal rotation angle value to the aircraft for gimbal control.

[0118] Implementing the embodiments of the present invention has the following effects:

[0119] The present invention generates combined action instructions through touch operations on the monitoring page to guide the nose direction of the drone and the direction of rotation of the pan-tilt head, reducing the operational complexity of the remote control personnel, and no longer needs to complete single-step control instructions through buttons, thereby improving inspection efficiency. The present invention generates combined action instructions through touch operations on the monitoring page, and does not need to calculate the distance between the drone and the plane of the target object, reducing the difficulty of calculation. The present invention generates combined action instructions through the drone control module to guide the nose direction of the drone and the direction of rotation of the pan-tilt head, and does not need an external computing power module to achieve target recognition, reducing the difficulty of calculation and enhancing device compatibility.

[0120] Embodiment 2

[0121] Please refer to Figure 2 , which is a patrol inspection system provided by an embodiment of the present invention, includes: the patrol inspection system includes: a drone 201, a drone remote control terminal 202, a communication module 203 and a drone patrol inspection system 204.

[0122] The drone inspection system includes a drone monitoring module;

[0123] The drone monitoring module includes a monitoring page; the monitoring page is used to display the first-person perspective image of the drone;

[0124] The drone includes a remote control module, a gimbal module (gimbal) and a control module;

[0125] The gimbal module mainly includes the status information of the gimbal, and the status information of the gimbal includes: the mode of the gimbal, the pitch angle, the roll angle and the yaw angle of the gimbal, and the status information of the gimbal is fed back to the control module.

[0126] The drone remote control terminal mainly includes: Android industrial computer system and application software;

[0127] The Android industrial computer system is mainly responsible for: serving as a local storage carrier to store tasks, photos and other data; managing the entire process of operations between the drone nest and the aircraft; and serving as a link between the drone and the drone inspection system.

[0128] The control module is used for:

[0129] In response to a user's touch operation on a real-time image in a monitoring page, obtaining coordinates of the touch point in the real-time image;

[0130] Determine the direction of rotation of the drone head and the direction of rotation of the gimbal according to the positional relationship between the coordinates of the touch point in the real-time picture and the center point of the real-time picture;

[0131] Determine the rotation angle of the drone head and the rotation angle of the gimbal according to the positional relationship between the coordinates of the touch point in the real-time picture and the center point of the real-time picture, and the horizontal field angle and the vertical field angle of the unit pixel of the real-time picture;

[0132] Adjust the direction of the drone's nose according to the direction and angle of rotation of the drone's nose;

[0133] Adjust the direction of the gimbal according to the direction and angle of the gimbal rotation.

[0134] The above inspection system can implement the method for controlling the flight angle of the drone in the above method embodiment. The options in the above method embodiment are also applicable to this embodiment and will not be described in detail here. The rest of the contents of the embodiment of this application can refer to the contents of the above method embodiment and will not be described in detail in this embodiment.

[0135] Embodiment 3

[0136] Correspondingly, the present invention also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the method for controlling the flight angle of the drone as described in any one of the above embodiments.

[0137] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory and executed by the processor to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program in the terminal device.

[0138] The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.

[0139] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device.

[0140] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the terminal device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the mobile terminal, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Med ia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0141] Wherein, if the module / unit integrated in the terminal device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0142] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for controlling the flight angle of a drone, characterized in that: A control module applied to an inspection system, the inspection system comprising: a drone and a drone monitoring module; the drone monitoring module comprising a monitoring page; the monitoring page is used to display a first-person perspective image of the drone; the drone comprises a gimbal and a control module; The control method comprises: In response to a user's touch operation on a real-time image in a monitoring page, obtaining coordinates of the touch point in the real-time image; Determine the direction of rotation of the drone head and the direction of rotation of the gimbal according to the positional relationship between the coordinates of the touch point in the real-time picture and the center point of the real-time picture; Determine the rotation angle of the drone head and the rotation angle of the gimbal according to the positional relationship between the coordinates of the touch point in the real-time picture and the center point of the real-time picture, and the horizontal field angle and the vertical field angle of the unit pixel of the real-time picture; Adjust the direction of the drone's nose according to the direction and angle of rotation of the drone's nose; Adjust the direction of the gimbal according to the direction and angle of the gimbal rotation.

2. A method for controlling the flight angle of a drone as claimed in claim 1, characterized in that: According to the positional relationship between the coordinates of the touch point in the real-time picture and the center point of the real-time picture, the direction of rotation of the drone head and the direction of rotation of the gimbal are determined, specifically: Calculating respectively a first distance between a component of the coordinate of the touch point in a direction on the X-axis of the real-time image and the center point, and a second distance between a component of the coordinate of the touch point in a direction on the Y-axis of the real-time image and the center point; Determining the direction in which the drone head rotates according to the first distance; The direction in which the pan / tilt head rotates is determined according to the size of the second distance.

3. A method for controlling the flight angle of a drone as claimed in claim 2, characterized in that: The first distance between the component of the coordinate of the touch point on the X-axis direction of the real-time screen and the center point, and the second distance between the component of the coordinate of the touch point on the Y-axis direction of the real-time screen and the center point are calculated respectively, specifically: Get the width and height of the real-time image of the monitoring page; Divide the width of the real-time image by 2 to get the X coordinate of the center point of the real-time image; Divide the height of the real-time image by 2 to get the Y coordinate of the center point of the real-time image; Subtracting the X coordinate of the center point of the real-time image from the X coordinate of the touch point in the real-time image to obtain a first distance between the component of the coordinate of the touch point in the X-axis direction of the real-time image and the center point; The Y coordinate of the touch point in the real-time image is subtracted from the Y coordinate of the center point of the real-time image to obtain a second distance between the component of the coordinate of the touch point in the Y-axis direction of the real-time image and the center point.

4. A method for controlling the flight angle of a drone as claimed in claim 2, characterized in that: The determining the direction of rotation of the drone head according to the first distance is specifically as follows: If the magnitude of the first distance is greater than 0, it is determined that the drone head rotates clockwise, that is, rotates to the right; If the magnitude of the first distance is less than 0, it is determined that the drone head rotates counterclockwise, that is, rotates to the left; If the first distance is equal to 0, it is determined that the nose of the drone is not moving.

5. The method for controlling the flight angle of a drone as claimed in claim 2, characterized in that: The determining the direction of the pan / tilt head rotation according to the second distance is specifically: If the second distance is greater than 0, it is determined that the gimbal rotates downward; If the second distance is less than 0, it is determined that the gimbal rotates upward; If the second distance is equal to 0, it is determined that the gimbal is not moving.

6. A method for controlling the flight angle of a drone as claimed in claim 2, characterized in that: The angle of rotation of the drone head and the angle of rotation of the gimbal are determined according to the positional relationship between the coordinates of the touch point in the real-time picture and the center point of the real-time picture, and the horizontal field angle and the vertical field angle of the unit pixel of the real-time picture, specifically: Divide the horizontal field of view of the drone camera by the width of the real-time image to get the horizontal field of view per pixel of the real-time image; Divide the vertical field of view of the drone camera by the height of the real-time image to get the vertical field of view per pixel of the real-time image; The absolute value of the first distance is multiplied by the horizontal field angle of the unit pixel of the real-time image to obtain the rotation angle of the drone head; The absolute value of the second distance is multiplied by the vertical field angle of the unit pixel of the real-time image to obtain the angle of the pan / tilt rotation.

7. A method for controlling the flight angle of a drone as claimed in any one of claims 2 to 6, characterized in that: The method of adjusting the head direction of the drone according to the direction of rotation of the drone head and the angle of rotation of the drone head is specifically as follows: Get the current nose direction of the drone; According to the direction of the drone's nose rotation, the current nose angle of the drone is added or subtracted from the angle of the drone's nose rotation to obtain the drone's aircraft deflection angle; The nose direction of the aircraft is controlled according to the aircraft deflection angle.

8. A method for controlling the flight angle of a drone as claimed in any one of claims 2 to 6, characterized in that: The adjusting the direction of the gimbal according to the direction of the gimbal rotation and the angle of the gimbal rotation is specifically as follows: Get the current gimbal angle of the drone; According to the direction of gimbal rotation, add or subtract the gimbal rotation angle from the current gimbal angle of the drone to get the gimbal rotation angle value; The pan / tilt angle is controlled according to the rotation angle value.

9. A patrol inspection system, characterized in that: include: Drones and drone monitoring modules; The drone monitoring module includes a monitoring page; the monitoring page is used to display the first-person perspective image of the drone; The drone includes a gimbal and a control module; The control module is used for: In response to a user's touch operation on a real-time image in a monitoring page, obtaining coordinates of the touch point in the real-time image; Determine the direction of rotation of the drone head and the direction of rotation of the gimbal according to the positional relationship between the coordinates of the touch point in the real-time picture and the center point of the real-time picture; Determine the rotation angle of the drone head and the rotation angle of the gimbal according to the positional relationship between the coordinates of the touch point in the real-time picture and the center point of the real-time picture, and the horizontal field angle and the vertical field angle of the unit pixel of the real-time picture; Adjust the direction of the drone's nose according to the direction and angle of rotation of the drone's nose; Adjust the direction of the gimbal according to the direction and angle of the gimbal rotation.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program; wherein, when the computer program is running, it controls the device where the computer-readable storage medium is located to execute a method for controlling the flight angle of a drone as described in any one of claims 1 to 8.