A magnetic field calibration method and related components

By fitting and calibration of the three-axis data of the magnetic sensor, the problem of environmental magnetic field interference is solved, and efficient and low-cost magnetic field calibration is achieved, avoiding the need to build neural networks and increase sensors.

CN114325536BActive Publication Date: 2024-11-19CHONGQING JINSHAN MEDICAL TECH RES INST CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202111584057.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-22
Publication Date
2024-11-19
Estimated Expiration
2041-12-22

AI Technical Summary

Technical Problem

The measurement accuracy of existing magnetic sensors is disturbed by the ambient magnetic field, and the existing magnetic field calibration methods are inefficient or costly, especially when building neural networks or adding additional sensors.

Method used

By obtaining the data of the magnetic sensor rotating 360 degrees along the three axis, fitting the sine function expression, deleting the data with deviation value exceeding the threshold, fitting the ellipsoid, determining the axis length and zero point offset, calculating the calibration coefficient, and performing magnetic field data calibration .

Benefits of technology

Efficient magnetic field calibration is achieved, interfering with data, strong anti-interference ability, reducing costs, and no additional sensor and neural network training is required.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114325536B_ABST
    Figure CN114325536B_ABST
Patent Text Reader

Abstract

The present invention discloses a magnetic field calibration method and related components. After acquiring three-axis data measured by a magnetic sensor, the three-axis data is fitted to obtain a sinusoidal function expression of the three-axis data, and then the data in the three-axis data whose deviation value from the sinusoidal function expression of the three-axis data exceeds a first preset threshold is deleted to exclude interference data. Subsequently, the remaining three-axis data is calibrated by ellipsoid fitting, and finally the magnetic field data distributed on the space ellipsoid surface is calibrated to the space spherical surface. It can be seen that the method can calibrate the measurement data of the magnetic sensor while excluding interference data, has strong anti-interference ability, does not need to build a training neural network, has high efficiency, does not need to add additional sensors, and reduces costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data calibration, and in particular to a magnetic field calibration method and related components. Background Art

[0002] At present, with the rapid development and widespread use of magnetic sensors, the requirements for the measurement accuracy of magnetic sensors are becoming higher and higher. However, magnetic sensors are easily interfered by the environmental magnetic field. For example, permanent magnets and DC charged bodies in the environment will generate magnetic fields that affect the measurement accuracy of magnetic sensors. There is even a risk of magnetic sensors being magnetized, thereby affecting the measurement accuracy. Therefore, magnetic field calibration is an effective means to improve the measurement accuracy of magnetic sensors. There are usually two methods for magnetic field calibration in the prior art, namely: calibration by comparing with a reference heading and calibration using redundant sensors.

[0003] In the prior art, a neural network is often used to achieve calibration by comparing with a reference heading. However, it is difficult to find a high-precision heading reference in practical applications, and building and training a neural network requires a lot of resources and time, which is inefficient and not conducive to implementation.

[0004] The existing technology uses redundant sensors to achieve calibration, which requires the use of magnetic sensors in conjunction with GPS and inertial navigation systems to complete magnetic field calibration, or the use of differential sensors to complete magnetic field calibration. It can be seen that these methods require additional sensor equipment, which increases costs. Summary of the invention

[0005] The purpose of the present invention is to provide a magnetic field calibration method and related components, which can calibrate the measurement data of the magnetic sensor while eliminating interference data, have strong anti-interference ability, do not need to build a training neural network, have high efficiency and do not need to add additional sensors, thereby reducing costs.

[0006] In order to solve the above technical problems, the present invention provides a magnetic field calibration method, comprising:

[0007] Acquire multiple sets of x-axis data, y-axis data, and z-axis data measured when the magnetic sensor rotates 360 degrees along the x-axis, y-axis, and z-axis respectively;

[0008] Fitting the x-axis data, y-axis data and z-axis data respectively to obtain the x-axis sine function expression, the y-axis sine function expression and the z-axis sine function expression;

[0009] Deleting x-axis data whose deviation value from the x-axis sine function expression exceeds a first preset threshold value to obtain x-axis sample data;

[0010] Deleting the y-axis data whose deviation value from the y-axis sine function expression exceeds a first preset threshold value to obtain y-axis sample data;

[0011] Deleting z-axis data whose deviation value from the z-axis sine function expression exceeds a first preset threshold value to obtain z-axis sample data;

[0012] Obtaining a sample data fitting ellipsoid based on the x-axis sample data, the y-axis sample data and the z-axis sample data;

[0013] Determine the x-axis length a of the sample data fitting ellipsoid x , y-axis length a y 、z-axis length a z And x-axis zero offset o x , y-axis zero point offset o y , z-axis zero point offset o z ;

[0014] According to the x-axis length a x , y-axis length a y 、z-axis length a z Determine the calibration factor b x 、b y 、b z ;

[0015] According to the calibration factor b x 、b y 、b z The x-axis zero point offset o x , y-axis zero point offset o y , z-axis zero point offset o z Determine the calibrated magnetic field data.

[0016] Preferably, the x-axis length a of the sample data fitting ellipsoid is determined x , y-axis length a y 、z-axis length a z And the x-axis zero offset o x , y-axis zero point offset o y , z-axis zero point offset o z ,include:

[0017] The maximum value data and the minimum value data in the x-axis sample data, the y-axis sample data and the z-axis sample data are obtained from the x-axis sample data, the y-axis sample data and the z-axis sample data, respectively. max , x min ,y max ,y min , z max , z min , where x max is the maximum value data in the x-axis sample data, x minis the minimum value data in the x-axis sample data, y max is the maximum value data in the y-axis sample data, y min is the minimum value data in the y-axis sample data, z max is the maximum value data in the z-axis sample data, z min The minimum value data among the z-axis sample data;

[0018] Based on x max , x min And the x-axis length relationship determines the x-axis length a x ;

[0019] The x-axis length relationship is:

[0020] a x =x max -x min ;

[0021] Based on y max ,y min And the y-axis length relationship determines the y-axis length a y ;

[0022] The y-axis length relationship is:

[0023] a y =y max -y min ;

[0024] Based on z max , z min And the z-axis length relationship to determine the z-axis length a z ;

[0025] The z-axis length relationship is:

[0026] a z =z max -z min ;

[0027] Based on x max , x min And the x-axis zero offset relationship to determine the x-axis zero offset o x ;

[0028] The x-axis zero offset relationship is:

[0029]

[0030] Based on y max ,y min And the y-axis zero offset relationship to determine the y-axis zero offset o y ;

[0031] The y-axis zero point offset relationship is:

[0032]

[0033] Based on z max , z min And the z-axis zero offset relationship to determine the z-axis zero offset o z ;

[0034] The z-axis zero point offset relationship is:

[0035]

[0036] Preferably, according to the x-axis length a x , y-axis length a y 、z-axis length a z Get the calibration factor b x , b y 、b z ,include:

[0037] Compare the x-axis length a x , y-axis length a y 、z-axis length a z size;

[0038] If the x-axis length is a x Minimum, let b x =1, b y =a x / a y , b z =a x / a z ;

[0039] If the y-axis length a y Minimum, let b x =a y / a x , b y =1, b z =a y / a z ;

[0040] If the z-axis length a z Minimum, let b x =a z / a x , b y =a z / a y , b z =1.

[0041] Preferably, according to the calibration coefficient b x 、by 、b z The x-axis zero point offset o x , y-axis zero point offset o y , z-axis zero point offset o z Get calibrated magnetic field data, including:

[0042] Let the calibrated x-axis magnetic field data = b x (xo x );

[0043] Let the calibrated y-axis magnetic field data = b y (yo y );

[0044] Let the calibrated z-axis magnetic field data = b z (zo z ), wherein x, y, z are the measurement data of the x-axis, the y-axis and the z-axis of the magnetic sensor.

[0045] In order to solve the above technical problems, the present invention also provides a magnetic field calibration device, comprising:

[0046] a memory for storing computer programs and calibration coefficients;

[0047] A processor is used to execute the computer program to implement the steps of the magnetic field calibration method described above.

[0048] In order to solve the above technical problem, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the magnetic field calibration method as described above are implemented.

[0049] In order to solve the above technical problems, the present invention also provides a device, including a magnetic sensor and a magnetic field calibration device as described above.

[0050] The present invention provides a magnetic field calibration method. First, three-axis data measured by a magnetic sensor is acquired, and then the three-axis data are fitted respectively to obtain a sinusoidal function expression of the three-axis data. Sample data is obtained after data whose deviation value from the sinusoidal function expression of the three-axis data exceeds a first preset threshold value in the three-axis data is deleted. A fitting ellipsoid is obtained according to the sample data, and the three-axis length and zero-point offset of the fitting ellipsoid are determined. A calibration coefficient is determined according to the three-axis length of the fitting ellipsoid. Finally, calibrated magnetic field data is obtained according to the calibration coefficient and the zero-point offset. It can be seen that the method can calibrate the measurement data of the magnetic sensor while excluding interference data, has strong anti-interference ability, does not need to build a training neural network, has high efficiency, does not need to add additional sensors, and reduces costs.

[0051] The present invention also provides a magnetic field calibration device, a computer-readable storage medium and a device, which have the same beneficial effects as the above-mentioned magnetic field calibration method. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the prior art and the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0053] Figure 1 A flow chart of a magnetic field calibration method provided by the present invention;

[0054] Figure 2 A schematic structural diagram of a magnetic field calibration device provided by the present invention. DETAILED DESCRIPTION

[0055] The core of the present invention is to provide a magnetic field calibration method and related components, which can calibrate the measurement data of the magnetic sensor while eliminating interference data, have strong anti-interference ability, do not need to build a training neural network, have high efficiency and do not need to add additional sensors, thereby reducing costs.

[0056] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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] Please refer to Figure 1 , Figure 1 A flow chart of a magnetic field calibration method provided by the present invention includes:

[0058] S11: Acquire multiple sets of x-axis data, y-axis data, and z-axis data measured when the magnetic sensor rotates 360 degrees along the x-axis, y-axis, and z-axis respectively;

[0059] S12: fitting the x-axis data, the y-axis data and the z-axis data respectively to obtain an x-axis sine function expression, a y-axis sine function expression and a z-axis sine function expression;

[0060] S13: deleting the x-axis data whose deviation value from the x-axis sine function expression exceeds a first preset threshold value to obtain x-axis sample data;

[0061] Delete the y-axis data whose deviation value from the y-axis sine function expression exceeds a first preset threshold value to obtain y-axis sample data;

[0062] The z-axis data whose deviation value from the z-axis sine function expression exceeds a first preset threshold value is deleted to obtain z-axis sample data;

[0063] S14: obtaining a sample data fitting ellipsoid based on the x-axis sample data, the y-axis sample data and the z-axis sample data;

[0064] S15: Determine the x-axis length a of the sample data fitting ellipsoid x , y-axis length a y 、z-axis length a z And x-axis zero offset o x , y-axis zero point offset o y , z-axis zero point offset o z ;

[0065] S16: According to the x-axis length a x , y-axis length a y 、z-axis length a z Determine the calibration factor b x 、b y 、b z ;

[0066] S17: According to the calibration factor b x 、b y 、b z Offset from x-axis zero point o x , y-axis zero point offset o y 、 z-axis zero point offset o z Determine the calibrated magnetic field data.

[0067] At present, with the rapid development and widespread use of magnetic sensors, the measurement accuracy requirements for magnetic sensors are becoming higher and higher. However, magnetic sensors are easily disturbed by the environmental magnetic field, which affects the measurement accuracy of the magnetic sensors. Therefore, magnetic field calibration is an effective means to improve the measurement accuracy of magnetic sensors. The calibration method is now commonly used to achieve calibration by comparing with the reference heading and the method of using redundant sensors. However, in actual application, the method of comparing with the reference heading requires the construction of a training neural network, which takes a lot of time, has low efficiency, and is not conducive to implementation. The method of using redundant sensor calibration requires the addition of additional sensor equipment, which increases costs.

[0068] In order to solve the above problems, the magnetic field calibration method provided by the present scheme first obtains multiple sets of magnetic field data measured during the slow rotation of the magnetic sensor along three axes by 360 degrees, wherein the multiple sets of magnetic field data should include all measurement ranges of the magnetic sensor, and the amount of data should be no less than 1000 sets. The multiple sets of magnetic field data collected are separated to obtain x-axis data, y-axis data, and z-axis data, and the x-axis sine function expression, y-axis sine function expression, and z-axis sine function expression can be obtained by fitting according to their respective rules. The data whose deviation value from the x-axis sine function expression exceeds the first preset threshold value in the x-axis data is deleted, the data whose deviation value from the y-axis sine function expression exceeds the first preset threshold value in the y-axis data is deleted, and the data whose deviation value from the z-axis sine function expression exceeds the first preset threshold value in the z-axis data is deleted, and the x-axis sample data, y-axis sample data, and z-axis sample data without interference data are obtained. Then, the sample data fitting ellipsoid is fitted according to the x-axis sample data, the y-axis sample data and the z-axis sample data. After the three-axis axis lengths and the zero-point offset of the sample data fitting ellipsoid are determined, the calibration coefficient is determined according to the three-axis axis lengths. Then, the magnetic field data originally distributed on the space ellipsoid surface is calibrated to the magnetic field data distributed on the space spherical surface based on the calibration coefficient and the zero-point offset.

[0069] It should be noted that the deviation value between the x-axis data and the x-axis sine function expression here refers to the absolute value of the difference between the data value in the x-axis data and the standard value in the corresponding x-axis sine function expression. The same applies to the deviation value between the y-axis data and the y-axis sine function expression and the deviation value between the z-axis data and the z-axis sine function expression.

[0070] In summary, the present invention provides a magnetic field calibration method, firstly, three-axis data obtained by measuring by a magnetic sensor is obtained, and then the three-axis data are fitted respectively to obtain a sinusoidal function expression of the three-axis data, and the data in the three-axis data whose deviation value from the sinusoidal function expression of the three-axis data exceeds a first preset threshold is deleted to obtain sample data, and a fitting ellipsoid is obtained according to the sample data, and the three-axis length and zero point offset of the fitting ellipsoid are determined, and a calibration coefficient is determined according to the three-axis length of the fitting ellipsoid, and finally, the calibrated magnetic field data is obtained according to the calibration coefficient and the zero point offset. It can be seen that the present method can calibrate the measurement data of the magnetic sensor while excluding interference data, has strong anti-interference ability, does not need to build a training neural network, has high efficiency, does not need to add additional sensors, and reduces costs.

[0071] Based on the above embodiments:

[0072] As a preferred embodiment, the x-axis length a of the sample data fitting ellipsoid is determined x , y-axis length a y 、z-axis length a z And the x-axis zero offset ox , y-axis zero point offset o y , z-axis zero point offset o z ,include:

[0073] The maximum value data and the minimum value data in the x-axis sample data, the y-axis sample data and the z-axis sample data are obtained from the x-axis sample data, the y-axis sample data and the z-axis sample data, respectively. max , x min ,y max ,y min , z max , z min , where x max is the maximum value data in the x-axis sample data, x min is the minimum value data in the x-axis sample data, y max is the maximum value data in the y-axis sample data, y min is the minimum value data in the y-axis sample data, z max is the maximum value data in the z-axis sample data, z min The minimum value data among the z-axis sample data;

[0074] Based on x max , x min And the x-axis length relationship determines the x-axis length a x ;

[0075] The x-axis length relationship is:

[0076] a x =x max -x min ;

[0077] Based on y max ,y min And the y-axis length relationship determines the y-axis length a y ;

[0078] The y-axis length relationship is:

[0079] a y =y max -y min ;

[0080] Based on z max , z min And the z-axis length relationship to determine the z-axis length a z ;

[0081] The z-axis length relationship is:

[0082] a z =z max -z min ;

[0083] Based on x max , x min And the x-axis zero offset relationship to determine the x-axis zero offset o x ;

[0084] The x-axis zero offset relationship is:

[0085]

[0086] Based on y max ,y min And the y-axis zero offset relationship to determine the y-axis zero offset o y ;

[0087] The relationship between the y-axis zero point offset is:

[0088]

[0089] Based on z max , z min And the z-axis zero offset relationship to determine the z-axis zero offset o z ;

[0090] The relationship between the z-axis zero point offset and the z-axis zero point offset is:

[0091]

[0092] In this embodiment, considering that in the spatial coordinate system, as long as the maximum and minimum values ​​of the three axes of the ellipsoid are known, the three-axis axis length and zero-point offset of the spatial ellipsoid can be obtained, so in this embodiment, the maximum and minimum values ​​in the x-axis sample data, the y-axis sample data and the z-axis sample data are first determined. Specifically, the maximum and minimum values ​​in the sample data can be determined by the comparison method, that is, two data are compared, and the larger or smaller one is left and then compared with the next data until all data are compared. After obtaining the maximum and minimum values ​​in the three-axis sample data, the three-axis axis length and the three-axis zero-point offset can be calculated according to the axis length relationship and the zero-point offset relationship. The calculation method is simple and convenient, which increases the feasibility of the solution.

[0093] As a preferred embodiment, according to the x-axis length a x , y-axis length a y 、z-axis length a z Get the calibration factor b x 、b y 、b z ,include:

[0094] Compare the x-axis length a x , y-axis length a y 、z-axis length az size;

[0095] If the x-axis length is a x Minimum, let b x =1, b y =a x / a y , b z =a x / a z ;

[0096] If the y-axis length is a y Minimum, let b x =a y / a x , b y =1, b z =a y / a z ;

[0097] If the z-axis length is a z Minimum, let b x =a z / a x , b y =a z / a y , b z =1.

[0098] In this embodiment, considering that the magnetic field data distributed on the space ellipsoidal surface needs to be calibrated to the magnetic field data distributed on the space spherical surface, it is necessary to first determine the calibration coefficients of the three axes. In this embodiment, the shortest axis length among the three axes is used as the diameter of the target sphere after calibration. For example, when the x-axis length is the smallest, the x-axis length is the diameter of the target sphere after calibration. The calibration coefficient of the y-axis sample data is the x-axis length divided by the y-axis length, and the calibration coefficient of the z-axis sample data is the x-axis length divided by the z-axis length. The same is true when the y-axis length is the smallest and the z-axis length is the smallest. The calculation method is simple, which improves the feasibility of the solution.

[0099] As a preferred embodiment, according to the calibration coefficient b x 、b y 、b z Offset from x-axis zero point o x , y-axis zero point offset o y , z-axis zero point offset o z Get calibrated magnetic field data, including:

[0100] Let the calibrated x-axis magnetic field data = b x (xo x );

[0101] Let the calibrated y-axis magnetic field data = by (yo y );

[0102] Let the calibrated z-axis magnetic field data = b z (zo z ), where x, y, and z are the measurement data of the x-axis, y-axis, and z-axis of the magnetic sensor.

[0103] In this embodiment, the zero point offset of the three axes is subtracted from the three-axis data respectively, so that the center of the calibrated magnetic field data is at the coordinate zero point, and then the three-axis data are multiplied by their respective calibration coefficients, so that the magnetic field data originally distributed on the space ellipsoid surface can be calibrated to the magnetic field data distributed on the space spherical surface. The implementation method is simple and increases the feasibility of the solution.

[0104] The present invention also provides a magnetic field calibration device, please refer to Figure 2 , Figure 2 A structural schematic diagram of a magnetic field calibration device provided by the present invention comprises:

[0105] Memory 2, used for storing computer programs and calibration coefficients;

[0106] Processor 1 is used to execute a computer program to implement the steps of the magnetic field calibration method.

[0107] For an introduction to a magnetic field calibration device provided by the present invention, please refer to the above method embodiment, and the present invention will not be repeated here.

[0108] The present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by the processor 1, the steps of the magnetic field calibration method described above are implemented.

[0109] For an introduction to a computer-readable storage medium provided by the present invention, please refer to the above method embodiment, and the present invention will not be repeated here.

[0110] The present invention also provides a device, including a magnetic sensor and the above-mentioned magnetic field calibration device.

[0111] For an introduction to a device provided by the present invention, please refer to the above method embodiment, and the present invention will not be described in detail here.

[0112] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0113] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A magnetic field calibration method, It is characterized in that include: Acquire multiple sets of x-axis data, y-axis data, and z-axis data measured when the magnetic sensor rotates 360 degrees along the x-axis, y-axis, and z-axis respectively; Fitting the x-axis data, y-axis data and z-axis data respectively to obtain the x-axis sine function expression, the y-axis sine function expression and the z-axis sine function expression; Deleting x-axis data whose deviation value from the x-axis sine function expression exceeds a first preset threshold value to obtain x-axis sample data; Deleting the y-axis data whose deviation value from the y-axis sine function expression exceeds a first preset threshold value to obtain y-axis sample data; Deleting z-axis data whose deviation value from the z-axis sine function expression exceeds a first preset threshold value to obtain z-axis sample data; Obtaining a sample data fitting ellipsoid based on the x-axis sample data, the y-axis sample data and the z-axis sample data; Determine the x-axis length a of the sample data fitting ellipsoid x , y-axis length a y 、z-axis length a z And the x-axis zero offset o x , y-axis zero point offset o y , z-axis zero point offset o z ; According to the x-axis length a x , y-axis length a y 、z-axis length a z Determine the calibration factor b x , b y , b z ; According to the calibration factor b x , b y , b z The x-axis zero point offset o x , y-axis zero point offset o y , z-axis zero point offset o z determining calibrated magnetic field data; Among them, determine the x-axis length a of the sample data fitting ellipsoid x , y-axis length a y 、z-axis length a z And the x-axis zero offset o x , y-axis zero point offset o y , z-axis zero point offset o z ,include: The maximum value data and the minimum value data in the x-axis sample data, the y-axis sample data and the z-axis sample data are obtained from the x-axis sample data, the y-axis sample data and the z-axis sample data, respectively. max , x min ,y max ,y min , z max , z min , where x max is the maximum value data in the x-axis sample data, x min is the minimum value data in the x-axis sample data, y max is the maximum value data in the y-axis sample data, y min is the minimum value data in the y-axis sample data, z max is the maximum value data in the z-axis sample data, z min is the minimum value data in the z-axis sample data; Based on x max , x min And the x-axis length relationship determines the x-axis length a x ; The x-axis length relationship is: a x =x max -x min ; Based on y max ,y min And the y-axis length relationship to determine the y-axis length a y ; The y-axis length relationship is: to y =and max -and min ; Based on z max , z min And the z-axis length relationship to determine the z-axis length a z ; The z-axis length relationship is: and z =from max -z min ; Based on x max , x min And the x-axis zero offset relationship to determine the x-axis zero offset o x ; The x-axis zero offset relationship is: o x =(x max +x min ) / 2; Based on y max ,y min And the y-axis zero offset relationship to determine the y-axis zero offset o y ; The y-axis zero point offset relationship is: either y (and max +y min ) / 2; Based on z max , z min And the z-axis zero offset relationship to determine the z-axis zero offset o z ; The z-axis zero point offset relationship is: about z =(from max +from min ) / 2; Among them, according to the x-axis length a x , y-axis length a y 、z-axis length a z Get the calibration factor b x , b y , b z ,include: Compare the x-axis length a x , y-axis length a y 、z-axis length a z size; If the x-axis length is a x Minimum, let b x =1, b y =a x / a y , b z =ax / a z ; If the y-axis length a y Minimum, let b x =a y / a x , b y =1, b z =a y / a z ; If the z-axis length a z Minimum, let b x =a z / a x , b y =a z / a y , b z =1; Wherein, according to the calibration coefficient b x , b y , b z The x-axis zero point offset o x , y-axis zero point offset o y , z-axis zero point offset o z Get calibrated magnetic field data, including: Let the calibrated x-axis magnetic field data = b x (xo x ); Let the calibrated y-axis magnetic field data = b y (yo y ); Let the calibrated z-axis magnetic field data = b z (zo z ), wherein x, y, z are the measurement data of the x-axis, the y-axis, and the z-axis of the magnetic sensor.

2. A magnetic field calibration device, It is characterized in that include: a memory for storing computer programs and calibration coefficients; A processor, configured to execute the computer program to implement the steps of the magnetic field calibration method as claimed in claim 1.

3. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the magnetic field calibration method according to claim 1 are implemented.

Citation Information

Patent Citations

  • Ellipsoid fitting-based unmanned aerial vehicle magnetic sensor calibrating method and unmanned aerial vehicle

    CN107894241A

  • Initial calibration method and apparatus for magnetometer, and magnetometer

    CN107907142A

  • Method and system for dynamically calibrating magnetic field sensor

    CN108195399A

  • Online calibration method for three-axis TMR sensor

    CN111780786A

  • Magnetic sensor array calibration method

    CN113514789A