JP2013117442A - Bearing error compensation device, bearing error compensation method, bearing error compensation program, error angle compensation apparatus, triaxial magnetic sensor and sensor module - Google Patents

Bearing error compensation device, bearing error compensation method, bearing error compensation program, error angle compensation apparatus, triaxial magnetic sensor and sensor module Download PDF

Info

Publication number
JP2013117442A
JP2013117442A JP2011264976A JP2011264976A JP2013117442A JP 2013117442 A JP2013117442 A JP 2013117442A JP 2011264976 A JP2011264976 A JP 2011264976A JP 2011264976 A JP2011264976 A JP 2011264976A JP 2013117442 A JP2013117442 A JP 2013117442A
Authority
JP
Japan
Prior art keywords
magnetic
magnetic field
magnetic element
angle
deviation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2011264976A
Other languages
Japanese (ja)
Inventor
Yasushi Oikawa
靖 及川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujikura Ltd
Original Assignee
Fujikura Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujikura Ltd filed Critical Fujikura Ltd
Priority to JP2011264976A priority Critical patent/JP2013117442A/en
Publication of JP2013117442A publication Critical patent/JP2013117442A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Measuring Magnetic Variables (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a bearing compensation device capable of determining a factor of error included in a bearing angle to be measured and calculated.SOLUTION: A bearing error compensation device comprises: a magnetic sensor that comprises magnetic elements for detecting magnetic fields in X, Y and Z directions; a measuring part for measuring magnetic data based on the magnetic fields applied to the magnetic elements respectively; a first calculation part for obtaining a deviation of the magnetic data for each magnetic element, adding the deviations of the magnetic data for two different magnetic elements to calculate a first deviation sum; a second calculation part for, with respect to the magnetic data output by the magnetic elements, adding deviations of addition values of the magnetic data in two different magnetic elements to calculate a second deviation sum; a lookup table for storing correspondence between deviation sum information of first and second deviation sums for biaxial combination of magnetic sensors and intersection angles in magnetism detection directions of biaxial magnetic elements, obtained in advance from a plurality of magnetic sensors; and an intersection angle estimation part which, on the basis of biaxial deviation sum information of a magnetic sensor to be detected, extracts a magnetic sensor having the same biaxial deviation sum information from the lookup table, thereby obtaining the intersection angle.

Description

本発明は、方位誤差補償装置、方位誤差補償方法、方位誤差補償プログラム、誤差角度補償装置、3軸磁気センサ及びセンサモジュールに関する。   The present invention relates to an azimuth error compensation device, an azimuth error compensation method, an azimuth error compensation program, an error angle compensation device, a three-axis magnetic sensor, and a sensor module.

携帯電話機などの携帯電子機器や携帯端末においては、方位を検出するためのセンサを含む方位検知システム(以下、「センサモジュール」と称す)が広く利用されている。また、そのセンサモジュールとGPS(Global Positioning System)機能などを組み合わせることにより、方位角に加えて、空間的な位置情報も検知することができる。このため、空間的な位置情報の検知を利用して、ナビゲーションシステムが構成でき、センサモジュールは、今後、幅広い利用が見込まれている。   In mobile electronic devices such as mobile phones and mobile terminals, an orientation detection system (hereinafter referred to as “sensor module”) including a sensor for detecting the orientation is widely used. In addition to the azimuth angle, spatial position information can also be detected by combining the sensor module and a GPS (Global Positioning System) function. For this reason, a navigation system can be configured using detection of spatial position information, and the sensor module is expected to be widely used in the future.

このセンサモジュールは、方位を検出するため、自身に対する地磁気方向を検知する必要がある。
しかし、携帯電子機器等は、ユーザの携帯状態により、三次元空間内において、種々の姿勢角で使用されることになる。
このため、センサモジュールは、三次元的に種々の向きに置かれていても、正確な方位測定を実現する必要がある。
Since this sensor module detects an azimuth, it is necessary to detect the geomagnetic direction with respect to itself.
However, portable electronic devices and the like are used at various posture angles in the three-dimensional space depending on the user's carrying state.
For this reason, even if the sensor module is placed in various directions three-dimensionally, it is necessary to realize accurate azimuth measurement.

従来より、センサモジュールを用いて方位を測定する方法として、
・直交する3軸方向のそれぞれの磁界を検出して行う方法
・2軸方向(3軸の場合の2軸を選択する場合を含む)の磁界を検出して行う方法
・磁界と加速度センサ又はジャイロセンサなどによる地磁気に対する伏角および偏角、並びに傾斜センサ等による傾斜角を組み合わせて求める方法
等の複数の種類の方法が存在している(例えば、特許文献1、特許文献2、特許文献3、特許文献4及び特許文献5を参照)。
Conventionally, as a method of measuring the direction using a sensor module,
・ Method to detect each magnetic field in three orthogonal directions ・ Method to detect by detecting magnetic field in two axes (including the case of selecting two axes in the case of three axes) ・ Magnetic field and acceleration sensor or gyro There are a plurality of types of methods, such as a method of obtaining a tilt angle and a declination angle with respect to geomagnetism by a sensor or the like, and a tilt angle by a tilt sensor or the like (for example, Patent Document 1, Patent Document 2, Patent Document 3, Patent Reference 4 and Patent Document 5).

ここで、携帯電子機器100に設定されるセンサモジュール101の磁界の検知方向を示す座標軸と、伏角および偏角について説明する。
図17(a)および(b)は、携帯電子機器100に対し、理想的な位置にセンサモジュール101が固定して搭載された場合における磁界の検出方向の直交座標軸を説明する図である。この図17(a)および(b)は、それぞれ機器の平面図および側面図であり、この場合、機器の平坦な前面の法線方向をZ軸方向とし、機器の長手方向をY軸とし、残りをX軸方向としている。
Here, a coordinate axis indicating a magnetic field detection direction of the sensor module 101 set in the portable electronic device 100, and a dip angle and a declination angle will be described.
FIGS. 17A and 17B are diagrams for explaining orthogonal coordinate axes of the magnetic field detection direction when the sensor module 101 is fixedly mounted on the portable electronic device 100 at an ideal position. FIGS. 17A and 17B are a plan view and a side view, respectively, of the device. In this case, the normal direction of the flat front surface of the device is the Z-axis direction, and the longitudinal direction of the device is the Y-axis. The rest is in the X-axis direction.

次に、図18は、センサモジュールの検出方向における伏角および偏角を説明するための図である。
例えば、XY平面(磁界Hxと磁界Hyとの2軸が形成する2次元平面)上に求められる方位と、実際の地磁気方向との交角αを伏角といい、磁北と方位との交角βを偏角という。ここで、磁界Hzの方向は、上述したXY平面に対して下向きに垂直方向である。したがって、センサモジュールの出力する方位角を偏角βにより補正した値を実際の向きとして用いることになる。
Next, FIG. 18 is a diagram for explaining the dip and declination in the detection direction of the sensor module.
For example, the intersection angle α between the azimuth obtained on the XY plane (the two-dimensional plane formed by the two axes of the magnetic field Hx and the magnetic field Hy) and the actual geomagnetic direction is called the dip angle, and the intersection angle β between magnetic north and the azimuth is deviated. It is called a corner. Here, the direction of the magnetic field Hz is perpendicular to the XY plane described above. Therefore, a value obtained by correcting the azimuth angle output from the sensor module with the deviation angle β is used as the actual direction.

次に、図19は、3軸方向の各磁界を検出し、検出した磁界から求めた伏角、偏角および傾斜角とともに演算して方位を求めるセンサモジュールの構成を示す図である。
この図19に示すセンサモジュール50は、3軸磁気センサ20と、信号処理部22と、信号処理部30とから構成されている。3軸磁気センサ20は、三次元空間に設定される直交する3軸の各方向の磁界を検知する。検出部2は、地磁気の伏角α及び偏角βと、このセンサモジュール50(センサモジュール101)が搭載される携帯電子機器100の傾斜角とを検出する。地磁気の伏角α及び偏角βは、例えば予め内部に記憶させておく。信号処理部30は、3軸磁気センサ20の出力する磁界データと、検出部20から供給される伏角α、偏角β及び傾斜角の情報とに基づいて、正確な方位角の計算を行う。
Next, FIG. 19 is a diagram showing a configuration of a sensor module that detects magnetic fields in three axial directions and calculates the azimuth by calculating together with the dip angle, declination angle, and inclination angle obtained from the detected magnetic fields.
The sensor module 50 shown in FIG. 19 includes a triaxial magnetic sensor 20, a signal processing unit 22, and a signal processing unit 30. The triaxial magnetic sensor 20 detects a magnetic field in each direction of three orthogonal axes set in a three-dimensional space. The detection unit 2 detects the geomagnetic dip angle α and the declination angle β and the inclination angle of the portable electronic device 100 on which the sensor module 50 (sensor module 101) is mounted. The dip angle α and declination β of geomagnetism are stored in advance, for example. The signal processing unit 30 calculates an accurate azimuth based on the magnetic field data output from the three-axis magnetic sensor 20 and the information on the dip angle α, declination β, and tilt angle supplied from the detection unit 20.

ここで、3軸磁気センサ20は、X軸、Y軸、Z軸のそれぞれの方向の磁界を検知するX軸用磁気素子20X、Y軸用磁気素子20Y、Z軸用磁気素子20Zと、それらの磁気素子20X、20Y、20Zからの検出結果に対してオフセット処理などの信号処理を行う信号処理部22とを備えている。つまり、3軸磁気センサ20は、地磁気の方向および大きさを、直交する3軸方向の各成分に分離して検出している。
なお、X軸用磁気素子20X、Y軸用磁気素子20Y、Z軸用磁気素子20Zとしては、例えば、磁気抵抗効果を利用したMR(Magneto Resistive)センサ、ホール素子を用いたセンサ、電磁誘導を利用したMI(Magneto Impedance)センサ、フラックスゲート型磁気センサ、直交フラックスゲート型磁気センサなどが用いられる。
Here, the three-axis magnetic sensor 20 includes an X-axis magnetic element 20X, a Y-axis magnetic element 20Y, and a Z-axis magnetic element 20Z that detect magnetic fields in the respective directions of the X-axis, Y-axis, and Z-axis. The signal processing unit 22 performs signal processing such as offset processing on the detection results from the magnetic elements 20X, 20Y, and 20Z. That is, the triaxial magnetic sensor 20 detects the direction and magnitude of the terrestrial magnetism separately for each component in the three axial directions orthogonal to each other.
The X-axis magnetic element 20X, the Y-axis magnetic element 20Y, and the Z-axis magnetic element 20Z include, for example, an MR (Magneto Resistive) sensor using a magnetoresistive effect, a sensor using a Hall element, and electromagnetic induction. A utilized MI (Magneto Impedance) sensor, fluxgate type magnetic sensor, orthogonal fluxgate type magnetic sensor, or the like is used.

また、図20(a)および(b)は、図19に示した3軸磁気センサ20の物理的構成を示す図である。ここで、図20(a)は側面図であり、図20(b)は平面図である。
この図20に示すように、3軸磁気センサ20のチップ63は、実装用基板23と、それにワイヤーボンディングで実装されたX軸用磁気素子20X、Y軸用磁気素子20Y、Z軸用磁気素子20Zである。また、チップ63は、X軸用磁気素子20X、Y軸用磁気素子20Y、Z軸用磁気素子20Zの各々で検出された磁気信号に対して演算処理を施す信号処理部30(図19)の回路を有する集積回路である。
ここで、この3軸磁気センサ20は、搭載される機器に設定された前述の座標軸と整列するように、当該機器内に搭載され、それによりX軸用磁気素子20X、Y軸用磁気素子20Y、Z軸用磁気素子20Zの各々における磁気検知の向きが、機器に設定された各軸方向と一致するようにしている。
20A and 20B are diagrams showing the physical configuration of the triaxial magnetic sensor 20 shown in FIG. Here, FIG. 20A is a side view, and FIG. 20B is a plan view.
As shown in FIG. 20, the chip 63 of the three-axis magnetic sensor 20 includes a mounting substrate 23, an X-axis magnetic element 20X, a Y-axis magnetic element 20Y, and a Z-axis magnetic element mounted thereon by wire bonding. 20Z. The chip 63 also includes a signal processing unit 30 (FIG. 19) that performs arithmetic processing on magnetic signals detected by the X-axis magnetic element 20X, the Y-axis magnetic element 20Y, and the Z-axis magnetic element 20Z. An integrated circuit having a circuit.
Here, the three-axis magnetic sensor 20 is mounted in the device so as to align with the coordinate axis set in the device to be mounted, whereby the X-axis magnetic element 20X and the Y-axis magnetic element 20Y. The direction of magnetic detection in each of the Z-axis magnetic elements 20Z is made to coincide with each axial direction set in the device.

ところで、上述の従来の手法においては、いずれも、3軸磁気センサにおける磁気素子の各々の磁界検知方向が、理想的に互いに直交していることが前提となっている。
また、各磁気素子の磁界検知方向と、3軸磁気センサに設定された磁界検知方向、すなわち携帯電子機器に設定された3軸方向(図17に示すX軸、Y軸及びZ軸方向)とが、それぞれ一致していることが前提となっている。
また、磁気素子(X軸用磁気素子20X、Y軸用磁気素子20Y、Z軸用磁気素子20Z)の各々は、その感度が互いに等しく設定されていることが前提となっている。
By the way, in the above-described conventional methods, it is assumed that the magnetic field detection directions of the magnetic elements in the three-axis magnetic sensor are ideally orthogonal to each other.
Further, the magnetic field detection direction of each magnetic element and the magnetic field detection direction set in the three-axis magnetic sensor, that is, the three-axis directions set in the portable electronic device (X-axis, Y-axis, and Z-axis directions shown in FIG. 17) However, it is assumed that they are consistent.
Also, it is assumed that each of the magnetic elements (X-axis magnetic element 20X, Y-axis magnetic element 20Y, Z-axis magnetic element 20Z) has the same sensitivity.

しかしながら、実際は、最終的に求められる方位角に誤差が含まれてしまうことは不可避である。その誤差の要因としては、以下の要因A及び要因Bが考えられる。
要因Aは、3軸磁気センサの組立工程における、実装用基板に対する磁気素子の実装ずれである。図21(a)および(b)は、この方位角の誤差の要因の一つである要因Aを説明するための図である。
3軸磁気センサ1の実装基板60上に磁気素子を配置する組立工程において、3軸磁気センサ20の各軸についての各磁界が検知できるように、三次元の各方向に対応したX軸用磁気素子20X、Y軸用磁気素子20Y、Z軸用磁気素子20Zの各々を設置する。すなわち、X軸用磁気素子20X、Y軸用磁気素子20Y、Z軸用磁気素子20Zの各々は、磁界の検知方向が互いに直交するように設置し、かつ、3軸磁気センサ20の各軸の方向と、対応するX軸用磁気素子20X、Y軸用磁気素子20Y、Z軸用磁気素子20Zの各々の磁界検出方向が一致している必要がある。
However, in practice, it is inevitable that an error is included in the finally determined azimuth angle. As factors of the error, the following factor A and factor B can be considered.
Factor A is mounting deviation of the magnetic element with respect to the mounting board in the assembly process of the three-axis magnetic sensor. FIGS. 21A and 21B are diagrams for explaining a factor A which is one of the factors of the azimuth angle error.
In the assembly process of arranging the magnetic elements on the mounting substrate 60 of the three-axis magnetic sensor 1, the X-axis magnetism corresponding to each three-dimensional direction is detected so that each magnetic field about each axis of the three-axis magnetic sensor 20 can be detected. Each of the element 20X, the Y-axis magnetic element 20Y, and the Z-axis magnetic element 20Z is installed. That is, each of the X-axis magnetic element 20X, the Y-axis magnetic element 20Y, and the Z-axis magnetic element 20Z is installed so that the magnetic field detection directions are orthogonal to each other, and each axis of the three-axis magnetic sensor 20 is The magnetic field detection direction of each of the corresponding X-axis magnetic element 20X, Y-axis magnetic element 20Y, and Z-axis magnetic element 20Z needs to match.

しかしながら、当該組立工程では、少なからず、実装用基板60に対するX軸用磁気素子20X、Y軸用磁気素子20Y、Z軸用磁気素子20Zの各々の設置位置ずれが生じる。この磁気素子の設置位置ずれには、図21(a)および(b)に示す2種類がある。
まず、図21(a)に示すような、X軸用磁気素子20X、Y軸用磁気素子20Y、Z軸用磁気素子20Zの各々の磁界検知方向の少なくとも二軸が互いに直交していない状態(以下、「組立の絶対誤差」と称す)である。同図の例においては、Y軸用磁気素子20Yの軸が、X軸用磁気素子20Xの軸と直交していない。
However, in the assembling process, there are not a few displacements of the X-axis magnetic element 20X, the Y-axis magnetic element 20Y, and the Z-axis magnetic element 20Z with respect to the mounting substrate 60. There are two types of displacement of the magnetic element as shown in FIGS. 21 (a) and 21 (b).
First, as shown in FIG. 21A, at least two axes of the magnetic field detection directions of the X-axis magnetic element 20X, the Y-axis magnetic element 20Y, and the Z-axis magnetic element 20Z are not orthogonal to each other ( Hereinafter, it is referred to as “absolute error in assembly”). In the example of the figure, the axis of the Y-axis magnetic element 20Y is not orthogonal to the axis of the X-axis magnetic element 20X.

また、図21(b)に示すような、X軸用磁気素子20X、Y軸用磁気素子20Y、Z軸用磁気素子20Z各々の感磁方向は互いに直交しているが、3軸磁気センサ20の磁界検知方向の各方向と、そのX軸用磁気素子20X、Y軸用磁気素子20Y、Z軸用磁気素子20Zの各々の磁界検出方向との間で、少なくとも1つの方向が一致していない状態(以下、「組立の相対誤差」と称す)である。図21の例においては、実装用基板60に搭載される各素子が、その実装用基板60に対して整列していないので、この場合、3軸磁気センサ20の磁界検知方向のX方向、Y方向と、X軸用磁気素子20X、Y軸用磁気素子20Yの磁界検出方向とが一致していない。
なお、実際には、組立の絶対誤差と相対誤差とを区別することは困難である。
Further, as shown in FIG. 21B, the magnetic sensitive directions of the X-axis magnetic element 20X, the Y-axis magnetic element 20Y, and the Z-axis magnetic element 20Z are orthogonal to each other. At least one direction does not match between each direction of the magnetic field detection direction of the magnetic field detection direction and each magnetic field detection direction of the X-axis magnetic element 20X, the Y-axis magnetic element 20Y, and the Z-axis magnetic element 20Z. State (hereinafter referred to as “relative error in assembly”). In the example of FIG. 21, since each element mounted on the mounting substrate 60 is not aligned with the mounting substrate 60, in this case, the X-direction Y direction of the magnetic field detection direction of the triaxial magnetic sensor 20, Y The direction does not match the magnetic field detection direction of the X-axis magnetic element 20X and the Y-axis magnetic element 20Y.
In practice, it is difficult to distinguish between absolute errors and relative errors in assembly.

次に、要因Bは、3軸磁気センサ20の各軸の磁気感度を測定して調整する際に、磁界を印加するためのコイル等の方向と、3軸磁気センサ1の磁界検知方向を一致させることが困難である、という点である。
すなわち、センサモジュール50に用いる3軸磁気センサ20では、地磁気を直交座標系で分解して方位計測を行う。このため、3軸磁気センサ1における互いに直交する3軸方向に対し、任意に磁界を印加することのできる空間内に当該3軸磁気センサ20を設置し、当該3軸磁気センサ20の磁界検知方向の交角を評価する。この交角を評価することにより、方位誤差を算出することができる。
Next, factor B coincides with the direction of the coil for applying a magnetic field and the magnetic field detection direction of the triaxial magnetic sensor 1 when measuring and adjusting the magnetic sensitivity of each axis of the triaxial magnetic sensor 20. It is difficult to make it.
That is, the triaxial magnetic sensor 20 used in the sensor module 50 performs azimuth measurement by decomposing the geomagnetism in an orthogonal coordinate system. Therefore, the triaxial magnetic sensor 20 is installed in a space in which a magnetic field can be arbitrarily applied to the triaxial directions orthogonal to each other in the triaxial magnetic sensor 1, and the magnetic field detection direction of the triaxial magnetic sensor 20. Evaluate the angle of intersection. An azimuth error can be calculated by evaluating the intersection angle.

ただし、3軸磁気センサ20の各軸の磁気感度を測定して調整する際、磁界を印加するためのコイル等の方向と、3軸磁気センサ20の磁界検知方向を一致させることが必要である。しかしながら、ICソケットなどを用いて、同時に複数の3軸磁気センサ20の磁気感度を測定する場合、ICソケットの設置方向と、3軸磁気センサ20の所望の磁界検知方向を一致させることが困難である。従って、方位誤差測定の精度は低下してしまう。
以上のような誤差の要因A及び要因Bにより、正確な誤差角度を測定することが困難であり、この誤差角度を補正できないために、最終的に正確な方位角を求めようとしても難しい、という課題があった。
However, when measuring and adjusting the magnetic sensitivity of each axis of the triaxial magnetic sensor 20, it is necessary to match the direction of the coil or the like for applying the magnetic field with the magnetic field detection direction of the triaxial magnetic sensor 20. . However, when the magnetic sensitivities of a plurality of triaxial magnetic sensors 20 are measured simultaneously using an IC socket or the like, it is difficult to match the installation direction of the IC socket with the desired magnetic field detection direction of the triaxial magnetic sensor 20. is there. Therefore, the accuracy of the azimuth error measurement is reduced.
Due to the error factors A and B as described above, it is difficult to measure an accurate error angle. Since this error angle cannot be corrected, it is difficult to finally obtain an accurate azimuth angle. There was a problem.

特開2005−172787号公報JP 2005-172787 A 特開2006−337057号公報JP 2006-337057 A 特開2008−241676号公報JP 2008-241676 A 特開2007−309833号公報JP 2007-309833 A

本発明は、このような事情に鑑みてなされたもので、本発明の目的は、計測および算出される方位角に含まれる誤差の要因を判定できる誤差補償方法、および方位誤差補償方法を実施可能とする方位誤差補償装置を提供することにある。
本発明の他の目的は、上記の誤差を相殺して正確に方位角を決定できる誤差補償方法、誤差角度補償装置、3軸磁気センサ、およびセンサモジュールを提供することにある。
The present invention has been made in view of such circumstances, and an object of the present invention is to implement an error compensation method and an azimuth error compensation method capable of determining an error factor included in a measured and calculated azimuth angle. An azimuth error compensation device is provided.
Another object of the present invention is to provide an error compensation method, an error angle compensator, a three-axis magnetic sensor, and a sensor module that can accurately determine the azimuth angle by canceling the error.

本発明の方位誤差補償装置は、X方向、Y方向及びZ方向の磁界を検知する磁気素子からなる磁気センサ各々から供給される磁界を検知して出力する磁界データを計測する計測部と、前記磁気素子各々が一定磁界を印加されて一定期間内に出力する前記磁界データに対し、当該磁気素子毎の前記磁界データの偏差を求め、いずれか2個の異なる前記磁気センサの磁界データの偏差を加算して単位磁気素子偏差和を算出する単位磁気素子偏差和算出部と、前記磁気素子各々が一定期間内に出力する前記磁界データに対し、いずれか2個の異なる前記磁気センサにおいて同一タイミングで取得した前記磁界データの加算値を求め、この加算値の偏差を加算して複合磁気素子偏差和を算出する複合磁気素子偏差和算出部と、予め複数の磁気センサから、当該磁気センサにおける2軸の組合せ毎に求めた前記単位磁気素子偏差和及び複合磁気素子偏差和の偏差和情報と、当該2軸の磁気素子の磁気検出方向の交角とを対応付けて記憶している対照テーブルを記憶する対照テーブル記憶部と、検出対象の磁気センサの2軸の前記偏差和情報に対し、当該2軸と同一の2軸の偏差和情報を有する磁気センサを前記対照テーブルから抽出し、抽出した磁気センサの交角を検出対象の交角として出力する交角推定部とを備えることを特徴とする。   An azimuth error compensation device according to the present invention includes a measuring unit that measures magnetic field data output by detecting a magnetic field supplied from each magnetic sensor including magnetic elements that detect magnetic fields in the X direction, the Y direction, and the Z direction, A deviation of the magnetic field data for each of the magnetic elements is obtained with respect to the magnetic field data that is output within a certain period after each magnetic element is applied with a constant magnetic field, and the deviation of the magnetic field data of any two different magnetic sensors is obtained. A unit magnetic element deviation sum calculator for adding and calculating a unit magnetic element deviation sum, and the magnetic field data output by each of the magnetic elements within a predetermined period, at any two different magnetic sensors at the same timing. A combined magnetic element deviation sum calculating unit for calculating an added value of the acquired magnetic field data and calculating a combined magnetic element deviation sum by adding a deviation of the added value, and a plurality of magnetic sensors in advance The deviation sum information of the unit magnetic element deviation sum and the composite magnetic element deviation sum obtained for each two-axis combination in the magnetic sensor and the intersection angle of the magnetic detection directions of the two-axis magnetic elements are stored in association with each other. A comparison table storage unit for storing a comparison table, and a magnetic sensor having two-axis deviation sum information that is the same as the two axes with respect to the two-axis deviation sum information of the magnetic sensor to be detected from the comparison table And an intersection angle estimation unit that outputs the intersection angle of the extracted magnetic sensor as the intersection angle of the detection target.

本発明の方位誤差補償装置は、前記対照テーブルにおいて、前記交角と対応して記憶されている前記偏差和情報が、前記単位磁気素子偏差和から前記複合磁気素子偏差和を減算し減算結果を当該複合磁気素子偏差和で除算した偏差データであり、前記交角推定部が、検出対象の磁気センサの前記偏差和情報から前記偏差データを算出し、算出された前記偏差データにより、前記対照テーブルから検出対象の磁気センサの各磁気素子間の磁界の検出方向の交角を求めることを特徴とする。   In the azimuth error compensation device according to the present invention, in the reference table, the deviation sum information stored corresponding to the intersection angle subtracts the composite magnetic element deviation sum from the unit magnetic element deviation sum, and obtains the subtraction result. Deviation data divided by a composite magnetic element deviation sum, and the intersection angle estimation unit calculates the deviation data from the deviation sum information of the magnetic sensor to be detected, and is detected from the reference table by the calculated deviation data. It is characterized in that the intersection angle of the detection direction of the magnetic field between the magnetic elements of the target magnetic sensor is obtained.

本発明の方位誤差補償装置は、前記偏差データが前記単位磁気素子偏差和から、前記交角を変数とする増加関数を乗算した前記複合磁気素子偏差和を減算し、減算結果を当該複合磁気素子偏差和で除算して求められることを特徴とする。   The azimuth error compensator according to the present invention subtracts the composite magnetic element deviation sum obtained by multiplying the deviation data by the increment function having the intersection angle as a variable from the unit magnetic element deviation sum, and subtracts the composite magnetic element deviation. It is obtained by dividing by the sum.

本発明の方位誤差補償方法は、X方向、Y方向及びZ方向の磁界を検知する磁気素子からなる3軸磁気センサに対し、予め設定された一定磁界を、磁界印加装置により印加する磁界印加過程と、計測部が、前記磁気素子の各々が前記一定磁界を検知して出力する磁界データを計測する計測過程と、単位磁気素子偏差和算出部が、前記磁気素子各々が一定期間内に出力する前記磁界データに対し、当該磁気素子毎の前記磁界データの偏差を求め、いずれか2個の異なる前記磁気センサの磁界データの偏差を加算して単位磁気素子偏差和を算出する単位磁気素子偏差和算出過程と、複合磁気素子偏差和算出部が、前記磁気素子各々が一定期間内に出力する前記磁界データに対し、いずれか2個の異なる前記磁気センサにおいて同一タイミングで取得した前記磁界データの加算値を求め、この加算値の偏差を加算して複合磁気素子偏差和を算出する複合磁気素子偏差和算出過程と、交角推定過程が、予め複数の3軸磁気センサから、当該3軸磁気センサにおける2軸の組合せ毎に求めた前記単位磁気素子偏差和及び複合磁気素子偏差和の偏差和情報と、当該2軸の磁気素子の磁気検出方向の交角とを対応付けて記憶している対照テーブルを記憶する対照テーブルから、検出対象の3軸磁気センサの2軸の前記偏差和情報に対し、当該2軸と同一の2軸の偏差和情報を有する3軸磁気センサを抽出し、抽出した3軸磁気センサの交角を検出対象の交角として出力する交角推定過程とを含むことを特徴とする。   The azimuth error compensation method of the present invention is a magnetic field application process in which a predetermined constant magnetic field is applied by a magnetic field application device to a three-axis magnetic sensor including magnetic elements that detect magnetic fields in the X, Y, and Z directions. And a measurement unit that measures magnetic field data that each of the magnetic elements detects and outputs the constant magnetic field, and a unit magnetic element deviation sum calculation unit outputs each of the magnetic elements within a certain period. A unit magnetic element deviation sum that calculates a deviation of the magnetic field data for each magnetic element with respect to the magnetic field data and calculates a unit magnetic element deviation sum by adding the deviations of the magnetic field data of any two different magnetic sensors The calculation process and the composite magnetic element deviation sum calculation unit perform the same timing on any two different magnetic sensors for the magnetic field data output by each of the magnetic elements within a predetermined period. The magnetic field data addition value is calculated, and the composite magnetic element deviation sum calculation process for calculating the composite magnetic element deviation sum by adding the deviation of the addition value and the intersection angle estimation process from a plurality of triaxial magnetic sensors in advance. The deviation sum information of the unit magnetic element deviation sum and the composite magnetic element deviation sum obtained for each combination of two axes in the three-axis magnetic sensor and the intersection angle of the magnetic detection directions of the two-axis magnetic elements are stored in association with each other. A three-axis magnetic sensor having two-axis deviation sum information identical to the two axes is extracted from the two-axis deviation sum information of the detection target three-axis magnetic sensor from the comparison table storing And an intersection angle estimation process of outputting the extracted intersection angle of the three-axis magnetic sensor as the intersection angle of the detection target.

本発明のプログラムは、コンピュータを、X方向、Y方向及びZ方向の磁界を検知する磁気素子からなる3軸磁気センサに対し、予め設定された一定磁界を、磁界印加装置により印加して、前記磁気素子の各々が前記一定磁界を検知した磁界データを用い、前記磁気素子各々が一定期間内に出力する前記磁界データに対し、当該磁気素子毎の前記磁界データの偏差を求め、いずれか2個の異なる前記磁気センサの磁界データの偏差を加算して単位磁気素子偏差和を算出する単位磁気素子偏差和算出手段、前記磁気素子各々が一定期間内に出力する前記磁界データに対し、いずれか2個の異なる前記磁気センサにおいて同一タイミングで取得した前記磁界データの加算値を求め、この加算値の偏差を加算して複合磁気素子偏差和を算出する複合磁気素子偏差和算出手段、予め複数の3軸磁気センサから、当該3軸磁気センサにおける2軸の組合せ毎に求めた前記単位磁気素子偏差和及び複合磁気素子偏差和の偏差和情報と、当該2軸の磁気素子の磁気検出方向の交角とを対応付けて記憶している対照テーブルを記憶する対照テーブルから、検出対象の3軸磁気センサの2軸の前記偏差和情報に対し、当該2軸と同一の2軸の偏差和情報を有する3軸磁気センサを抽出し、抽出した3軸磁気センサの交角を検出対象の交角として出力する交角推定手段として機能させるためのプログラムである。   The program of the present invention applies a predetermined constant magnetic field to a three-axis magnetic sensor composed of magnetic elements that detect magnetic fields in the X direction, the Y direction, and the Z direction by a magnetic field application device. Using magnetic field data in which each of the magnetic elements detects the constant magnetic field, the deviation of the magnetic field data for each magnetic element is obtained for the magnetic field data output by the magnetic elements within a predetermined period, and any two of them Unit magnetic element deviation sum calculating means for calculating a unit magnetic element deviation sum by adding the deviations of magnetic field data of the magnetic sensors having different values, and any two of the magnetic field data output by each of the magnetic elements within a predetermined period A composite that calculates an added value of the magnetic field data acquired at the same timing in the different magnetic sensors, and calculates a composite magnetic element deviation sum by adding a deviation of the added value A deviation sum information of the unit magnetic element deviation sum and the composite magnetic element deviation sum obtained for each combination of two axes in the three-axis magnetic sensor in advance from a plurality of three-axis magnetic sensors; From the reference table that stores the reference table that stores the crossing angle of the magnetic detection direction of the magnetic element of the axis in association with each other, the two axes with respect to the deviation sum information of the two axes of the three-axis magnetic sensor to be detected This is a program for extracting a triaxial magnetic sensor having the same two-axis deviation sum information and functioning as an intersection angle estimating means for outputting the intersection angle of the extracted three-axis magnetic sensor as an intersection angle of a detection target.

本発明の誤差角度補償装置は、上記いずれかに記載の方位誤差補償装置を有し、前記方位角誤差補償装置が、検出対照の3軸磁気センサにおける2軸の磁気の検出方向の交角が直角に対して誤差角度を有していると判定した場合、前記誤差角度に応じて、前記2軸の検出する磁界データを前記誤差角度に基づいて補正することを特徴とする。   An error angle compensator according to the present invention includes the azimuth error compensator according to any one of the above, wherein the azimuth error compensator has an orthogonal angle of two-axis magnetism detection direction in a detection three-axis magnetic sensor. When it is determined that an error angle is included, the magnetic field data detected by the two axes is corrected based on the error angle according to the error angle.

本発明の3軸磁気センサは、上記いずれかに記載の方位誤差補償装置を有し、X方向、Y方向及びZ方向の磁界を検知する磁気素子と検出対象の2個の前記磁気素子による2軸の磁気の検出方向の交角が直角に対して誤差角度を有していると前記方位角誤差補償装置が判定した場合、前記誤差角度に応じて、前記2軸の検出する磁界データを前記誤差角度に基づいて補正する誤差補償部とを備えることを特徴とする。   A three-axis magnetic sensor according to the present invention includes the azimuth error compensation device according to any one of the above, and includes a magnetic element that detects a magnetic field in the X direction, the Y direction, and the Z direction and two magnetic elements that are detection targets. If the azimuth error compensator determines that the crossing angle of the magnetic detection directions of the axes has an error angle with respect to a right angle, the magnetic field data detected by the two axes is converted into the error according to the error angle. And an error compensator that performs correction based on the angle.

本発明のセンサモジュールは、上記いずれかに記載の方位誤差補償装置を有し、X方向、Y方向及びZ方向の磁界を検知する磁気素子からなる3軸磁気センサと、検出対象の3軸磁気センサにおける2軸の磁気の検出方向の交角が直角に対して誤差角度を有していると前記方位角誤差補償装置が判定した場合、前記誤差角度に応じて、前記2軸の検出する磁界データを前記誤差角度に基づいて補正する誤差補償部と、地磁気の伏角、偏角及び傾斜角の各々を求める地磁気検出部と、前記誤差保証部の補正した磁界データと、地磁気検出部が求めた伏角、偏角及び傾斜角の各々とから、方位角を算出する方位角算出部とを備えることを特徴とする。   A sensor module of the present invention includes the azimuth error compensation device according to any one of the above, and includes a three-axis magnetic sensor including a magnetic element that detects magnetic fields in the X direction, the Y direction, and the Z direction, and a three-axis magnetism to be detected. When the azimuth error compensator determines that the crossing angle of the two-axis magnetism detection direction in the sensor has an error angle with respect to a right angle, the magnetic field data detected by the two axes according to the error angle. An error compensator that corrects the error angle based on the error angle, a geomagnetism detector that determines each of the earth's magnetic dip, declination, and tilt angle, the magnetic field data corrected by the error guarantee unit, and the dip that the geomagnetic detector has determined And an azimuth angle calculation unit for calculating an azimuth angle from each of the declination angle and the inclination angle.

本発明によれば、3軸磁気センサに対して任意の一定磁界(任意の環境磁界)を与え、それぞれの磁気素子の磁界データを計測し、この磁界データの偏差を用いることにより、計測された3軸磁気センサの磁界データの2軸の検知方向の交角における、直角に対してずれた誤差角度を、複雑な計算を用いずに簡易に求めることができ、この誤差角度を用いて容易に磁界データの補正が行えるため、任意の環境磁界下において高速に正確な方位角を求めることができる。   According to the present invention, an arbitrary constant magnetic field (arbitrary environmental magnetic field) is applied to the three-axis magnetic sensor, the magnetic field data of each magnetic element is measured, and the deviation of the magnetic field data is used to measure the magnetic field data. An error angle deviated from the right angle at the crossing angle of the two-axis detection direction of the magnetic field data of the three-axis magnetic sensor can be easily obtained without using a complicated calculation, and the magnetic field can be easily obtained using this error angle. Since the data can be corrected, an accurate azimuth angle can be obtained at high speed under any environmental magnetic field.

この発明の一実施形態による方位誤差補償装置を用いた3軸磁気センサの構成例を示すブロック図である。It is a block diagram which shows the structural example of the 3-axis magnetic sensor using the azimuth | direction error compensation apparatus by one Embodiment of this invention. 磁界データ記憶部26に記憶される際の磁界データのデータ構造を示している。The data structure of magnetic field data when stored in the magnetic field data storage unit 26 is shown. 標準偏差σ(X)及び標準偏差σ(Y)と、複合磁気素子偏差和σ(X+Y)との関係を示すベクトル図である。It is a vector diagram which shows the relationship between standard deviation (sigma) (X) and standard deviation (sigma) (Y), and composite magnetic element deviation sum (sigma) (X + Y). 対照テーブル記憶部25に記憶されている、単位磁気素子偏差和(a)、複合磁気素子偏差和(b)及び偏差データ(c)の組合せと、誤差角度θとの対応が示された対照テーブルの構造を示す図である。A comparison table showing the correspondence between the combination of the unit magnetic element deviation sum (a), the composite magnetic element deviation sum (b) and the deviation data (c) stored in the comparison table storage unit 25 and the error angle θ. FIG. 本実施形態における方位誤差補償装置による誤差角度θを求める処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the process which calculates | requires error angle (theta) by the azimuth | direction error compensation apparatus in this embodiment. 本実施形態の3軸磁気センサにおける誤差角度θの手順を示すフローチャートである。It is a flowchart which shows the procedure of error angle (theta) in the triaxial magnetic sensor of this embodiment. 設計上におけるX方向磁気素子11、Y軸方向磁気素子12、Z軸方向磁気素子13の磁界の検出方向であるX軸、Y軸、Z軸と、実際の磁界の検出方向であるXm軸、Ym軸、Zm軸との対応関係を示している。X-axis, Y-axis, and Z-axis that are magnetic field detection directions of the X-direction magnetic element 11, Y-axis direction magnetic element 12, and Z-axis direction magnetic element 13 in design, and an Xm-axis that is an actual magnetic field detection direction, The correspondence relationship with the Ym axis and the Zm axis is shown. 3軸ヘルムホルツコイルのX軸、Y軸、Z軸の各々に任意の磁界を印加した際のX方向磁気素子11、Y方向磁気素子12、Z方向磁気素子13の各々が出力する磁界データX1(i)、Y1(i)、Z1(i)を示している。Magnetic field data X1 output from each of the X-direction magnetic element 11, Y-direction magnetic element 12, and Z-direction magnetic element 13 when an arbitrary magnetic field is applied to each of the X-axis, Y-axis, and Z-axis of the 3-axis Helmholtz coil i), Y1 (i), and Z1 (i) are shown. X軸方向に磁界を印加した際のX方向磁気素子11、Y方向磁気素子12、Z方向磁気素子13の磁気素子からの磁界データの読み取り処理の詳細を示すフローチャートである。10 is a flowchart showing details of a process of reading magnetic field data from magnetic elements of the X-direction magnetic element 11, the Y-direction magnetic element 12, and the Z-direction magnetic element 13 when a magnetic field is applied in the X-axis direction. Y軸方向に磁界を印加した際のX方向磁気素子11、Y方向磁気素子12、Z方向磁気素子13の磁気素子からの磁界データの読み取り処理の詳細を示すフローチャートである。5 is a flowchart showing details of a process of reading magnetic field data from magnetic elements of an X-direction magnetic element 11, a Y-direction magnetic element 12, and a Z-direction magnetic element 13 when a magnetic field is applied in the Y-axis direction. Z軸方向に磁界を印加した際のX方向磁気素子11、Y方向磁気素子12、Z方向磁気素子13の磁気素子からの磁界データの読み取り処理の詳細を示すフローチャートである。5 is a flowchart showing details of a process of reading magnetic field data from magnetic elements of an X-direction magnetic element 11, a Y-direction magnetic element 12, and a Z-direction magnetic element 13 when a magnetic field is applied in the Z-axis direction. 空間ベクトルXm、Xm、Zmを算出する処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the process which calculates space vector Xm, Xm, Zm. 磁界換算の出力変動値(μT:マイクロテスラ)と、誤差角度度θとの対応を示すグラフである。It is a graph which shows a response | compatibility with the output fluctuation value (microT: micro Tesla) of magnetic field conversion, and error angle degree (theta). デジタル出力の出力変動値(LSB:最下位ビット)と、誤差角度度θとの対応を示すグラフである。It is a graph which shows a response | compatibility with the output fluctuation value (LSB: least significant bit) of digital output, and error angle degree (theta). 対照テーブル記憶部25に記憶されている、単位磁気素子偏差和(a’)、複合磁気素子偏差和(b)及び偏差データ(c’)のデータ組合せ(X−Y、Y−Z、Z−X)と、誤差角度θとの対応が示された対照テーブルの構造を示す図である。Data combinations (XY, YZ, Z-) of unit magnetic element deviation sum (a '), composite magnetic element deviation sum (b) and deviation data (c') stored in the contrast table storage unit 25. It is a figure which shows the structure of the comparison table by which correspondence with X) and error angle (theta) was shown. 第4の実施形態のセンサモジュール500の構成例を示す図である。It is a figure which shows the structural example of the sensor module 500 of 4th Embodiment. 携帯電子機器100に設定されるセンサモジュール101の磁界の検知方向を示す座標軸と、伏角および偏角について説明する図である。It is a figure explaining the coordinate axis which shows the detection direction of the magnetic field of the sensor module 101 set to the portable electronic device 100, and a dip angle and a declination angle. センサモジュールの検出方向における伏角および偏角を説明するための図である。It is a figure for demonstrating the dip and declination in the detection direction of a sensor module. 3軸方向の各磁界を検出し、検出した磁界から求めた伏角、偏角および傾斜角とともに演算して方位を求めるセンサモジュールの構成を示す図である。It is a figure which shows the structure of the sensor module which detects each magnetic field of a triaxial direction, calculates | requires with the dip angle, deflection angle, and inclination | tilt angle calculated | required from the detected magnetic field, and calculates | requires an azimuth | direction. 図19に示した3軸磁気センサ1の物理的構成を示す図である。It is a figure which shows the physical structure of the triaxial magnetic sensor 1 shown in FIG. 方位角の誤差の要因Aとなる3軸磁気センサの組立工程における、実装用基板に対する磁気素子の実装ずれを説明するための図である。It is a figure for demonstrating the mounting shift | offset | difference of the magnetic element with respect to the mounting board | substrate in the assembly process of the triaxial magnetic sensor used as the factor A of the error of an azimuth.

本発明は、磁場が0あるいは磁気素子の磁界検知範囲の一定磁場の環境下において、3軸磁気センサの磁気素子の各々が検出する磁界データを取得し、磁気素子毎に取得した磁界データの偏差を算出し、3軸磁気センサの2個の磁気素子の検知方向の交角を求める。
すなわち、3軸磁気センサを構成する磁気素子毎に、n個ずつの磁界データを所定の期間内に測定する。
そして、磁気センサ毎に、n個の磁界データの標準偏差を算出する。
次に、磁界の検出方向の交角を求める2つの磁気素子の組合せにおいて、2つの磁気素子の標準偏差の合計値である単位磁気素子偏差和を求める。
また、上記2個の磁気素子の出力する磁界データの和の標準偏差である複合磁気素子偏差和を求める。
この単位磁気素子偏差和と複合磁気素子偏差和との対応関係、例えば単位磁気素子偏差和と複合磁気素子偏差和との差分を用いて誤差角度θを求める。
なお、本発明においては、上記3軸磁気センサにおけるX軸用磁気素子、Y軸用磁気素子及びZ軸用磁気素子の3つの磁気素子の感度は、全て揃うように規格化されていることを前提とする。
The present invention acquires magnetic field data detected by each of the magnetic elements of the three-axis magnetic sensor in an environment where the magnetic field is zero or a constant magnetic field within the magnetic field detection range of the magnetic element, and the deviation of the magnetic field data acquired for each magnetic element. Is calculated, and the intersection angle of the detection directions of the two magnetic elements of the three-axis magnetic sensor is obtained.
That is, n pieces of magnetic field data are measured within a predetermined period for each magnetic element constituting the three-axis magnetic sensor.
Then, the standard deviation of n pieces of magnetic field data is calculated for each magnetic sensor.
Next, in a combination of two magnetic elements for obtaining the crossing angle in the magnetic field detection direction, a unit magnetic element deviation sum that is a total value of standard deviations of the two magnetic elements is obtained.
Further, a composite magnetic element deviation sum that is a standard deviation of the sum of the magnetic field data output from the two magnetic elements is obtained.
The error angle θ is obtained using the correspondence between the unit magnetic element deviation sum and the composite magnetic element deviation sum, for example, the difference between the unit magnetic element deviation sum and the composite magnetic element deviation sum.
In the present invention, the sensitivity of the three magnetic elements of the X-axis magnetic element, the Y-axis magnetic element, and the Z-axis magnetic element in the three-axis magnetic sensor is normalized so as to be all aligned. Assumption.

<第1の実施形態>
以下、図面を参照して、本発明の第1の実施形態について説明する。図1は、この発明の一実施形態による方位誤差補償装置を用いた3軸磁気センサの構成例を示す概略ブロック図である。
図1において、本実施形態の3軸磁気センサは、磁気センサ部1及び方位誤差補償装置2とを備えている。
磁気センサ部1は、3軸磁気センサであり、それぞれの磁界の検知方向の交角が設計上において直角とされている3個の磁気素子から構成されており、X方向の磁界を検出するX方向磁気素子11、Y方向の磁界を検出するY方向磁気素子12、Z方向の磁界を検出するZ方向磁気素子13とから構成されている。
<First Embodiment>
Hereinafter, a first embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a schematic block diagram showing a configuration example of a three-axis magnetic sensor using an azimuth error compensating apparatus according to an embodiment of the present invention.
In FIG. 1, the three-axis magnetic sensor of the present embodiment includes a magnetic sensor unit 1 and an azimuth error compensation device 2.
The magnetic sensor unit 1 is a three-axis magnetic sensor, and is composed of three magnetic elements whose crossing angles in the detection direction of each magnetic field are set to be a right angle in the design. The X direction detects a magnetic field in the X direction. The magnetic element 11 includes a Y-direction magnetic element 12 that detects a magnetic field in the Y direction, and a Z-direction magnetic element 13 that detects a magnetic field in the Z direction.

ここで、すでに述べたように、X軸方向磁気素子11の検知方向とY軸方向磁気素子12の磁界検知方向との交角αは、理想的には直角である。また、このX軸方向磁気素子11の磁界検知方向とY軸方向磁気素子12の磁界検知方向との各々の軸が形成する2次元平面に対して、Z方向磁気素子12の検知方向も、理想的には直角である。
しかしながら、すでに述べたように、X方向磁気素子11、Y方向磁気素子12、Z方向磁気素子13の各々における磁界の検出方向の交角がそれぞれ直角に対して誤差角度θを有して配置された場合、上記方位誤差補償装置2がこの誤差角度θを検出する。以下の説明において、X方向磁気素子11の磁界の検出方向と、印加されるX軸方向の磁界とが同一の方向であり、このX軸の方向に対する交角からのずれがY方向磁気素子の磁界の検出方向のずれにあるとする。
Here, as already described, the intersection angle α between the detection direction of the X-axis direction magnetic element 11 and the magnetic field detection direction of the Y-axis direction magnetic element 12 is ideally a right angle. In addition, the detection direction of the Z-direction magnetic element 12 is ideal for the two-dimensional plane formed by the respective axes of the magnetic field detection direction of the X-axis direction magnetic element 11 and the magnetic field detection direction of the Y-axis direction magnetic element 12. Right angle.
However, as described above, the crossing angle of the magnetic field detection direction in each of the X direction magnetic element 11, the Y direction magnetic element 12, and the Z direction magnetic element 13 is arranged with an error angle θ with respect to a right angle. In this case, the azimuth error compensator 2 detects this error angle θ. In the following description, the detection direction of the magnetic field of the X-direction magnetic element 11 and the applied magnetic field in the X-axis direction are the same direction, and the deviation from the intersection with respect to the X-axis direction is the magnetic field of the Y-direction magnetic element. It is assumed that there is a shift in the detection direction.

方位誤差補償装置2は、計測部21、単位磁気素子偏差和算出部22、複合磁気素子偏差和算出部23、交角推定部24、対照テーブル記憶部25及び磁界データ記憶部26を備えている。
計測部21は、X方向磁気素子11、Y方向磁気素子12及びZ方向磁気素子が各々検出する磁界データX、磁界データY、磁界データZを、所定の測定期間中における同一タイミングでn個ずつ検出する。すなわち、計測部21は、例えば、A/D(アナログ/デジタル)変換器が内蔵されており、X方向磁気素子11、Y方向磁気素子12及びZ方向磁気素子が出力する磁界データの各々を、同一タイミングでサンプリングし、サンプリングしたアナログデータをデジタルデータに変換する。
また、計測部21は、デジタルデータに変換した磁界データX、磁界データY及び磁界データZの各々を、磁界データ記憶部26に書き込んで記憶させる。
The azimuth error compensation device 2 includes a measurement unit 21, a unit magnetic element deviation sum calculation unit 22, a composite magnetic element deviation sum calculation unit 23, an intersection angle estimation unit 24, a comparison table storage unit 25, and a magnetic field data storage unit 26.
The measurement unit 21 includes n pieces of magnetic field data X, magnetic field data Y, and magnetic field data Z detected by the X direction magnetic element 11, the Y direction magnetic element 12, and the Z direction magnetic element, respectively, at the same timing during a predetermined measurement period. To detect. That is, the measurement unit 21 includes, for example, an A / D (analog / digital) converter, and each of the magnetic field data output from the X-direction magnetic element 11, the Y-direction magnetic element 12, and the Z-direction magnetic element, Sampling is performed at the same timing, and the sampled analog data is converted into digital data.
In addition, the measurement unit 21 writes and stores each of the magnetic field data X, the magnetic field data Y, and the magnetic field data Z converted into digital data in the magnetic field data storage unit 26.

次に、図2は、磁界データ記憶部26に記憶される際の磁界データのデータ構造を示している。
この図において、X方向磁気素子11が出力し、計測部21がA/D変換したn個の磁界データすなわち、磁界データX1から磁界データXnが、計測部21により書き込まれて記憶される。
また、Y方向磁気素子12が出力し、計測部21がA/D変換したn個の磁界データY1からYnが、計測部21により書き込まれて記憶される。
同様に、Z方向磁気素子12が出力し、計測部21がA/D変換したn個の磁界データZ1からZnが、計測部21により書き込まれて記憶される。
Next, FIG. 2 shows a data structure of magnetic field data when stored in the magnetic field data storage unit 26.
In this figure, n magnetic field data output from the X-direction magnetic element 11 and A / D converted by the measurement unit 21, that is, magnetic field data X1 to magnetic field data X1 are written and stored by the measurement unit 21.
Further, the n magnetic field data Y1 to Yn output from the Y-direction magnetic element 12 and A / D converted by the measurement unit 21 are written and stored by the measurement unit 21.
Similarly, n pieces of magnetic field data Z1 to Zn output from the Z-direction magnetic element 12 and A / D converted by the measurement unit 21 are written and stored by the measurement unit 21.

また、同一タイミングで計測部21が検出したX方向磁気素子11の磁界データとY方向磁気素子12の磁界データとの加算値として、X・Y方向磁界データ加算値X1+Y1からXn+Ynまでのn個が記憶される。
同様に、同一タイミングで計測部21が検出したY方向磁気素子12の磁界データとZ方向磁気素子13の磁界データとの加算値として、Y・Z方向磁界データ加算値Y1+Z1からYn+Znまでのn個が記憶される。
同一タイミングで計測部21が検出したZ方向磁気素子13の磁界データとX方向磁気素子11の磁界データとの加算値として、Z・X方向磁界データ加算値Z1+X1からZn+Xnまでのn個が記憶される。
Further, as the addition value of the magnetic field data of the X direction magnetic element 11 and the magnetic field data of the Y direction magnetic element 12 detected by the measuring unit 21 at the same timing, n pieces of X / Y direction magnetic field data addition values X1 + Y1 to Xn + Yn are included. Remembered.
Similarly, as the added value of the magnetic field data of the Y-direction magnetic element 12 and the magnetic field data of the Z-direction magnetic element 13 detected by the measurement unit 21 at the same timing, n pieces of Y · Z-direction magnetic field data addition values Y1 + Z1 to Yn + Zn are obtained. Is memorized.
As the added value of the magnetic field data of the Z direction magnetic element 13 and the magnetic field data of the X direction magnetic element 11 detected by the measuring unit 21 at the same timing, n pieces of Z · X direction magnetic field data added value Z1 + X1 to Zn + Xn are stored. The

図1に戻り、単位磁気素子偏差和算出部22は、X方向磁気素子11の磁界検知方向と、Y方向磁気素子12の磁界検知方向と、Z方向磁気素子13の磁界検知方向とにおける、2つの磁気素子の磁界検知方向の各々の交角を求めるため、それぞれの磁気素子の検出した磁界データの標準偏差を求める。
すなわち、単位磁気素子偏差和算出部22は、磁界データX1から磁界データXnのn個のデータと、磁界データY1から磁界データYnまでのn個のデータとを、磁界データ記憶部26から読み込む。
Returning to FIG. 1, the unit magnetic element deviation sum calculation unit 22 has 2 in the magnetic field detection direction of the X direction magnetic element 11, the magnetic field detection direction of the Y direction magnetic element 12, and the magnetic field detection direction of the Z direction magnetic element 13. In order to obtain the crossing angle of each magnetic element in the magnetic field detection direction, the standard deviation of the magnetic field data detected by each magnetic element is obtained.
That is, the unit magnetic element deviation sum calculation unit 22 reads n data from the magnetic field data X1 to the magnetic field data Xn and n data from the magnetic field data Y1 to the magnetic field data Yn from the magnetic field data storage unit 26.

また、単位磁気素子偏差和算出部22は、磁界データX1から磁界データXnの標準偏差σ(X)と、磁界データY1から磁界データYnの標準偏差σ(Y)と、磁界データZ1から磁界データZnの標準偏差σ(Z)を算出する。
また、単位磁気素子偏差和算出部22は、標準偏差σ(X)、標準偏差σ(Y)及び標準偏差σ(Z)の各々を、磁界の検出方向の交角を求める2つの磁気素子の組合せにおいて、2つの磁気素子の標準偏差の合計値である単位磁気素子偏差和[σ(X)+σ(Y)]/21/2(後述するa_xy)、[σ(Y)+σ(Z)]/21/2(後述するa_yz)及び[σ(Z)+σ(X)]/21/2(後述するa_zx)の各々を算出する。
The unit magnetic element deviation sum calculation unit 22 also calculates the standard deviation σ (X) of the magnetic field data Xn from the magnetic field data X1, the standard deviation σ (Y) of the magnetic field data Yn from the magnetic field data Y1, and the magnetic field data from the magnetic field data Z1. The standard deviation σ (Z) of Zn is calculated.
The unit magnetic element deviation sum calculation unit 22 is a combination of two magnetic elements for obtaining the crossing angle of the magnetic field detection direction for each of the standard deviation σ (X), standard deviation σ (Y), and standard deviation σ (Z). Unit magnetic element deviation sum [σ (X) + σ (Y)] / 2 1/2 (a_xy), [σ (Y) + σ (Z)], which is the sum of standard deviations of two magnetic elements / 2 1/2 (a_yz described later) and [σ (Z) + σ (X)] / 2 1/2 (a_zx described later) are calculated.

図3は、標準偏差σ(X)及び標準偏差σ(Y)と、複合磁気素子偏差和σ(X+Y)との関係を示すベクトル図である。
比較する際の双方の標準偏差のベクトルの大きさを規格化するため、単位磁気素子偏差和算出部22は、例えば、単位磁気素子偏差和a_xyを求める際、標準偏差σ(X)及び標準偏差σ(Y)の加算値を21/2で除算している。
FIG. 3 is a vector diagram showing the relationship between the standard deviation σ (X) and the standard deviation σ (Y) and the composite magnetic element deviation sum σ (X + Y).
In order to normalize the magnitudes of both standard deviation vectors for comparison, the unit magnetic element deviation sum calculator 22 calculates, for example, the standard deviation σ (X) and the standard deviation when obtaining the unit magnetic element deviation sum a_xy. The added value of σ (Y) is divided by .

複合磁気素子偏差和算出部23は、X方向磁気素子11の磁界検知方向と、Y方向磁気素子12の磁界検知方向と、Z方向磁気素子13の磁界検知方向とにおける、2つの磁気素子の検知方向の各々の交角を求めるため、2個の磁気素子の出力する磁界データの和の標準偏差である複合磁気素子偏差和を算出する。
すなわち、複合磁気素子偏差和算出部23は、磁界データX1から磁界データXnのn個のデータと、磁界データY1から磁界データYnまでのn個のデータと、磁界データを、磁界データ記憶部26から読み込む。
また、複合磁気素子偏差和算出部23は、磁界データX1から磁界データXnの各々と、磁界データY1から磁界データYnの各々とを、同一タイミングで読み込んだ磁界データ毎に加算する。
The composite magnetic element deviation sum calculation unit 23 detects two magnetic elements in the magnetic field detection direction of the X direction magnetic element 11, the magnetic field detection direction of the Y direction magnetic element 12, and the magnetic field detection direction of the Z direction magnetic element 13. In order to obtain the crossing angle of each direction, a composite magnetic element deviation sum that is a standard deviation of the sum of the magnetic field data output from the two magnetic elements is calculated.
That is, the composite magnetic element deviation sum calculating unit 23 stores the n data from the magnetic field data X1 to the magnetic field data Xn, the n data from the magnetic field data Y1 to the magnetic field data Yn, and the magnetic field data. Read from.
The composite magnetic element deviation sum calculation unit 23 adds the magnetic field data X1 to the magnetic field data Xn and the magnetic field data Y1 to the magnetic field data Yn for each magnetic field data read at the same timing.

また、複合磁気素子偏差和算出部23は、上述した加算結果のX・Y方向磁界データ加算値X1+Y1からXn+Yn、Y・Z方向磁界データ加算値Y1+Z1からYn+Zn及びZ・X方向磁界データ加算値Z1+X1からZn+Xnを、磁界データ記憶部26に書き込んで記憶させる。
また、複合磁気素子偏差和算出部23は、X・Y方向磁界データ加算値X1+Y1からXn+Yn、Y・Z方向磁界データ加算値Y1+Z1からYn+Zn、及びZ・X方向磁界データ加算値Z1+X1からZn+Xnの各々を順次磁界データ記憶部26から読み出し、各々の標準偏差として、複合磁気素子偏差和σ(X+Y)(後述するb_xy)、σ(Y+Z)及びσ(Z+X)の各々を算出する。
The composite magnetic element deviation sum calculating unit 23 adds the X / Y direction magnetic field data addition values X1 + Y1 to Xn + Yn, the Y / Z direction magnetic field data addition values Y1 + Z1 to Yn + Zn, and the Z / X direction magnetic field data addition values Z1 + X1. To Zn + Xn are written and stored in the magnetic field data storage unit 26.
Further, the combined magnetic element deviation sum calculating unit 23 calculates the X / Y direction magnetic field data addition values X1 + Y1 to Xn + Yn, the Y / Z direction magnetic field data addition values Y1 + Z1 to Yn + Zn, and the Z / X direction magnetic field data addition values Z1 + X1 to Zn + Xn. Are sequentially read from the magnetic field data storage unit 26, and each of the composite magnetic element deviation sums σ (X + Y) (b_xy), σ (Y + Z), and σ (Z + X) is calculated as each standard deviation.

交角推定部24は、X方向磁気素子11及びY方向磁気素子12の磁界検出方向の交角における誤差角度θxyを求める際、複合磁気素子偏差和算出部23から供給されるb_xyを、単位磁気素子偏差和算出部22の出力する単位磁気素子偏差和a_xyから減算し、この減算結果を複合磁気素子偏差和算出部23から供給されるb_xyにより除算し、除算結果を偏差データc_xyとして出力する。
同様に、交角推定部24は、Y方向磁気素子12及びZ方向磁気素子13の磁界検出方向の交角における誤差角度θyzを求める際、複合磁気素子偏差和算出部23から供給されるb_yzを、単位磁気素子偏差和算出部22の出力する単位磁気素子偏差和a_yzから減算し、この減算結果を複合磁気素子偏差和算出部23から供給されるb_yzにより除算し、除算結果を偏差データc_yzとして出力する。
また、交角推定部24は、Z方向磁気素子13及びX方向磁気素子11の磁界検出方向の交角における誤差角度θzxを求める際、複合磁気素子偏差和算出部23から供給されるb_zxを、単位磁気素子偏差和算出部22の出力する単位磁気素子偏差和a_zxから減算し、この減算結果を複合磁気素子偏差和算出部23から供給されるb_zxにより除算し、除算結果を偏差データc_zxとして出力する。
The crossing angle estimating unit 24 calculates b_xy supplied from the composite magnetic element deviation sum calculating unit 23 when calculating the error angle θxy in the crossing angle of the X direction magnetic element 11 and the Y direction magnetic element 12 in the magnetic field detection direction. The unit magnetic element deviation sum a_xy output from the sum calculation unit 22 is subtracted, the subtraction result is divided by b_xy supplied from the composite magnetic element deviation sum calculation unit 23, and the division result is output as deviation data c_xy.
Similarly, the crossing angle estimating unit 24 calculates b_yz supplied from the composite magnetic element deviation sum calculating unit 23 when determining the error angle θyz in the crossing angle of the Y direction magnetic element 12 and the Z direction magnetic element 13 in the magnetic field detection direction. The unit magnetic element deviation sum a_yz output from the magnetic element deviation sum calculator 22 is subtracted, the subtraction result is divided by b_yz supplied from the composite magnetic element deviation sum calculator 23, and the division result is output as deviation data c_yz. .
In addition, when the crossing angle estimation unit 24 obtains the error angle θzx in the crossing angle of the Z direction magnetic element 13 and the X direction magnetic element 11 in the magnetic field detection direction, b_zx supplied from the composite magnetic element deviation sum calculation unit 23 is used as the unit magnetism. The unit deviation sum calculator 22 subtracts the unit magnetic element deviation sum a_zx, divides the subtraction result by b_zx supplied from the composite magnetic element deviation sum calculator 23, and outputs the division result as deviation data c_zx.

次に、図4は、対照テーブル記憶部25に記憶されている、単位磁気素子偏差和(a)、複合磁気素子偏差和(b)及び偏差データ(c)のデータ組合せ(X−Y、Y−Z、Z−X)と、誤差角度θとの対応が示された対照テーブルの構造を示す図である。
対照テーブル記憶部25には、データ組合せX−YとX方向磁気素子11及びY方向磁気素子12の磁界検出方向の交角における誤差角度θxyとの対応を示す対照テーブル、データ組合せY−ZとY方向磁気素子12及びZ方向磁気素子13の磁界検出方向の交角における誤差角度θyzとの対応を示す対照テーブル、及びデータ組合せZ−XとZ方向磁気素子13及びX方向磁気素子11の磁界検出方向の交角における誤差角度θzxとの対応を示す対照テーブルとの各々が記憶されている。
この対照テーブルは、誤差角度θを測定する被測定対象の3軸磁気センサの種類毎に準備されており、磁気センサ部1に使用されている磁気素子、計測部21などの電子回路の構成が同一であり、磁界データの時間変動値を測定する際に印加する磁界も同一としている。
Next, FIG. 4 shows data combinations (XY, Y) of unit magnetic element deviation sum (a), composite magnetic element deviation sum (b) and deviation data (c) stored in the comparison table storage unit 25. It is a figure which shows the structure of the comparison table by which the correspondence with -Z, Z-X) and error angle (theta) was shown.
In the comparison table storage unit 25, a comparison table indicating the correspondence between the data combination XY and the error angle θxy in the crossing angle of the magnetic field detection direction of the X-direction magnetic element 11 and the Y-direction magnetic element 12 and data combinations YZ and Y A comparison table showing the correspondence between the error angle θyz in the crossing angle of the magnetic field detection direction of the directional magnetic element 12 and the Z direction magnetic element 13, and the data combination Z-X and the magnetic field detection direction of the Z direction magnetic element 13 and the X direction magnetic element 11 Each of them is stored with a comparison table indicating correspondence with the error angle θzx at the intersection angle.
This reference table is prepared for each type of the three-axis magnetic sensor to be measured for measuring the error angle θ, and the configuration of the electronic circuit such as the magnetic element used in the magnetic sensor unit 1 and the measuring unit 21 is prepared. The same magnetic field is applied when measuring the time fluctuation value of the magnetic field data.

また、交角推定部24は、X方向磁気素子11及びY方向磁気素子12の磁界検出方向の交角の誤差角度θxyを求める場合、算出した偏差データc_xyに対応する偏差データc_xyiを、対照テーブル記憶部25の対照テーブルから検索する。
また、交角推定部24は、対照テーブルにある偏差データc_xy1からc_xymのなかから、偏差データc_xyと同様の偏差データc_xyi(1≦i≦m)が検索されると、この偏差データc_xyiと対応して記憶されている誤差角度θxyiを読み出す。
そして、交角推定部24は、この読み出した誤差角度θxyiを、X方向磁気素子11及びY方向磁気素子12の磁界検出方向の交角の誤差角度θxyとして出力する。
また、交角推定部24は、Y方向磁気素子12及びZ方向磁気素子13の磁界検出方向の交角の誤差角度θyz、及びZ方向磁気素子13及びX方向磁気素子11の磁界検出方向の交角の誤差角度θzxの各々の算出も、X方向磁気素子11及びY方向磁気素子12の磁界検出方向の交角の誤差角度θxyと同様に求める。
Further, when the intersection angle estimation unit 24 obtains the error angle θxy of the intersection angle in the magnetic field detection direction of the X direction magnetic element 11 and the Y direction magnetic element 12, the deviation data c_xyi corresponding to the calculated deviation data c_xy is obtained from the reference table storage unit. Search from 25 control tables.
Further, when the deviation data c_xyi (1 ≦ i ≦ m) similar to the deviation data c_xy is retrieved from the deviation data c_xy1 to c_xym in the comparison table, the intersection angle estimation unit 24 corresponds to the deviation data c_xyi. The stored error angle θxyi is read out.
Then, the intersection angle estimation unit 24 outputs the read error angle θxyi as an error angle θxy of the intersection angle of the X direction magnetic element 11 and the Y direction magnetic element 12 in the magnetic field detection direction.
In addition, the crossing angle estimation unit 24 calculates an error angle θyz of the crossing angle in the magnetic field detection direction of the Y direction magnetic element 12 and the Z direction magnetic element 13 and an error in the crossing angle of the Z direction magnetic element 13 and the X direction magnetic element 11 in the magnetic field detection direction. The calculation of each angle θzx is also obtained in the same manner as the error angle θxy of the crossing angle of the X direction magnetic element 11 and the Y direction magnetic element 12 in the magnetic field detection direction.

次に、図5は、本実施形態における方位誤差補償装置による誤差角度θを求める処理の流れを示すフローチャートである。以下の説明においては、X方向磁気素子11及びY方向磁気素子12の磁界検出方向のなす交角における誤差角度θxyを算出する処理を例として、方位誤差補償装置の動作を説明する。このとき、磁気センサ部1のX方向磁気素子11、Y方向磁気素子12、Z方向磁気素子13の各々の磁界検知可能な磁界範囲における任意の一定磁界を、方位誤差補償装置に対して印加する。この任意の一定磁界は、後述する対照テーブル記憶部25に記憶されている誤差角度を示す対照テーブルを作成した際に用いた磁界と同一の条件で与える。   Next, FIG. 5 is a flowchart showing a flow of processing for obtaining the error angle θ by the azimuth error compensating apparatus in the present embodiment. In the following description, the operation of the azimuth error compensator will be described by taking as an example a process of calculating the error angle θxy at the intersection angle formed by the magnetic field detection directions of the X-direction magnetic element 11 and the Y-direction magnetic element 12. At this time, an arbitrary constant magnetic field in the magnetic field range in which each of the X direction magnetic element 11, the Y direction magnetic element 12, and the Z direction magnetic element 13 of the magnetic sensor unit 1 can be detected is applied to the azimuth error compensator. . This arbitrary constant magnetic field is given under the same conditions as the magnetic field used when the comparison table indicating the error angle stored in the comparison table storage unit 25 described later is created.

ステップS1:
計測部21は、磁気センサ部1から、X方向磁気素子11、Y方向磁気素子12及びZ方向磁気素子13の各々から、それぞれ磁界データX、磁界データY及び磁界データZを、一定時間内にn個ずつ読み込む。
そして、計測部21は、読み込んだ磁界データX1から磁界データXn、磁界データY1から磁界データYn及び磁界データZ1から磁界データZnのそれぞれを、磁界データ記憶部26に書き込んで記憶させ、処理をステップS2へ進める。
Step S1:
The measuring unit 21 receives the magnetic field data X, the magnetic field data Y, and the magnetic field data Z from the magnetic sensor unit 1 from each of the X direction magnetic element 11, the Y direction magnetic element 12, and the Z direction magnetic element 13, respectively, within a predetermined time. Read n at a time.
Then, the measurement unit 21 writes the magnetic field data X1 to the magnetic field data Xn, the magnetic field data Y1 to the magnetic field data Yn, and the magnetic field data Z1 to the magnetic field data Zn in the magnetic field data storage unit 26, and stores them. Proceed to S2.

ステップS2:
次に、単位磁気素子偏差和算出部22は、磁界データ記憶部26から、順次、磁界データX1から磁界データXnを読み込む。
同様に、単位磁気素子偏差和算出部22は、磁界データ記憶部26から、順次、磁界データY1から磁界データYnを読み込む。
ここで、単位磁気素子偏差和算出部22は、磁界データX1から磁界データXnと磁界データY1から磁界データYnとの全ての磁界データのなかから、順次磁界データを抽出する。
次に、単位磁気素子偏差和算出部22は、抽出した磁界データと、全ての磁界データの平均値との差分を、この全ての磁界データの平均値で除算することにより、各磁界データの規格化を行う。
そして、単位磁気素子偏差和算出部22は、規格化された磁界データX1から磁界データXnを用い、時間変動による磁界データの標準偏差σ(X)を算出する。
同様に、単位磁気素子偏差和算出部22は、規格化された磁界データY1から磁界データYnを用い、時間変動による磁界データの標準偏差σ(Y)を算出し、処理をステップS3へ進める。
Step S2:
Next, the unit magnetic element deviation sum calculation unit 22 sequentially reads the magnetic field data Xn from the magnetic field data X1 from the magnetic field data storage unit 26.
Similarly, the unit magnetic element deviation sum calculation unit 22 sequentially reads the magnetic field data Yn from the magnetic field data Y1 from the magnetic field data storage unit 26.
Here, the unit magnetic element deviation sum calculator 22 sequentially extracts the magnetic field data from all the magnetic field data of the magnetic field data X1 to the magnetic field data Xn and the magnetic field data Y1 to the magnetic field data Yn.
Next, the unit magnetic element deviation sum calculation unit 22 divides the difference between the extracted magnetic field data and the average value of all the magnetic field data by the average value of all the magnetic field data, thereby obtaining the standard of each magnetic field data. Do.
Then, the unit magnetic element deviation sum calculator 22 uses the magnetic field data Xn from the standardized magnetic field data X1 to calculate the standard deviation σ (X) of the magnetic field data due to time variation.
Similarly, the unit magnetic element deviation sum calculator 22 uses the magnetic field data Yn from the standardized magnetic field data Y1, calculates the standard deviation σ (Y) of the magnetic field data due to time variation, and advances the processing to step S3.

ステップS3:
次に、単位磁気素子偏差和算出部22は、標準偏差σ(X)及び標準偏差σ(Y)の2つが、いずれも予め設定した標準偏差閾値を超えているか否かの判定を行う。
このとき、単位磁気素子偏差和算出部22は、標準偏差σ(X)及び標準偏差σ(Y)のいずれか一方でも標準偏差閾値を超えている場合、誤差要因である誤差角度θxyの評価を中止する。
一方、単位磁気素子偏差和算出部22は、標準偏差σ(X)及び標準偏差σ(Y)ともに標準偏差閾値を超えていない場合、誤差要因である誤差角度θxyの評価を行うため、処理をステップS4へ進める。
また、磁界データの標準偏差が予め設定された標準偏差閾値を超えている場合、測定対象の3軸磁気センサに印加する電源電圧、電源線と接地線との間に設けられる抵抗及びコンデンサの数値等を調整し、再度、ステップS1の処理から誤差要因の評価を開始する。
Step S3:
Next, the unit magnetic element deviation sum calculation unit 22 determines whether or not both of the standard deviation σ (X) and the standard deviation σ (Y) exceed a preset standard deviation threshold.
At this time, when either one of the standard deviation σ (X) and the standard deviation σ (Y) exceeds the standard deviation threshold, the unit magnetic element deviation sum calculating unit 22 evaluates the error angle θxy that is an error factor. Discontinue.
On the other hand, when both the standard deviation σ (X) and the standard deviation σ (Y) do not exceed the standard deviation threshold, the unit magnetic element deviation sum calculating unit 22 performs the process to evaluate the error angle θxy that is an error factor. Proceed to step S4.
In addition, when the standard deviation of the magnetic field data exceeds a preset standard deviation threshold, the power supply voltage applied to the three-axis magnetic sensor to be measured, the numerical values of the resistors and capacitors provided between the power supply line and the ground line Etc., and the error factor evaluation is started again from the processing of step S1.

ステップS4:
次に、単位磁気素子偏差和算出部22は、標準偏差σ(X)と標準偏差σ(Y)とを加算し、加算結果を単位磁気素子偏差和a_xyとして出力し、処理をステップS5へ進める。
Step S4:
Next, the unit magnetic element deviation sum calculation unit 22 adds the standard deviation σ (X) and the standard deviation σ (Y), outputs the addition result as the unit magnetic element deviation sum a_xy, and advances the process to step S5. .

ステップS5:
次に、複合磁気素子偏差和算出部23は、磁界データX1から磁界データXnと、磁界データY1から磁界データYnとを、磁界データ記憶部26から順次読み出し、自身内部の記憶部に書き込んで記憶させる。
そして、複合磁気素子偏差和算出部23は、磁界データX1から磁界データXn及び磁界データY1から磁界データYnの各々と、磁界データX1から磁界データXnと磁界データY1から磁界データYnとの全ての磁界データの平均値との差分を、磁界データX1から磁界データXnと磁界データY1から磁界データYnとの全ての磁界データの平均値により除算することで規格化を行う。
また、複合磁気素子偏差和算出部23は、規格化した磁界データを、自身内部の記憶部に書き込んで記憶させる。
Step S5:
Next, the composite magnetic element deviation sum calculating unit 23 sequentially reads the magnetic field data X1 to the magnetic field data Xn and the magnetic field data Y1 to the magnetic field data Yn from the magnetic field data storage unit 26, and writes and stores them in the internal storage unit. Let
Then, the composite magnetic element deviation sum calculating unit 23 performs all of the magnetic field data X1 to the magnetic field data Xn and the magnetic field data Y1 to the magnetic field data Yn, the magnetic field data X1 to the magnetic field data Xn, and the magnetic field data Y1 to the magnetic field data Yn. Normalization is performed by dividing the difference from the average value of the magnetic field data by the average value of all the magnetic field data from the magnetic field data X1 to the magnetic field data Xn and from the magnetic field data Y1 to the magnetic field data Yn.
Further, the composite magnetic element deviation sum calculation unit 23 writes and stores the normalized magnetic field data in its own storage unit.

次に、複合磁気素子偏差和算出部23は、同一タイミングで計測部21が磁気センサ部1から読み込んだ磁界データX及び磁界データYを、順次加算して、磁界データ記憶部26に書き込んで記憶させる。例えば、複合磁気素子偏差和算出部23は、磁界データX1と磁界データY1とを加算し、X・Y方向磁界データ加算値X1+Y1、X2+Y2、…、Xn+Ynを算出する。
そして、複合磁気素子偏差和算出部23は、X・Y方向磁界データ加算値X1+Y1からXn+Ynまでの標準偏差である複合磁気素子偏差和b_xyを求め、処理をステップS6へ進める。
Next, the composite magnetic element deviation sum calculation unit 23 sequentially adds the magnetic field data X and the magnetic field data Y read from the magnetic sensor unit 1 by the measurement unit 21 at the same timing, and writes and stores them in the magnetic field data storage unit 26. Let For example, the composite magnetic element deviation sum calculator 23 adds the magnetic field data X1 and the magnetic field data Y1, and calculates X / Y direction magnetic field data addition values X1 + Y1, X2 + Y2,..., Xn + Yn.
Then, the composite magnetic element deviation sum calculation unit 23 obtains a composite magnetic element deviation sum b_xy that is a standard deviation from the X / Y-direction magnetic field data addition value X1 + Y1 to Xn + Yn, and the process proceeds to step S6.

ステップS6:
交角推定部24は、単位磁気素子偏差和a_xyから複合磁気素子偏差和b_xyを減算し、この減算結果a_xy−b_xyを複合磁気素子偏差和b_xyにより減算し、(a_xy−b_xy)/b_xyを算出する。
そして、交角推定部24は、上述の減算結果である(a_xy−b_xy)/b_xyを、偏差データc_xyとして出力し、処理をステップS7へ進める。
Step S6:
The intersection angle estimation unit 24 subtracts the composite magnetic element deviation sum b_xy from the unit magnetic element deviation sum a_xy, and subtracts the subtraction result a_xy−b_xy by the composite magnetic element deviation sum b_xy to calculate (a_xy−b_xy) / b_xy. .
Then, the intersection angle estimation unit 24 outputs (a_xy−b_xy) / b_xy, which is the above-described subtraction result, as deviation data c_xy, and the process proceeds to step S7.

ステップS7:
次に、交角推定部24は、求めた偏差データc_xyが予め設定されている偏差データ閾値を超えているか否かの判定を行う。
このとき、交角推定部24は、偏差データc_xyが偏差データ閾値を超えている場合、誤差角度θxyを求める範囲を超えて評価不能として、誤差要因の評価を中止する。
一方、交角推定部24は、偏差データc_xyが偏差データ閾値以下の場合、誤差角度θxyを求める処理が可能であるため、処理をステップS8へ進める。
Step S7:
Next, the intersection angle estimation unit 24 determines whether or not the obtained deviation data c_xy exceeds a preset deviation data threshold.
At this time, when the deviation data c_xy exceeds the deviation data threshold value, the intersection angle estimation unit 24 determines that the error angle θxy exceeds the range for which the error angle θxy is to be evaluated, and stops the error factor evaluation.
On the other hand, when the deviation data c_xy is equal to or smaller than the deviation data threshold value, the intersection angle estimation unit 24 can perform the process of obtaining the error angle θxy, and thus proceeds to step S8.

ステップS8:
次に、交角推定部24は、対照テーブル記憶部25の対照テーブルから、偏差データc_xyと対応する偏差データc_xyiを検索する。
そして、交角推定部24は、この対照テーブルにおいて検索された偏差データc_xyiに対応して記憶されている誤差角度データθxyiを、対照テーブル記憶部25の対照テーブルから読み込む。
交角推定部24は、対照テーブル記憶部25から読み込んだ誤差角度θxyiを、誤差補償の対象の3軸磁気センサにおけるX方向磁気素子11及びY方向磁気素子12の磁界検出方向のなす交角の直角からのずれとして出力する。
Step S8:
Next, the intersection angle estimation unit 24 searches the deviation data c_xyi corresponding to the deviation data c_xy from the comparison table of the comparison table storage unit 25.
Then, the intersection angle estimation unit 24 reads the error angle data θxyi stored corresponding to the deviation data c_xyi searched in the comparison table from the comparison table of the comparison table storage unit 25.
The crossing angle estimation unit 24 calculates the error angle θxyi read from the comparison table storage unit 25 from the right angle of the crossing angle formed by the magnetic field detection directions of the X-direction magnetic element 11 and the Y-direction magnetic element 12 in the three-axis magnetic sensor subject to error compensation. Output as a deviation.

次に、図4における対照テーブル記憶部25に記憶されている対照テーブルの生成について、以下に説明する。
対照テーブルの生成においては、直交する3軸方向に均一な磁界を印加できるコイル(以下、「3軸ヘルムホルツコイル」と称す)などにより、直交する3軸方向に対して、特定の空間領域で任意の均一な磁界を発生することのできる環境を用意し、当該環境下に磁気センサ部1を設置する。ここで、直交する3軸方向とは、それぞれの交角が直角となるX方向磁気素子11、Y方向磁気素子12及びZ方向磁気素子13の各々の磁界検出方向である。
なお、3軸ヘルムホルツコイルにおいては、各コイルに任意磁界を発生させて周囲環境の磁界を調整し、所望の磁界強度下の環境(以下、「無磁場環境」と称す)を形成することが可能であるが、本実施形態では、磁気感度の測定を実施するので、必ずしも無磁場環境を形成する必要はない。
Next, generation of a comparison table stored in the comparison table storage unit 25 in FIG. 4 will be described below.
In generating the reference table, a coil that can apply a uniform magnetic field in three orthogonal directions (hereinafter referred to as “three-axis Helmholtz coil”) or the like is arbitrarily selected in a specific spatial region with respect to the three orthogonal directions. An environment capable of generating a uniform magnetic field is prepared, and the magnetic sensor unit 1 is installed in the environment. Here, the three orthogonal directions are the magnetic field detection directions of the X-direction magnetic element 11, the Y-direction magnetic element 12, and the Z-direction magnetic element 13, each of which has a right angle.
In a 3-axis Helmholtz coil, it is possible to generate an arbitrary magnetic field in each coil to adjust the magnetic field of the surrounding environment to form an environment under a desired magnetic field strength (hereinafter referred to as “no magnetic field environment”). However, in this embodiment, since magnetic sensitivity is measured, it is not always necessary to form a magnetic field-free environment.

図6は、本実施形態の3軸磁気センサにおける誤差角度θの手順を示すフローチャートである。以下の処理は、図示しない方位角誤差測定装置が、3軸ヘルムホルツコイルを制御し、X方向磁気素子11、Y軸方向磁気素子12、Z軸方向磁気素子13に対し、X軸方向、Y軸方向、Z軸方向に磁界を任意に印加し、各々の磁気素子から得られる磁界データから各磁気素子の検知方向の交角を求める処理を説明している。
次に、図7は、設計上におけるX方向磁気素子11、Y軸方向磁気素子12、Z軸方向磁気素子13の磁界の検出方向であるX軸、Y軸、Z軸と、実際の磁界の検出方向であるXm軸、Ym軸、Zm軸との対応関係を示している。以下、Xm軸、Ym軸、Zm軸の方向を示すベクトルを求め、Xm軸、Ym軸、Zm軸の各々のなす交角を求める。
FIG. 6 is a flowchart showing a procedure of the error angle θ in the triaxial magnetic sensor of the present embodiment. In the following processing, an azimuth error measuring device (not shown) controls the three-axis Helmholtz coil, and the X-axis direction, Y-axis with respect to the X-direction magnetic element 11, Y-axis direction magnetic element 12, and Z-axis direction magnetic element 13. A process is described in which a magnetic field is arbitrarily applied in the direction and the Z-axis direction, and an intersection angle in the detection direction of each magnetic element is obtained from magnetic field data obtained from each magnetic element.
Next, FIG. 7 shows the X-axis, Y-axis, and Z-axis, which are detection directions of the magnetic fields of the X-direction magnetic element 11, the Y-axis direction magnetic element 12, and the Z-axis direction magnetic element 13, and the actual magnetic field. The correspondence relationship with the Xm axis, Ym axis, and Zm axis, which are detection directions, is shown. Hereinafter, a vector indicating the directions of the Xm axis, the Ym axis, and the Zm axis is obtained, and the intersection angle formed by each of the Xm axis, the Ym axis, and the Zm axis is obtained.

ステップSS11:
テーブルデータ作成装置(不図示)は、3軸ヘルムホルツコイルに対してX軸方向に磁界を発生させる。
テーブルデータ作成装置は、3軸ヘルムホルツコイルのX軸方向に、0からnmaxの異なる強度の磁界を印加したときの、X、Y、Z方向の磁界検知用の磁気素子11X、11Y、11Zの各々から、それぞれの出力値X1(i)、Y1(i)、Z1(i)を読み取る。ここで、0≦i≦nmaxである。
この結果、テーブルデータ作成装置は、図8の磁界データのテーブルにおける磁界データX1(i)、Y1(i)、Z1(i)を得る。
Step SS11:
A table data creation device (not shown) generates a magnetic field in the X-axis direction with respect to the 3-axis Helmholtz coil.
The table data creation device is configured to detect each of the magnetic elements 11X, 11Y, and 11Z for magnetic field detection in the X, Y, and Z directions when a magnetic field having a different intensity from 0 to nmax is applied in the X-axis direction of the 3-axis Helmholtz coil. The output values X1 (i), Y1 (i), and Z1 (i) are read out. Here, 0 ≦ i ≦ nmax.
As a result, the table data creation device obtains magnetic field data X1 (i), Y1 (i), Z1 (i) in the magnetic field data table of FIG.

この図8は、3軸ヘルムホルツコイルのX軸に任意の磁界を印加した際のX方向磁気素子11、Y方向磁気素子12、Z方向磁気素子13の各々が出力する磁界データX1(i)、Y1(i)、Z1(i)と、3軸ヘルムホルツコイルのY軸に任意の磁界を印加した際のX方向磁気素子11、Y方向磁気素子12、Z方向磁気素子13の各々が出力する磁界データX2(i)、Y2(i)、Z2(i)と、3軸ヘルムホルツコイルのZ軸に任意の磁界を印加した際のX方向磁気素子11、Y方向磁気素子12、Z方向磁気素子13の各々が出力する磁界データX3(i)、Y3(i)、Z3(i)とを示している。   FIG. 8 shows magnetic field data X1 (i) output from each of the X-direction magnetic element 11, Y-direction magnetic element 12, and Z-direction magnetic element 13 when an arbitrary magnetic field is applied to the X-axis of the 3-axis Helmholtz coil. Magnetic fields output from each of the X-direction magnetic element 11, the Y-direction magnetic element 12, and the Z-direction magnetic element 13 when an arbitrary magnetic field is applied to the Y-axis of Y1 (i), Z1 (i) and the 3-axis Helmholtz coil Data X2 (i), Y2 (i), Z2 (i) and X-direction magnetic element 11, Y-direction magnetic element 12, Z-direction magnetic element 13 when an arbitrary magnetic field is applied to the Z-axis of the 3-axis Helmholtz coil The magnetic field data X3 (i), Y3 (i), and Z3 (i) output from each of these are shown.

ステップSS12:
次に、テーブルデータ作成装置は、3軸ヘルムホルツコイルに対してY軸方向に磁界を発生させる。
テーブルデータ作成装置は、3軸ヘルムホルツコイルのY軸方向に、0からnmaxの異なる強度の磁界を印加したときの、X、Y、Z方向の磁界検知用の磁気素子11X、11Y、11Zの各々から、それぞれ出力値X2(i)、Y2(i)、Z2(i)を読み取る。ここで、0≦i≦nmaxである。
この結果、テーブルデータ作成装置は、図8の磁界データのテーブルにおける磁界データX2(i)、Y2(i)、Z2(i)を得る。
Step SS12:
Next, the table data creation device generates a magnetic field in the Y-axis direction with respect to the 3-axis Helmholtz coil.
The table data creation device is configured so that each of the magnetic elements 11X, 11Y, and 11Z for magnetic field detection in the X, Y, and Z directions when a magnetic field having a different intensity from 0 to nmax is applied in the Y-axis direction of the three-axis Helmholtz coil. Output values X2 (i), Y2 (i), and Z2 (i), respectively. Here, 0 ≦ i ≦ nmax.
As a result, the table data creation device obtains magnetic field data X2 (i), Y2 (i), and Z2 (i) in the magnetic field data table of FIG.

ステップSS13:
次に、テーブルデータ作成装置は、3軸ヘルムホルツコイルに対してZ軸方向に磁界を発生させる。
テーブルデータ作成装置は、3軸ヘルムホルツコイルのZ軸方向に、0からnmaxの異なる強度の磁界を印加したときの、X、Y、Z方向の磁界検知用の磁気素子11X、11Y、11Zの各々から、それぞれ出力値X3(i)、Y3(i)、Z3(i)を読み取る。ここで、0≦i≦nmaxである。
この結果、テーブルデータ作成装置は、図8の磁界データのテーブルにおける磁界データX3(i)、Y3(i)、Z3(i)を得る。
Step SS13:
Next, the table data creation device generates a magnetic field in the Z-axis direction with respect to the 3-axis Helmholtz coil.
The table data creation device is configured to detect each of the magnetic elements 11X, 11Y, and 11Z for detecting magnetic fields in the X, Y, and Z directions when a magnetic field having a different intensity from 0 to nmax is applied in the Z-axis direction of the 3-axis Helmholtz coil. Output values X3 (i), Y3 (i), and Z3 (i), respectively. Here, 0 ≦ i ≦ nmax.
As a result, the table data creation device obtains magnetic field data X3 (i), Y3 (i), and Z3 (i) in the magnetic field data table of FIG.

ステップSS14:
次に、テーブルデータ作成装置は、図8のテーブルの磁気素子の磁界データから、X方向磁気素子11、Y方向磁気素子12、Z方向磁気素子13の各々の磁気検知方向を示す空間ベクトルXm、Ym、Zmを計算する。
Step SS14:
Next, the table data creation device generates a space vector Xm indicating the magnetic detection direction of each of the X direction magnetic element 11, the Y direction magnetic element 12, and the Z direction magnetic element 13 from the magnetic field data of the magnetic elements in the table of FIG. Ym and Zm are calculated.

ステップSS15:
そして、テーブルデータ作成装置は、上述のステップSS14において求めた空間ベクトルXm、Ym、Zmにおける特定2軸(X−Y、Y−Z、Z−X)各々のベクトル間の交角θmを算出する。
Step SS15:
Then, the table data creation device calculates the intersection angle θm between the vectors of the specific two axes (XY, YZ, ZX) in the space vectors Xm, Ym, Zm obtained in step SS14.

次に、図6のステップSS11におけるX軸方向に磁界を印加した際のX方向磁気素子11、Y方向磁気素子12、Z方向磁気素子13の磁気素子からの磁界データの読み取りの処理の詳細を、図9を参照して説明する。図9は、X軸方向に磁界を印加した際のX方向磁気素子11、Y方向磁気素子12、Z方向磁気素子13の磁気素子からの磁界データの読み取り処理の詳細を示すフローチャートである。
ステップS11:
テーブルデータ作成装置は、データ取得個数を示す計数値nを初期化、すなわち計数値をリセットして0に設定する。また、テーブルデータ作成装置は、3軸ヘルムホルツコイルのX軸方向の磁界を、初期の強度の磁界Hx(start)に設定する。
Next, details of the process of reading the magnetic field data from the magnetic elements of the X-direction magnetic element 11, the Y-direction magnetic element 12, and the Z-direction magnetic element 13 when the magnetic field is applied in the X-axis direction in Step SS11 of FIG. This will be described with reference to FIG. FIG. 9 is a flowchart showing details of a process for reading magnetic field data from the magnetic elements of the X-direction magnetic element 11, the Y-direction magnetic element 12, and the Z-direction magnetic element 13 when a magnetic field is applied in the X-axis direction.
Step S11:
The table data creation device initializes a count value n indicating the number of data acquisition, that is, resets the count value to 0. Further, the table data creation device sets the magnetic field in the X-axis direction of the three-axis Helmholtz coil to a magnetic field Hx (start) having an initial strength.

ステップS12:
次に、テーブルデータ作成装置は、X軸方向に印加する磁界Hxを、計数値nに対応する磁界に設定する。
ここで、データ取得個数を示す計数値nの番号毎に磁界Hxの数値が設定されている。また、この磁界Hxは、計数値nが1つ増加する毎に、初期の強度の磁界Hx(start)から予め設定された大きさの磁界である単位磁界(step)が順次増加するように設定されている。
Step S12:
Next, the table data creation device sets the magnetic field Hx applied in the X-axis direction to a magnetic field corresponding to the count value n.
Here, a numerical value of the magnetic field Hx is set for each number of the count value n indicating the number of data acquisition. The magnetic field Hx is set so that the unit magnetic field (step), which is a magnetic field having a preset magnitude, is sequentially increased from the initial strength magnetic field Hx (start) every time the count value n increases by one. Has been.

ステップS13:
次に、テーブルデータ作成装置は、X方向磁気素子11、Y方向磁気素子12、Z方向磁気素子13の各々から、それぞれ3軸ヘルムホルツコイルの印加する磁界に対応した磁界データX1(i)、Y1(i)、Z1(i)を、計測部21を介して読み取る。
Step S13:
Next, the table data creation device uses magnetic field data X1 (i), Y1 corresponding to the magnetic field applied by the three-axis Helmholtz coil from each of the X-direction magnetic element 11, the Y-direction magnetic element 12, and the Z-direction magnetic element 13. (I) and Z1 (i) are read through the measuring unit 21.

ステップS14:
テーブルデータ作成装置は、計数値nを1つ増加(インクリメント)する。
ステップS15:
テーブルデータ作成装置は、計数値nと予め設定された設定値nmaxとを比較し、計数値nが設定値nmax以上の場合、処理を終了し、一方、計数値nが設定値nmax未満である場合、処理をステップS12へ進める。この設定値は、nmax個の磁界データの測定数である。
上述したフローチャートの処理により、テーブルデータ作成装置は、図7の磁界データのテーブルにおける磁界データX1(i)、Y1(i)、Z1(i)を測定する。
Step S14:
The table data creation device increments the count value n by one.
Step S15:
The table data creation device compares the count value n with a preset set value nmax. If the count value n is equal to or greater than the set value nmax, the process is terminated, while the count value n is less than the set value nmax. If so, the process proceeds to step S12. This set value is the number of measured nmax magnetic field data.
The table data creation apparatus measures the magnetic field data X1 (i), Y1 (i), and Z1 (i) in the magnetic field data table of FIG.

次に、図6のステップSS12におけるY軸方向に磁界を印加した際のX方向磁気素子11、Y方向磁気素子12、Z方向磁気素子13の磁気素子からの磁界データの読み取りの処理の詳細を、図10を参照して説明する。図10は、Y軸方向に磁界を印加した際のX方向磁気素子11、Y方向磁気素子12、Z方向磁気素子13の磁気素子からの磁界データの読み取り処理の詳細を示すフローチャートである。
ステップS21:
テーブルデータ作成装置は、データ取得個数を示す計数値nを初期化、すなわち計数値をリセットして0に設定する。また、テーブルデータ作成装置は、3軸ヘルムホルツコイルのY軸方向の磁界を、初期の強度の磁界Hy(start)に設定する。
Next, details of the process of reading magnetic field data from the magnetic elements of the X-direction magnetic element 11, the Y-direction magnetic element 12, and the Z-direction magnetic element 13 when a magnetic field is applied in the Y-axis direction in step SS12 of FIG. This will be described with reference to FIG. FIG. 10 is a flowchart showing details of a process of reading magnetic field data from the magnetic elements of the X-direction magnetic element 11, the Y-direction magnetic element 12, and the Z-direction magnetic element 13 when a magnetic field is applied in the Y-axis direction.
Step S21:
The table data creation device initializes a count value n indicating the number of data acquisition, that is, resets the count value to 0. Further, the table data creation device sets the magnetic field in the Y-axis direction of the three-axis Helmholtz coil to the initial strength magnetic field Hy (start).

ステップS22:
次に、テーブルデータ作成装置は、Y軸方向に印加する磁界Hyを、計数値nに対応する磁界に設定する。
ここで、データ取得個数を示す計数値nの番号毎に磁界Hyの数値が設定されている。また、この磁界Hyは、計数値nが1つ増加する毎に、初期の強度の磁界Hy(start)から予め設定された大きさの磁界である単位磁界(step)が順次増加するように設定されている。
Step S22:
Next, the table data creation device sets the magnetic field Hy applied in the Y-axis direction to a magnetic field corresponding to the count value n.
Here, a numerical value of the magnetic field Hy is set for each number of the count value n indicating the number of data acquisition. The magnetic field Hy is set so that a unit magnetic field (step), which is a magnetic field of a preset magnitude, sequentially increases from the initial strength magnetic field Hy (start) each time the count value n increases by one. Has been.

ステップS23:
テーブルデータ作成装置は、X方向磁気素子11、Y方向磁気素子12、Z方向磁気素子13の各々から、それぞれ3軸ヘルムホルツコイルの印加する磁界に対応した磁界データX2(i)、Y2(i)、Z2(i)を、計測部21を介して読み取る。
Step S23:
The table data creation device includes magnetic field data X2 (i) and Y2 (i) corresponding to the magnetic field applied by the three-axis Helmholtz coil from each of the X-direction magnetic element 11, the Y-direction magnetic element 12, and the Z-direction magnetic element 13. , Z2 (i) is read through the measurement unit 21.

ステップS24:
テーブルデータ作成装置は、計数値nを1つ増加(インクリメント)する。
ステップS25:
テーブルデータ作成装置は、計数値nと予め設定された設定値nmaxとを比較し、計数値nが設定値nmax以上の場合、処理を終了し、一方、計数値nが設定値nmax未満である場合、処理をステップS22へ進める。
上述したフローチャートの処理により、テーブルデータ作成装置は、図7の磁界データのテーブルにおける磁界データX2(i)、Y2(i)、Z2(i)を測定する。
Step S24:
The table data creation device increments the count value n by one.
Step S25:
The table data creation device compares the count value n with a preset set value nmax. If the count value n is equal to or greater than the set value nmax, the process is terminated, while the count value n is less than the set value nmax. If so, the process proceeds to step S22.
The table data creation apparatus measures magnetic field data X2 (i), Y2 (i), and Z2 (i) in the magnetic field data table of FIG.

次に、図6のステップSS13におけるZ軸方向に磁界を印加した際のX方向磁気素子11、Y方向磁気素子12、Z方向磁気素子13の磁気素子からの磁界データの読み取りの処理の詳細を、図11を参照して説明する。図11は、Z軸方向に磁界を印加した際のX方向磁気素子11、Y方向磁気素子12、Z方向磁気素子13の磁気素子からの磁界データの読み取り処理の詳細を示すフローチャートである。
ステップS31:
テーブルデータ作成装置は、データ取得個数を示す計数値nを初期化、すなわち計数値をリセットして0に設定する。また、テーブルデータ作成装置は、3軸ヘルムホルツコイルのZ軸方向の磁界を、初期の強度の磁界Hz(start)に設定する。
Next, details of the process of reading magnetic field data from the magnetic elements of the X-direction magnetic element 11, the Y-direction magnetic element 12, and the Z-direction magnetic element 13 when a magnetic field is applied in the Z-axis direction in Step SS13 of FIG. This will be described with reference to FIG. FIG. 11 is a flowchart showing details of a process of reading magnetic field data from the magnetic elements of the X-direction magnetic element 11, the Y-direction magnetic element 12, and the Z-direction magnetic element 13 when a magnetic field is applied in the Z-axis direction.
Step S31:
The table data creation device initializes a count value n indicating the number of data acquisition, that is, resets the count value to 0. Further, the table data creation device sets the magnetic field in the Z-axis direction of the three-axis Helmholtz coil to a magnetic field Hz (start) having an initial strength.

ステップS32:
次に、テーブルデータ作成装置は、Z軸方向に印加する磁界Hzを、計数値nに対応する磁界に設定する。
ここで、データ取得個数を示す計数値nの番号毎に磁界Hzの数値が設定されている。また、この磁界Hzは、計数値nが1つ増加する毎に、初期の強度の磁界Hz(start)から予め設定された大きさの磁界である単位磁界(step)が順次増加するように設定されている。
Step S32:
Next, the table data creation device sets the magnetic field Hz applied in the Z-axis direction to a magnetic field corresponding to the count value n.
Here, a numerical value of the magnetic field Hz is set for each number of the count value n indicating the number of data acquisition. The magnetic field Hz is set so that the unit magnetic field (step), which is a magnetic field having a preset magnitude, sequentially increases from the initial strength magnetic field Hz (start) every time the count value n increases by one. Has been.

ステップS33:
テーブルデータ作成装置は、X方向磁気素子11、Y方向磁気素子12、Z方向磁気素子13の各々から、それぞれ3軸ヘルムホルツコイルの印加する磁界に対応した磁界データX3(i)、Y3(i)、Z3(i)を、計測部21を介して読み取る。
Step S33:
The table data creation device includes magnetic field data X3 (i), Y3 (i) corresponding to the magnetic field applied by the three-axis Helmholtz coil from each of the X-direction magnetic element 11, the Y-direction magnetic element 12, and the Z-direction magnetic element 13. , Z3 (i) is read through the measurement unit 21.

ステップS34:
テーブルデータ作成装置は、計数値nを1つ増加(インクリメント)する。
ステップS35:
テーブルデータ作成装置は、計数値nと予め設定された設定値nmaxとを比較し、計数値nが設定値nmax以上の場合、処理を終了し、一方、計数値nが設定値nmax未満である場合、処理をステップS32へ進める。
上述したフローチャートの処理により、テーブルデータ作成装置は、図7の磁界データのテーブルにおける磁界データX3(i)、Y3(i)、Z3(i)を測定する。
Step S34:
The table data creation device increments the count value n by one.
Step S35:
The table data creation device compares the count value n with a preset set value nmax. If the count value n is equal to or greater than the set value nmax, the process is terminated, while the count value n is less than the set value nmax. If so, the process proceeds to step S32.
The table data creation apparatus measures the magnetic field data X3 (i), Y3 (i), and Z3 (i) in the magnetic field data table of FIG.

次に、図6のステップSS14における空間ベクトルXm、Xm、Zmを算出する処理を図12を用いて説明する。図12は、空間ベクトルXm、Xm、Zmを算出する処理の流れを示すフローチャートである。
ステップS41:
テーブルデータ作成装置は、図7のテーブルにおける磁界データX1(i)、X2(i)、X3(i)(0≦i≦nmax)から、空間ベクトルXmを算出する。
すなわち、テーブルデータ作成装置は、磁界データX1(i)、X2(i)、X3(i)を座標値(X1(i),X2(i)、X3(i))とし、座標点0からnmaxまでの、nmax個の座標点を3次元空間にプロットし、このnmax個に対する最小二乗法による近似直線を求める。そして、近似曲線の方向を空間ベクトルXmとする。
Next, the process of calculating the space vectors Xm, Xm, and Zm in step SS14 in FIG. 6 will be described with reference to FIG. FIG. 12 is a flowchart showing a flow of processing for calculating the space vectors Xm, Xm, and Zm.
Step S41:
The table data creation device calculates a space vector Xm from the magnetic field data X1 (i), X2 (i), X3 (i) (0 ≦ i ≦ nmax) in the table of FIG.
That is, the table data creation device uses the magnetic field data X1 (i), X2 (i), and X3 (i) as coordinate values (X1 (i), X2 (i), and X3 (i)), and sets nmax from the coordinate point 0. Up to nmax coordinate points are plotted in a three-dimensional space, and an approximate straight line is obtained by the least square method for the nmax points. The direction of the approximate curve is the space vector Xm.

ステップS42:
テーブルデータ作成装置は、図7のテーブルにおける磁界データY1(i)、Y2(i)、Y3(i)(0≦i≦nmax)から、空間ベクトルYmを算出する。
すなわち、テーブルデータ作成装置は、磁界データY1(i)、Y2(i)、Y3(i)を座標値(Y1(i),Y2(i),Y3(i))とし、座標点0からnmaxまでの、nmax個の座標点を3次元空間にプロットし、このnmax個に対する最小二乗法による近似直線を求める。そして、近似曲線の方向を空間ベクトルYmとする。
Step S42:
The table data creation device calculates the space vector Ym from the magnetic field data Y1 (i), Y2 (i), Y3 (i) (0 ≦ i ≦ nmax) in the table of FIG.
That is, the table data creation device uses the magnetic field data Y1 (i), Y2 (i), Y3 (i) as coordinate values (Y1 (i), Y2 (i), Y3 (i)), and sets nmax from the coordinate point 0. Up to nmax coordinate points are plotted in a three-dimensional space, and an approximate straight line is obtained by the least square method for the nmax points. The direction of the approximate curve is the space vector Ym.

ステップS43:
テーブルデータ作成装置は、図7のテーブルにおける磁界データZ1(i)、Z2(i)、Z3(i)(0≦i≦nmax)から、空間ベクトルZmを算出する。
すなわち、テーブルデータ作成装置は、磁界データZ1(i)、Z2(i)、Z3(i)を座標値(Z1(i),Z2(i),Z3(i))とし、座標点0からnmaxまでの、nmax個の座標点を3次元空間にプロットし、このnmax個に対する最小二乗法による近似直線を求める。そして、近似曲線の方向を空間ベクトルZmとする。
上述にように求められた空間ベクトルXm、Ym、Zmは、特定磁界(X軸、Y軸及びZ軸の各々)発生方向に磁界を印加した際の、磁気センサ部1内の3つのX方向磁気素子11、Y方向磁気素子12、Z方向磁気素子13による磁界検知方向(以下、「磁気センサ部1における磁界検知方向」と称す)を、それぞれ示している。
Step S43:
The table data creation device calculates the space vector Zm from the magnetic field data Z1 (i), Z2 (i), Z3 (i) (0 ≦ i ≦ nmax) in the table of FIG.
That is, the table data creation device uses the magnetic field data Z1 (i), Z2 (i), Z3 (i) as coordinate values (Z1 (i), Z2 (i), Z3 (i)), and sets nmax from the coordinate point 0. Up to nmax coordinate points are plotted in a three-dimensional space, and an approximate straight line is obtained by the least square method for the nmax points. The direction of the approximate curve is the space vector Zm.
The space vectors Xm, Ym, and Zm obtained as described above are the three X directions in the magnetic sensor unit 1 when a magnetic field is applied in the generation direction of the specific magnetic field (X axis, Y axis, and Z axis). Magnetic field detection directions by the magnetic element 11, the Y-direction magnetic element 12, and the Z-direction magnetic element 13 (hereinafter referred to as "magnetic field detection direction in the magnetic sensor unit 1") are shown.

次に、図6のステップSS16における空間ベクトルXm、Xm、Zmのそれぞれ特定2軸の交角と、空間ベクトルXe、Xe、Zeのそれぞれ特定2軸の交角とを算出する処理を以下に説明する。
テーブルデータ作成装置は、空間ベクトルXm、Ym、Zmの各々の特定2軸、すなわち空間ベクトルXm及び空間ベクトルYmの交角θmxyと、空間ベクトルYm及び空間ベクトルZmの交角θmyzと、空間ベクトルYm及び空間ベクトルZmの交角θmyzとを、各空間ベクトル間の内積の結果から算出する。
すなわち、テーブルデータ作成装置は、空間ベクトルXmと空間ベクトルYmとの交角θmxyを以下の(1)式により算出する。
Next, the process of calculating the intersection angle of the specific two axes of the space vectors Xm, Xm, and Zm and the intersection angle of the specific two axes of the space vectors Xe, Xe, and Ze in step SS16 of FIG. 6 will be described below.
The table data creation device includes two specific axes of the space vectors Xm, Ym, and Zm, that is, the intersection angle θmxy of the space vector Xm and the space vector Ym, the intersection angle θmyz of the space vector Ym and the space vector Zm, the space vector Ym, and the space. The intersection angle θmyz of the vector Zm is calculated from the result of the inner product between the space vectors.
That is, the table data creation device calculates an intersection angle θmxy between the space vector Xm and the space vector Ym by the following equation (1).

Figure 2013117442
Figure 2013117442

同様に、テーブルデータ作成装置は、空間ベクトルYmと空間ベクトルZmとの交角θmyzを以下の(2)式により算出する。   Similarly, the table data creation device calculates an intersection angle θmyz between the space vector Ym and the space vector Zm by the following equation (2).

Figure 2013117442
Figure 2013117442

また、テーブルデータ作成装置は、空間ベクトルZmと空間ベクトルXmの交角θmzxを以下の(3)式により算出する。   Further, the table data creation device calculates the intersection angle θmzx of the space vector Zm and the space vector Xm by the following equation (3).

Figure 2013117442
Figure 2013117442

上述したように、空間ベクトルXmと、空間ベクトルYmと、空間ベクトルZmとを用いることにより、空間ベクトルXm及び空間ベクトルYmの交角θmxyと、空間ベクトルYm及び空間ベクトルZmの交角θmyzと、空間ベクトルZm及び空間ベクトルXmの交角θmyzとの各々を求めることができる。
そして、テーブルデータ作成装置は、交角θmxy、交角θmyz、交角θmzxの各々の直角からのずれを算出し、それぞれ誤差角度θxy、誤差角度θyz、誤差角度θzxとする。
As described above, by using the space vector Xm, the space vector Ym, and the space vector Zm, the intersection angle θmxy of the space vector Xm and the space vector Ym, the intersection angle θmyz of the space vector Ym and the space vector Zm, and the space vector Each of Zm and the intersection angle θmyz of the space vector Xm can be obtained.
Then, the table data creation device calculates the deviation of each of the intersection angle θmxy, the intersection angle θmyz, and the intersection angle θmzzx from the right angle, and sets them as an error angle θxy, an error angle θyz, and an error angle θzx, respectively.

また、テーブルデータ作成装置は、誤差角度を求めた磁気センサに対し、任意の一定磁界を与えて、一定時間内にn個の磁界データを読み込む。
すでに、テーブルデータ作成装置は、被測定対象の磁気センサ(方位誤差補償装置における磁気センサ部)の偏差データcの算出と同様に、磁気の検出方向毎に読み込んだ磁界データ(X、Y、Z)から単位磁気素子偏差和aと、複合磁気素子偏差和bと、偏差データcとを求める。
上述した処理を複数の磁気センサに対して行い、テーブルデータ作成装置は、誤差角度の検出範囲及び検出精度を満足する、誤差角度と、単位磁気素子偏差和aと、複合磁気素子偏差和bと、偏差データcとの対応を示す対象テーブルを生成する。
このように、誤差角度の対照テーブルを作成する際と、被測定対象の磁気センサの磁界データを作成する際とにおいて、単位磁気素子偏差和aと、複合磁気素子偏差和bと、偏差データcとを求める際に、磁気センサ部1に印加する一定磁場を同一としている。このため、被測定対象の磁気センサ部1におけるX方向磁気素子11、Y方向磁気素子12、Z方向磁気素子13の各々の検出方向のなす交角における誤差角度を、対照テーブルから容易に抽出することができる。
Further, the table data creation device applies an arbitrary constant magnetic field to the magnetic sensor for which the error angle has been obtained, and reads n pieces of magnetic field data within a certain time.
The table data creation device has already read the magnetic field data (X, Y, Z) for each magnetic detection direction in the same manner as the calculation of the deviation data c of the magnetic sensor to be measured (magnetic sensor unit in the azimuth error compensation device). ) To obtain a unit magnetic element deviation sum a, a composite magnetic element deviation sum b, and deviation data c.
The above-described processing is performed on a plurality of magnetic sensors, and the table data creation device satisfies an error angle detection range and detection accuracy, an error angle, a unit magnetic element deviation sum a, and a composite magnetic element deviation sum b. Then, a target table indicating the correspondence with the deviation data c is generated.
Thus, when creating the error angle reference table and when creating the magnetic field data of the magnetic sensor to be measured, the unit magnetic element deviation sum a, the composite magnetic element deviation sum b, and the deviation data c The constant magnetic field applied to the magnetic sensor unit 1 is the same. For this reason, the error angle at the intersection angle formed by the detection directions of the X direction magnetic element 11, the Y direction magnetic element 12, and the Z direction magnetic element 13 in the magnetic sensor unit 1 to be measured can be easily extracted from the comparison table. Can do.

また、偏差データcと誤差角度との相関が存在する場合、各磁気素子の磁界の検知方向の交角が直角からずれており、かつ交角をなす検知方向での検出する磁界に互いの他軸感度があることが考えられる。
この他軸感度は、信号処理用集積回路の駆動方式や、各磁気素子が磁界検知方向以外の方向に対する磁気感度を有している。
そのため、偏差データcと誤差角度θとに相関がある場合、ホワイトノイズ以外、すなわち他軸感度を有していること判定できる。例えば、相関が高い程、他軸感度が高いことを示すことになる。
Further, when there is a correlation between the deviation data c and the error angle, the crossing angle of the magnetic field detection direction of each magnetic element is deviated from a right angle, and the other-axis sensitivity of the magnetic field detected in the crossing detection direction is mutually different. It is thought that there is.
The other-axis sensitivity has a signal processing integrated circuit driving method and magnetic sensitivity of each magnetic element in a direction other than the magnetic field detection direction.
For this reason, when there is a correlation between the deviation data c and the error angle θ, it can be determined that there is sensitivity other than white noise, that is, other axis sensitivity. For example, the higher the correlation, the higher the other axis sensitivity.

<第2の実施形態>
以下、図面を参照して、本発明の第2の実施形態について説明する。第2の実施形態の構成は、図1に示す第1の実施形態による方位誤差補償装置と同様である。
以下、第1の実施形態と異なる動作について説明する。
すでに説明した第1の実施形態において、磁界データX、磁界データY、磁界データZの各々の変動が互いに独立でなく、各磁気素子の検知方向に依存して偏差データcが変化する場合に有効である。この磁界データの変動が互いに独立であるか否かは、偏差データcの数値と、誤差角度θとの相関関係を取得することにより解る。
すなわち、偏差データcと誤差角度θとの間の相関が無い場合、第1の実施形態における偏差データcを用いた対照表からの誤差角度θの検出を行うことができない。
<Second Embodiment>
The second embodiment of the present invention will be described below with reference to the drawings. The configuration of the second embodiment is the same as that of the azimuth error compensator according to the first embodiment shown in FIG.
Hereinafter, operations different from those of the first embodiment will be described.
In the first embodiment already described, it is effective when the variations of the magnetic field data X, the magnetic field data Y, and the magnetic field data Z are not independent of each other and the deviation data c changes depending on the detection direction of each magnetic element. It is. Whether or not the fluctuations of the magnetic field data are independent of each other can be understood by acquiring the correlation between the numerical value of the deviation data c and the error angle θ.
That is, when there is no correlation between the deviation data c and the error angle θ, the error angle θ cannot be detected from the comparison table using the deviation data c in the first embodiment.

図13は、磁界換算の出力変動値(μT:マイクロテスラ)と、誤差角度度θとの対応を示すグラフである。縦軸が磁界換算の出力変動値を示し、横軸が誤差角度度θを示している。ここで、磁界換算とは、磁気素子において測定した磁界データに対し、磁界強度を示す電圧値を、例えばT(テスラ)などの磁界強度を示す単位に換算する単位換算を行うことを示している。
この図13において、標準偏差σ(X)が「○」で示され、標準偏差σ(Y)が「△」で示され、単位磁気素子偏差和a’:(σ(X)+σ(Y)/cos(θ))/21/2が「□」で示され、単位磁気素子偏差和a:(σ(X)+σ(Y))/21/2が「◇」で示され、複合磁気素子偏差和b:σ(X+Y)が「*」で示されている。
この磁界換算の出力変動において、誤差角度θが大きくなるにつれ、σ(X)は一定であるが、標準偏差σ(Y)は誤差角度θと同様に増加する。
FIG. 13 is a graph showing a correspondence between an output fluctuation value (μT: microtesla) converted into a magnetic field and an error angle degree θ. The vertical axis indicates the output fluctuation value in terms of magnetic field, and the horizontal axis indicates the error angle degree θ. Here, the magnetic field conversion means performing unit conversion for converting the voltage value indicating the magnetic field strength into a unit indicating the magnetic field strength such as T (Tesla) for the magnetic field data measured in the magnetic element. .
In FIG. 13, the standard deviation σ (X) is indicated by “◯”, the standard deviation σ (Y) is indicated by “Δ”, and the unit magnetic element deviation sum a ′: (σ (X) + σ (Y) / Cos (θ)) / 2 1/2 is indicated by “□”, unit magnetic element deviation sum a: (σ (X) + σ (Y)) / 2 1/2 is indicated by “◇”, and is a composite The magnetic element deviation sum b: σ (X + Y) is indicated by “*”.
In this magnetic field conversion output fluctuation, as the error angle θ increases, σ (X) is constant, but the standard deviation σ (Y) increases in the same manner as the error angle θ.

また、誤差角度θが増加するにつれ、単位磁気素子偏差和aと複合磁気素子偏差和bとが同様に増加し、両者の差分はほぼ0であり、偏差データcが一定となり、偏差データcから誤差角度θの推定を行うことはできない。
しかしながら、偏差データc’は、誤差角度θの増加に対応して増加している。この偏差データc’は、単位磁気素子偏差和aと、増加関数(例えば、1/cos(θ)など)がσ(b)に乗算されている複合磁気素子偏差和b’とから求められる。この偏差データc’を用いることにより、対照テーブルから誤差角度θを求めることができる。
Further, as the error angle θ increases, the unit magnetic element deviation sum a and the composite magnetic element deviation sum b similarly increase, the difference between them is almost zero, the deviation data c becomes constant, and the deviation data c The error angle θ cannot be estimated.
However, the deviation data c ′ increases corresponding to the increase in the error angle θ. The deviation data c ′ is obtained from the unit magnetic element deviation sum a and the composite magnetic element deviation sum b ′ obtained by multiplying σ (b) by an increasing function (for example, 1 / cos (θ)). By using this deviation data c ′, the error angle θ can be obtained from the comparison table.

上述した各磁気素子が出力する磁界データの変動値は、種々の要因により発生する。この変動値には、磁気素子の駆動方式や、また磁気素子のアナログ出力特性に起因しない変動(以下、ホワイトノイズとする)が含まれている。これらの変動値は、主に、磁気素子が検出して出力した値を、アナログ値やデジタル値の磁界データとして出力する信号処理過程において発生する。
しかしながら、変動値の要因がホワイトノイズのみである場合にも、変動値は各磁気素子から発生するため、原因の如何にかかわらず、各磁気素子の出力する磁界データの変動として検出されることになる。
The fluctuation value of the magnetic field data output from each magnetic element described above is generated due to various factors. The fluctuation value includes a fluctuation (hereinafter referred to as white noise) not caused by the driving method of the magnetic element or the analog output characteristic of the magnetic element. These fluctuation values are mainly generated in a signal processing process in which a value detected and output by a magnetic element is output as analog value or digital value magnetic field data.
However, even when the cause of the fluctuation value is only white noise, since the fluctuation value is generated from each magnetic element, it is detected as a fluctuation in the magnetic field data output from each magnetic element regardless of the cause. Become.

また、X方向磁気素子11、Y方向磁気素子12、Z方向磁気素子の各々が理想的に配置されている場合、すなわち各磁気素子の磁界の検出方向の交角が直角である場合、特定2軸において、磁界換算により規格化したa及びbは理論的には同一となる。
また、磁界の検出方向が直角からずれている場合であっても、同一の手法により磁界換算により規格化すると、標準偏差σ(X)は変化せずに一定となる。
一方、Y方向磁気素子12の磁界の検出方向と、Y軸(設計上の期待される磁界の検出方向)との誤差角度θxyの増加に応じて、実効的な磁界分解能が増加するため、標準偏差σ(Y)は増加することになる。
Further, when each of the X-direction magnetic element 11, the Y-direction magnetic element 12, and the Z-direction magnetic element is ideally arranged, that is, when the crossing angle of the magnetic field detection direction of each magnetic element is a right angle, a specific biaxial In the above, a and b normalized by magnetic field conversion are theoretically the same.
Even when the detection direction of the magnetic field is deviated from a right angle, when standardized by magnetic field conversion by the same method, the standard deviation σ (X) remains constant without changing.
On the other hand, the effective magnetic field resolution increases as the error angle θxy increases between the magnetic field detection direction of the Y-direction magnetic element 12 and the Y-axis (designed magnetic field detection direction expected). The deviation σ (Y) will increase.

次に、図14は、デジタル出力の出力変動値(LSB)と、誤差角度θとの対応を示すグラフである。縦軸がデジタル出力に磁界データを換算(変換)した後の出力変動値を示し、横軸が誤差角度度θを示している。
この図14において、標準偏差σ(X)が「○」で示され、標準偏差σ(Y)が「△」で示され、単位磁気素子偏差和a’:(σ(X)+σ(Y)/cos(θ))/21/2が「□」で示され、単位磁気素子偏差和a:(σ(X)+σ(Y))/21/2が「◇」で示され、複合磁気素子偏差和b:σ(X+Y)が「*」で示されている。
Next, FIG. 14 is a graph showing the correspondence between the output fluctuation value (LSB) of the digital output and the error angle θ. The vertical axis indicates the output fluctuation value after the magnetic field data is converted (converted) into the digital output, and the horizontal axis indicates the error angle degree θ.
In FIG. 14, the standard deviation σ (X) is indicated by “◯”, the standard deviation σ (Y) is indicated by “Δ”, and the unit magnetic element deviation sum a ′: (σ (X) + σ (Y) / Cos (θ)) / 2 1/2 is indicated by “□”, unit magnetic element deviation sum a: (σ (X) + σ (Y)) / 2 1/2 is indicated by “◇”, and is a composite The magnetic element deviation sum b: σ (X + Y) is indicated by “*”.

しかしながら、認識可能な磁気素子の出力する磁界データは、実際の磁界値ではなく、磁界値を測定分解能によって換算したアナログ量やデジタル量である。
この磁界値がアナログ量やデジタル量に換算された換算値は、磁界分解能に依存するため、各磁気素子の感磁方向が直交している場合の磁界分解能を用いて換算した数値である。図14に示すように、X方向磁気素子11及びY方向磁気素子12の磁界の検知方向の交角における直角からずれである誤差角度θによらず、標準偏差σ(Y)は一定となる。
このため、誤差角度θに伴う標準偏差σ(Y)の変化がないため、単位磁気素子偏差和aも複合磁気素子偏差和bも誤差角度θに対して変動することがない。すなわち、磁界換算値の場合、また磁界換算を行う前のアナログ量やデジタル量の場合でも、単位磁気素子偏差和aと複合磁気素子偏差和bとの差が誤差角度θの値によらずに一定となる。
However, the magnetic field data output by the recognizable magnetic element is not an actual magnetic field value, but an analog amount or a digital amount obtained by converting the magnetic field value according to the measurement resolution.
Since the converted value obtained by converting the magnetic field value into an analog amount or a digital amount depends on the magnetic field resolution, it is a numerical value converted using the magnetic field resolution when the magnetic sensitive directions of the magnetic elements are orthogonal. As shown in FIG. 14, the standard deviation σ (Y) is constant regardless of the error angle θ that is deviated from a right angle in the crossing angle of the magnetic field detection direction of the X direction magnetic element 11 and the Y direction magnetic element 12.
For this reason, since there is no change in the standard deviation σ (Y) associated with the error angle θ, neither the unit magnetic element deviation sum a nor the composite magnetic element deviation sum b varies with respect to the error angle θ. That is, the difference between the unit magnetic element deviation sum “a” and the composite magnetic element deviation sum “b” does not depend on the value of the error angle θ, even in the case of the magnetic field converted value or the analog amount or digital amount before the magnetic field conversion. It becomes constant.

したがって、単位磁気素子偏差和aと複合磁気素子偏差和bとの差である偏差データcも誤差角度θの変動に対して一定値をとるため、偏差データcから誤差角度θを求めることはできない。
一方、標準偏差σ(Y)に対して、誤差角度θの増加関数を乗算した後、単位磁気素子偏差和a’を求めた場合、この単位磁気素子偏差和a’は、誤差角度θの増加に対応して増加することになる。
本実施形態においては、増加関数として1/cos(θ)を用いたが、誤差角度θの検出範囲(例えば、0度から45度)において、θの増加関数であれば何を用いても良い。例えば、増加関数としてcosθ以外に、sinθ、tanθなどを用いる。
Accordingly, the deviation data c, which is the difference between the unit magnetic element deviation sum a and the composite magnetic element deviation sum b, also takes a constant value with respect to the fluctuation of the error angle θ, and therefore the error angle θ cannot be obtained from the deviation data c. .
On the other hand, when the unit magnetic element deviation sum a ′ is obtained after multiplying the standard deviation σ (Y) by the increasing function of the error angle θ, the unit magnetic element deviation sum a ′ is increased by the error angle θ. Will increase correspondingly.
In this embodiment, 1 / cos (θ) is used as the increasing function, but any function that increases θ can be used in the detection range of the error angle θ (for example, 0 to 45 degrees). . For example, sin θ, tan θ, and the like are used as an increasing function in addition to cos θ.

本実施形態の場合、第1の実施形態で用いた単位磁気素子偏差和aに比較して、単位磁気素子偏差和a’は角度θの増加に対応して、単調に増加する。
このため、θ=0近傍の各磁気素子の測定値による単位磁気素子偏差和a’を基準として作成した対照テーブルから、被誤測定対象の磁気センサ部1の単位磁気素子偏差和a’から算出した偏差データc’から誤差角度θを求めることができる。
In the case of the present embodiment, the unit magnetic element deviation sum a ′ increases monotonously as the angle θ increases as compared to the unit magnetic element deviation sum a used in the first embodiment.
For this reason, it is calculated from the unit magnetic element deviation sum a ′ of the magnetic sensor unit 1 to be erroneously measured from the reference table created based on the unit magnetic element deviation sum a ′ based on the measured value of each magnetic element near θ = 0. The error angle θ can be obtained from the deviation data c ′.

したがって、本実施形態における対照テーブルは図15に示す構造をしている。図15は、対照テーブル記憶部25に記憶されている、単位磁気素子偏差和(a’)、複合磁気素子偏差和(b)及び偏差データ(c’)のデータ組合せ(X−Y、Y−Z、Z−X)と、誤差角度θとの対応が示された対照テーブルの構造を示す図である。
対照テーブル記憶部25には、データ組合せX−YとX方向磁気素子11及びY方向磁気素子12の磁界検出方向の交角における誤差角度θxyとの対応を示す対照テーブル、データ組合せY−ZとY方向磁気素子12及びZ方向磁気素子13の磁界検出方向の交角における誤差角度θyzとの対応を示す対照テーブル、及びデータ組合せZ−XとZ方向磁気素子13及びX方向磁気素子11の磁界検出方向の交角における誤差角度θzxとの対応を示す対照テーブルとの各々が記憶されている。
Therefore, the comparison table in this embodiment has the structure shown in FIG. FIG. 15 shows data combinations (XY, Y-) of unit magnetic element deviation sum (a ′), composite magnetic element deviation sum (b), and deviation data (c ′) stored in the comparison table storage unit 25. (Z, Z-X) is a diagram showing the structure of a comparison table showing the correspondence between the error angle θ.
In the comparison table storage unit 25, a comparison table indicating the correspondence between the data combination XY and the error angle θxy in the crossing angle of the magnetic field detection direction of the X-direction magnetic element 11 and the Y-direction magnetic element 12 and data combinations YZ and Y A comparison table showing the correspondence between the error angle θyz in the crossing angle of the magnetic field detection direction of the directional magnetic element 12 and the Z direction magnetic element 13, and the data combination Z-X and the magnetic field detection direction of the Z direction magnetic element 13 and the X direction magnetic element 11 Each of them is stored with a comparison table indicating correspondence with the error angle θzx at the intersection angle.

また、対照テーブルにおける単位磁気素子偏差和a’は、標準偏差σ(X)と、対応する誤差角度θを代入した増加関数の数値が乗算された標準偏差σ(Y)を加算して求められている。また、対照テーブルにおける偏差データc’は、単位磁気素子偏差和a’から複合磁気素子偏差和bを減算し、この減算結果を複合磁気素子偏差和bにより除算して求めた数値である。
この対照テーブルは、誤差角度θを測定する被測定対象の3軸磁気センサの種類毎に準備されており、磁気センサ部1に使用されている磁気素子、計測部21などの電子回路の構成が同一であり、磁界データの時間変動値を測定する際に印加する磁界も同一としている。
Further, the unit magnetic element deviation sum a ′ in the comparison table is obtained by adding the standard deviation σ (X) and the standard deviation σ (Y) multiplied by the numerical value of the increasing function into which the corresponding error angle θ is substituted. ing. The deviation data c ′ in the comparison table is a numerical value obtained by subtracting the composite magnetic element deviation sum b from the unit magnetic element deviation sum a ′ and dividing the subtraction result by the composite magnetic element deviation sum b.
This reference table is prepared for each type of the three-axis magnetic sensor to be measured for measuring the error angle θ, and the configuration of the electronic circuit such as the magnetic element used in the magnetic sensor unit 1 and the measuring unit 21 is prepared. The same magnetic field is applied when measuring the time fluctuation value of the magnetic field data.

したがって、単位磁気素子偏差和算出部22は、標準偏差σ(X)と、対応する誤差角度θを代入した増加関数の数値が乗算された標準偏差σ(Y)を加算し、加算結果を単位磁気素子偏差和a’として出力する。
交角推定部24は、単位磁気素子偏差和算出部22から供給される単位磁気素子偏差和a’から、複合磁気素子偏差和算出部23から供給される複合磁気素子偏差和bを除算し、除算結果をこの複合磁気素子偏差和bにより除算し、除算結果を偏差データc’として求める。
Therefore, the unit magnetic element deviation sum calculation unit 22 adds the standard deviation σ (X) and the standard deviation σ (Y) multiplied by the numerical value of the increase function to which the corresponding error angle θ is substituted, and the addition result is expressed as a unit. Output as magnetic element deviation sum a ′.
The intersection angle estimation unit 24 divides the composite magnetic element deviation sum b supplied from the composite magnetic element deviation sum calculation unit 23 from the unit magnetic element deviation sum a ′ supplied from the unit magnetic element deviation sum calculation unit 22, The result is divided by this composite magnetic element deviation sum b, and the division result is obtained as deviation data c ′.

そして、交角推定部24は、例えば、X方向磁気素子11及びY方向磁気素子12の磁界検出方向の交角の誤差角度θxyを求める場合、算出した偏差データc’_xyに対応する偏差データc’_xyiを、対照テーブル記憶部25の対照テーブルから検索する。
また、交角推定部24は、対照テーブルにある偏差データc’_xy1からc’_xymのなかから、偏差データc’_xyと同様の偏差データc’_xyi(1≦i≦m)が検索されると、この偏差データc’_xyiと対応して記憶されている誤差角度θxyiを読み出す。
For example, when obtaining the error angle θxy of the crossing angle in the magnetic field detection direction of the X direction magnetic element 11 and the Y direction magnetic element 12, the crossing angle estimation unit 24 calculates the deviation data c′_xyi corresponding to the calculated deviation data c′_xy. Is retrieved from the contrast table of the contrast table storage unit 25.
Further, when the intersection angle estimation unit 24 searches for the deviation data c′_xyi (1 ≦ i ≦ m) similar to the deviation data c′_xy from the deviation data c′_xy1 to c′_xym in the comparison table. The error angle θxyi stored corresponding to the deviation data c′_xyi is read out.

そして、交角推定部24は、この読み出した誤差角度θxyiを、X方向磁気素子11及びY方向磁気素子12の磁界検出方向の交角の誤差角度θxyとして出力する。
また、交角推定部24は、Y方向磁気素子12及びZ方向磁気素子13の磁界検出方向の交角の誤差角度θyz、及びZ方向磁気素子13及びX方向磁気素子11の磁界検出方向の交角の誤差角度θzxの各々の算出も、X方向磁気素子11及びY方向磁気素子12の磁界検出方向の交角の誤差角度θxyと同様に求める。
Then, the intersection angle estimation unit 24 outputs the read error angle θxyi as an error angle θxy of the intersection angle of the X direction magnetic element 11 and the Y direction magnetic element 12 in the magnetic field detection direction.
In addition, the crossing angle estimation unit 24 calculates an error angle θyz of the crossing angle in the magnetic field detection direction of the Y direction magnetic element 12 and the Z direction magnetic element 13 and an error in the crossing angle of the Z direction magnetic element 13 and the X direction magnetic element 11 in the magnetic field detection direction. The calculation of each angle θzx is also obtained in the same manner as the error angle θxy of the crossing angle of the X direction magnetic element 11 and the Y direction magnetic element 12 in the magnetic field detection direction.

この構成により、本実施形態によれば、偏差データcと誤差角度θとの相関が低い場合にも、増加関数を乗算した標準偏差σ(Y)を用いた単位磁気素子偏差和a’により求めた偏差データc’を用いることにより、従来例に比較して容易に、磁界の検出方向の交角の直角からずれた誤差角度θを検出することができる。   With this configuration, according to this embodiment, even when the correlation between the deviation data c and the error angle θ is low, the unit magnetic element deviation sum a ′ using the standard deviation σ (Y) multiplied by the increasing function is obtained. By using the deviation data c ′, it is possible to easily detect the error angle θ deviated from the right angle of the crossing angle in the magnetic field detection direction as compared with the conventional example.

<第3の実施形態>
以下、図面を参照して、本発明の第3の実施形態について説明する。第3の実施形態の構成は、図1に示す第1の実施形態による方位誤差補償装置と同様である。
以下、第1の実施形態と異なる動作について説明する。
すでに説明した第1の実施形態あるいは第2の実施形態において、磁界データの標準偏差が予め設定された標準偏差閾値を超えている場合、測定対象の3軸磁気センサに印加する電源電圧、電源線と接地線との間に設けられる抵抗及びコンデンサの数値等を変更し、標準偏差の値を調整している。
<Third Embodiment>
The third embodiment of the present invention will be described below with reference to the drawings. The configuration of the third embodiment is the same as that of the azimuth error compensator according to the first embodiment shown in FIG.
Hereinafter, operations different from those of the first embodiment will be described.
In the first embodiment or the second embodiment already described, when the standard deviation of the magnetic field data exceeds a preset standard deviation threshold, the power supply voltage and power supply line applied to the three-axis magnetic sensor to be measured The value of the standard deviation is adjusted by changing the numerical values of resistors and capacitors provided between the cable and the ground wire.

本実施形態においては、磁界データの標準偏差が予め設定された標準偏差閾値を超えている場合、抵抗及びコンデンサの数値の変更に加え、各磁気素子が1つの磁界データを出力する際、この磁界データを作成するときに平均化する磁界データの数の設定を変更する。
この平均化する磁界データの数の設定を変更することにより、所定時間において取得する磁界データの標準偏差が変化することになる。
すなわち、平均化する磁界データの数を多くするにつれ、所定時間において取得する磁界データの標準偏差が減少し、逆に、平均化する磁界データの数を少なくするにつれ、所定時間において取得する磁界データの標準偏差が増加することが考えられる。
In this embodiment, when the standard deviation of the magnetic field data exceeds a preset standard deviation threshold, in addition to changing the numerical values of the resistor and the capacitor, each magnetic element outputs this magnetic field data when outputting one magnetic field data. Change the setting of the number of magnetic field data to be averaged when creating data.
By changing the setting of the number of magnetic field data to be averaged, the standard deviation of the magnetic field data acquired in a predetermined time changes.
That is, as the number of magnetic field data to be averaged increases, the standard deviation of the magnetic field data acquired at a predetermined time decreases, and conversely, as the number of magnetic field data to be averaged decreases, the magnetic field data acquired at a predetermined time. It is considered that the standard deviation of increases.

したがって、対照テーブルを生成する際に、この平均化を行う生データの数を換えて、偏差データcあるいは偏差データc’と、誤差角度θとの相関を求める。この相関の結果から、対照テーブルから偏差データcあるいは偏差データc’により誤差角度θを求めることが可能な、平均化する磁界データの数の範囲を示す平均化数範囲を予め決めておく。
そして、被測定対象の方位誤差補償装置の磁界データの標準偏差が予め設定された標準偏差閾値を超えている場合、各磁気素子(X方向磁気素子11、Y方向磁気素子12、Z方向磁気素子13)における平均化数の調整をこの平均化数範囲のなかで行う。
Therefore, when the comparison table is generated, the correlation between the deviation data c or the deviation data c ′ and the error angle θ is obtained by changing the number of raw data to be averaged. From this correlation result, an average number range indicating the range of the number of magnetic field data to be averaged, from which the error angle θ can be obtained from the reference data by the deviation data c or the deviation data c ′, is determined in advance.
When the standard deviation of the magnetic field data of the azimuth error compensator to be measured exceeds a preset standard deviation threshold, each magnetic element (X direction magnetic element 11, Y direction magnetic element 12, Z direction magnetic element) The average number adjustment in 13) is performed within this average number range.

また、上述した第1の実施形態から第3の実施形態において、磁気素子の駆動方式によっては、信号処理用集積回路に関連する種々の設定などにより、X方向磁気素子11、Y方向磁気素子12、Z方向磁気素子13の磁界データにおける変動値が変化する。
磁界データの変動値が大きくなるにつれ、所望の検出範囲における誤差角度を求めるための磁気感度の線形性が得られなくなる。
この結果、磁界データの変動値により、磁気素子の磁気感度における磁界換算の精度が低下することで、検出方向の磁界データの精度が低下し、検出方向における磁界データの線形性が失われることになる。
In the first to third embodiments described above, the X-direction magnetic element 11 and the Y-direction magnetic element 12 depend on various settings related to the signal processing integrated circuit, depending on the magnetic element driving method. The fluctuation value in the magnetic field data of the Z direction magnetic element 13 changes.
As the fluctuation value of the magnetic field data increases, the linearity of the magnetic sensitivity for obtaining the error angle in the desired detection range cannot be obtained.
As a result, the accuracy of the magnetic field conversion in the magnetic sensitivity of the magnetic element is reduced due to the fluctuation value of the magnetic field data, thereby reducing the accuracy of the magnetic field data in the detection direction and losing the linearity of the magnetic field data in the detection direction. Become.

このため、磁気センサ部1における各磁気素子の磁界の検出方向において、この検出方向の特定2軸の交角を、上述した(1)式から(3)式を用いて求めるための評価が困難となる。
したがって、磁界データの変動値が大きい場合、高い精度で誤差角度を求めることができる対照テーブルの作成を行うことができなくなる。
精度の高い対照テーブルを生成するため、特定2軸における磁界の検出方向のなす交角の評価を行う場合、誤差角度の数値によらずに、磁気素子の磁界データにおける変動値の閾値である変動値閾値を設定しておくことが望ましい。
すなわち、対照テーブルを生成する際に、所望の検出範囲における誤差角度を求めることが可能な磁気感度の線形性が得られる変動値の幅に設定する。この変動値の幅とは、対照テーブルを作成する際に、磁界の強度を変化させて、磁気素子毎の磁界データを用いて最小二乗法で評価直線を生成し、この評価直線と磁界データとの差分を示す数値である。
For this reason, in the detection direction of the magnetic field of each magnetic element in the magnetic sensor unit 1, it is difficult to evaluate for obtaining the intersection angle of the specific two axes in the detection direction using the above-described equations (1) to (3). Become.
Therefore, when the fluctuation value of the magnetic field data is large, it becomes impossible to create a reference table that can obtain the error angle with high accuracy.
When evaluating the crossing angle formed by the detection direction of the magnetic field in the two specific axes in order to generate a highly accurate comparison table, the fluctuation value that is the threshold value of the fluctuation value in the magnetic field data of the magnetic element, regardless of the numerical value of the error angle It is desirable to set a threshold value.
That is, when generating the comparison table, the width of the fluctuation value is set so that the linearity of the magnetic sensitivity capable of obtaining the error angle in the desired detection range is obtained. The width of the fluctuation value is that when the comparison table is created, the strength of the magnetic field is changed, and an evaluation line is generated by the least square method using the magnetic field data for each magnetic element. Is a numerical value indicating the difference between

例えば、上記変動値閾値を求めるため、電源線と接地線との間の抵抗の抵抗値及びコンデンサの容量値、磁界データを取得する際の平均化回数などを調整することで、上述した変動値の幅を、より小さい値に変化させる。
そして、変動値の幅を変化させる毎に、測定した磁界データにより上記評価曲線を生成する。ここで、変動値の幅毎の評価曲線の傾き変化を検出し、変動値の幅の減少率が低下し、減少率が平衡となる変動値の幅を検出し、この平衡となる変動値の幅を変動値閾値として設定する。
For example, in order to obtain the fluctuation value threshold value, the above-mentioned fluctuation value is adjusted by adjusting the resistance value of the resistor between the power supply line and the ground line, the capacitance value of the capacitor, the number of times of averaging when acquiring the magnetic field data, and the like. The width of is changed to a smaller value.
Then, each time the width of the fluctuation value is changed, the evaluation curve is generated from the measured magnetic field data. Here, the slope change of the evaluation curve for each width of the fluctuation value is detected, the rate of decrease in the width of the fluctuation value decreases, the width of the fluctuation value at which the reduction rate becomes equilibrium is detected, and the fluctuation value of this equilibrium value is detected. The width is set as the fluctuation value threshold.

この変動値閾値を設け、この変動値閾値の範囲内となるように、磁界データの変動値を調整することにより、磁気素子の検出方向の磁気感度の線形性を保持させることができる。そして、この結果、(1)式から(3)式を用いて、磁気センサ部1の特定2軸の磁界の検出方向の交角を高い精度で求めることができ、偏差データθから誤差角度θを高い精度で求めることが可能な対照テーブルを生成することができる。   By providing this fluctuation value threshold and adjusting the fluctuation value of the magnetic field data so as to be within the range of the fluctuation value threshold, the linearity of the magnetic sensitivity in the detection direction of the magnetic element can be maintained. As a result, the intersection angle in the detection direction of the magnetic field of the two specific axes of the magnetic sensor unit 1 can be obtained with high accuracy using the equations (1) to (3), and the error angle θ is calculated from the deviation data θ. A comparison table that can be obtained with high accuracy can be generated.

<第4の実施形態>
以下、図面を参照して、本発明の第4の実施形態について説明する。第4の実施形態の構成は、第1の実施形態から第3の実施形態のいずれかの方位誤差補償装置2を用いたセンサモジュールである。図16は、第4の実施形態のセンサモジュール500の構成例を示す図である。
センサモジュール500は、磁気センサ部1、方位誤差補償装置2、傾斜角算出部3及び方位データ算出部4を備えている。
方位誤差算出部2は、第1の実施形態、第2の実施形態及び第3の実施形態のいずれかの構成であり、磁気センサ部1から出力される磁界データX、磁界データY及び磁界データZにより、誤差角度θxy、誤差角度θyz、誤差角度θzxを求める。
<Fourth Embodiment>
Hereinafter, a fourth embodiment of the present invention will be described with reference to the drawings. The configuration of the fourth embodiment is a sensor module using the azimuth error compensation device 2 of any one of the first to third embodiments. FIG. 16 is a diagram illustrating a configuration example of a sensor module 500 according to the fourth embodiment.
The sensor module 500 includes a magnetic sensor unit 1, an azimuth error compensation device 2, an inclination angle calculation unit 3, and an azimuth data calculation unit 4.
The azimuth error calculation unit 2 is configured in any one of the first embodiment, the second embodiment, and the third embodiment, and the magnetic field data X, the magnetic field data Y, and the magnetic field data output from the magnetic sensor unit 1. From Z, an error angle θxy, an error angle θyz, and an error angle θzx are obtained.

傾斜角算出部3は、内部に傾斜角センサを備えており、センサモジュール500の傾斜角を求めて出力する。
方位データ算出部4は、傾斜角算出部3から供給される傾斜角と、方位誤差補償装置2から出力される誤差角度(θxy、θyz、θzx)及び磁界データ(X、Y、Z)とにより、センサモジュール500の磁北の方位データを出力する。
また、方位データ算出部4は、磁界データX、磁界データY、磁界データZの各々を、それぞれ誤差角度θxy、誤差角度θyz、誤差角度θzxにより、他軸成分を補正することにより、磁界データX’、磁界データY’、磁界データZ’を求める。
そして、方位データ算出部4は、得られた磁界データX’、磁界データY’、磁界データZ’によりセンサモジュール500の磁気検出方向(地磁気方向)を求める。
The inclination angle calculation unit 3 includes an inclination angle sensor, and calculates and outputs the inclination angle of the sensor module 500.
The azimuth data calculation unit 4 uses the tilt angle supplied from the tilt angle calculation unit 3, the error angles (θxy, θyz, θzx) and magnetic field data (X, Y, Z) output from the azimuth error compensation device 2. The magnetic north direction data of the sensor module 500 is output.
In addition, the azimuth data calculation unit 4 corrects the other axis component of each of the magnetic field data X, the magnetic field data Y, and the magnetic field data Z with the error angle θxy, the error angle θyz, and the error angle θzx, respectively, thereby obtaining the magnetic field data X ', Magnetic field data Y' and magnetic field data Z 'are obtained.
Then, the azimuth data calculation unit 4 obtains the magnetic detection direction (geomagnetic direction) of the sensor module 500 from the obtained magnetic field data X ′, magnetic field data Y ′, and magnetic field data Z ′.

また、方位データ算出部4は、内部記憶部に対して、偏角βと伏角αとが予め書き込まれて記憶されている。
そして、方位データ算出部4は、内部記憶部の伏角αを読み出し、読み出した伏角αを、傾斜角により補正し、補正後の伏角α’を求める。
次に、方位データ算出部4は、図18に示す磁界データX’(Hx)及び磁界データY’(Hy)とが含まれる2次元平面に対し、補正後の伏角α’を用いて磁気検出方向のベクトルを投影する。
次に、方位データ算出部4は、2次元平面に投影された方位ベクトルを、偏角βにより補正し、補正の結果得られたベクトルの方位データとして出力する。
In the azimuth data calculation unit 4, the deflection angle β and the dip angle α are previously written and stored in the internal storage unit.
Then, the azimuth data calculation unit 4 reads the dip angle α of the internal storage unit, corrects the read dip angle α with the tilt angle, and obtains the corrected dip angle α ′.
Next, the azimuth data calculation unit 4 performs magnetic detection using the corrected dip angle α ′ for a two-dimensional plane including the magnetic field data X ′ (Hx) and the magnetic field data Y ′ (Hy) shown in FIG. Project a vector of directions.
Next, the azimuth data calculation unit 4 corrects the azimuth vector projected on the two-dimensional plane with the deflection angle β, and outputs it as azimuth data of the vector obtained as a result of the correction.

なお、図21(b)のずれも考慮する場合、X方向磁気素子11あるいはY方向の磁気素子を基準に、いずれかの磁気素子の磁界の検出方向に磁界を印加して、設計上の検出方向とのずれを検出して縫製する必要がある。
例えば、X方向磁気素子11及びY方向磁気素子12の特定の2軸(各々の検出方向)がなす交角が直角である場合、3軸ヘルムホルツコイルにより、設計上のX軸方向に対する磁界を印加する。
そして、X方向磁気素子11とY方向磁気素子12との各々が検出する磁界データX及び磁界データYにより、設計上の検出方向とのずれ角を検出し、磁界データを補正する。
本実施形態によれば、偏差データcあるいは偏差データc’から簡易に、かつ高い精度で誤差角度θを検出することができる方位誤差補償装置2を用いることにより、複雑な工程を経なくとも容易に方位データを得ることが可能なセンサモジュールを提供することができる。
When the deviation in FIG. 21B is also taken into consideration, design detection is performed by applying a magnetic field in the magnetic field detection direction of one of the magnetic elements based on the X-direction magnetic element 11 or the Y-direction magnetic element. It is necessary to sew by detecting the deviation from the direction.
For example, when the crossing angle formed by two specific axes (each detection direction) of the X-direction magnetic element 11 and the Y-direction magnetic element 12 is a right angle, a magnetic field in the designed X-axis direction is applied by a 3-axis Helmholtz coil. .
Then, based on the magnetic field data X and the magnetic field data Y detected by the X direction magnetic element 11 and the Y direction magnetic element 12, a deviation angle from the designed detection direction is detected, and the magnetic field data is corrected.
According to the present embodiment, by using the azimuth error compensator 2 that can easily and accurately detect the error angle θ from the deviation data c or the deviation data c ′, it is easy to perform without complicated steps. It is possible to provide a sensor module capable of obtaining orientation data.

また、図1における方位誤差補償装置2の誤差角度θを求める機能を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することにより、誤差角度θを求める処理を行ってもよい。なお、ここでいう「コンピュータシステム」とは、OSや周辺機器等のハードウェアを含むものとする。   Further, a program for realizing the function for obtaining the error angle θ of the azimuth error compensation device 2 in FIG. 1 is recorded on a computer-readable recording medium, and the program recorded on the recording medium is read by a computer system. By executing this, processing for obtaining the error angle θ may be performed. Here, the “computer system” includes an OS and hardware such as peripheral devices.

また、「コンピュータシステム」は、WWWシステムを利用している場合であれば、ホームページ提供環境(あるいは表示環境)も含むものとする。
また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。さらに「コンピュータ読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムを送信する場合の通信線のように、短時間の間、動的にプログラムを保持するもの、その場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリのように、一定時間プログラムを保持しているものも含むものとする。また上記プログラムは、前述した機能の一部を実現するためのものであっても良く、さらに前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるものであっても良い。
Further, the “computer system” includes a homepage providing environment (or display environment) if a WWW system is used.
The “computer-readable recording medium” refers to a storage device such as a flexible medium, a magneto-optical disk, a portable medium such as a ROM and a CD-ROM, and a hard disk incorporated in a computer system. Furthermore, the “computer-readable recording medium” dynamically holds a program for a short time like a communication line when transmitting a program via a network such as the Internet or a communication line such as a telephone line. In this case, a volatile memory in a computer system serving as a server or a client in that case, and a program that holds a program for a certain period of time are also included. The program may be a program for realizing a part of the functions described above, and may be a program capable of realizing the functions described above in combination with a program already recorded in a computer system.

以上、この発明の実施形態を図面を参照して詳述してきたが、具体的な構成はこの実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の設計等も含まれる。   The embodiment of the present invention has been described in detail with reference to the drawings. However, the specific configuration is not limited to this embodiment, and includes design and the like within a scope not departing from the gist of the present invention.

1…磁気センサ部
2…方位誤差補償装置
3…傾斜角算出部
4…方位データ算出部
11…X方向磁気素子
12…Y方向磁気素子
13…Z方向磁気素子
21…計測部
22…単位磁気素子偏差和算出部
23…複合磁気素子偏差和算出部
24…交角推定部
25…対照テーブル記憶部
26…磁界データ記憶部
500…センサモジュール
DESCRIPTION OF SYMBOLS 1 ... Magnetic sensor part 2 ... Direction error compensation apparatus 3 ... Inclination angle calculation part 4 ... Direction data calculation part 11 ... X direction magnetic element 12 ... Y direction magnetic element 13 ... Z direction magnetic element 21 ... Measurement part 22 ... Unit magnetic element Deviation sum calculation unit 23 ... compound magnetic element deviation sum calculation unit 24 ... intersection angle estimation unit 25 ... comparison table storage unit 26 ... magnetic field data storage unit 500 ... sensor module

Claims (8)

X方向、Y方向及びZ方向の磁界を検知する磁気素子からなる磁気センサ各々から供給される磁界を検知して出力する磁界データを計測する計測部と、
前記磁気素子各々が一定磁界を印加されて一定期間内に出力する前記磁界データに対し、当該磁気素子毎の前記磁界データの偏差を求め、いずれか2個の異なる前記磁気センサの磁界データの偏差を加算して単位磁気素子偏差和を算出する単位磁気素子偏差和算出部と、
前記磁気素子各々が一定期間内に出力する前記磁界データに対し、いずれか2個の異なる前記磁気センサにおいて同一タイミングで取得した前記磁界データの加算値を求め、この加算値の偏差を加算して複合磁気素子偏差和を算出する複合磁気素子偏差和算出部と、
予め複数の磁気センサから、当該磁気センサにおける2軸の組合せ毎に求めた前記単位磁気素子偏差和及び複合磁気素子偏差和の偏差和情報と、当該2軸の磁気素子の磁気検出方向の交角とを対応付けて記憶している対照テーブルを記憶する対照テーブル記憶部と、
検出対象の磁気センサの2軸の前記偏差和情報に対し、当該2軸と同一の2軸の偏差和情報を有する磁気センサを前記対照テーブルから抽出し、抽出した磁気センサの交角を検出対象の交角として出力する交角推定部と
を備えることを特徴とする方位誤差補償装置。
A measurement unit that measures magnetic field data that is detected and output from a magnetic sensor that includes magnetic elements that detect magnetic fields in the X, Y, and Z directions; and
A deviation of the magnetic field data for each of the magnetic elements is obtained with respect to the magnetic field data output within a predetermined period by applying a constant magnetic field to each of the magnetic elements, and a deviation of the magnetic field data of any two different magnetic sensors Unit magnetic element deviation sum calculation unit for calculating the unit magnetic element deviation sum by adding
An addition value of the magnetic field data obtained at the same timing in any two different magnetic sensors is obtained for the magnetic field data output by each of the magnetic elements within a predetermined period, and a deviation of the addition value is added. A composite magnetic element deviation sum calculation unit for calculating a composite magnetic element deviation sum;
Deviation sum information of the unit magnetic element deviation sum and the composite magnetic element deviation sum obtained from a plurality of magnetic sensors in advance for each two-axis combination in the magnetic sensor, and an intersection angle of the magnetic detection directions of the two-axis magnetic elements. A comparison table storage unit that stores a comparison table that stores therein
For the two-axis deviation sum information of the magnetic sensor to be detected, a magnetic sensor having the same two-axis deviation sum information as the two axes is extracted from the comparison table, and the intersection angle of the extracted magnetic sensors is detected. An azimuth error compensating apparatus comprising: an intersection angle estimation unit that outputs the intersection angle.
前記対照テーブルにおいて、
前記交角と対応して記憶されている前記偏差和情報が、前記単位磁気素子偏差和から前記複合磁気素子偏差和を減算し減算結果を当該複合磁気素子偏差和で除算した偏差データであり、
前記交角推定部が、検出対象の磁気センサの前記偏差和情報から前記偏差データを算出し、算出された前記偏差データにより、前記対照テーブルから検出対象の磁気センサの各磁気素子間の磁界の検出方向の交角を求めること
を特徴とする請求項1に記載の方位誤差補償装置
In the control table,
The deviation sum information stored corresponding to the intersection angle is deviation data obtained by subtracting the composite magnetic element deviation sum from the unit magnetic element deviation sum and dividing the subtraction result by the composite magnetic element deviation sum.
The intersection angle estimation unit calculates the deviation data from the deviation sum information of the magnetic sensor to be detected, and detects the magnetic field between the magnetic elements of the magnetic sensor to be detected from the comparison table based on the calculated deviation data. The direction error compensator according to claim 1, wherein an intersection angle of directions is obtained.
前記偏差データが
前記単位磁気素子偏差和から、前記交角を変数とする増加関数を乗算した前記複合磁気素子偏差和を減算し、減算結果を当該複合磁気素子偏差和で除算して求められること
を特徴とする請求項2に記載の方位誤差補償装置。
The deviation data is obtained by subtracting the composite magnetic element deviation sum obtained by multiplying the unit magnetic element deviation sum by an increasing function having the intersection angle as a variable, and dividing the subtraction result by the composite magnetic element deviation sum. The azimuth error compensating apparatus according to claim 2, wherein
X方向、Y方向及びZ方向の磁界を検知する磁気素子からなる3軸磁気センサに対し、予め設定された一定磁界を、磁界印加装置により印加する磁界印加過程と、
計測部が、前記磁気素子の各々が前記一定磁界を検知して出力する磁界データを計測する計測過程と、
単位磁気素子偏差和算出部が、前記磁気素子各々が一定期間内に出力する前記磁界データに対し、当該磁気素子毎の前記磁界データの偏差を求め、いずれか2個の異なる前記磁気センサの磁界データの偏差を加算して単位磁気素子偏差和を算出する単位磁気素子偏差和算出過程と、
複合磁気素子偏差和算出部が、前記磁気素子各々が一定期間内に出力する前記磁界データに対し、いずれか2個の異なる前記磁気センサにおいて同一タイミングで取得した前記磁界データの加算値を求め、この加算値の偏差を加算して複合磁気素子偏差和を算出する複合磁気素子偏差和算出過程と、
交角推定過程が、予め複数の3軸磁気センサから、当該3軸磁気センサにおける2軸の組合せ毎に求めた前記単位磁気素子偏差和及び複合磁気素子偏差和の偏差和情報と、当該2軸の磁気素子の磁気検出方向の交角とを対応付けて記憶している対照テーブルを記憶する対照テーブルから、検出対象の3軸磁気センサの2軸の前記偏差和情報に対し、当該2軸と同一の2軸の偏差和情報を有する3軸磁気センサを抽出し、抽出した3軸磁気センサの交角を検出対象の交角として出力する交角推定過程と
を含むことを特徴とする方位誤差補償方法。
A magnetic field application process in which a predetermined magnetic field is applied by a magnetic field application device to a three-axis magnetic sensor including magnetic elements that detect magnetic fields in the X direction, the Y direction, and the Z direction;
A measuring unit that measures magnetic field data that each of the magnetic elements detects and outputs the constant magnetic field; and
A unit magnetic element deviation sum calculating unit obtains a deviation of the magnetic field data for each magnetic element with respect to the magnetic field data output by each of the magnetic elements within a predetermined period, and magnetic fields of any two different magnetic sensors. A unit magnetic element deviation sum calculation process for calculating a unit magnetic element deviation sum by adding data deviations;
A composite magnetic element deviation sum calculation unit obtains an addition value of the magnetic field data acquired at the same timing in any two different magnetic sensors with respect to the magnetic field data output by each of the magnetic elements within a predetermined period, A composite magnetic element deviation sum calculation process for calculating a composite magnetic element deviation sum by adding the deviation of the added value;
The intersection angle estimation process includes a deviation sum information of the unit magnetic element deviation sum and the composite magnetic element deviation sum obtained from a plurality of three-axis magnetic sensors in advance for each combination of two axes in the three-axis magnetic sensor, From the reference table that stores the reference table that stores the crossing angle in the magnetic detection direction of the magnetic element in association with each other, the two-axis deviation sum information of the three-axis magnetic sensor to be detected is the same as the two axes. An azimuth error compensation method comprising: extracting a triaxial magnetic sensor having biaxial deviation sum information, and outputting an intersection angle of the extracted triaxial magnetic sensor as an intersection angle of a detection target.
コンピュータを、
X方向、Y方向及びZ方向の磁界を検知する磁気素子からなる3軸磁気センサに対し、予め設定された一定磁界を、磁界印加装置により印加して、前記磁気素子の各々が前記一定磁界を検知した磁界データを用い、前記磁気素子各々が一定期間内に出力する前記磁界データに対し、当該磁気素子毎の前記磁界データの偏差を求め、いずれか2個の異なる前記磁気センサの磁界データの偏差を加算して単位磁気素子偏差和を算出する単位磁気素子偏差和算出手段、
前記磁気素子各々が一定期間内に出力する前記磁界データに対し、いずれか2個の異なる前記磁気センサにおいて同一タイミングで取得した前記磁界データの加算値を求め、この加算値の偏差を加算して複合磁気素子偏差和を算出する複合磁気素子偏差和算出手段、
予め複数の3軸磁気センサから、当該3軸磁気センサにおける2軸の組合せ毎に求めた前記単位磁気素子偏差和及び複合磁気素子偏差和の偏差和情報と、当該2軸の磁気素子の磁気検出方向の交角とを対応付けて記憶している対照テーブルを記憶する対照テーブルから、検出対象の3軸磁気センサの2軸の前記偏差和情報に対し、当該2軸と同一の2軸の偏差和情報を有する3軸磁気センサを抽出し、抽出した3軸磁気センサの交角を検出対象の交角として出力する交角推定手段
として機能させるためのプログラム。
Computer
A predetermined constant magnetic field is applied to a three-axis magnetic sensor including magnetic elements that detect magnetic fields in the X, Y, and Z directions by a magnetic field application device, and each of the magnetic elements applies the constant magnetic field. Using the detected magnetic field data, a deviation of the magnetic field data for each magnetic element is obtained with respect to the magnetic field data output by each of the magnetic elements within a predetermined period, and the magnetic field data of any two different magnetic sensors is calculated. Unit magnetic element deviation sum calculating means for calculating a unit magnetic element deviation sum by adding the deviation;
An addition value of the magnetic field data obtained at the same timing in any two different magnetic sensors is obtained for the magnetic field data output by each of the magnetic elements within a predetermined period, and a deviation of the addition value is added. A composite magnetic element deviation sum calculating means for calculating a composite magnetic element deviation sum;
Deviation sum information of the unit magnetic element deviation sum and the composite magnetic element deviation sum obtained from a plurality of three-axis magnetic sensors in advance for each two-axis combination in the three-axis magnetic sensor, and magnetic detection of the two-axis magnetic element The biaxial deviation sum that is the same as the two axes with respect to the deviation sum information of the two axes of the three-axis magnetic sensor to be detected, A program for extracting a triaxial magnetic sensor having information and functioning as an intersection angle estimating means for outputting the intersection angle of the extracted three axis magnetic sensor as an intersection angle of a detection target.
請求項1から請求項3のいずれかに記載の方位誤差補償装置を有し、
前記方位角誤差補償装置が、検出対照の3軸磁気センサにおける2軸の磁気の検出方向の交角が直角に対して誤差角度を有していると判定した場合、
前記誤差角度に応じて、前記2軸の検出する磁界データを前記誤差角度に基づいて補正すること
を特徴とする誤差角度補償装置。
The bearing error compensation device according to any one of claims 1 to 3,
When the azimuth error compensator determines that the intersection angle of the two-axis magnetism detection directions in the detection-target three-axis magnetic sensor has an error angle with respect to a right angle,
An error angle compensator characterized by correcting magnetic field data detected by the two axes based on the error angle according to the error angle.
請求項1から請求項3のいずれかに記載の方位誤差補償装置を有し、
X方向、Y方向及びZ方向の磁界を検知する磁気素子と
検出対象の2個の前記磁気素子による2軸の磁気の検出方向の交角が直角に対して誤差角度を有していると前記方位角誤差補償装置が判定した場合、前記誤差角度に応じて、前記2軸の検出する磁界データを前記誤差角度に基づいて補正する誤差補償部と
を備えることを特徴とする3軸磁気センサ。
The bearing error compensation device according to any one of claims 1 to 3,
If the crossing angle of the biaxial magnetism detection direction by the magnetic element for detecting the magnetic field in the X direction, the Y direction and the Z direction and the two magnetic elements to be detected has an error angle with respect to a right angle, the direction A three-axis magnetic sensor comprising: an error compensator that corrects the magnetic field data detected by the two axes based on the error angle according to the error angle when the angle error compensator determines.
請求項1から請求項3のいずれかに記載の方位誤差補償装置を有し、
X方向、Y方向及びZ方向の磁界を検知する磁気素子からなる3軸磁気センサと、
検出対象の3軸磁気センサにおける2軸の磁気の検出方向の交角が直角に対して誤差角度を有していると前記方位角誤差補償装置が判定した場合、前記誤差角度に応じて、前記2軸の検出する磁界データを前記誤差角度に基づいて補正する誤差補償部と、
地磁気の伏角、偏角及び傾斜角の各々を求める地磁気検出部と、
前記誤差保証部の補正した磁界データと、地磁気検出部が求めた伏角、偏角及び傾斜角の各々とから、方位角を算出する方位角算出部と
を備えることを特徴とするセンサモジュール。
The bearing error compensation device according to any one of claims 1 to 3,
A three-axis magnetic sensor comprising magnetic elements for detecting magnetic fields in the X, Y, and Z directions;
When the azimuth error compensator determines that the intersection angle of the detection directions of the two-axis magnetism in the three-axis magnetic sensor to be detected has an error angle with respect to a right angle, An error compensator for correcting magnetic field data detected by the axis based on the error angle;
A geomagnetism detector for determining each of the dip, declination and inclination of the geomagnetism,
A sensor module comprising: an azimuth angle calculation unit that calculates an azimuth angle from the magnetic field data corrected by the error guarantee unit and each of the dip angle, the declination angle, and the inclination angle obtained by the geomagnetism detection unit.
JP2011264976A 2011-12-02 2011-12-02 Bearing error compensation device, bearing error compensation method, bearing error compensation program, error angle compensation apparatus, triaxial magnetic sensor and sensor module Pending JP2013117442A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011264976A JP2013117442A (en) 2011-12-02 2011-12-02 Bearing error compensation device, bearing error compensation method, bearing error compensation program, error angle compensation apparatus, triaxial magnetic sensor and sensor module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011264976A JP2013117442A (en) 2011-12-02 2011-12-02 Bearing error compensation device, bearing error compensation method, bearing error compensation program, error angle compensation apparatus, triaxial magnetic sensor and sensor module

Publications (1)

Publication Number Publication Date
JP2013117442A true JP2013117442A (en) 2013-06-13

Family

ID=48712102

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011264976A Pending JP2013117442A (en) 2011-12-02 2011-12-02 Bearing error compensation device, bearing error compensation method, bearing error compensation program, error angle compensation apparatus, triaxial magnetic sensor and sensor module

Country Status (1)

Country Link
JP (1) JP2013117442A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017003312A (en) * 2015-06-05 2017-01-05 旭化成エレクトロニクス株式会社 Detection device, magnet sensor, detection method, and program
CN107631723A (en) * 2017-09-21 2018-01-26 重庆华渝电气集团有限公司 A kind of method of Electromagnetic compass autodegauss compensation

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017003312A (en) * 2015-06-05 2017-01-05 旭化成エレクトロニクス株式会社 Detection device, magnet sensor, detection method, and program
CN107631723A (en) * 2017-09-21 2018-01-26 重庆华渝电气集团有限公司 A kind of method of Electromagnetic compass autodegauss compensation
CN107631723B (en) * 2017-09-21 2020-01-03 重庆华渝电气集团有限公司 Method for automatic demagnetization compensation of electromagnetic compass

Similar Documents

Publication Publication Date Title
US6836971B1 (en) System for using a 2-axis magnetic sensor for a 3-axis compass solution
US8374817B2 (en) Auto-calibration of orientation sensing systems
US8437970B2 (en) Restoring and storing magnetometer calibration data
JP4093861B2 (en) Compensation of large magnetic errors for electronic compass and all orientation operations
KR101485142B1 (en) Method and system for a self-calibrated multi-magnetometer platform
KR20110081205A (en) Electronic compass
JPWO2006035505A1 (en) Magnetic sensor control method, control device, and portable terminal device
JP2004525348A (en) Monitoring the accuracy of the electronic compass
JP2007113993A (en) Magnetic compass
KR20090018731A (en) Azimuth measuring device and azimuth measuring method
WO2011158856A1 (en) Error cause determination method and device, error compensation method, three-axis magnetic sensor, sensor module, and program for determining error cause
CN107421523A (en) Azimuth calibration method, apparatus, storage medium and computer equipment
CN107340545B (en) Geomagnetic all-element measurement system and geomagnetic all-element measurement method
JP2006226810A (en) Azimuth measuring instrument
KR20140025319A (en) Apparatuses and methods for dynamic tracking and compensation of magnetic near field
CN109407159A (en) A kind of earth magnetism total factor sensor attitude error calibration method
KR101211703B1 (en) Calibration method of the magnetometer error using a line of sight vector and the integrated navigation system using the same
JP2005061969A (en) Azimuthal angle measuring instrument and azimuthal angle measuring method
US9863867B2 (en) Automatically updating hard iron and soft iron coefficients of a magnetic sensor
KR100799536B1 (en) Apparatus and Method for estimation of Virtual Axis Magnetic Compass Data to compensate the Tilt Error of Biaxial Magnetic Compass, and System for calculating Azimuth Angle using it
Salehi et al. A practical in-field magnetometer calibration method for IMUs
JP2013117442A (en) Bearing error compensation device, bearing error compensation method, bearing error compensation program, error angle compensation apparatus, triaxial magnetic sensor and sensor module
Zhang et al. A component compensation method for magnetic interferential field
JP2007256161A (en) Electronic azimuth meter
Klingbeil et al. Magnetic field sensor calibration for attitude determination