JP2007163389A - Direction sensor - Google Patents

Direction sensor Download PDF

Info

Publication number
JP2007163389A
JP2007163389A JP2005362578A JP2005362578A JP2007163389A JP 2007163389 A JP2007163389 A JP 2007163389A JP 2005362578 A JP2005362578 A JP 2005362578A JP 2005362578 A JP2005362578 A JP 2005362578A JP 2007163389 A JP2007163389 A JP 2007163389A
Authority
JP
Japan
Prior art keywords
offset
output
azimuth
magnetic sensor
sensor
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
JP2005362578A
Other languages
Japanese (ja)
Inventor
Toshinari Oyama
俊成 大山
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.)
Citizen Holdings Co Ltd
Original Assignee
Citizen Holdings Co 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 Citizen Holdings Co Ltd filed Critical Citizen Holdings Co Ltd
Priority to JP2005362578A priority Critical patent/JP2007163389A/en
Publication of JP2007163389A publication Critical patent/JP2007163389A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Measuring Magnetic Variables (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To solve a problem, in a direction sensor for calculating an offset of a magnetic sensor from an output of a magnetic sensor, wherein the offset is not accurately found and resultantly accurate direction is not calculable. <P>SOLUTION: This direction sensor comprises: a magnetic sensor 1 for detecting earth magnetism to output an output of the magnetic sensor; an offset calculation means 3 for calculating a primary offset based on the sensor output in four different attitudes; an offset processing means 4 comprising a reliability evaluation means for determining whether or not the output is within a preset range when the sensor is in a posture different from a attitude used for calculating the primary offset on the basis of the primary offset calculated by the offset calculation means and discarding the primary offset when the output is determined to be outside the preset range while outputting a secondary offset effective in offset calibration; and a direction calculation means 5 for performing offset correction on the output after acquiring the secondary offset and then calculating a direction. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、地磁気を検出し方位を算出する方位センサに関するものである。     The present invention relates to an orientation sensor that detects geomagnetism and calculates an orientation.

近年、自動車の走行ナビゲーションシステムや、携帯電話を用いた歩行者用ナビゲーションシステムの実用化が急速化している。このようなシステムでは、地磁気を検出し方位を求める方位センサの搭載が必須である。進行方向を検出する方位センサの誤差が直接ナビゲーションシステムの性能にかかわってくるので、磁気センサを方位センサとして使用したシステムでは磁気センサに高い精度が要求される。   In recent years, the practical use of travel navigation systems for automobiles and navigation systems for pedestrians using mobile phones has been accelerated. In such a system, it is essential to mount an orientation sensor that detects geomagnetism and determines the orientation. Since the error of the direction sensor that detects the direction of travel directly affects the performance of the navigation system, a high accuracy is required for the magnetic sensor in a system that uses the magnetic sensor as the direction sensor.

一般にナビゲーションシステム等の機器には金属の部品が搭載されるが、これらの部品は強い磁界の中通過するなどの影響により、それ自体が磁気を帯びることがある。この様な状態を着磁と呼ぶ。   In general, metal parts are mounted on a device such as a navigation system, but these parts may be magnetized by themselves due to the effect of passing through a strong magnetic field. Such a state is called magnetization.

磁気センサが地磁気を検出するときの出力電圧は、着磁が全く無い場合は、基準電圧を中心とした出力電圧が得られる。ところが、機器内に着磁した部品が存在すると、磁気センサの出力は、基準電圧にオフセットが加わった電圧を中心とした出力となってしまう。このようなオフセットを含んだ出力から方位を算出すると実際の方位とは一致しなくなる。   When the magnetic sensor detects geomagnetism, an output voltage centered on the reference voltage is obtained when there is no magnetization. However, if there are magnetized parts in the device, the output of the magnetic sensor is an output centered on a voltage obtained by adding an offset to the reference voltage. If the azimuth is calculated from the output including such an offset, it does not coincide with the actual azimuth.

この方位誤差を補正するため、磁気センサを搭載している機器では機器全体を1回転させ、磁気センサの出力電圧の最大値と最小値の平均を算出して新たな基準電圧(補正値)とする方法を取ることがある。   In order to correct this azimuth error, in the device equipped with the magnetic sensor, the entire device is rotated once, the average of the maximum value and the minimum value of the output voltage of the magnetic sensor is calculated, and a new reference voltage (correction value) May take a way to.

しかし、着磁の状況が変化するたびに機器を回転させ補正するというのはユーザにとって非常に煩わしいという問題があり、従来より機器を回転させずとも磁気センサの数回の出力値よりオフセットを演算により求める方法が提案されている(例えば、特許文献1参照。)。   However, there is a problem that it is very troublesome for the user to rotate and correct the device every time the magnetization status changes, so that the offset is calculated from the output value of the magnetic sensor several times without rotating the device. Has been proposed (for example, see Patent Document 1).

これは、周辺の部品の着磁に応じたオフセットを得て補正する方法であり、具体的には着磁後であっても、その後着磁状態が変化しない間にサンプリングされた相異なる3組の2次元座標値が定める3点を用いて、その3点から所定の距離にあるオフセットとなる2次元座標値(3円の交点)を得て、このオフセットを使用して正しい方位を得ようとするものである。   This is a method of obtaining and correcting an offset according to the magnetization of peripheral components. Specifically, even after magnetization, three different sets of samples sampled while the magnetization state does not change thereafter. Using the three points defined by the two-dimensional coordinate values, obtain a two-dimensional coordinate value (intersection of three circles) that is an offset at a predetermined distance from the three points, and use this offset to obtain the correct orientation It is what.

この方法について、更に詳細に図を用いて説明を行う。図5は、方位センサを含む機器を水平状態下で一周回させたときのX軸、Y軸磁気センサの出力の関係を示したものである。横軸VxがX軸の磁気センサの出力であり、縦軸VyがY軸の磁気センサ出力である。一周回させたとき、これら磁気センサ出力は図5において点線で示した軌跡をとる。   This method will be described in more detail with reference to the drawings. FIG. 5 shows the relationship between the outputs of the X-axis and Y-axis magnetic sensors when a device including the azimuth sensor is rotated once in a horizontal state. The horizontal axis Vx is the output of the X-axis magnetic sensor, and the vertical axis Vy is the output of the Y-axis magnetic sensor. When the circuit is rotated once, these magnetic sensor outputs have a locus indicated by a dotted line in FIG.

この図5から、水平状態下でのXY出力グラフは円形状となっていることが判る。また、このときの円の半径は地磁気の水平成分に相当する出力を表しており、円の中心座標はX軸の磁気センサ出力とY軸の磁気センサ出力の原点に対するオフセットO1を示すこととなる。ここで、この出力円上の3点のA、B、Cの2次元座標が判ると、3点から等距離の点、すなわち図5に示す実線の3つの円の交点O1を求めることにより、オフセットを求めることができる。この方法によれば、周辺部品の着磁量が経時的に変化した場合であっても、その都度、着磁に係るオフセットO1を取得できるため、機器を水平状態下で
一周回させずともオフセットO1を得ることができる。
From FIG. 5, it can be seen that the XY output graph in the horizontal state is circular. The radius of the circle at this time represents an output corresponding to the horizontal component of geomagnetism, and the center coordinates of the circle indicate an offset O1 with respect to the origin of the X-axis magnetic sensor output and the Y-axis magnetic sensor output. . Here, when the two-dimensional coordinates of three points A, B, and C on the output circle are known, by obtaining a point equidistant from the three points, that is, an intersection point O1 of three solid circles shown in FIG. An offset can be determined. According to this method, even when the magnetization amount of the peripheral component changes with time, the offset O1 related to the magnetization can be acquired each time, so that the offset can be performed without making the device circulate in a horizontal state. O1 can be obtained.

また、この考えを3次元に拡張すれば、3次元座標におけるXYZ軸磁気センサの異なる4点の磁気センサ出力から球の中心座標を求めることにより、オフセットを得ることができることは容易に理解できるであろう。   If this idea is extended to three dimensions, it can be easily understood that the offset can be obtained by obtaining the center coordinates of the sphere from the four different magnetic sensor outputs of the XYZ axis magnetic sensor in the three-dimensional coordinates. I will.

特開平8−105745号公報 (第6頁、図3)JP-A-8-105745 (Page 6, FIG. 3)

しかしながら、特許文献1に示した従来の方位センサは、周囲状況の影響を受けやすい地磁気の測定値、すなわち誤差の大きい磁気センサ出力を用いてオフセットO1を算出しているため、算出したオフセットO1が真のオフセットからずれてしまうという欠点があった。   However, since the conventional azimuth sensor shown in Patent Document 1 calculates the offset O1 using a measured value of geomagnetism that is easily influenced by the surrounding situation, that is, a magnetic sensor output with a large error, the calculated offset O1 is There was a drawback that it deviated from the true offset.

また、たとえ磁気センサ出力に誤差が少なかった場合でも、測定点の取り方によっては、算出したオフセットO1が真のオフセットから大きくずれてしまうという欠点があった。このことを、図6、図7を用いて説明する。図6、図7は、従来の方位センサが示す出力軌跡図である。   Further, even if there is little error in the output of the magnetic sensor, there is a disadvantage that the calculated offset O1 greatly deviates from the true offset depending on how to take the measurement points. This will be described with reference to FIGS. 6 and 7 are output trajectory diagrams shown by the conventional direction sensor.

図6に示すO1点が、真のオフセットであるとする。測定点である3点A、B、Cの内のひとつC点に僅かに誤差がのり原点方向に移動したとすると、図7のようになる。すなわち、C点がC’点に僅かに移動しただけで、算出されるO2点は真のオフセットO1点とは大きくずれてしまうことが分かる。この様な、真のオフセットO1からずれたオフセットO2を用いて、磁気センサ出力をオフセット補正するシステムでは、真の方位を得ることができないことは明白である。   Assume that the point O1 shown in FIG. 6 is a true offset. If there is a slight error at one of the three measurement points A, B, and C and the error moves to the origin, the result is as shown in FIG. That is, it can be seen that the calculated O2 point is greatly deviated from the true offset O1 point by only slightly moving the C point to the C 'point. It is clear that the true orientation cannot be obtained in such a system that offset-corrects the magnetic sensor output using the offset O2 deviated from the true offset O1.

本発明の目的は、上記課題を解決しようとするもので、地磁気の測定値に誤差が含まれた場合であっても、精度よくオフセットを算出し、真の方位を得ることができる方位センサを提供することにある。   An object of the present invention is to solve the above-described problem, and an orientation sensor that can accurately calculate an offset and obtain a true orientation even when an error is included in a measured value of geomagnetism. It is to provide.

上記目的を達成するため、本発明の方位センサは、基本的に下記に示す構造を採用するものである。   In order to achieve the above object, the azimuth sensor of the present invention basically employs the structure shown below.

本発明の方位センサは、地磁気を検出し方位を算出する方位センサであって、地磁気を検出する検出する磁気センサと、異なる姿勢における磁気センサ出力に基づき、1次オフセットを算出するオフセット算出手段と、オフセット算出手段が算出した1次オフセットを基準として、1次オフセットの算出に使用した姿勢とは異なる姿勢における磁気センサ出力が、予め設定された範囲にあるか否かを判断して、予め設定された範囲以外と判断したときの1次オフセットを破棄した上で、オフセット補正に有効な2次オフセットを出力する信頼性評価手段を有するオフセット処理手段と、2次オフセットを得た後に、磁気センサ出力に対するオフセット補正を行った上で方位を算出する方位算出手段とを有することを特徴とするものである。   An azimuth sensor according to the present invention is a azimuth sensor that detects geomagnetism and calculates an azimuth, and detects a magnetic sensor that detects geomagnetism, and an offset calculation unit that calculates a primary offset based on magnetic sensor outputs in different postures. Based on the primary offset calculated by the offset calculation means, it is determined whether the magnetic sensor output in a posture different from the posture used for calculating the primary offset is within a preset range. An offset processing means having a reliability evaluation means for outputting a secondary offset effective for offset correction after discarding the primary offset when judged to be outside the range, and after obtaining the secondary offset, the magnetic sensor And an azimuth calculating means for calculating the azimuth after performing offset correction on the output.

また、本発明の方位センサは、前述したオフセット処理手段が、信頼性評価手段によって得られる2次オフセットの過去の値に対する今回得られる2次オフセットの変化量を算出し、この変換量が小さくなる様に2次オフセットを修正した3次オフセットを出力するオフセット変化量制限手段をさらに備えることを特徴とするものである。   In the azimuth sensor of the present invention, the offset processing unit described above calculates a change amount of the secondary offset obtained this time with respect to the past value of the secondary offset obtained by the reliability evaluation unit, and this conversion amount becomes small. In this manner, the apparatus further includes an offset change amount limiting means for outputting a tertiary offset obtained by correcting the secondary offset.

また、本発明の方位センサは、前述したオフセット処理手段が、3次オフセットの平均値を算出して4次オフセットを出力する平均手段をさらに備えることを特徴とするものである。   In the azimuth sensor according to the present invention, the offset processing means described above further includes an averaging means for calculating an average value of the third-order offset and outputting a fourth-order offset.

また、本発明の方位センサは、姿勢を検出して傾斜センサ出力を出力する傾斜センサをさらに備え、前述した方位算出手段が、磁気センサ出力とともに傾斜センサ出力を使って方位を得る手段であることを特徴とするものである。   The azimuth sensor according to the present invention further includes a tilt sensor that detects a posture and outputs a tilt sensor output, and the azimuth calculation unit described above is a unit that obtains a azimuth by using the tilt sensor output together with the magnetic sensor output. It is characterized by.

本発明の方位センサは、オフセット処理手段を設けたことにより、誤差を低減した精度の高いオフセットを算出することができる。その結果、精度の高い方位を算出できる。   The azimuth sensor of the present invention can calculate an accurate offset with reduced error by providing the offset processing means. As a result, a highly accurate azimuth can be calculated.

以下図面により本発明の実施の形態を詳述する。
図1は、本発明の方位センサを示す構成図である。図2は、3次元観測座標系における、本発明の方位センサの磁気センサ出力を示す図である。図3は、本発明の方位センサにおけるオフセット処理手段を示す構成図である。図4は、本発明の方位センサにおけるオフセット処理手段のフローチャートである。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
FIG. 1 is a block diagram showing an orientation sensor of the present invention. FIG. 2 is a diagram showing the magnetic sensor output of the azimuth sensor of the present invention in the three-dimensional observation coordinate system. FIG. 3 is a block diagram showing the offset processing means in the direction sensor of the present invention. FIG. 4 is a flowchart of the offset processing means in the direction sensor of the present invention.

[構造説明:図1]
まず、本発明の方位センサの構成について図1を用いて説明する。
図1において、符号1はX、Y、Z軸の磁気を検出する磁気センサを、符号2はX、Y、Z軸の加速度を検出する傾斜センサを示している。また、符号3は磁気センサのオフセットを算出するオフセット算出手段を、符号4はオフセットを高精度化するオフセット処理手段を、符号5は方位を算出する方位算出手段を示している。また、符号6は磁気センサ出力を、符号7は傾斜センサ出力を、符号8は方位算出手段によって算出された方位を、符号9はオフセット算出手段によって算出されるオフセットを、符号10はオフセット処理手段によって高精度化された高精度オフセットを示している。
[Description of structure: Fig. 1]
First, the configuration of the direction sensor of the present invention will be described with reference to FIG.
In FIG. 1, reference numeral 1 denotes a magnetic sensor that detects magnetism of the X, Y, and Z axes, and reference numeral 2 denotes an inclination sensor that detects acceleration of the X, Y, and Z axes. Reference numeral 3 denotes an offset calculating means for calculating the offset of the magnetic sensor, reference numeral 4 denotes an offset processing means for increasing the accuracy of the offset, and reference numeral 5 denotes an azimuth calculating means for calculating the azimuth. Reference numeral 6 denotes a magnetic sensor output, reference numeral 7 denotes an inclination sensor output, reference numeral 8 denotes an azimuth calculated by the azimuth calculation means, reference numeral 9 denotes an offset calculated by the offset calculation means, and reference numeral 10 denotes an offset processing means. The high-accuracy offset that has been improved by means of.

なお、磁気センサ1には、磁気抵抗素子(MR素子)やフラックスゲート型の磁気センサを用いることができる。傾斜センサ2には、ピエゾ抵抗型の加速度センサや静電容量型の加速度センサを用いることができる。   The magnetic sensor 1 can be a magnetoresistive element (MR element) or a fluxgate type magnetic sensor. As the tilt sensor 2, a piezoresistive acceleration sensor or a capacitance acceleration sensor can be used.

[動作説明:図1]
次に、本発明の方位センサを構成する各構成要件が果たす機能について図1を用いて説明する。
図1に示す様に、磁気センサ1は、X、Y、Z軸の地磁気を検出して、オフセット算出手段3と方位算出手段5とに磁気センサ出力6をそれぞれ出力する。この磁気センサ出力6は、地磁気による出力に加えて、着磁の影響によるオフセットが含まれたものとなる。傾斜センサ2は、X、Y、Z軸の加速度を検出し、傾斜センサ出力7を方位算出手段5に出力する。
[Description of operation: Fig. 1]
Next, the function fulfilled by each component constituting the azimuth sensor of the present invention will be described with reference to FIG.
As shown in FIG. 1, the magnetic sensor 1 detects geomagnetism of the X, Y, and Z axes, and outputs a magnetic sensor output 6 to the offset calculation means 3 and the azimuth calculation means 5, respectively. This magnetic sensor output 6 includes an offset due to the influence of magnetization in addition to the output due to geomagnetism. The tilt sensor 2 detects X, Y, and Z-axis accelerations and outputs a tilt sensor output 7 to the azimuth calculating means 5.

オフセット算出手段3は、磁気センサ出力6の情報に基づきオフセット9を算出し、オフセット処理手段にオフセット9を出力する。オフセット処理手段4は、オフセット9を処理して高精度オフセット10を算出して、方位算出手段5に高精度オフセット10を出力する。方位算出手段5は、磁気センサ出力6から高精度オフセット10を差し引き、地磁気のみの出力を抽出してオフセット補正し、さらに傾斜センサ出力7によってこの地磁気のみの出力に対する傾斜補正をした上で、真の方位8を算出する。   The offset calculation means 3 calculates the offset 9 based on the information of the magnetic sensor output 6 and outputs the offset 9 to the offset processing means. The offset processing means 4 processes the offset 9 to calculate a high precision offset 10 and outputs the high precision offset 10 to the azimuth calculation means 5. The azimuth calculating means 5 subtracts the high-precision offset 10 from the magnetic sensor output 6, extracts the output of only the geomagnetism, corrects the offset, and further corrects the inclination of the output of only the geomagnetism by the tilt sensor output 7, The azimuth 8 is calculated.

[動作説明:図2]
次に、本発明の方位センサにおけるオフセット算出手段の動作について図2を用いて説明する。図2は、3次元観測座標系における磁気センサ出力を示す図である。図2において、Vxは磁気センサのX軸出力を、Vyは磁気センサのY軸出力を、Vzは磁気センサのZ軸出力を表している。
[Description of operation: Fig. 2]
Next, the operation of the offset calculation means in the direction sensor of the present invention will be described with reference to FIG. FIG. 2 is a diagram showing the magnetic sensor output in the three-dimensional observation coordinate system. In FIG. 2, Vx represents the X-axis output of the magnetic sensor, Vy represents the Y-axis output of the magnetic sensor, and Vz represents the Z-axis output of the magnetic sensor.

4つの異なる姿勢における磁気センサ出力を3次元観測座標系にプロットすると、A、B、C、D点のように、原点OからずれたO1点を中心とした球面上に位置することになる。これは、磁気センサ出力6が地磁気による出力に加えて、着磁の影響によるオフセットを含んでいるためである。一定環境のもとでは地磁気の大きさは変化しないため、線分O1A、O1B、O1C、O1Dは同じ大きさであり、ベクトルO1A、O1B、O1C、O1Dがそれぞれの姿勢における地磁気ベクトルである。ここで、O1点の座標はオフセットに相当する。   When the magnetic sensor outputs in four different postures are plotted in the three-dimensional observation coordinate system, they are located on a spherical surface centered on the point O1 shifted from the origin O, such as points A, B, C, and D. This is because the magnetic sensor output 6 includes an offset due to the influence of magnetization in addition to the output due to geomagnetism. Since the magnitude of geomagnetism does not change under a constant environment, the line segments O1A, O1B, O1C, and O1D have the same magnitude, and the vectors O1A, O1B, O1C, and O1D are geomagnetic vectors in their respective postures. Here, the coordinates of the point O1 correspond to an offset.

そして、図1に示したオフセット算出手段3は、測定点であるA、B、C、D点から演算によりO1点を算出する機能を有する。このO1点を算出する演算方法は、一般に知られるように、球面上の4点から球の中心座標を求める3元連立方程式を解く方法を用いることができるので、ここでの詳細な説明は割愛する。   The offset calculation means 3 shown in FIG. 1 has a function of calculating the O1 point by calculation from the A, B, C, and D points that are measurement points. As the calculation method for calculating the O1 point, as is generally known, a method of solving a ternary simultaneous equation for obtaining the center coordinates of a sphere from four points on a spherical surface can be used. To do.

[動作説明:図2〜図4、図6〜図8]
次に、本発明の方位センサにおけるオフセット処理手段の動作を図2、図3、図4、図6〜図8を用いて説明する。図3は、本発明の方位センサを構成するオフセット処理手段4を示す構成図である。
[Description of Operation: FIGS. 2 to 4 and FIGS. 6 to 8]
Next, the operation of the offset processing means in the azimuth sensor according to the present invention will be described with reference to FIG. 2, FIG. 3, FIG. FIG. 3 is a block diagram showing the offset processing means 4 constituting the azimuth sensor of the present invention.

このオフセット処理手段4は、信頼性判断手段11と、オフセット変化量制限手段12と、平均化手段13と、記憶手段14とにより構成される。記憶手段14は、複数のオフセット9を順次記憶するメモリである。   The offset processing unit 4 includes a reliability determining unit 11, an offset change amount limiting unit 12, an averaging unit 13, and a storage unit 14. The storage unit 14 is a memory that sequentially stores a plurality of offsets 9.

次に、本発明の方位センサにおけるオフセット処理手段4の演算手順について説明する。図4は、本発明のオフセット処理手段4のフローチャートである。   Next, the calculation procedure of the offset processing means 4 in the direction sensor of the present invention will be described. FIG. 4 is a flowchart of the offset processing means 4 of the present invention.

このフローチャートに示すオフセット処理手段4は、3つのSTEPにより構成されている。まず、図3に示した信頼性判断手段11により、オフセット算出手段3から出力されるオフセット9を用いて、図4に示すSTEP1の処理を行う。次に、オフセット変化量制限手段12により、信頼性判断手段11からの出力データを用いてSTEP2の処理を行う。次に、オフセット変化量制限手段12により得られた変化量の小さいオフセットのみを用いて平均化手段13により、STEP3の処理を行う。   The offset processing means 4 shown in this flowchart is composed of three STEPs. First, the reliability determination means 11 shown in FIG. 3 performs the processing of STEP 1 shown in FIG. 4 using the offset 9 output from the offset calculation means 3. Next, the offset change amount limiting unit 12 performs the processing of STEP 2 using the output data from the reliability determining unit 11. Next, the processing of STEP 3 is performed by the averaging unit 13 using only the offset with a small variation obtained by the offset variation limiting unit 12.

次に、上述したSTEP1〜STEP3までの各STEPで行う内容について詳細に説明をする。まず、STEP1の処理について説明をする。
STEP1における信頼性判断手段11は、オフセット算出手段3が出力したオフセット9の信頼性を評価するものである。この信頼性の評価には、別の姿勢における磁気センサ出力6の測定点を用いる。すなわち、図2に示すように、A、B、C、D点からオフセット算出手段3がO1点を算出した場合、別の測定点であるE点とO1点との距離を計算し、O1Eの距離とO1Aの距離が同程度である場合にO1点を信頼性有り、同程度でない場合信頼性無しと判断する。
Next, the contents performed in each of the above STEP 1 to STEP 3 will be described in detail. First, the processing of STEP1 will be described.
The reliability judgment unit 11 in STEP 1 evaluates the reliability of the offset 9 output from the offset calculation unit 3. In this reliability evaluation, the measurement points of the magnetic sensor output 6 in another posture are used. That is, as shown in FIG. 2, when the offset calculation means 3 calculates the O1 point from the points A, B, C, and D, the distance between the E point and the O1 point, which are different measurement points, is calculated, and the O1E When the distance and the distance of O1A are approximately the same, it is determined that the O1 point is reliable, and when it is not approximately the same, the reliability is not determined.

ここで同程度とは、例えば距離の差が仮に10%以内とし、その範囲内にあるデータのみをSTEP2に導出し、このステップで信頼性無しと判断された場合は、オフセット算出手段3が出力したオフセット9は破棄される。   Here, for example, if the difference in distance is assumed to be within 10%, only the data within the range is derived to STEP 2, and if it is determined that there is no reliability in this step, the offset calculation means 3 outputs The offset 9 is discarded.

この様に、STEP1の処理は、磁気センサ出力6に誤差が少なかった場合でも、測定点の取り方によって、算出したオフセットが真のオフセットから大きくずれてしまうという問題に対して、特に効力を発揮する。   As described above, the processing of STEP 1 is particularly effective for the problem that the calculated offset greatly deviates from the true offset depending on how the measurement points are taken even if the error in the magnetic sensor output 6 is small. To do.

この現象について、従来技術の課題欄の説明で使用した図6、図7を用いて説明する。図6、図7は、従来の方位センサが示す出力軌跡図である。
一般に、2次元空間において3点を円周上にもつ円の中心を求めることと、3次元空間において4点を球面上にもつ球の中心を求めることは、連立方程式を解くという同様な手法を用いることができるので、ここでは説明を簡単にするため2次元で説明する。なお、図6、図7において横軸VxがX軸の磁気センサの出力であり、縦軸VyがY軸の磁気センサ出力を示している。
This phenomenon will be described with reference to FIGS. 6 and 7 used in the description of the problem column of the prior art. 6 and 7 are output trajectory diagrams shown by the conventional direction sensor.
In general, finding the center of a circle with three points on the circumference in two-dimensional space and finding the center of a sphere with four points on the sphere in three-dimensional space are similar methods of solving simultaneous equations. Since it can be used, it will be described in two dimensions for the sake of simplicity. 6 and 7, the horizontal axis Vx indicates the output of the X-axis magnetic sensor, and the vertical axis Vy indicates the output of the Y-axis magnetic sensor.

まず、図6に示すO1点が、真のオフセットであるとする。もし、測定点である3点A、B、Cの内のひとつC点に僅かに誤差がのり原点方向に移動したとすると、図7のようになる。すなわち、C点がC’点に僅かに移動しただけで、算出されるO2点は、真のオフセットO1点とは大きくずれてしまうことが本図面から分かる。この様な場合に、STEP1の処理で、別の点、すなわち図7に示すD点とO2点の距離を計算し、DO2の距離とAO2の距離が同程度でなく大きく異なるので、算出したオフセットであるO2点を信頼性無しと判断し破棄することでき、信頼性の高いオフセットのみを得ることができる。   First, it is assumed that the point O1 shown in FIG. 6 is a true offset. If there is a slight error at one of the three measurement points A, B, and C and the error moves to the origin, the result is as shown in FIG. That is, it can be seen from this drawing that the calculated O2 point is greatly deviated from the true offset O1 point only by slightly moving the C point to the C 'point. In such a case, the processing of STEP 1 calculates another point, that is, the distance between the point D and the point O 2 shown in FIG. 7, and the distance between the DO 2 and the distance AO 2 is not the same but greatly different. It is possible to determine that the point O2 is not reliable and discard it, and it is possible to obtain only a highly reliable offset.

次に、STEP2の処理を説明する。
一般に、オフセットは急激に変化を繰り返すことはない。それは、オフセット9が着磁によるものであるためである。そこで、STEP2におけるオフセット変化量制限手段12では、記憶手段14に記憶されている前回のオフセットと今回のオフセットの差により変化量を算出し、予め設定された範囲を越えて変化量が大きい場合には、変化量が小さくなるようにオフセットを修正する。オフセットの修正は、例えば以下の式を用いることができる。
Next, the processing of STEP2 will be described.
In general, the offset does not change rapidly. This is because the offset 9 is due to magnetization. Therefore, the offset change amount limiting unit 12 in STEP 2 calculates the change amount based on the difference between the previous offset stored in the storage unit 14 and the current offset, and when the change amount is large beyond a preset range. Corrects the offset so that the amount of change is small. For example, the following equation can be used to correct the offset.

前回のオフセットを(Ox1,Oy1,Oz1)とし、今回のオフセットを(Ox2,Oy2,Oz2)とすると、修正されたオフセット(Ox,Oy,Oz)は、(Ox1+(Ox2―Ox1))/k、(Oy1+(Oy2―Oy1))/k、(Oz1+(Oz2―Oz1))/k)と表すことができる。   If the previous offset is (Ox1, Oy1, Oz1) and the current offset is (Ox2, Oy2, Oz2), the corrected offset (Ox, Oy, Oz) is (Ox1 + (Ox2-Ox1)) / k, (Oy1 + (Oy2-Oy1)) / k, (Oz1 + (Oz2-Oz1)) / k).

ただし、上記式におけるkは1以上の定数であり、kを大きくするとオフセット変化量の制限の度合いが大きくなり、kを小さくするその度合いは小さくなる。このように、変化量制限されたオフセットは、順次記憶手段14(図3参照)に記憶される。   However, k in the above equation is a constant equal to or greater than 1. When k is increased, the degree of restriction of the offset change amount is increased, and the degree of decreasing k is decreased. As described above, the offset with the limited amount of change is sequentially stored in the storage unit 14 (see FIG. 3).

このSTEP2の処理は、方位センサを連続して使用している間、オフセットが急激に変化を繰り返すことはないという、実用的な現象に合うようにすることに、特に効力を発揮するものである。   This processing of STEP2 is particularly effective in matching with a practical phenomenon that the offset does not repeat abrupt changes while the azimuth sensor is continuously used. .

次に、STEP3の処理について説明をする。
STEP3は、平均化手段13により、記憶手段14に記憶された複数のオフセットデータの平均を算出して、目的の高精度オフセット10を得ることにある。
Next, the processing of STEP 3 will be described.
STEP 3 is to calculate an average of a plurality of offset data stored in the storage unit 14 by the averaging unit 13 to obtain the target high-precision offset 10.

このSTEP3の処理は、磁気センサ出力6の誤差により、算出するオフセットに同程度の誤差を発生させるということに関して、特に効力を発揮する。この現象について、先に示した図5、図8を用いて説明する。図8は、この現象を説明するための従来の方位センサが示す出力軌跡図である。なお、ここでの説明も、STEP1の説明と同様の理由に
より、2次元系で説明する。
The processing of STEP 3 is particularly effective in that the same error is generated in the calculated offset due to the error of the magnetic sensor output 6. This phenomenon will be described with reference to FIGS. 5 and 8 described above. FIG. 8 is an output locus diagram of a conventional azimuth sensor for explaining this phenomenon. Note that the description here is also a two-dimensional system for the same reason as in STEP 1.

STEP1で説明したと同様に、図5に示すO1点が、真のオフセットであるとする。測定点である3点A、B、Cの内のひとつC点に測定誤差がのり原点方向に移動したとすると、図8のようになる。すなわち、C点がC’点に移動することに連動し、算出されるO3点は真のオフセットO1点から同程度移動する。この様な場合に、STEP3の処理で、測定誤差によるオフセットのばらつきを平均化することにより、その測定誤差を低減することができる。   As described in STEP 1, it is assumed that the point O1 shown in FIG. 5 is a true offset. If a measurement error is applied to one of the three measurement points A, B, and C and moves in the direction of the origin, the result is as shown in FIG. That is, in conjunction with the movement of the C point to the C ′ point, the calculated O3 point moves to the same extent from the true offset O1 point. In such a case, the measurement error can be reduced by averaging the offset variation due to the measurement error in STEP 3.

この様に、上記のSTEP1〜STEP3の処理により、オフセットは真のオフセットに徐々に近づき、高精度オフセット10としてオフセット処理手段4から出力される。   In this way, the offset gradually approaches the true offset by the above-described processing of STEP 1 to STEP 3 and is output from the offset processing means 4 as the high-precision offset 10.

なお、上述したオフセット処理手段では、STEP1〜STEP3まで行う手段として説明をしたが、高精度オフセット10の精度が若干落ちることとなるが、オフセット算出手段3により得られるオフセット9を信頼性判断手段11により信頼性評価し、信頼性が高いオフセットを高精度オフセット10として、方位算出手段5にて方位8を算出する様にしても構わない。また、これに他のオフセット変化量制限手段12、または平均化手段13のいずれかを組み合わせた構成とすれば、上記方法に比べより精度が増すので好ましい形態となる。   The offset processing means described above is described as means for performing STEP 1 to STEP 3, but the accuracy of the high-precision offset 10 is slightly reduced, but the offset 9 obtained by the offset calculation means 3 is used as the reliability judgment means 11. Thus, the azimuth 8 may be calculated by the azimuth calculating means 5 with the offset having high reliability as the high-precision offset 10. In addition, a configuration in which any of the other offset change amount limiting means 12 and the averaging means 13 is combined with this is preferable because the accuracy is increased as compared with the above method.

[動作説明:図1]
次に、本発明の方位センサにおける方位算出手段5の動作について図1を用いて説明する。なお、下記に示す方位算出手段は、磁気センサ出力6とともに傾斜センサ出力7を用いて方位8を算出する方法を示すが、本発明の方位センサはこれに限定されるものではなく、先に示した手順にしたがって高精度オフセット10を得た上で、磁気センサ出力6のみを使って方位算出手段5にて方位8を算出しても構わない。
[Description of operation: Fig. 1]
Next, the operation of the direction calculation means 5 in the direction sensor of the present invention will be described with reference to FIG. The azimuth calculation means shown below shows a method of calculating the azimuth 8 using the tilt sensor output 7 together with the magnetic sensor output 6, but the azimuth sensor of the present invention is not limited to this, and is shown above. After obtaining the high-accuracy offset 10 according to the above procedure, the azimuth 8 may be calculated by the azimuth calculation means 5 using only the magnetic sensor output 6.

まず、方位算出手段5は、磁気センサ出力6から高精度オフセット10を差し引いて地磁気ベクトルを求める。   First, the azimuth calculating means 5 obtains a geomagnetic vector by subtracting the high-precision offset 10 from the magnetic sensor output 6.

次に、機器の傾斜補正を行うため、傾斜センサ出力7から求めた重力方向がZ軸に平行になるように、磁気センサ出力6に対する座標変換を行い、変換後の座標系から見た地磁気ベクトルのX成分とY成分の比より、最終的に真の方位を算出する。   Next, in order to correct the tilt of the device, coordinate conversion is performed on the magnetic sensor output 6 so that the gravitational direction obtained from the tilt sensor output 7 is parallel to the Z axis, and the geomagnetic vector viewed from the converted coordinate system. The true orientation is finally calculated from the ratio of the X component and the Y component.

この座標変換には様々な方法があるが、例えばY軸を中心にβ回転させた後、X軸中心にα回転させる座標変換を用いることができる。この座標変換は一般に知られるように、下記数1により行うことができる。また、数1に示すα、βは、傾斜センサ出力7から求めることができる。

Figure 2007163389
There are various methods for this coordinate conversion. For example, it is possible to use coordinate conversion in which β rotation is performed about the Y axis and then α rotation is performed about the X axis. As is generally known, this coordinate transformation can be performed by the following equation (1). Further, α and β shown in Equation 1 can be obtained from the tilt sensor output 7.
Figure 2007163389

このように、磁気センサ出力6に対する傾斜補正を行うため、機器が傾斜していた場合でも容易に真の方位を算出することができる。   In this way, since the tilt correction is performed on the magnetic sensor output 6, the true azimuth can be easily calculated even when the device is tilted.

そして、本発明の方位センサは、オフセット算出手段3とともにオフセット処理手段4を設けたことにより、誤差を低減した精度の高い高精度オフセット10を算出することができる。そして、高精度オフセット10と、磁気センサ出力6を用いて精度の高い方位8を算出できる。   And the azimuth | direction sensor of this invention can calculate the highly accurate high-precision offset 10 which reduced the error by providing the offset process means 4 with the offset calculation means 3. FIG. Then, the high-precision azimuth 8 can be calculated using the high-precision offset 10 and the magnetic sensor output 6.

また、本発明の方位センサでは、傾斜センサ2を設けることによって、地磁気のみの出力に対する傾斜補正も容易に行うことができ、この方位センサを備えた機器が傾斜している場合であっても、精度の良い方位を算出することができる。   Moreover, in the azimuth sensor of the present invention, by providing the tilt sensor 2, tilt correction for the output of only the geomagnetism can be easily performed, and even when a device equipped with this azimuth sensor is tilted, A highly accurate azimuth can be calculated.

本発明の方位センサは、高精度な方位を求められる機器に適用することができる。特に、携帯型の機器に本発明の方位センサを搭載するのに好適である。   The azimuth sensor of the present invention can be applied to a device that requires a highly accurate azimuth. In particular, it is suitable for mounting the orientation sensor of the present invention on a portable device.

本発明の方位センサを示す構成図である。It is a block diagram which shows the azimuth | direction sensor of this invention. 本発明の方位センサの3次元観測座標系における磁気センサ出力を示す図面である。It is drawing which shows the magnetic sensor output in the three-dimensional observation coordinate system of the direction sensor of this invention. 本発明の方位センサにおけるオフセット処理手段を示す構成図面である。It is a block diagram which shows the offset process means in the direction sensor of this invention. 本発明の方位センサにおけるオフセット処理手段のフローチャートである。It is a flowchart of the offset process means in the direction sensor of this invention. 従来の方位センサが示す出力軌跡図である。It is an output locus | trajectory figure which the conventional direction sensor shows. 従来の方位センサが示す出力軌跡図である。It is an output locus | trajectory figure which the conventional direction sensor shows. 従来の方位センサが示す出力軌跡図である。It is an output locus | trajectory figure which the conventional direction sensor shows. 従来の方位センサが示す出力軌跡図である。It is an output locus | trajectory figure which the conventional direction sensor shows.

符号の説明Explanation of symbols

1 磁気センサ
2 傾斜センサ
3 オフセット算出手段
4 オフセット処理手段
5 方位算出手段
6 磁気センサ出力
7 傾斜センサ出力
8 方位
9 オフセット
10 高精度オフセット
11 信頼性判断手段
12 オフセット変化量制限手段
13 平均化手段
14 記憶手段
DESCRIPTION OF SYMBOLS 1 Magnetic sensor 2 Inclination sensor 3 Offset calculation means 4 Offset processing means 5 Direction calculation means 6 Magnetic sensor output 7 Inclination sensor output 8 Direction 9 Offset 10 High precision offset 11 Reliability judgment means 12 Offset change amount restriction means 13 Average means 14 Storage means

Claims (4)

地磁気を検出し方位を算出する方位センサであって、
地磁気を検出して磁気センサ出力を出力する磁気センサと、
異なる姿勢における前記磁気センサ出力に基づき、1次オフセットを算出するオフセット算出手段と、
前記オフセット算出手段が算出した前記1次オフセットを基準として、前記1次オフセットの算出に使用した姿勢とは異なる姿勢における磁気センサ出力が、予め設定された範囲にあるか否かを判断して、前記予め設定された範囲以外と判断したときの前記1次オフセットを破棄した上で、オフセット補正に有効な2次オフセットを出力する信頼性評価手段を有するオフセット処理手段と、
前記2次オフセットを得た後に、前記磁気センサ出力に対するオフセット補正を行った上で方位を算出する方位算出手段と、
を有することを特徴とする方位センサ。
An orientation sensor that detects geomagnetism and calculates an orientation,
A magnetic sensor that detects geomagnetism and outputs a magnetic sensor output;
Offset calculating means for calculating a primary offset based on the magnetic sensor output in different postures;
With reference to the primary offset calculated by the offset calculating means, it is determined whether the magnetic sensor output in a posture different from the posture used for calculating the primary offset is within a preset range, An offset processing means having a reliability evaluation means for outputting a secondary offset effective for offset correction after discarding the primary offset when determined to be outside the preset range;
After obtaining the secondary offset, an azimuth calculating means for calculating an azimuth after performing offset correction on the magnetic sensor output;
An azimuth sensor comprising:
前記オフセット処理手段は、前記信頼性評価手段によって得られる前記2次オフセットの過去の値に対する今回得られる2次オフセットの変化量を算出し、前記変化量が小さくなる様に前記2次オフセットを修正した3次オフセットを出力するオフセット変化量制限手段を、さらに備えることを特徴とする請求項1に記載の方位センサ。   The offset processing means calculates a change amount of the secondary offset obtained this time with respect to a past value of the secondary offset obtained by the reliability evaluation means, and corrects the secondary offset so that the change amount becomes small. The azimuth sensor according to claim 1, further comprising offset change amount limiting means for outputting the third-order offset. 前記オフセット処理手段は、前記3次オフセットの平均値を算出して4次オフセットを出力する平均手段を、さらに備えることを特徴とする請求項2に記載の方位センサ。   The direction sensor according to claim 2, wherein the offset processing unit further includes an averaging unit that calculates an average value of the third-order offset and outputs a fourth-order offset. 姿勢を検出して傾斜センサ出力を出力する傾斜センサをさらに備え、
前記方位算出手段は、前記磁気センサ出力とともに前記傾斜センサ出力を使って前記方位を得る手段であることを特徴とする請求項1から3のいずれか一項に記載の方位センサ。
A tilt sensor that detects the posture and outputs a tilt sensor output;
The azimuth sensor according to any one of claims 1 to 3, wherein the azimuth calculation means is a means for obtaining the azimuth by using the tilt sensor output together with the magnetic sensor output.
JP2005362578A 2005-12-16 2005-12-16 Direction sensor Pending JP2007163389A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005362578A JP2007163389A (en) 2005-12-16 2005-12-16 Direction sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005362578A JP2007163389A (en) 2005-12-16 2005-12-16 Direction sensor

Publications (1)

Publication Number Publication Date
JP2007163389A true JP2007163389A (en) 2007-06-28

Family

ID=38246445

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005362578A Pending JP2007163389A (en) 2005-12-16 2005-12-16 Direction sensor

Country Status (1)

Country Link
JP (1) JP2007163389A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014038587A (en) * 2012-07-20 2014-02-27 Nintendo Co Ltd Information processing program, information processing device, information processing system, and attitude calculation method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014038587A (en) * 2012-07-20 2014-02-27 Nintendo Co Ltd Information processing program, information processing device, information processing system, and attitude calculation method

Similar Documents

Publication Publication Date Title
JP4908637B2 (en) Physical quantity measuring apparatus and physical quantity measuring method
JP4787359B2 (en) Physical quantity measuring apparatus and physical quantity measuring method
JP4252555B2 (en) Tilt sensor and azimuth measuring device using the same
JPWO2006035505A1 (en) Magnetic sensor control method, control device, and portable terminal device
JPWO2004003476A1 (en) Azimuth measuring device and azimuth measuring method
JP2006113019A (en) Triaxial type electronic compass, and azimuth detecting method using same
JP4590511B2 (en) Electronic compass
KR101006812B1 (en) Magnetic data processing device, magnetic data processing method, and magnetic data processing program
JP2006226810A (en) Azimuth measuring instrument
KR101210394B1 (en) geomagnetism detection device
JPWO2007020702A1 (en) Sensor device
JP4638670B2 (en) Azimuth angle measuring method and azimuth angle measuring apparatus
JP5475873B2 (en) Geomagnetic detector
JP2006275523A (en) Electronic azimuth device and recording medium
JP5498209B2 (en) Magnetic field detector
JP2007163389A (en) Direction sensor
JP5144701B2 (en) Magnetic field detector
JP2006337333A (en) Triaxial electronic compass, and azimuth detecting method using the same
KR100674194B1 (en) Method of controlling magnetic sensor, control device therefor, and portable terminal
KR20130075064A (en) Apparatus and method for calibrating azimuth magnetic sensor having object
JP4947669B2 (en) Azimuth angle measuring method and azimuth angle measuring apparatus
KR20170092356A (en) System for calibrating azimuth of 3-axis magnetic sensor
KR20080053281A (en) Sensor device
JP2011185865A (en) Magnetic field detector
JP5643547B2 (en) Magnetic detector