UAV yaw angle error calculation method, system, device and storage medium
By obtaining the original and centered position information of the UAV, and using trigonometric functions to calculate the yaw angle error, the problem of yaw angle measurement error in the automatic flight of the UAV is solved, and more accurate flight path tracking is achieved.
Patent Information
- Application Number
- CN202010880143.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-27
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-08-27
AI Technical Summary
During the autonomous flight of the UAV, the yaw angle measurement error occurs due to environmental interference on the airborne equipment, causing the flight path to deviate and making it difficult to complete precise flight.
By obtaining the original position information and centered position information of the UAV, the yaw angle error is calculated using trigonometric functions, and the moving distance of the UAV is limited to 7-20m to improve the accuracy and efficiency of the measurement.
It achieves rapid and accurate measurement of yaw angle error, ensures that the drone flies along the predetermined path, and improves flight accuracy.
Smart Images

Figure CN112113558B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of image processing technology, and in particular to a method, system, device and storage medium for calculating the yaw angle error of an unmanned aerial vehicle. Background Art
[0002] A drone is an unmanned aircraft that can be operated using radio remote control and self-contained program control devices.
[0003] During the automatic flight of a drone, since human control is no longer required, the pitch angle, roll angle, and yaw angle are usually used to describe the drone's own flight attitude. These angle parameters are usually obtained through onboard equipment. The aircraft adjusts these angle parameters to achieve the purpose of flying according to the predetermined flight path.
[0004] The yaw angle is the angle between the projection of the drone's body axis (along the direction of the nose) on the horizontal plane and the earth's axis. It can usually be measured in a coordinate system with the drone as the origin. Summary of the invention
[0005] One aspect of the present disclosure provides a method for calculating the yaw angle error of an automatically flying drone, comprising the following steps:
[0006] Obtaining the current position information of the drone as the original position information of the drone;
[0007] Moving the drone along a first direction to a preset target point;
[0008] Move the drone located at the preset target point along a second direction to obtain position information when the drone passes through the center point as the center position information;
[0009] The original position information, the center position information and the information of the preset target point are used to calculate the angle between the line connecting the original position and the center point of the drone and the line connecting the original position and the preset target point to obtain the yaw angle error.
[0010] In one embodiment, the original position information is obtained by an onboard position sensor on the drone.
[0011] In one embodiment, the distance between the preset target point and the original position of the drone is 7-20m.
[0012] In one embodiment, the distance between the preset target point and the original position is 14m.
[0013] In one embodiment, the center point is found by an onboard radar on the drone.
[0014] In one embodiment, the yaw angle error is calculated using a trigonometric function relationship.
[0015] Another aspect of the present disclosure is to provide a system for calculating the yaw angle error of an automatic flying drone. The system for calculating the yaw angle error of an automatic flying drone is used to implement the steps of the method for calculating the yaw angle error of an automatic flying drone as described above. The system for calculating the yaw angle error of an automatic flying drone includes:
[0016] A data acquisition module is used to acquire the location information of the drone at the current moment as the original location information of the drone; and
[0017] It is also used to obtain the center position information of the UAV when it is at the center point;
[0018] A program control module is used to move the drone along a first direction to a preset target point; and
[0019] Also used to move the drone located at the preset target point along a second direction and at least to a center point;
[0020] The data calculation module uses the original position information, the center position information and the information of the preset target point to calculate the angle between the line connecting the original position and the center point of the drone and the line connecting the original position and the preset target point to obtain the yaw angle error.
[0021] Another aspect of the present disclosure further provides a device for calculating the yaw angle error of an autonomous flying drone. The device for calculating the yaw angle error comprises:
[0022] Memory for storing computer programs;
[0023] A processor is used to implement the steps of the method for calculating the yaw angle error of an automatically flying unmanned aerial vehicle as described in the previous aspect of the present disclosure when executing the computer program.
[0024] The last aspect of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for calculating the yaw angle error of an autonomous flying drone as described above.
[0025] The method, system, device and storage medium for calculating the yaw angle error of an automatically flying UAV provided by the present invention can, on the one hand, make the yaw angle error visible by moving the UAV to different positions; and then obtain the position information of the UAV at different positions, so that the yaw angle error can be quickly calculated by using the position information and data calculation.
[0026] On the other hand, the present disclosure also limits the moving distance of the drone to obtain the best position information for calculation, thereby measuring a more accurate yaw angle error. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The embodiments shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.
[0028] Figure 1 is a flowchart of the steps of a yaw angle error calculation method shown in an embodiment of the present disclosure;
[0029] Figure 2 This is a schematic diagram of the connection of modules of a yaw angle error calculation system provided by an embodiment of the present disclosure;
[0030] Figure 3 It is a structural schematic diagram of a yaw angle error calculation device for an automatic flying drone provided by an embodiment of the present disclosure;
[0031] Figure 4 It is a schematic diagram of the structure of a computer-readable storage medium provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0032] From the above description, we can know that the yaw angle is one of the parameters used to describe the flight attitude of the aircraft. It is the angle between the projection of the drone's body axis on the horizontal plane and the earth's axis. It can usually be measured in a coordinate system with the drone as the origin.
[0033] The precise flight of a drone is inseparable from the precise measurement of various parameters that represent the flight attitude. Once these parameters are measured and deviated, it will be difficult for the drone to fly according to the precise flight path. It is easy to know that when a drone is flying, various parameters are measured and obtained by relying on sensors and other equipment installed on the body. However, since these airborne equipment are easily disturbed by the surrounding environment, errors occur in the measured parameters. Especially for the yaw angle, once a deviation occurs, the drone will deviate from the flight trajectory in the horizontal direction, and it is obviously difficult to successfully complete the flight mission. If there is a solution to find this error, the parameters of the drone can be appropriately compensated so that the drone can fly according to the predetermined path.
[0034] In order to solve the problems existing in the prior art, the inventors proposed a method for measuring the yaw angle error of an automatically flying UAV through creative work, so as to accurately measure the yaw angle error.
[0035] The following is a further detailed description of the automatic flying drone yaw angle error measurement method, system, device and storage medium proposed in the present disclosure in combination with the accompanying drawings and specific embodiments. According to the claims and the following description, the advantages and features of the present disclosure will become clearer. It should be noted that the drawings are all in a very simplified form and are not in precise proportions, which are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present disclosure.
[0036] It should be understood that the terms used in the specification are only used to describe specific embodiments and are not intended to limit the present disclosure. All terms (including technical terms and scientific terms) used in the specification have the meanings commonly understood by those skilled in the art unless otherwise defined. For the sake of brevity and / or clarity, well-known functions or structures are not described in detail.
[0037] An example of how to calculate the yaw error of an autonomous drone
[0038] See also Figure 1 , which shows a step flow chart of a yaw angle error calculation method in an embodiment of the present disclosure.
[0039] In step S001 of this embodiment, the location information of the drone at the current moment is obtained as the original location information of the drone.
[0040] We all know that during the automatic flight of drones, they have onboard computers and other processing equipment. The onboard computers transmit information with other sensors to get rid of the operator's control and achieve the state of automatic flight. The automatic flight of drones requires obtaining the position of reference objects to achieve accurate flight. If the position data of the reference object obtained is deviated after calculation by the onboard computer, the drone will also fly under the wrong data instructions, which will eventually cause the entire flight path to deviate. This is the path deviation caused by the yaw angle error. The drone needs to continuously obtain the position of the reference object and its own position information to complete the automatic flight process. When obtaining the position information, it can be obtained through the onboard position sensor. The position information of the drone can be expressed by the coordinates in the coordinate system. Of course, for the automatic flight of drones, multiple coordinate systems may be involved, such as a coordinate system with the drone as the origin, and a geographic coordinate system. However, due to the improvement of the computing power of the onboard computer on the drone, it is very easy to transmit and convert information between multiple coordinate systems. The technicians in this field can make a reasonable choice according to actual needs as to which coordinate system is used to mark or record the adopted position information. However, for the present disclosure, it is usually preferred to use a coordinate system with the drone as the origin to obtain and represent position information.
[0041] When the yaw angle error calculation method provided by the present disclosure is used to calculate the yaw angle error, the position of the drone is defined as the current position, and the position information of the drone obtained at the current position is referred to as the original position information in the present disclosure. The acquisition of the original position information can facilitate the subsequent yaw angle error calculation step to provide sufficient data support.
[0042] In step S002, the drone is moved along a first direction to a preset target point.
[0043] After obtaining the original position information of the drone, the drone needs to move within a certain range. This is because if the drone has a yaw angle error, the yaw angle error will only be manifested when the drone is flying automatically and the position changes. Showing the yaw angle error of the drone is an important prerequisite for the measurement of the yaw angle error. In other words, if the error cannot be reflected, it will be difficult to measure. However, due to the size of the drone itself, the actual flight environment, the positioning accuracy of the GPS (Global Positioning System), and other reasons, the size of the drone's position change will affect the measurement effect of the yaw angle error. In the actual implementation process of the yaw angle error measurement, the present disclosure found that when the position change range of the UAV is limited to 7-20m, that is, the distance between the preset target point and the position (original position) of the UAV in step S001 is limited to 7-20m, especially at 14m or at a farther distance allowed by the radar (this is because the farther the distance, the easier it is to offset the position error of the GPS), the yaw angle error can be measured more accurately; and when set within this distance range, the moving distance of the UAV is smaller and the time required is shorter, which is conducive to improving the calculation efficiency of the yaw angle error.
[0044] In addition, when the drone is flying automatically, it usually continuously obtains the position information of the reference object. Therefore, in step S002 of the present disclosure, a vertical reference line can be set. Due to the existence of the yaw angle error, the actual position of the vertical reference line is different from the position of the vertical reference line calculated in the drone. It is precisely because of the deviation that the deviation can be used to quickly calculate the yaw angle error. The vertical reference line calculated in the drone is named the deviation reference line. In the horizontal plane, there is a straight line passing through the original position of the drone and the deviation reference line. We define the direction on this straight line and away from the deviation reference line as the first direction. It can be seen that step S002 is essentially to let the drone move in a straight line relative to the deviation reference line. This step can effectively show the yaw angle error, which is conducive to the subsequent calculation of the yaw angle error.
[0045] In step S003, the drone located at the preset target point is moved along a second direction to obtain the center position information when the drone passes through the center point.
[0046] In the same horizontal plane as the first direction defined above, there is also a straight line passing between the vertical reference line and the original position of the drone. For the convenience of explanation, the present disclosure refers to this straight line as the center line. In the same horizontal plane, once the drone passes through the center line, its running trajectory will have an intersection with the center line, which is defined as the center point in the present disclosure for the convenience of explanation. The direction in which the drone approaches the center line at the preset target point is defined as the second direction in the present disclosure. Obviously, the first direction and the second direction are preferably in the same plane; however, even if they are no longer in the same plane, it is only necessary to project the data generated in the two directions into the same plane for calculation in subsequent calculations. When the second direction is perpendicular to the center line, the drone can reach the center point more quickly along the second direction perpendicular to the center line. Therefore, the second direction perpendicular to the center line can be used as a preferred solution.
[0047] When the drone reaches the center point, it can also use the drone-borne radar (such as a laser radar) to obtain the center position information of the center point (coordinates and other data that can be used for yaw angle error calculation). The use of a laser radar can more accurately obtain the position of the vertical reference line and find the center point more quickly, thereby avoiding further errors and improving the accuracy of the yaw angle error calculation.
[0048] In step S004, the original position information, the center position information and the information of the preset target point are used to calculate the angle between the line connecting the original position and the center point of the drone and the line connecting the original position and the preset target point to obtain the yaw angle error.
[0049] After obtaining the original position information, the center position information and the preset target point information, we actually obtain the positional relationship of the triangle formed by these three position information. Therefore, we can use the laws and rules in the geometric sense to calculate and obtain the required data.
[0050] It is easy to understand that when the drone flies automatically, there will be a deviation between the ideal flight path and the actual flight path, and this deviation is caused by the yaw angle error. Therefore, it can be considered that the angle between the ideal flight path and the actual flight path is the yaw angle error. In the present disclosure, it is assumed that the actual flight path is the path of the drone flying along the first direction; since the deviation reference line located in the first direction is calculated by the drone (due to the existence of the yaw angle error, the position of the deviation reference line does not coincide with the position of the vertical reference line), the ideal flight path of the drone can be considered to be the path on the center straight line. It can be concluded that to calculate the yaw angle error, it is only necessary to find the angle between the first direction and the center straight line, that is, the angle between the line connecting the original position and the center point and the line connecting the original position and the preset target point. When the second direction is perpendicular to the center straight line, the yaw angle error can also be calculated more quickly using the trigonometric function relationship of the right triangle.
[0051] Thus, the purpose of measuring the yaw angle error proposed in the present disclosure is achieved through the above method.
[0052] Example of a system for calculating the yaw error of an autonomous drone
[0053] In one embodiment of the present disclosure, a yaw angle error measurement system is also provided. Figure 2 , a schematic diagram of the connection of the modules of the yaw angle error calculation system provided by an embodiment of the present disclosure is shown. The system can implement the yaw angle error calculation method of the automatic flying drone described in the present disclosure. In order to implement the yaw angle calculation method described in the present disclosure, the system includes:
[0054] The data acquisition module 501 is used to acquire the location information of the drone at the current moment as the original location information of the drone; and
[0055] It is also used to obtain the center position information of the UAV when it is at the center point;
[0056] The program control module 502 is used to move the drone along a first direction to a preset target point; and
[0057] Also used to move the drone located at the preset target point along a second direction and at least to a center point;
[0058] The data calculation module 503 uses the original position information, the center position information and the information of the preset target point to calculate the angle between the line connecting the original position and the center point of the drone and the line connecting the original position and the preset target point to obtain the yaw angle error.
[0059] Example of a device for calculating the yaw error of an autonomous drone
[0060] In one embodiment of the present disclosure, a device for calculating the yaw angle error of an automatic flying drone is also provided. The image stitching device comprises:
[0061] Memory for storing computer programs;
[0062] A processor is used to implement the steps of the method for calculating the yaw angle error of an automatically flying drone described in the present disclosure when executing the computer program.
[0063] Various aspects of the present disclosure may be implemented as a system, method or program product. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, i.e., a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software aspects, which may be collectively referred to herein as a "circuit", "module" or "platform".
[0064] Figure 3 Schematic diagram of the structure of the automatic flight UAV yaw angle error measurement device provided by an embodiment of the present disclosure. Figure 3 The electronic device 600 implemented according to the implementation in this embodiment is described in detail. Figure 3 The electronic device 600 shown is merely an example and should not bring any limitation to the functions and scope of use of any embodiment of the present disclosure.
[0065] like Figure 3 As shown, the electronic device 600 is in the form of a general computing device. The components of the electronic device 600 may include but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 connecting different platform components (including the storage unit 620 and the processing unit 610), a display unit 640, etc.
[0066] The storage unit stores program codes, which can be executed by the processing unit 610, so that the processing unit 610 executes the implementation steps described in the above-mentioned image stitching method of this embodiment. For example, the processing unit 610 can execute the following steps: Figure 1 Follow the steps shown in .
[0067] The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access unit (RAM) 6201 and / or a cache storage unit 6202 , and may further include a read-only storage unit (ROM) 6203 .
[0068] The storage unit 620 may also include a program / utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0069] Bus 630 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0070] The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may communicate with one or more devices that enable a user to interact with the electronic device 600, and / or communicate with any device that enables the electronic device to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed through an input / output (I / O) interface 650. Furthermore, the electronic device 600 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 through the bus 630. It should be understood that although Figure 3 Not shown, other hardware and / or software modules may be used in conjunction with electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage platforms.
[0071] Example description of readable storage medium
[0072] An embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the yaw angle measurement method disclosed above can be implemented. Although this embodiment does not list other specific implementations in detail, in some possible implementations, various aspects of the disclosure can also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps of the implementation methods described in the yaw angle measurement method section of the present disclosure according to various embodiments of the present disclosure.
[0073] Figure 4 Schematic diagram of the structure of a computer-readable storage medium provided by an embodiment of the present disclosure. Figure 4As shown, a program product 800 for implementing the above method in an embodiment of the present disclosure is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. Of course, the program product generated according to this embodiment is not limited thereto. In the present disclosure, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.
[0074] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0075] Computer readable storage media may include data signals propagated in baseband or as part of a carrier wave, wherein readable program codes are carried. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device. The program codes contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination thereof.
[0076] Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as C or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0077] In summary, in the automatic flying drone yaw angle error calculation method, system, device and storage medium provided in the present invention, on the one hand, the yaw angle error is displayed by moving the drone to different positions; then the position information of the drone at different positions is obtained, so that the yaw angle error can be quickly calculated using this position information and data calculation.
[0078] On the other hand, the present disclosure also obtains the best position information for calculation by limiting the moving distance of the drone, thereby measuring a more accurate yaw angle error.
[0079] The above description is only a description of the preferred embodiments of the present disclosure, and is not intended to limit the scope of the present disclosure. Any changes or modifications made by a person of ordinary skill in the art based on the above disclosure shall fall within the scope of protection of the claims.
Claims
1. A method for calculating the yaw angle error of an automatically flying drone, characterized in that: The steps include: Obtaining the current position information of the drone as the original position information of the drone; Move the drone to a preset target point along a first direction, where the first direction is a direction in a horizontal plane along a straight line passing through an original position of the drone and a deviation reference line and away from the deviation reference line, where the deviation reference line is a vertical reference line calculated by the drone; Move the drone located at the preset target point along a second direction to obtain position information of the drone when it passes through a center point as center position information, wherein a straight line between a vertical reference line and an original position of the drone in the same horizontal plane as the first direction is a center line, the second direction is a direction in which the drone approaches the center line at the preset target point, and the center point is an intersection point of the drone with the center line when the drone passes through the center line in the same horizontal plane; The original position information, the center position information and the information of the preset target point are used to calculate the angle between the line connecting the original position and the center point of the drone and the line connecting the original position and the preset target point to obtain the yaw angle error.
2. The method for calculating the yaw angle error of an automatic flying drone according to claim 1, characterized in that: The original position information is obtained by an onboard position sensor on the UAV.
3. The method for calculating the yaw angle error of an automatic flying drone according to claim 1, characterized in that: The distance between the preset target point and the original position of the UAV is 7-20m.
4. The method for calculating the yaw angle error of an automatic flying drone according to claim 1, characterized in that: The distance between the preset target point and the original position is 14m.
5. The method for calculating the yaw angle error of an automatic flying drone according to claim 1, characterized in that: The center point is found by the airborne radar on the UAV.
6. The method for calculating the yaw angle error of an automatic flying drone according to claim 1, characterized in that: The yaw angle error is calculated using a trigonometric function relationship.
7. A system for calculating the yaw angle error of an automatic flying drone, used to implement the steps of the method for calculating the yaw angle error of an automatic flying drone according to any one of claims 1 to 6, characterized in that: The system comprises: A data acquisition module is used to acquire the location information of the drone at the current moment as the original location information of the drone; and It is also used to obtain the center position information of the UAV when it is at the center point; A program control module is used to move the drone along a first direction to a preset target point; and Also used to move the drone located at the preset target point along a second direction and at least to a center point; The first direction is a direction in a horizontal plane along a straight line passing through an original position of the UAV and a deviation reference line and away from the deviation reference line, where the deviation reference line is a vertical reference line calculated by the UAV; The straight line between the vertical reference line and the original position of the UAV in the same horizontal plane as the first direction is the center straight line, the second direction is the direction in which the UAV approaches the center straight line at the preset target point, and the center point is the intersection point of the UAV with the center straight line when the UAV passes through the center straight line in the same horizontal plane; The data calculation module uses the original position information, the center position information and the information of the preset target point to calculate the angle between the line connecting the original position and the center point of the drone and the line connecting the original position and the preset target point to obtain the yaw angle error.
8. A device for calculating the yaw angle error of an automatic flying drone, characterized in that: include: Memory for storing computer programs; A processor, used to implement the steps of the method for calculating the yaw angle error of an automatic flying unmanned aerial vehicle as described in any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the method for calculating the yaw angle error of an automatically flying unmanned aerial vehicle according to any one of claims 1 to 6 are implemented.
