This application relates to the field of unmanned aerial vehicle (UAV) navigation sensors, and more specifically, to a calibration method for navigation of an unmanned aerial vehicle (UAV), a non-transitory computer-readable storage medium and a UAV implementing the same.
During a flight of a UAV, to provide precise navigation paths, various types of vector sensor are required to measure headings and postures of the UAV in real time. A vector sensor can provide a direction and a size of a to-be-measured physical quantity. For example, a three-axis magnetoresistive vector sensor capable of measuring the direction of the earth magnetic field is used to manufacture a compass to achieve azimuth measurement. For another example, a three-axis acceleration vector sensor capable of measuring the gravity acceleration of the earth provides an angle of inclination relative to a horizontal plane. However, when the to-be-measured physical quantity is zero, data output of a vector sensor is often not zero, that is, a zero-point error exists, accuracy of UAV navigation is affected.
According to the first aspect of the present invention, an unmanned aerial vehicle (UAV) is provided. The UAV comprises a vector sensor for measuring headings and postures of the UAV; and one or more processors configured to: collect, during a flight of the UAV, a current correction value Ek and current data during a current measurement performed by the vector sensor; acquire previous data during a previous measurement performed by the vector sensor; acquire an adjustment quantity Wk according to the current data and the previous data; acquire a next correction value Ek+1 according to the current correction value Ek and the adjustment quantity Wk, and acquire next original data Rk+1 during a next measurement performed by the vector sensor, and acquire next valid data Vk+1 according to the next original data Rk+1 and the next correction value Ek+1; and control headings and postures of the UAV according to the next valid data Vk+1. The current data comprises current original data Rk and the previous data comprises previous original data Rk−1. The one or more processors are further configured to: acquire a weight Dk and an estimated quantity Mk according to the current original data Rk and the previous original data Rk−1; and acquire the adjustment quantity Wk according to the weight Dk and the estimated quantity Mk .
According to the second aspect of the present invention, a calibration method for navigation of an unmanned aerial vehicle (UAV) is provided. The UAV includes a vector sensor for measuring headings and postures of the UAV The calibration method comprises: collecting, during a flight of the UAV, a current correction value Ek and current data during a current measurement performed by the vector sensor; acquiring previous data during a previous measurement performed by the vector sensor; acquiring an adjustment quantity Wk according to the current data and the previous data; acquiring a next correction value Ek+1 according to the current correction value Ek and the adjustment quantity Wk, and acquiring next original data Rk+1 during a next measurement performed by the vector sensor, and acquiring next valid data Vk+1 according to the next original data Rk+1 and the next correction value Ek+1; and controlling headings and postures of the UAV according to the next valid data Vk+1. The current data comprises current original data Rk, the previous data comprises previous original data Rk−1. The acquiring the adjustment quantity Wk according to the current data and the previous data comprises: acquiring a weight Dk and an estimated quantity Mk according to the current original data Rk and the previous original data Rk−1; and acquiring the adjustment quantity Wk according to the weight Dk and the estimated quantity Mk.
According to the third aspect of the present invention, a non-transitory computer-readable storage medium storing a computer program is provided. When the computer program is executed by one or more processors, the calibration method for navigation of an unmanned aerial vehicle (UAV) is implemented.
According to the calibration method for navigation of an unmanned aerial vehicle (UAV) in the implementations of this application, the adjustment quantity Wk may be acquired according to the current data collected during a flight of the UAV and the previous data, and the next correction value Ek+1 may be acquired according to the current correction value Ek and the adjustment quantity Wk, to acquire a more accurate correction value, so as to perform zero-point error calibration on the next original data Rk+1 according to the next correction value Ek+1 during a next measurement to acquire next valid data Vk+1 more closely approximating to a true value. Headings and postures of the UAV can be controlled according to the next valid data Vk+1. Therefore, accuracy of UAV navigation is improved. Moreover, the entire calibration process is carried out in flight state of the UAV without manual intervention, and the calibration method is efficient and convenient.
Additional aspects and advantages of the implementations of this application is provided in the following description.
The foregoing and/or additional aspects and advantages of this application will become apparent and comprehensible from the descriptions of the implementations below with reference to the accompanying drawings.
The following describes embodiments of this application in detail. Examples of the embodiments are shown in the accompanying drawings, and same or similar reference numerals throughout the accompanying drawings indicate same or similar components or components having same or similar functions. The following embodiments described with reference to the accompanying drawings are exemplary, aim to explain this application, and shall not be understood as limiting this application.
Referring to
01: Collecting, during a flight of the UAV 100, a current correction value Ek and current data during a current measurement performed by the vector sensor 40.
02: Acquiring previous data during a previous measurement performed by the vector sensor 40.
03: Acquiring an adjustment quantity Wk according to the current data and the previous data.
04: Acquiring a next correction value Ek+1 according to the current correction value Ek and the adjustment quantity Wk.
05: Acquiring next original data Rk during a next measurement performed by the vector sensor 40, and acquiring next valid data Vk+1 according to the next original data Rk+1 and the next correction value Ek+1.
06: Controlling headings and postures of the UAV 100 according to the next valid data Vk+1.
Referring to
When the SCL pin is at a high level, the processor 30 determines a binary value of a corresponding bit by detecting a level on the SDA pin, so as to collect original heading data and original posture data measured by the vector sensor 40. Then the original heading data and the original posture data are calibrated to obtain target heading data and target posture data. The processor 30 generates a control command according to the calibrated target heading data and target posture data and transmits it to the ESC 60. The ESC 60 is configured to control the electric motor 50 to rotate at a speed according to the control command generated by the processor 30 to drive flying motion parts (such as propellers) of the UAV 100, so as to translate or rotate the UAV 100, and adjust to the target heading and posture to achieve navigation calibration. That is to say, the processor 30 may be configured to: collect, during a flight of the UAV, the current correction value Ek and the current data during the current measurement performed by the vector sensor 40; acquire the previous data during the previous measurement performed by the vector sensor 40;
acquire the adjustment quantity Wk according to the current data and the previous data; acquire the next correction value Ek +1 according to the current correction value Ek and the adjustment quantity Wk; and acquire the next original data Rk+1 during the next measurement performed by the vector sensor 40, acquire the next valid data Vk+1 according to the next original data Rk+1 and the next correction value Ek+1, and control headings and postures of the UAV according to the next valid data Vk+1.
In this implementation, UAV refers to any types of unmanned aerial vehicle which may be used in various fields such as aerial photography, surveillance, agriculture, plant protection, courier transportation, disaster rescue, observation of wild animals, surveying and mapping, and news reporting. For example, in home surveillance, UAVs can refer to indoor flying security cameras that fly along a customized flight path to see what is happening in the home no matter where the user is. In the field of plant protection, UAVs can refer to plant protection drones, which are used to perform spraying operations according to set flight routes, such as the spraying of pesticides. Due to external electronic equipment, magnetic field interference and other reasons, navigation system of UAV often has errors which affect the flight path planning and flight safety of the UAV. Therefore, calibration of navigation of the UAV is needed to be carried out, that is to calibrate the heading and posture of the UAV.
The vector sensor 40 may be a vector sensor 40 having two or more two axes, for example, a two-axis sensor, a three-axis sensor, a six-axis sensor, or a multi-axis sensor, which is not enumerated herein. Depending on a type of a to-be-measured vector, the vector sensor 40 may selectively be a geomagnetic sensor, a gravity acceleration sensor, an angular velocity sensor, an acceleration sensor, or the like, which is not enumerated herein. In some implementations, the vector sensor 40 may be a micro-electro-mechanical system (MEMS) sensor. The MEMS sensor may be configured to measure one or more types of vectors. For example, the MEMS sensor includes six axes, and can have functions of both a three-axis acceleration sensor and a three-axis geomagnetic sensor. The specific type of the MEMS sensor is not limited thereto, and is not enumerated herein.
In this implementation, the vector sensor 40 may be a combination sensor of a three-axis geomagnetic sensor and a three-axis acceleration sensor, for example. Since the three-axis geomagnetic sensor is a sensor for measuring heading, and the three-axis acceleration sensor is a sensor for measuring posture, Therefore, the processor 30 can collect the heading data and posture data of the UAV at any time through the combined sensor. Specifically, current original data Rk may include current original heading data and current original posture data, previous original data Rk−1 may include previous original heading data and previous original posture data, next original data Rk+1 may include next original heading data and next original posture data; current valid data Vk may include current target heading data and current target posture data, previous valid data Vk−1 may include previous target heading data and previous target posture data, next valid data Vk+1 may include next target heading data and next target posture data. During current calibration, the processor 30 may determine the UAV's current target heading and current target posture according to the current valid data Vk, and then control the UAV to translate or rotate, so that the UAV is adjusted to have the current target heading and current target posture. Similarly, during next calibration, the processor 30 may determine the UAV's next target heading and next target posture according to the next valid data Vk+1, and then control the UAV to translate or rotate, so that the UAV is adjusted to have the next target heading and next target posture. As such, calibration of heading and posture of the UAV is realized. During the flight of the UAV, through the calibration of the headings and postures of the UAV, the accuracy of UAV navigation is improved. Moreover, the entire calibration process is carried out in flight state of the UAV, no manual intervention is required, thus efficiency and convenience of the calibration can be enhanced.
Referring to
Referring to
Since the zero-point offset M0 is the vector difference between the theoretical zero-point position P0 and the measurement zero-point position Pe, and the original data Rk acquired based on the measurement zero-point position Pe can reflect the zero-point position Pe, the theoretical zero-point position P0 can be determined by using the zero-point offset M0 based on the original data Rk acquired by the vector sensor 40 if the zero-point offset M0 can be determined, thereby acquiring the accurate valid data Vk. The valid data Vk is data acquired based on an actual zero-point position of the vector sensor 40, that is, data acquired after a zero-point error is eliminated.
Specifically, referring to
Referring to
Referring to
Further, Referring to
According to the calibration method and the UAV 100 in the implementations of this application, the adjustment quantity Wk may be acquired according to the current data and the previous data, and the next correction value Ek+1 may be acquired according to the current correction value Ek and the adjustment quantity Wk, to acquire a more accurate correction value, so as to perform zero-point error calibration on the next original data Rk+1 according to the next correction value Ek+1 during a next measurement to acquire next valid data Vk+1 more closely approximating to a true value. In addition, the zero-point calibration process of the vector sensor 40 is performed while the vector sensor 40 normally outputs data, and therefore does not affect the normal use of the vector sensor 40.
This application is further described below with reference to the accompanying drawings.
Refer to
The correction value may be a preset value. For example, the current correction value Ek is a correction value determined according to a plurality of measurements performed in advance or a correction value determined according to experience. This is not limited herein.
The correction value may alternatively be determined based on an adjustment quantity corresponding to a previous measurement performed by the vector sensor 40. For example, for a next measurement, the current measurement is a previous measurement of the next measurement. Therefore, a next correction value Ek+1 may be determined according to the current correction value Ek and an adjustment quantity Wk corresponding to the current measurement. In another example, the current correction value Ek may be determined according to a previous correction value Ek−1 and an adjustment quantity Wk−1 corresponding to the previous measurement. Specifically, for example, when k=2, the correction value E2 may be determined according to a correction value E1 and an adjustment quantity W1 existing when k=1. In particular, when k=1, the current measurement is a first measurement. Since a correction value E0 and an adjustment quantity W0 corresponding to the previous measurement do not exist, the correction value E1 is a preset value.
In some implementations, a posture of the vector sensor 40 during the previous measurement is different from a posture of the vector sensor 40 during the current measurement.
Referring to
Referring to
031: Acquiring a weight Dk and an estimated quantity Mk according to the current original data Rk and the previous original data Rk−1.
032: Acquiring the adjustment quantity Wk according to the weight Dk and the estimated quantity Mk .
Referring to
Referring to
Specifically, referring to
Specifically, referring to
A
1·{right arrow over (Me)}={right arrow over (Rk−1)}−{right arrow over (M0)}; Formula I
A
2·{right arrow over (Me)}={right arrow over (Rk)}−{right arrow over (M0)}. Formula II
Formula III is obtained by squaring both sides of the equation of Formula I.
|Me|2=|{right arrow over (Rk−1)}|2−2({right arrow over (Rk−1)}·{right arrow over (M0)})+|M0|2. Formula III
Formula IV is obtained by squaring both sides of the equation of Formula II.
|Me|2=|{right arrow over (Rk)}|2−2({right arrow over (Rk)}·{right arrow over (M0)})+|M0|2. Formula IV
Formula V is obtained by using differences between both sides of each of the equations of Formula III and Formula IV.
|{right arrow over (Rk)}|2−|{right arrow over (Rk−1)}|2=2({right arrow over (Rk)}−{right arrow over (Rk−1)})·{right arrow over (M0)}. Formula V
Let {right arrow over (Mk)}={right arrow over (Rk)}−{right arrow over (Rk−1)}, and Dk=|{right arrow over (Rk)}|2−|{right arrow over (Rk−1)}|2. In this case, Formula V may be revised to Formula VI: Dk=2({right arrow over (Mk)}·{right arrow over (M0)}). Dk is the weight, and {right arrow over (Mk)} is the estimated amount.
According to Formula VI, if Dk>0, that is, {right arrow over (Mk)}·{right arrow over (M0)}>0, it indicates that {right arrow over (Mk)} and {right arrow over (M0)} are in a same direction, or if Dk<0, that is, {right arrow over (Mk)}·{right arrow over (M0)}<0, it indicates that {right arrow over (Mk)} and {right arrow over (M0)} are in different directions. Referring to
Referring to
Referring to
The direction of the adjustment quantity Wk depends on a vector direction of the estimated quantity Mk and a sign of the weight Dk. Referring to
The magnitude of the adjustment quantity Wk depends on the magnitude of the estimated quantity Mk and the weight Dk. Specifically, |{right arrow over (Wk)}|=α|Dk||{right arrow over (Mk)}. α is a preset empirical factor used to avoid an excessively large value of |{right arrow over (Wk)}| and avoid an excessively large value of the correction value Ek+1, and thereby avoid divergence of the estimated zero-point position Pk+1 and improve a peed of convergence of the zero-point position Pk+1 to the theoretical zero-point position P0. When the convergence speed is not required, a value of α is 1. |Dk| can reflect a degree of change in the posture of the vector sensor 40 from the previous measurement to the current measurement. |{right arrow over (Mk)}|=|{right arrow over (Rk)}−{right arrow over (Rk−1)}| is a differential process. Due to the impact of noise, during actual measurement, |{right arrow over (Mk)}|=|{right arrow over (Rk)}−{right arrow over (Rk−1)}|+Z, where Z is a noise value. If the degree of change in the posture of the vector sensor 40 from the previous measurement to the current measurement is relatively small, values of |{right arrow over (Rk)}| and |{right arrow over (Rk−1)}| are relatively close, |{right arrow over (Rk)}−{right arrow over (Rk−1)}| is relatively small, and the noise value Z has a relatively large impact on a difference result of |{right arrow over (Mk)}|, which is likely to cause divergence of the estimated zero-point position Ppk+1. When the degree of change in the posture of the vector sensor 40 from the previous measurement to the current measurement is relatively large, the noise value Z has a relatively small impact on the difference result of |{right arrow over (Mk)}|, so that the estimated zero-point position Pk+1 can converge to the theoretical zero-point position P0. Therefore, in order to avoid the divergence of the estimated zero-point position Pk+1, it is necessary to use the adjustment quantity Wk to obtain the correction value Ek+1 to determine the convergent estimated zero-point position Pk+1 when the degree of change in the posture of the vector sensor 40 is relatively large. |Dk| is positively correlated with the degree of change in the posture of the vector sensor 40. A larger value of |Dk| indicates a larger degree of change in the posture of the vector sensor 40, and a smaller value of |Dk| indicates a smaller degree of change in the posture of the vector sensor 40. |{right arrow over (Dk)}||{right arrow over (Mk)}| represents a degree of utilization of |{right arrow over (Mk)}|. A larger |Dk| indicates a larger degree of utilization of |{right arrow over (Mk)}| to the value of |{right arrow over (Wk)}|, and thereby indicates a larger degree of adjustment of the correction value Ek by the adjustment quantity Wk and a larger distance between the determined estimated zero-point position Pk+1 and the previous estimated zero-point position Pk. A smaller |Dk| indicates a smaller degree of utilization of |{right arrow over (Mk)}| to the value of |{right arrow over (Wk)}|, and thereby indicates a smaller degree of adjustment of the correction value Ek by the adjustment quantity Wk and a smaller distance between the determined estimated zero-point position Pk+1 and the previous estimated zero-point position Pk.
Further, in some embodiments, when |Dk| is greater than the preset threshold, the correction value Ek may be adjusted by using the adjustment quantity Wk to obtain the correction value Ek+1. When |Dk| is less than or equal to the preset threshold, it may be considered that the correction value Ek does not require correction. The adjustment quantity Wk may be set to zero to cause Ek+1Ek+0=Ek, or Ek+1=Ek may be directly set. In this case, zero-point calibration is not required. When |Dk+n| is greater than the preset threshold, the correction value Ek+n is acquired by using the adjustment quantity Wk+n.
Specifically, referring to
033: Acquiring a weight Dk and an estimated quantity Mk according to the current data and the previous data.
034: When the weight Dk is greater than a preset threshold, acquiring the adjustment quantity Wk according to the weight Dk and the estimated quantity Mk .
035: When the weight Dk is less than or equal to the preset threshold, setting the adjustment quantity Wk to zero.
Referring to
In this way, it can be ensured that the estimated zero-point position Pk+1 determined after the zero-point calibration converges to the theoretical zero-point position P0, thereby improving the accuracy of the acquired valid data.
Similarly, when the vector sensor 40 is a vector sensor 40 having more than two axes, the adjustment quantity Wk can still be acquired by using the calibration method in the implementations of this application, and the next correction value Ek+1 can be acquired according to the adjustment quantity Wk and the current correction value Ek . Details are not described herein.
Refer to Formula VI: Dk=2({right arrow over (Mk)}·{right arrow over (M0)}). In some implementations, the current data includes the current original data Rk and the current valid data Vk , and the previous data includes the previous valid data Vk−1. The weight Dk and the estimated quantity Mk may be acquired according to the current valid data Vk and the previous valid data Vk−1.
Specifically, referring to
011: Acquiring current valid data Vk according to the current original data Rk and the current correction value Ek.
Referring to
Specifically, referring to
Referring to
036: Acquiring a weight Dk and an estimated quantity Mk according to the current valid data Vk and the previous valid data Vk−1.
037: Acquiring the adjustment quantity Wk according to the weight Dk and the estimated quantity Mk.
Referring to
With reference to
Referring to
Referring to
Refer to Formula VI: Dk=2 ({right arrow over (Mk)}·{right arrow over (M0)}). The weight Dk represents the degree of change in the posture of the vector sensor 40 during the two measurements. In some implementations, the weight Dk may be determined according to the posture data. The posture data is data measured by other sensors that can represent the degree of change in the posture of the vector sensor 40 during the two measurements. In an embodiment, the posture data may be a first angular velocity and a second angular velocity measured by the angular velocity sensor during the two measurements performed by the vector sensor 40. A larger difference between the first angular velocity and the second angular velocity indicates a larger degree of change in the posture of the vector sensor 40 during the two measurements, and thereby indicates a larger determined weight Dk. A type of the posture data is not limited to a rate of change in the angular velocity of the vector sensor 40 during the two measurements, and is not limited herein.
Specifically, referring to
038: Acquiring posture data.
039: Acquiring the adjustment quantity Wk according to the current data, the previous data, and the posture data.
Referring to
Specifically, the adjustment quantity Wk depends on the weight Dk and the estimated quantity Mk , the weight Dk depends on the posture data, and the estimated quantity Mk depends on the current data and the previous data. Based on the above, if the current data and the previous data are respectively the current original data {right arrow over (Rk)} and the previous original data {right arrow over (Rk−1)}, {right arrow over (Mk)}={right arrow over (Rk)}−{right arrow over (Rk−1)}. If the current data and the previous data are respectively the current valid data Vk and the previous valid data Vk−1, {right arrow over (Mk)}={right arrow over (Vk)}−{right arrow over (Vk−1)}.
In conclusion, according to the calibration method and the UAV 100 in the implementations of this application, the adjustment quantity Wk may be acquired according to the current data and the previous data, and the next correction value Ek+1 may be acquired according to the current correction value Ek and the adjustment quantity Wk , to acquire a more accurate correction value, so as to perform zero-point error calibration on the next original data Rk+1 according to the next correction value Ek+1 during a next measurement to acquire next valid data Vk+1 more closely approximating to a true value.
According to the calibration method and the UAV 100 in the implementations of this application, zero-point calibration may be performed during output of the valid data. Specifically, zero-point calibration may be performed during any kth measurement, so as to dynamically complete zero-point calibration during the use of the vector sensor 40, thereby maintaining the accuracy of the valid data.
Referring to
Referring to
01: Collecting, during a flight of the UAV 100, a current correction value Ek and current data during a current measurement performed by the vector sensor 40.
02: Acquiring previous data during a previous measurement performed by the vector sensor 40.
03: Acquiring an adjustment quantity Wk according to the current data and the previous data.
04: Acquiring a next correction value Ek+1 according to the current correction value Ek and the adjustment quantity Wk.
05: Acquiring next original data Rk+1 during a next measurement performed by the vector sensor 40, and acquiring next valid data Vk+1 according to the next original data Rk+1 and the next correction value Ek+1.
06: Controlling headings and postures of the UAV 100 according to the next valid data Vk+1.
In another example, when the computer program 401 is executed by one or more processors 30, the one or more processors 30 are caused to perform the following calibration method.
01: Collecting, during a flight of the UAV 100, a current correction value Ek and current data during a current measurement performed by the vector sensor 40.
02: Acquiring previous data during a previous measurement performed by the vector sensor 40.
031: Acquiring a weight Dk and an estimated quantity Mk according to the current original data Rk and the previous original data Rk−1.
032: Acquiring an adjustment quantity Wk according to the weight Dk and the estimated quantity Mk;
034: When the weight Dk is greater than a preset threshold, acquiring the adjustment quantity Wk according to the weight Dk and the estimated quantity Mk .
035: When the weight Dk is less than or equal to the preset threshold, setting the adjustment quantity Wk to zero.
04: Acquiring a next correction value Ek+1 according to the current correction value Ek and the adjustment quantity Wk.
05: Acquiring next original data Rk+1 during a next measurement performed by the vector sensor 40, and acquiring next valid data Vk+1 according to the next original data Rk+1 and the next correction value Ek+1.
06: Controlling headings and postures of the UAV 100 according to the next valid data Vk+1.
In the descriptions of this specification, descriptions of reference terms such as “some implementations”, “in one example”, or “exemplarily” mean that specific characteristics, structures, materials, or features described with reference to the implementation or example are included in at least one implementation or example of this application. In this specification, schematic descriptions of the foregoing terms are not necessarily with respect to the same implementation or example. Further, the described specific characteristics, structures, materials, or features may be combined in a proper manner in any one or more implementations or examples. In addition, different embodiments or examples described in this specification, as well as features of different embodiments or examples, may be integrated and combined by a person skilled in the art without contradicting each other.
Any process or method in the flowcharts or described herein in another manner may be understood as indicating a module, a segment, or a part including code of one or more executable instructions for implementing a particular logical function or process step. In addition, the scopes of preferred embodiments of this application include other implementations which do not follow the order shown or discussed, including performing, according to involved functions, the functions basically simultaneously or in a reverse order, which should be understood by a person skilled in the art to which the embodiments of this application belong.
Although the embodiments of this application are shown and described above, it may be understood that the foregoing embodiments are exemplary, and cannot be understood as a limitation to this application. A person of ordinary skill in the art may make changes, modifications, replacements, and variations to the foregoing embodiments without departing from the scope of this application.
Number | Date | Country | Kind |
---|---|---|---|
202110935319.3 | Aug 2021 | CN | national |
The present application is continuation-in-part of the U.S. Non-Provisional patent application Ser. No. 17/585,505, filed Jan. 26, 2022, which claims priority from the Chinese Invention Patent Application No. 202110935319.3 filed Aug. 16, 2021, and the disclosures of which are incorporated herein by reference in their entireties.
Number | Date | Country | |
---|---|---|---|
Parent | 17585505 | Jan 2022 | US |
Child | 17940015 | US |