JP2019078560A - Gyro sensor offset correcting device, offset correction program, and pedestrian autonomous navigation device - Google Patents

Gyro sensor offset correcting device, offset correction program, and pedestrian autonomous navigation device Download PDF

Info

Publication number
JP2019078560A
JP2019078560A JP2017203653A JP2017203653A JP2019078560A JP 2019078560 A JP2019078560 A JP 2019078560A JP 2017203653 A JP2017203653 A JP 2017203653A JP 2017203653 A JP2017203653 A JP 2017203653A JP 2019078560 A JP2019078560 A JP 2019078560A
Authority
JP
Japan
Prior art keywords
gyro sensor
offset
value
sensor
offset value
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
JP2017203653A
Other languages
Japanese (ja)
Inventor
茂郎 大山
Shigero 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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP2017203653A priority Critical patent/JP2019078560A/en
Priority to US16/147,739 priority patent/US10627237B2/en
Priority to CN201811191610.9A priority patent/CN109696178A/en
Publication of JP2019078560A publication Critical patent/JP2019078560A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/10Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration
    • G01C21/12Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning
    • G01C21/16Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning by integrating acceleration or speed, i.e. inertial navigation
    • G01C21/183Compensation of inertial measurements, e.g. for temperature effects
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C25/00Manufacturing, calibrating, cleaning, or repairing instruments or devices referred to in the other groups of this subclass
    • G01C25/005Manufacturing, calibrating, cleaning, or repairing instruments or devices referred to in the other groups of this subclass initial alignment, calibration or starting-up of inertial devices
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C19/00Gyroscopes; Turn-sensitive devices using vibrating masses; Turn-sensitive devices without moving masses; Measuring angular rate using gyroscopic effects
    • G01C19/56Turn-sensitive devices using vibrating masses, e.g. vibratory angular rate sensors based on Coriolis forces
    • G01C19/5776Signal processing not specific to any of the devices covered by groups G01C19/5607 - G01C19/5719
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/10Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration
    • G01C21/12Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning
    • G01C21/16Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning by integrating acceleration or speed, i.e. inertial navigation
    • G01C21/165Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning by integrating acceleration or speed, i.e. inertial navigation combined with non-inertial navigation instruments
    • G01C21/1654Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning by integrating acceleration or speed, i.e. inertial navigation combined with non-inertial navigation instruments with electromagnetic compass

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Electromagnetism (AREA)
  • Signal Processing (AREA)
  • Manufacturing & Machinery (AREA)
  • Gyroscopes (AREA)
  • Navigation (AREA)

Abstract

To provide a gyro sensor offset correcting device with which it is possible to correct the offset value of a gyro sensor in real time.SOLUTION: An offset correcting device (1) of a gyro sensor (2) comprises: an acceleration sensor (3); a geomagnetic sensor (4); a quiescence determination unit (12) for determining whether or not the gyro sensor (2) is in a quiescent state using the output value of the acceleration sensor (3) and the output value of the geomagnetic sensor (4); a difference calculation unit (13) for calculating the offset value of the gyro sensor (2) using the output value of the gyro sensor (2); and an offset value updating unit (14) for taking the offset value calculated by the difference calculation unit (13) using the output value of the gyro sensor (2) that is determined to be in a quiescent state by the quiescence determination unit (12), as a new offset value of the gyro sensor (2).SELECTED DRAWING: Figure 1

Description

本発明は、ジャイロセンサのオフセット補正に関する。   The present invention relates to offset correction of a gyro sensor.

ジャイロセンサは、角速度を検出することができるセンサであり、従来、船や航空機、ロケットの自立航法用途に用いられている。また、近年では、ジャイロセンサの小型省電力化により、スマートフォンやゲームコントローラ、ロボット、デジタルカメラの手ぶれ補正、カーナビなど民生機器にも広く利用されている。中でも民生機器向けのジャイロセンサは振動式ジャイロセンサと呼ばれ、MEMS(Micro Electro Mechanical System)技術を使用して小型省電力化が進んでいる。   A gyro sensor is a sensor capable of detecting an angular velocity, and is conventionally used in a self-contained navigation application of a ship, an aircraft, or a rocket. Also, in recent years, due to the small power saving of the gyro sensor, it is widely used for consumer devices such as smartphones, game controllers, robots, shake correction of digital cameras, car navigation systems and the like. Above all, a gyro sensor for consumer equipment is called a vibration type gyro sensor, and the miniaturization and power saving are progressing using MEMS (Micro Electro Mechanical System) technology.

このような振動式ジャイロセンサにはオフセット値が存在するため、オフセット補正(角速度オフセット補正)を行う必要がある。オフセット値が一定であれば問題ないが、振動式ジャイロセンサの場合、MEMSを振動させることにより熱が発生し、オフセット値が温度ドリフトする。しかもドリフト量は一定ではなく、個体差および軸によって極性も大きさも異なる。ジャイロセンサにて検出された角速度は積分して用いられるため、正確なオフセット値を求めることが重要になる。   Since an offset value exists in such a vibration type gyro sensor, it is necessary to perform offset correction (angular velocity offset correction). There is no problem if the offset value is constant, but in the case of a vibration type gyro sensor, heat is generated by vibrating the MEMS, and the offset value causes temperature drift. Moreover, the drift amount is not constant, and the polarity and the magnitude also differ depending on the individual difference and the axis. Since the angular velocity detected by the gyro sensor is integrated and used, it is important to obtain an accurate offset value.

ジャイロセンサのオフセット補正に関する従来技術として、例えば特許文献1,2がある。特許文献1には、ジャイロセンサからの出力値(角速度値)を蓄積し、コーナー位置を特定してコーナーとコーナーの間を直線であると仮定して、当該区間で直線になるように補正値を算出し、蓄積した出力値を再計算する技術が開示されている。特許文献2には、温度に基づいていくつかの補正値候補を生成し、それぞれについて移動動作の方位角を計算して出現頻度のヒストグラムから最適な補正値を選ぶ技術が開示されている。   There are patent documents 1 and 2 as a prior art about offset amendment of a gyro sensor, for example. In Patent Document 1, the output value (angular velocity value) from the gyro sensor is accumulated, the corner position is specified, and it is assumed that the corner is a straight line, and the correction value is set to be straight in the section. A technique is disclosed for calculating and recalculating the accumulated output value. Patent Document 2 discloses a technique of generating several correction value candidates based on temperature, calculating an azimuth angle of a movement operation for each, and selecting an optimum correction value from a histogram of appearance frequency.

特開2014−98613号公報JP, 2014-98613, A 国際公開第2014/185444号パンフレットWO 2014/185444 pamphlet

しかしながら、上述のような従来技術には、以下のような問題がある。   However, the prior art as described above has the following problems.

特許文献1に記載の技術によれば、少なくともコーナーから次のコーナーまでの区間の角速度値を蓄積して再計算するため、リアルタイム性に欠ける。また、屋内で通路をまっすぐ歩くことを前提としており、緩やかに曲がっている通路や左右に振れながら進んだ場合には正しいオフセット値を算出できない。   According to the technique described in Patent Document 1, since the angular velocity values of at least the section from the corner to the next corner are accumulated and recalculated, the real time property is lacking. In addition, it is assumed that the user walks the aisle indoors, and the correct offset value can not be calculated in the case of a gently curved aisle or when traveling while swinging to the left and right.

特許文献2に記載の技術によれば、上記同様に角速度値を蓄積する必要がありリアルタイム性に欠ける。また、補正値候補として温度に依存したテーブルを用いるため、機器毎にテーブルを作成する必要がある。さらに、移動方向に0度、±45度、±90度、±135度、180度など制限を設けており、限定された空間内で通路に対してまっすぐ歩くことを前提としている。そのため、必ずしも正確なオフセット値を選択できているとは限らない。   According to the technique described in Patent Document 2, it is necessary to accumulate angular velocity values as described above, and the real time property is lacking. In addition, since a table dependent on temperature is used as a correction value candidate, it is necessary to create a table for each device. Furthermore, restrictions such as 0 degree, ± 45 degrees, ± 90 degrees, ± 135 degrees, and 180 degrees are provided in the moving direction, and it is assumed that the user walks straight to the passage in a limited space. Therefore, it is not always possible to select an accurate offset value.

本発明の一態様は、上記課題を鑑みなされたもので、ジャイロセンサの出力値を蓄積して遡って補正するのではなく、リアルタイムでジャイロセンサのオフセット値を補正することができるジャイロセンサのオフセット補正装置を実現することを目的とする。   One aspect of the present invention is made in view of the above problems, and an offset of a gyro sensor capable of correcting an offset value of the gyro sensor in real time, instead of accumulating the output value of the gyro sensor and retroactively correcting it. It aims at realizing a correction device.

上記の課題を解決するために、本発明の一態様に係るジャイロセンサのオフセット補正装置は、加速度センサと、地磁気センサと、前記加速度センサの出力値と前記地磁気センサの出力値とを用いて前記ジャイロセンサが静止状態であるか否かを判定する静止判定部と、前記ジャイロセンサの出力値を用いて前記ジャイロセンサのオフセット値を算出するオフセット値算出部と、前記静止判定部にて静止状態であると判定された前記ジャイロセンサの出力値を用いて前記オフセット値算出部にて算出されたオフセット値を前記ジャイロセンサの新たなオフセット値とするオフセット値更新部とを備える。   In order to solve the above-mentioned subject, the offset amendment device of the gyro sensor concerning one mode of the present invention uses the acceleration sensor, the geomagnetic sensor, the output value of the acceleration sensor, and the output value of the geomagnetic sensor. A stationary determination unit that determines whether or not the gyro sensor is stationary, an offset value calculation unit that calculates an offset value of the gyro sensor using an output value of the gyro sensor, and a stationary state using the stationary determination unit And an offset value updating unit that sets the offset value calculated by the offset value calculation unit using the output value of the gyro sensor determined to be the new offset value of the gyro sensor.

本発明の一態様によれば、ジャイロセンサの出力値を蓄積して遡って補正するのではなく、リアルタイムでジャイロセンサのオフセット値を補正することができるジャイロセンサのオフセット補正装置を提供することができる。   According to one aspect of the present invention, it is possible to provide a gyro sensor offset correction device capable of correcting the gyro sensor offset value in real time, instead of accumulating the gyro sensor output value and performing retroactive correction. it can.

本発明の実施形態に係る角速度オフセット補正装置のブロック図である。It is a block diagram of an angular velocity offset amendment device concerning an embodiment of the present invention. センサ軸と絶対座標軸の関係を示す図である。It is a figure which shows the relationship between a sensor axis and an absolute coordinate axis. 本発明の実施形態に係る差分計算の方法を示した図である。It is the figure which showed the method of the difference calculation which concerns on embodiment of this invention. 本発明の実施形態に係る静止判定計算の方法を示した図である。It is a figure showing the method of the stillness judging calculation concerning the embodiment of the present invention. 本発明の実施形態に係るオフセット補正値更新の方法を示した図である。It is a figure showing the method of offset amendment value updating concerning the embodiment of the present invention. 本発明の実施形態に係るオフセット値補正のフローチャートである。5 is a flowchart of offset value correction according to an embodiment of the present invention. 本発明の実施形態に係る別の角速度オフセット補正装置のブロック図である。FIG. 7 is a block diagram of another angular velocity offset correction device according to an embodiment of the present invention. 本発明の別の実施形態に係るカルマンフィルタの計算方法を示した図である。It is a figure showing a calculation method of a Kalman filter concerning another embodiment of the present invention. 本発明の別の実施形態に係るオフセット値補正のフローチャートである。7 is a flowchart of offset value correction according to another embodiment of the present invention. 本発明の実施形態に係る歩行者自律航法装置のブロック図である。It is a block diagram of a pedestrian autonomous navigation system concerning an embodiment of the present invention.

〔実施形態1〕
以下、本発明の一実施形態について、詳細に説明する。
Embodiment 1
Hereinafter, an embodiment of the present invention will be described in detail.

(オフセット補正装置1の構成)
図1は、本発明の実施形態に係るオフセット補正装置1のブロック図である。図1に示すように、オフセット補正装置1は、ハードウェアとして、ジャイロセンサ2、加速度センサ3、地磁気センサ4およびマイクロコントローラ10を備えている。
(Configuration of offset correction device 1)
FIG. 1 is a block diagram of an offset correction device 1 according to an embodiment of the present invention. As shown in FIG. 1, the offset correction device 1 includes a gyro sensor 2, an acceleration sensor 3, a geomagnetic sensor 4 and a microcontroller 10 as hardware.

ジャイロセンサ2は振動式ジャイロセンサであり、角速度を測定して角速度値(Gx,Gy,Gz)を出力する。加速度センサ3は加速度を測定して加速度値(Ax,Ay,Az)を出力する。地磁気センサ4は地磁気を測定して地磁気値(Mx,My,Mz)を出力する。ジャイロセンサ2、加速度センサ3および地磁気センサ4は、実施形態3に示す歩行者自律方向装置等の同一装置に搭載されており一体で移動する。   The gyro sensor 2 is a vibration type gyro sensor, which measures angular velocity and outputs angular velocity values (Gx, Gy, Gz). The acceleration sensor 3 measures acceleration and outputs acceleration values (Ax, Ay, Az). The geomagnetic sensor 4 measures geomagnetism and outputs geomagnetic values (Mx, My, Mz). The gyro sensor 2, the acceleration sensor 3 and the geomagnetic sensor 4 are mounted on the same device such as the pedestrian autonomous direction device shown in the third embodiment and move integrally.

マイクロコントローラ10には、ジャイロセンサ2から出力された角速度値、加速度センサ3から出力された加速度値、および地磁気センサ4から出力された地磁気値が入力される。マイクロコントローラ10は、入力されたこれらの値を用いて、ジャイロセンサ2のオフセット値を求め、ジャイロセンサ2のオフセット値(角速度オフセット値)を更新する。   The angular velocity value output from the gyro sensor 2, the acceleration value output from the acceleration sensor 3, and the geomagnetic value output from the geomagnetic sensor 4 are input to the microcontroller 10. The microcontroller 10 obtains the offset value of the gyro sensor 2 using these input values, and updates the offset value (angular velocity offset value) of the gyro sensor 2.

マイクロコントローラ10内における処理はソフトウェアで実現され、内部には、姿勢計算部11、静止判定部12、差分計算部(オフセット値算出部)13およびオフセット値更新部14が構築される。   The processing in the microcontroller 10 is realized by software, and an attitude calculation unit 11, a stillness determination unit 12, a difference calculation unit (offset value calculation unit) 13, and an offset value update unit 14 are built inside.

姿勢計算部11は、加速度センサ3から出力された加速度値、地磁気センサ4から出力される地磁気値を用いてジャイロセンサ2のオイラー角を算出する。   The attitude calculation unit 11 calculates the Euler angle of the gyro sensor 2 using the acceleration value output from the acceleration sensor 3 and the geomagnetic value output from the geomagnetic sensor 4.

差分計算部13は、ジャイロセンサの出力値を用いてジャイロセンサのオフセット値を算出するオフセット値算出部である。差分計算部13は、ジャイロセンサ2のオイラー角の一定時間の変化量と、ジャイロセンサ2の出力値(加速度値)を一定時間積分した値との差、を一定時間で割った値をオフセット値として算出する。   The difference calculation unit 13 is an offset value calculation unit that calculates the offset value of the gyro sensor using the output value of the gyro sensor. The difference calculation unit 13 is an offset value obtained by dividing a difference between a constant time change amount of the Euler angle of the gyro sensor 2 and a value obtained by integrating an output value (acceleration value) of the gyro sensor 2 for a predetermined time by a predetermined time. Calculated as

静止判定部12は、加速度センサ3から出力される加速度値と地磁気センサ4から出力される地磁気値との両方を用いてジャイロセンサ2が静止状態であるか否かを判定する。静止判定部12は、加速度値と地磁気値とを用いて求められたジャイロセンサ2のオイラー角を用い、一定時間におけるオイラー角の変化量からジャイロセンサ2の静止状態を判定する。   The stationary state determination unit 12 uses both the acceleration value output from the acceleration sensor 3 and the geomagnetic value output from the geomagnetic sensor 4 to determine whether the gyro sensor 2 is in a stationary state. The stationary state determination unit 12 determines the stationary state of the gyro sensor 2 from the change amount of the Euler angle in a fixed time using the Euler angle of the gyro sensor 2 obtained using the acceleration value and the geomagnetic value.

オフセット値更新部14は、ジャイロセンサ2のオフセット値を更新するものである。オフセット値更新部14は、静止判定部12にて静止状態であると判定されたジャイロセンサ2の出力値を用いて差分計算部13にて算出されたオフセット値をジャイロセンサ2の新たなオフセット値とする。   The offset value update unit 14 updates the offset value of the gyro sensor 2. The offset value update unit 14 uses the output value of the gyro sensor 2 determined to be in the stationary state by the stationary state determination unit 12 to calculate the offset value calculated by the difference calculation unit 13 as the new offset value of the gyro sensor 2 I assume.

(姿勢計算部11のオイラー角の計算)
図2は、センサ軸と絶対座標軸との関係を示す図である。図2を用いて姿勢計算部11によるオイラー角の計算方法を説明する。図2に示すように、オイラー角は3つの角度の組で表され、センサX(sensor-X)軸周りの回転をロール角(roll)、センサY(sensor-Y)軸周りの回転をピッチ角(pitch)、センサZ(sensor-Z)軸周りの回転をヨー角(yaw)とする。加速度値が垂直方向下を指すことを利用して、次式のように、加速度値(Ax,Ay,Az)を用いて第1オイラー角(roll,pitch,yaw)を計算することができる。
(Calculation of Euler angle by posture calculation unit 11)
FIG. 2 is a diagram showing the relationship between sensor axes and absolute coordinate axes. A method of calculating the Euler angle by the posture calculation unit 11 will be described with reference to FIG. As shown in FIG. 2, the Euler angles are represented by a set of three angles, and the rotation around the sensor X (sensor-X) axis is a roll angle, and the rotation around the sensor Y (sensor-Y) axis is a pitch The rotation about the sensor Z (sensor-Z) axis is taken as the yaw angle (yaw). The first Euler angles (roll, pitch, yaw) can be calculated using the acceleration values (Ax, Ay, Az) using the fact that the acceleration values point downward in the vertical direction, as in the following equation.

Figure 2019078560
Figure 2019078560

姿勢計算部11は、ヨー角については地磁気値を用いても算出する。地磁気値が磁北を指すことを利用して、地磁気値よりヨー角を求めることができる。但し、磁北方向は垂直下向きの成分をもつ(伏角)ので、XY平面に写像して計算する。地磁気値(Mx,My,Mz)を用いてヨー角(yaw)を求める式を以下に示す。   The attitude calculation unit 11 calculates the yaw angle also using the geomagnetic value. The yaw angle can be determined from the geomagnetic value by using the fact that the geomagnetic value indicates magnetic north. However, since the magnetic north direction has a vertically downward component (inclination angle), it is calculated by mapping on the XY plane. An equation for determining the yaw angle (yaw) using the geomagnetic values (Mx, My, Mz) is shown below.

Figure 2019078560
Figure 2019078560

加速度値を用いて求めたヨー角(yaw)と区別するために、地磁気値を用いて求めたヨー角はヨー角(yawm)と記載する。また、以降、加速度値を用いて算出されたオイラー角を第1オイラー角と称し、加速度値を用いて算出されたロール角(roll),ピッチ角(pitch)と、地磁気値を用いて求めたヨー角(yawm)とを含むオイラー角(roll,pitch,yawm)を第2オイラー角と称する。 In order to distinguish from the yaw angle (yaw) obtained using the acceleration value, the yaw angle obtained using the geomagnetic value is described as a yaw angle (yaw m ). Also, hereinafter, the Euler angle calculated using the acceleration value is referred to as the first Euler angle, and it is calculated using the roll angle (pitch) calculated using the acceleration value and the geomagnetic value. An Euler angle (roll, pitch, yaw m ) including the yaw angle (yaw m ) is referred to as a second Euler angle.

(差分計算部13の差分計算)
図3は、差分計算部13による差分計算の方法を示す図である。図3に示すように、差分計算部13は、ジャイロセンサ2から出力される角速度値(Gx,Gy,Gz)を時刻tから時刻t+Δtまで積分してオイラー角変化量(Wx,Wy,Wz)を求める。また、差分計算部13は、姿勢計算部11にて算出された第1オイラー角(roll,pitch,yaw)を用いて、時刻tの時の第1オイラー角と時刻t+Δtの時の第1オイラー角の差分(Δroll,Δpitch,Δyaw)を求める。
(Difference calculation of difference calculation unit 13)
FIG. 3 is a diagram showing a method of difference calculation by the difference calculation unit 13. As shown in FIG. 3, the difference calculation unit 13 integrates the angular velocity values (Gx, Gy, Gz) output from the gyro sensor 2 from time t to time t + Δt, and changes the Euler angle change (Wx, Wy, Wz). Ask for Further, the difference calculation unit 13 uses the first Euler angles (roll, pitch, yaw) calculated by the posture calculation unit 11 to generate the first Euler angle at time t and the first Euler angle at time t + Δt. The difference between the angles (Δroll, Δpitch, Δyaw) is determined.

求めたオイラー角変化量(Wx,Wy,Wz)とオイラー角の差分(Δroll,Δpitch,Δyaw)とは、ジャイロセンサ2にオフセット(角速度オフセット)がなければ一致すが、オフセットがあるために差が生じる。ここで、Δtは短い時間であるため、その間のオフセット値は一定であると仮定して上記の差をΔtで割った値をオフセット値とできる。上記Δtは、例えば100msである。   The calculated Euler angle change amount (Wx, Wy, Wz) and the difference between the Euler angles (Δroll, Δpitch, Δyaw) will match if there is no offset (angular velocity offset) in the gyro sensor 2, but there is an offset. Will occur. Here, since Δt is a short time, assuming that the offset value therebetween is constant, a value obtained by dividing the above difference by Δt can be used as the offset value. The Δt is, for example, 100 ms.

つまり、差分計算部13は、オイラー角変化量(Wx,Wy,Wz)と第1オイラー角の差分(Δroll,Δpitch,Δyaw)との差を求め、求めた差(Wx−Δroll,Wy−Δpitch,Wz−Δyaw)をΔtで割った値((Wx−Δroll)/Δt,(Wy−Δpitch)/Δt,(Wz−Δyaw)/Δt)をオフセット値(offset_x,offset_y,offset_z)とする。   That is, the difference calculation unit 13 obtains the difference between the Euler angle change amount (Wx, Wy, Wz) and the difference (Δroll, Δpitch, Δyaw) between the first Euler angles, and the calculated difference (Wx−Δroll, Wy−Δpitch). , Wz−Δyaw) divided by Δt ((Wx−Δroll) / Δt, (Wy−Δpitch) / Δt, (Wz−Δyaw) / Δt) is taken as an offset value (offset_x, offset_y, offset_z).

(静止判定部の静止判定計算)
図4は、静止判定部12による静止判定計算の方法を示す図である。図4に示すように、静止判定部12は、姿勢計算部11において算出された第2オイラー角(roll,pitch,yawm)を用いて、時刻tの時の第2オイラー角と時刻t+Δtの時の第2オイラー角の差分(Δroll,Δpitch,Δyaw)を求める。そして、静止判定部12は、求めた差分(Δroll,Δpitch,Δyaw)が十分に小さい場合、ジャイロセンサ2は静止状態であると判定する。求めた差分が例えば1°である場合に、十分に小さいと判定する。
(Calculation of stationary determination of stationary determination unit)
FIG. 4 is a diagram showing a method of stationary determination calculation by the stationary determination unit 12. As shown in FIG. 4, the stillness determination unit 12 uses the second Euler angles (roll, pitch, yaw m ) calculated by the posture calculation unit 11 to calculate the second Euler angle at time t and the time t + Δt. The difference (Δroll, Δpitch, Δyaw m ) of the second Euler angles is calculated. Then, when the calculated differences (Δroll, Δpitch, Δyaw m ) are sufficiently small, the stationary state determination unit 12 determines that the gyro sensor 2 is in the stationary state. When the calculated difference is, for example, 1 °, it is determined that the difference is sufficiently small.

(オフセット値更新部の更新方法)
図5は、オフセット値更新部14によるオフセット値更新の方法を示す図である。図5に示すように、オフセット値更新部14は、静止判定部12にてジャイロセンサ2が静止状態であると判定されると、姿勢計算部11にて算出されたオフセット値(offset_x,offset_y,offset_z)を用いてジャイロセンサ2のオフセット値を更新する。静止状態でないと判定された時は、オフセット値の更新は行わない。
(How to update the offset value update unit)
FIG. 5 is a diagram showing a method of updating the offset value by the offset value update unit 14. As shown in FIG. 5, when the offset determination unit 12 determines that the gyro sensor 2 is in the stationary state, the offset value update unit 14 calculates the offset value (offset_x, offset_y, The offset value of the gyro sensor 2 is updated using offset_z). The offset value is not updated when it is determined not to be stationary.

(オフセット値補正の処理手順)
図6は、オフセット補正装置1におけるオフセット値補正のフローチャートである。図6に示すように、マイクロコントローラ10は、加速度センサ3から出力される加速度値を用いた第1オイラー角と、地磁気センサ4から出力される地磁気値を用いて求めたヨー角(yaw)を含む第2オイラー角とを算出する(S1、S2)。S1、S2の順は逆でも同時でもよい。
(Processing procedure for offset value correction)
FIG. 6 is a flowchart of offset value correction in the offset correction device 1. As shown in FIG. 6, the microcontroller 10 determines a yaw angle (yaw m ) determined using the first Euler angle using the acceleration value output from the acceleration sensor 3 and the geomagnetic value output from the geomagnetic sensor 4. And the second Euler angles including S.sub.1 and S.sub.2 (S1, S2). The order of S1 and S2 may be reversed or simultaneous.

次に、マイクロコントローラ10は、時刻tの時の第1オイラー角と時刻t+Δtの時の第1オイラー角の差分(Δroll,Δpitch,Δyaw)と、ジャイロセンサ2から出力される角速度値(Gx,Gy,Gz)を時刻tから時刻t+Δtまで積分してオイラー角変化量(Wx,Wy,Wz)を求める(S3,S4)。S3、S4の順は逆でも同時でもよい。次に、マイクロコントローラ10は、S3、S4で求めたオイラー角変化量(Wx,Wy,Wz)と第1オイラー角の差分(Δroll,Δpitch,Δyaw)との差を求め、求めた差をΔtで割った値をオフセット値(offset_x,offset_y,offset_z)とする(S5)。   Next, the microcontroller 10 calculates the difference between the first Euler angle at time t and the first Euler angle at time t + Δt (Δroll, Δpitch, Δyaw) and the angular velocity value (Gx, Gyr and Gz) are integrated from time t to time t + Δt to obtain Euler angle change amounts (Wx, Wy, Wz) (S3, S4). The order of S3 and S4 may be reversed or simultaneous. Next, the microcontroller 10 obtains the difference between the Euler angle change amount (Wx, Wy, Wz) obtained in S3 and S4 and the difference (Δroll, Δpitch, Δyaw) between the first Euler angles, and the obtained difference is Δt The value obtained by dividing by is taken as the offset value (offset_x, offset_y, offset_z) (S5).

次に、マイクロコントローラ10は、時刻tの時の第2オイラー角と時刻t+Δtの時の第2オイラー角の差分(Δroll,Δpitch,Δyaw)を求め(S6)、求めた第2オイラー角の差分(Δroll,Δpitch,Δyaw)が十分に小さいか否かを判定する(S7)。
S7において、十分に小さい場合に、静止状態であると判定し、S8に進んでS5で算出されたオフセット値(offset_x,offset_y,offset_z)を用いてジャイロセンサ2のオフセット値を更新し、S1に戻る。一方、S7において、十分に小さくない場合は、静止状態ではないと判定し、S8に進むことなくS1に戻る。
Next, the microcontroller 10 determines the difference (Δroll, Δpitch, Δyaw m ) between the second Euler angle at time t and the second Euler angle at time t + Δt (S6), and determines the calculated second Euler angle It is determined whether the difference (Δroll, Δpitch, Δyaw m ) is sufficiently small (S7).
In S7, if it is sufficiently small, it is determined that it is in a stationary state, the process proceeds to S8, and the offset value of the gyro sensor 2 is updated using the offset value (offset_x, offset_y, offset_z) calculated in S5, and Return. On the other hand, in S7, when not small enough, it determines with not being in a still state, returns to S1 without progressing to S8.

なお、S6は、上記S3−S5よりも先に行われてもよいし、同時に行われてもよい。また、S6、S7を先に行い、S7で静止状態であると判定した場合に、S3−S5を行い、S8に進んでもよい。   In addition, S6 may be performed before said S3-S5, and may be performed simultaneously. Alternatively, S6 and S7 may be performed first, and if it is determined in S7 that the camera is in the stationary state, S3-S5 may be performed and the process may proceed to S8.

(実施形態の効果)
以上のように、本実施形態に係るオフセット補正装置1においては、加速度センサ3から出力される加速度値と地磁気センサ4から出力される地磁気値とを用いてジャイロセンサ2が静止状態であるか否かを判定し、ジャイロセンサ2が静止状態である場合に、静止状態のジャイロセンサ2から出力される角速度値を用いてジャイロセンサのオフセット値を求め、オフセット値を補正する。
(Effect of the embodiment)
As described above, in the offset correction device 1 according to the present embodiment, whether or not the gyro sensor 2 is in a stationary state using the acceleration value output from the acceleration sensor 3 and the geomagnetic value output from the geomagnetic sensor 4 If the gyro sensor 2 is in the stationary state, the offset value of the gyro sensor is obtained using the angular velocity value output from the gyro sensor 2 in the stationary state, and the offset value is corrected.

これにより、ジャイロセンサ2の出力値を蓄積することなく、リアルタイムにジャイロセンサのオフセット値を補正することができる。   Thus, the offset value of the gyro sensor can be corrected in real time without accumulating the output value of the gyro sensor 2.

上記構成においては、静止判定部12は、地磁気値を用いて算出されたヨー角(yawm)を含む第2オイラー角を用いてジャイロセンサ2の静止状態を判定する。加速度値より求めたヨー角(yaw)では、垂直軸に対しての回転動作を検出することができないが、静止判定には地磁気値より求めたヨー角(yaw)を用いているので、精度の高い静止判定が可能となる。 In the above configuration, the stationary state determination unit 12 determines the stationary state of the gyro sensor 2 using the second Euler angle including the yaw angle (yaw m ) calculated using the geomagnetic value. Although the yaw angle (yaw) determined from the acceleration value can not detect the rotational movement about the vertical axis, it uses the yaw angle (yaw) determined from the geomagnetic value for stationary determination. High stationary determination is possible.

また、上記構成において、差分計算部13は、ジャイロセンサ2の出力値を用いてジャイロセンサ2のオフセット値(角速度オフセット値)を算出するにあたり、ジャイロセンサ2のオイラー角の一定時間(Δt)の変化量と、ジャイロセンサの出力値を一定時間(Δt)積分した値との差、を一定時間(Δt)で割った値をジャイロセンサ2のオフセット値として算出している。   Further, in the above configuration, when the difference calculation unit 13 calculates the offset value (angular velocity offset value) of the gyro sensor 2 using the output value of the gyro sensor 2, the difference between the constant time (Δt) of the Euler angle of the gyro sensor 2 is calculated. A value obtained by dividing the difference between the change amount and the value obtained by integrating the output value of the gyro sensor for a predetermined time (Δt) by the predetermined time (Δt) is calculated as the offset value of the gyro sensor 2.

静止状態のジャイロセンサ2からの出力値は、オフセット値が存在しなければゼロとなるはずであるが実際にはノイズが含まれており、静止状態のジャイロセンサからの出力値=オフセット値とはならない。上記構成のように、オイラー角の一定時間(Δt)の変化量とジャイロセンサの出力値を一定時間(Δt)積分した値との差をとることで、ノイズ成分を除くことができる。   Although the output value from the stationary state gyro sensor 2 should be zero if there is no offset value, it actually contains noise, and the output value from the stationary state gyro sensor = offset value It does not. As in the above configuration, the noise component can be removed by taking the difference between the amount of change for a fixed time (Δt) of the Euler angle and the value obtained by integrating the output value of the gyro sensor for a fixed time (Δt).

また、絶対座標(重力方向上下、東西南北)に対する装置のオイラー角を使用せずにセンサ軸の座標系を使用しているため、上記差を一定時間(Δt)で割ることで、ジャイロセンサのオフセット値を求めることができる。   In addition, since the coordinate system of the sensor axis is used without using the Euler angles of the device with respect to absolute coordinates (vertical direction, up and down, east and west, north and south), the difference is divided by a fixed time (Δt). The offset value can be determined.

さらに、上記構成において、差分計算部13は、角速度値より算出された第1オイラー角を用いているので、オフセット値を精度良く算出することができる。つまり、地磁気センサの出力値(地磁気値)は地磁気が弱いためS/Nが悪く、これに対し、加速度センサの出力値(加速度値)は重力加速度が大きいためS/Nが高い。したがって、地磁気値を使わずに加速度値のみを用いたオイラー角にてオフセット値を算出することが望ましい。   Furthermore, in the above configuration, since the difference calculation unit 13 uses the first Euler angle calculated from the angular velocity value, the offset value can be accurately calculated. That is, the output value (geomagnetic value) of the geomagnetic sensor is poor in S / N because the geomagnetism is weak, whereas the output value (acceleration value) of the acceleration sensor is high in S / N because the gravitational acceleration is large. Therefore, it is desirable to calculate the offset value at the Euler angle using only the acceleration value without using the geomagnetic value.

なお、図1においては、オフセット値を設定できるジャイロセンサ2を用いた構成を記載している。しかしながら、そのような機能を有していないジャイロセンサの場合は、オフセット値のフィードバックをマイクロコントローラ10においてソフト的に行う構成とすればよい。   In addition, in FIG. 1, the structure using the gyro sensor 2 which can set offset value is described. However, in the case of a gyro sensor which does not have such a function, feedback of the offset value may be performed by the microcontroller 10 in a soft manner.

〔実施形態2〕
本発明の他の実施形態について、以下に説明する。なお、説明の便宜上、上記実施形態にて説明した部材と同じ機能を有する部材については、同じ符号を付記し、その説明を繰り返さない。
Second Embodiment
Other embodiments of the present invention are described below. In addition, about the member which has the same function as the member demonstrated in the said embodiment for convenience of explanation, the same code | symbol is appended, and the description is not repeated.

図7は、本実施形態に係るオフセット補正装置1’のブロック図である。図7に示すように、オフセット補正装置1’は、マイクロコントローラ10’が、オフセット値算出部として、差分計算部13に代えてカルマンフィルタ部15を備えている。この点が実施形態1のオフセット補正装置1’と相違する。   FIG. 7 is a block diagram of the offset correction device 1 'according to the present embodiment. As shown in FIG. 7, in the offset correction device 1 ′, the microcontroller 10 ′ includes a Kalman filter unit 15 as an offset value calculation unit, instead of the difference calculation unit 13. This point is different from the offset correction device 1 'of the first embodiment.

(カルマンフィルタ部15の計算方法)
図8は、カルマンフィルタ部15の計算方法を示す図である。図8に示すように、カルマンフィルタ部15は、ジャイロセンサ2の出力値(Gx,Gy,Gz)から状態方程式を生成し、次に生成した状態方程式と第1オイラー角(roll,pitch,yaw)とを用いて観測方程式を生成し、推定のオイラー角(roll’,pitch’,yaw’)とオフセット値(offset_x,offset_y,offset_z)を計算する。
(Calculation method of the Kalman filter unit 15)
FIG. 8 is a diagram showing a calculation method of the Kalman filter unit 15. As shown in FIG. As shown in FIG. 8, the Kalman filter unit 15 generates a state equation from the output values (Gx, Gy, Gz) of the gyro sensor 2, and then generates the state equation and the first Euler angle (roll, pitch, yaw). To generate an observation equation and calculate estimated Euler angles (roll ′, pitch ′, yaw ′) and offset values (offset_x, offset_y, offset_z).

以下に、カルマンフィルタ部15におけるX軸周り(roll)の計算について説明する。なお、Y軸周り(pitch)、Z軸周り(yaw)についても同様である。   Hereinafter, calculation of the X-axis (roll) in the Kalman filter unit 15 will be described. The same applies to the Y-axis (pitch) and the Z-axis (yaw).

時刻tにおける状態xを下記のように定義する。 The state x t at time t is defined as follows.

Figure 2019078560
Figure 2019078560

時刻t+Δtの状態方程式を下記に示す。下記式中のQは状態ノイズである。   The equation of state at time t + Δt is shown below. Q in the following formula is a state noise.

Figure 2019078560
Figure 2019078560

また、観測方程式は下記の通りである。下記式中のRは観測ノイズである。   The observation equation is as follows. R in the following formula is observation noise.

Figure 2019078560
Figure 2019078560

カルマンフィルタ部15の計算を下記に示す。なお、下記式中のIは単位行列である。   The calculation of the Kalman filter unit 15 is shown below. Here, I in the following formula is a unit matrix.

Figure 2019078560
Figure 2019078560

推定のオイラー角(roll’,pitch’,yaw’)は、図7のオフセット値更新部14からジャイロセンサ2へのフィードバックを行わない代わりに、オフセットを考慮したオイラー角として使用することができる。   The estimated Euler angles (roll ', pitch', yaw ') can be used as the Euler angles in consideration of the offset instead of feedback from the offset value update unit 14 of FIG. 7 to the gyro sensor 2.

図9は、オフセット補正装置1’におけるオフセット値補正のフローチャートである。図6のフローチャートにおけるS3−S5に代えて、S11、S12を実施する。S11では、ジャイロセンサ2の出力値(Gx,Gy,Gz)から状態方程式を生成する。S12では、生成した状態方程式と第1オイラー角(roll,pitch,yaw)とを用いて観測方程式を生成し、推定のオイラー角(roll’,pitch’,yaw’)とオフセット値(offset_x,offset_y,offset_z)を計算する。   FIG. 9 is a flowchart of offset value correction in the offset correction device 1 '. S11 and S12 are performed instead of S3-S5 in the flowchart of FIG. In S11, a state equation is generated from the output values (Gx, Gy, Gz) of the gyro sensor 2. In S12, an observation equation is generated using the generated state equation and the first Euler angle (roll, pitch, yaw), and the estimated Euler angle (roll ', pitch', yaw ') and offset value (offset_x, offset_y) , Offset_z).

〔実施形態3〕
本発明の他の実施形態について、以下に説明する。なお、説明の便宜上、上記実施形態にて説明した部材と同じ機能を有する部材については、同じ符号を付記し、その説明を繰り返さない。
Third Embodiment
Other embodiments of the present invention are described below. In addition, about the member which has the same function as the member demonstrated in the said embodiment for convenience of explanation, the same code | symbol is appended, and the description is not repeated.

(歩行者自律航法装置7の構成)
図10は、本実施形態に係る歩行者自律航法装置7の構成を示す。歩行者自律航法装置7は、ハードウェアとして、ジャイロセンサ2、加速度センサ3、地磁気センサ4、マイクロコントローラ20を備えている。マイクロコントローラ20内の処理はソフトウェアで実現されている。マイクロコントローラ20の内部には、角速度オフセット補正部21、第2姿勢計算部22、歩行動作検出部23、移動方向推定部24、歩幅推定部25、座標推定部26が構築される。
(Configuration of the pedestrian autonomous navigation system 7)
FIG. 10 shows a configuration of the pedestrian autonomous navigation system 7 according to the present embodiment. The pedestrian autonomous navigation system 7 includes a gyro sensor 2, an acceleration sensor 3, a geomagnetic sensor 4, and a microcontroller 20 as hardware. The processing in the microcontroller 20 is realized by software. Inside the microcontroller 20, an angular velocity offset correction unit 21, a second posture calculation unit 22, a walking motion detection unit 23, a movement direction estimation unit 24, a stride estimation unit 25, and a coordinate estimation unit 26 are constructed.

前述した実施形態1、2のオフセット補正装置1,1’におけるマイクロコントローラ10,10’の機能は、角速度オフセット補正部21に備えられている。第2姿勢計算部22は、角速度オフセット補正部21にてリアルタイムにオフセット値が補正されるジャイロセンサ2の角速度値を元に、当該歩行者自律航法装置7の姿勢(オイラー角、クォータニオン)を求める。   The functions of the microcontrollers 10 and 10 ′ in the offset correction devices 1 and 1 ′ of the first and second embodiments described above are included in the angular velocity offset correction unit 21. The second attitude calculation unit 22 obtains the attitude (Euler angle, quaternion) of the pedestrian autonomous navigation system 7 based on the angular velocity value of the gyro sensor 2 whose offset value is corrected in real time by the angular velocity offset correction unit 21. .

歩行動作検出部23は、第2姿勢計算部22にて求められた姿勢とジャイロセンサ2の角速度値より歩行動作を検出する。移動方向推定部24は、第2姿勢計算部22にて求められた姿勢とジャイロセンサ2から出力される角速度値より歩いていく方向を推定する。   The walking motion detection unit 23 detects the walking motion from the posture obtained by the second posture calculation unit 22 and the angular velocity value of the gyro sensor 2. The movement direction estimation unit 24 estimates the walking direction from the posture obtained by the second posture calculation unit 22 and the angular velocity value output from the gyro sensor 2.

歩幅推定部25は、第2姿勢計算部22にて求められた姿勢と加速度センサ3から出力される加速度値より1歩の歩幅を推定する。   The stride estimation unit 25 estimates a stride of one step from the posture obtained by the second posture calculation unit 22 and the acceleration value output from the acceleration sensor 3.

座標推定部26は、移動方向推定部24にて推定された歩行方向と歩幅推定部25にて推定された歩幅から座標を推定し、歩行の軌跡を計算する。   The coordinate estimation unit 26 estimates coordinates from the walking direction estimated by the moving direction estimation unit 24 and the stride estimated by the stride estimation unit 25 and calculates a trajectory of walking.

歩行者自律航法装置7は、スマートフォンやタブレット、ロボット、行動ロガーに搭載される。   The pedestrian autonomous navigation system 7 is mounted on a smartphone, a tablet, a robot, or an action logger.

〔ソフトウェアによる実現例〕
オフセット補正装置1,1’における、差分計算部13、姿勢計算部11、静止判定部12、オフセット値更新部14、カルマンフィルタ部15、および歩行者自律航法装置7における、角速度オフセット補正部21、第2姿勢計算部22、歩行動作検出部23、移動方向推定部24、歩幅推定部25、座標推定部26は、集積回路(ICチップ)等に形成された論理回路(ハードウェア)によって実現してもよいし、ソフトウェアによって実現してもよい。
[Example of software implementation]
The difference calculating unit 13, the attitude calculating unit 11, the stillness determining unit 12, the offset value updating unit 14, the Kalman filter unit 15, and the angular velocity offset correcting unit 21 in the pedestrian autonomous navigation device 7 in the offset correction device 1 or 1 ' 2 posture calculation unit 22, walking motion detection unit 23, movement direction estimation unit 24, stride estimation unit 25, and coordinate estimation unit 26 are realized by a logic circuit (hardware) formed in an integrated circuit (IC chip) or the like It may be realized by software.

後者の場合、オフセット補正装置1,1’、歩行者自律航法装置7は、各機能を実現するソフトウェアであるプログラムの命令を実行するコンピュータを備えている。このコンピュータは、例えば少なくとも1つのプロセッサ(制御装置)を備えていると共に、上記プログラムを記憶したコンピュータ読み取り可能な少なくとも1つの記録媒体を備えている。そして、上記コンピュータにおいて、上記プロセッサが上記プログラムを上記記録媒体から読み取って実行することにより、本発明の目的が達成される。上記プロセッサとしては、例えばCPU(Central Processing Unit)を用いることができる。上記記録媒体としては、「一時的でない有形の媒体」、例えば、ROM(Read Only Memory)等の他、テープ、ディスク、カード、半導体メモリ、プログラマブルな論理回路などを用いることができる。また、上記プログラムを展開するRAM(Random Access Memory)などをさらに備えていてもよい。また、上記プログラムは、該プログラムを伝送可能な任意の伝送媒体(通信ネットワークや放送波等)を介して上記コンピュータに供給されてもよい。なお、本発明の一態様は、上記プログラムが電子的な伝送によって具現化された、搬送波に埋め込まれた値信号の形態でも実現され得る。   In the latter case, the offset correction devices 1 and 1 'and the pedestrian autonomous navigation device 7 are provided with a computer that executes instructions of a program that is software for realizing each function. The computer includes, for example, at least one processor (control device) and at least one computer readable storage medium storing the program. Then, in the computer, the processor reads the program from the recording medium and executes the program to achieve the object of the present invention. For example, a CPU (Central Processing Unit) can be used as the processor. As the above-mentioned recording medium, a tape, a disk, a card, a semiconductor memory, a programmable logic circuit or the like can be used besides “a non-temporary tangible medium”, for example, a ROM (Read Only Memory). In addition, a RAM (Random Access Memory) or the like for developing the program may be further provided. The program may be supplied to the computer via any transmission medium (communication network, broadcast wave, etc.) capable of transmitting the program. Note that one aspect of the present invention can also be realized in the form of a value signal embedded in a carrier wave, in which the program is embodied by electronic transmission.

〔まとめ〕
本発明の態様1に係るジャイロセンサのオフセット補正装置は、ジャイロセンサ2のオフセット補正装置1、1’であって、加速度センサ3と、地磁気センサ4と、前記加速度センサ3の出力値と前記地磁気センサ4の出力値とを用いて前記ジャイロセンサ2が静止状態であるか否かを判定する静止判定部12と、前記ジャイロセンサ2の出力値を用いて前記ジャイロセンサ2のオフセット値を算出するオフセット値算出部(差分計算部13、カルマンフィルタ部15)と、前記静止判定部12にて静止状態であると判定された前記ジャイロセンサ2の出力値を用いて前記オフセット値算出部にて算出されたオフセット値を前記ジャイロセンサ2の新たなオフセット値とするオフセット値更新部14とを備えている。
[Summary]
The offset correction device for the gyro sensor according to aspect 1 of the present invention is the offset correction device 1 or 1 ′ for the gyro sensor 2, and the acceleration sensor 3, the geomagnetic sensor 4, the output value of the acceleration sensor 3, and the geomagnetism Stillness determination unit 12 that determines whether or not the gyro sensor 2 is in a stationary state using an output value of the sensor 4 and an offset value of the gyro sensor 2 is calculated using an output value of the gyro sensor 2 It is calculated by the offset value calculation unit using the offset value calculation unit (difference calculation unit 13, Kalman filter unit 15) and the output value of the gyro sensor 2 determined to be in the stationary state by the stationary state determination unit 12. And an offset value updating unit 14 that sets the offset value as a new offset value of the gyro sensor 2.

上記構成によれば、静止判定部12は、加速度センサ3の出力値(加速度値)と地磁気センサ4の出力値(地磁気値)とを用いてジャイロセンサ2の静止状態を判定する。加速度値より重力方向の変化を検出することができ、地磁気値より水平方向の変化を検出することができる。重力方向および水平方向共に変化が無い場合、ジャイロセンサ2は静止状態であると判定することができる。   According to the above configuration, the stillness determination unit 12 determines the stillness of the gyro sensor 2 using the output value (acceleration value) of the acceleration sensor 3 and the output value (geomagnetic value) of the geomagnetic sensor 4. Changes in the direction of gravity can be detected from acceleration values, and changes in the horizontal direction can be detected from geomagnetic values. If there is no change in both the gravity direction and the horizontal direction, it can be determined that the gyro sensor 2 is in the stationary state.

オフセット値算出部は、ジャイロセンサ2の出力値を用いてジャイロセンサ2のオフセット値(角速度オフセット値)を算出する。オフセット値更新部14は、静止判定部12にて静止状態であると判定されたジャイロセンサ2から出力される角速度値を用いて算出されたオフセット値をジャイロセンサ2の新たなオフセット値としてオフセット値を更新する。   The offset value calculation unit calculates the offset value (angular velocity offset value) of the gyro sensor 2 using the output value of the gyro sensor 2. The offset value updating unit 14 uses the offset value calculated using the angular velocity value output from the gyro sensor 2 determined to be in the stationary state by the stationary state determination unit 12 as the new offset value of the gyro sensor 2. Update

静止状態のジャイロセンサ2からの出力値は、オフセット値が存在しなければゼロとなるはずであり、静止状態のジャイロセンサ2からの出力値を用いてオフセット値を算出できる。   The output value from the stationary state gyro sensor 2 should be zero if there is no offset value, and the offset value can be calculated using the output value from the stationary state gyro sensor 2.

これにより、ジャイロセンサ2の出力値を蓄積することなく、リアルタイムにジャイロセンサ2のオフセット値を補正することができる。   Thus, the offset value of the gyro sensor 2 can be corrected in real time without accumulating the output value of the gyro sensor 2.

本発明の態様2に係るジャイロセンサのオフセット補正装置は、上記態様1において、前記オフセット値算出部は、前記ジャイロセンサ2のオイラー角の一定時間の変化量と、前記ジャイロセンサ2の出力値を前記一定時間積分した値との差、を前記一定時間で割った値を前記オフセット値として算出する構成である。   In the offset correction device for a gyro sensor according to aspect 2 of the present invention, in the aspect 1, the offset value calculation unit calculates an amount of change of Euler angle of the gyro sensor 2 for a fixed time and an output value of the gyro sensor 2 A value obtained by dividing the difference between the constant time integrated value and the value obtained by the constant time integration is calculated as the offset value.

静止状態のジャイロセンサ2からの出力値は、オフセット値が存在しなければゼロとなるはずであるが実際にはノイズが含まれており、静止状態のジャイロセンサ2からの出力値=オフセット値とはならない。上記構成のように、オイラー角の一定時間(Δt)の変化量とジャイロセンサ2の出力値を一定時間(Δt)積分した値との差をとることで、ノイズ成分を除くことができる。   The output value from the stationary state gyro sensor 2 should be zero if there is no offset value, but actually contains noise, and the output value from the stationary state gyro sensor 2 = offset value It must not be. As in the above configuration, the noise component can be removed by taking the difference between the amount of change of the Euler angle for a fixed time (Δt) and the value obtained by integrating the output value of the gyro sensor 2 for a fixed time (Δt).

また、絶対座標(重力方向上下、東西南北)に対する装置のオイラー角を使用せずにセンサ軸の座標系を使用しているため、上記差を一定時間(Δt)で割ることで、ジャイロセンサ2のオフセット値を求めることができる。   In addition, since the coordinate system of the sensor axis is used without using the Euler angles of the device with respect to the absolute coordinates (vertical direction up and down, east and west north and south), the gyro sensor 2 can be obtained by dividing the difference by a fixed time (Δt). The offset value of can be determined.

本発明の態様3に係るジャイロセンサのオフセット補正装置は、上記態様1において、前記オフセット値算出部はカルマンフィルタ部15を有し、前記ジャイロセンサ2から出力される角速度値から状態方程式を生成し、該状態方程式と前記ジャイロセンサ2のオイラー角とを用いて観測方程式を生成し、該観測方程式を用いて前記オフセット値を算出する構成である。   In the offset correction device for a gyro sensor according to aspect 3 of the present invention, in the aspect 1, the offset value calculation unit has a Kalman filter unit 15, and generates a state equation from angular velocity values output from the gyro sensor 2. An observation equation is generated using the state equation and the Euler angle of the gyro sensor 2, and the offset value is calculated using the observation equation.

上記態様2と同様に、ジャイロセンサ2の出力値のノイズ成分を除いてオフセット値を算出できる。   Similar to the second aspect, the offset value can be calculated excluding the noise component of the output value of the gyro sensor 2.

本発明の態様4に係るジャイロセンサのオフセット補正装置は、上記態様2,3において、オフセット値算出部は、前記加速度センサ3の出力値を用いて前記ジャイロセンサ2のオイラー角を算出する構成である。   In the offset correction device for a gyro sensor according to a fourth aspect of the present invention, in the second and third aspects, the offset value calculation unit calculates an Euler angle of the gyro sensor 2 using an output value of the acceleration sensor 3. is there.

地磁気センサ4の出力値(地磁気値)は地磁気が弱いためS/Nが悪い。これに対し、加速度センサ3の出力値(加速度値)は重力加速度が大きいためS/Nが高い。上記構成によれば、地磁気センサ4の出力値は使わずに加速度センサ3の出力値のみをオイラー角の計算に使用しているので、オフセット値を精度良く算出することができる。   The output value of the geomagnetic sensor 4 (geomagnetic value) is poor in S / N because the geomagnetism is weak. On the other hand, the output value (acceleration value) of the acceleration sensor 3 has a high S / N because the gravitational acceleration is large. According to the above configuration, only the output value of the acceleration sensor 3 is used for the calculation of the Euler angle without using the output value of the geomagnetic sensor 4, it is possible to calculate the offset value with high accuracy.

本発明の態様5に係る歩行者自律航法装置は、上記態様1から4のジャイロセンサのオフセット補正装置を備える構成である。   A pedestrian autonomous navigation system according to aspect 5 of the present invention is configured to include the offset correction device for the gyro sensor according to aspects 1 to 4 above.

上記構成によれば、リアルタイムで角速度オフセット値を補正できるため、携帯型省電力の歩行者自立航法装置を実現できる。   According to the above configuration, since the angular velocity offset value can be corrected in real time, it is possible to realize a portable power saving pedestrian autonomous navigation device.

本発明の各態様に係るオフセット補正装置は、コンピュータによって実現してもよく、この場合には、コンピュータを上記オフセット補正装置が備える各部(ソフトウェア要素)として動作させることにより上記オフセット補正装置をコンピュータにて実現させるオフセット補正装置のオフセット補正プログラム、およびそれを記録したコンピュータ読み取り可能な記録媒体も、本発明の範疇に入る。   The offset correction device according to each aspect of the present invention may be realized by a computer. In this case, the computer is operated as each unit (software element) included in the offset correction device to cause the computer to execute the offset correction device. An offset correction program of an offset correction apparatus to be realized and a computer readable recording medium recording the same also fall within the scope of the present invention.

本発明は上述した各実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能であり、異なる実施形態にそれぞれ開示された技術的手段を適宜組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。さらに、各実施形態にそれぞれ開示された技術的手段を組み合わせることにより、新しい技術的特徴を形成することができる。   The present invention is not limited to the above-described embodiments, and various modifications can be made within the scope of the claims, and embodiments obtained by appropriately combining the technical means disclosed in the different embodiments. Is also included in the technical scope of the present invention. Furthermore, new technical features can be formed by combining the technical means disclosed in each embodiment.

1、1’ オフセット補正装置
2 ジャイロセンサ
3 加速度センサ
4 地磁気センサ
7 歩行者自律航法装置
10、10’、20 マイクロコントローラ
11 姿勢計算部
12 静止判定部
13 差分計算部(オフセット値算出部)
14 オフセット値更新部
15 カルマンフィルタ部(オフセット値算出部)
21 角速度オフセット補正部
22 第2姿勢計算部
23 歩行動作検出部
24 移動方向推定部
25 歩幅推定部
26 座標推定部
1, 1 'Offset correction device 2 Gyro sensor 3 Acceleration sensor 4 Geomagnetic sensor 7 Pedestrian autonomous navigation device 10, 10', 20 Micro controller 11 Posture calculation unit 12 Rest determination unit 13 Difference calculation unit (Offset value calculation unit)
14 Offset value update unit 15 Kalman filter unit (offset value calculation unit)
21 angular velocity offset correction unit 22 second posture calculation unit 23 walking motion detection unit 24 movement direction estimation unit 25 stride estimation unit 26 coordinate estimation unit

Claims (7)

ジャイロセンサのオフセット補正装置であって、
加速度センサと、
地磁気センサと、
前記加速度センサの出力値と前記地磁気センサの出力値とを用いて前記ジャイロセンサが静止状態であるか否かを判定する静止判定部と、
前記ジャイロセンサの出力値を用いて前記ジャイロセンサのオフセット値を算出するオフセット値算出部と、
前記静止判定部にて静止状態であると判定された前記ジャイロセンサの出力値を用いて前記オフセット値算出部にて算出されたオフセット値を前記ジャイロセンサの新たなオフセット値とするオフセット値更新部と
を備えることを特徴とするオフセット補正装置。
A gyro sensor offset correction device,
An acceleration sensor,
Geomagnetic sensor,
A rest determination unit that determines whether the gyro sensor is in a rest state using the output value of the acceleration sensor and the output value of the geomagnetic sensor;
An offset value calculation unit that calculates an offset value of the gyro sensor using an output value of the gyro sensor;
Offset value update unit for setting the offset value calculated by the offset value calculation unit using the output value of the gyro sensor determined to be in the stationary state by the stillness determination unit as a new offset value of the gyro sensor And an offset correction device.
前記オフセット値算出部は、前記ジャイロセンサのオイラー角の一定時間の変化量と、前記ジャイロセンサの出力値を前記一定時間積分した値との差、を前記一定時間で割った値を前記オフセット値として算出することを特徴とする請求項1に記載のオフセット補正装置。   The offset value calculation unit is a value obtained by dividing a difference between a constant time change amount of the Euler angle of the gyro sensor and a value obtained by integrating the output value of the gyro sensor for the predetermined time by the predetermined time. The offset correction device according to claim 1, wherein the offset correction device is calculated as: 前記オフセット値算出部はカルマンフィルタ部を有し、前記ジャイロセンサから出力される角速度値から状態方程式を生成し、該状態方程式と前記ジャイロセンサのオイラー角とを用いて観測方程式を生成し、該観測方程式を用いて前記オフセット値を算出することを特徴とする請求項1に記載のオフセット補正装置。   The offset value calculation unit has a Kalman filter unit, generates a state equation from the angular velocity value output from the gyro sensor, generates an observation equation using the state equation and the Euler angle of the gyro sensor, and the observation The offset correction device according to claim 1, wherein the offset value is calculated using an equation. オフセット値算出部は、前記加速度センサの出力値を用いて前記ジャイロセンサのオイラー角を算出することを特徴とする請求項2又は3に記載のオフセット補正装置。   The offset correction device according to claim 2, wherein the offset value calculation unit calculates an Euler angle of the gyro sensor using an output value of the acceleration sensor. 請求項1から4の何れか1項に記載のジャイロセンサのオフセット補正装置を備えることを特徴とする歩行者自律航法装置。   A pedestrian autonomous navigation system comprising the gyro sensor offset correction device according to any one of claims 1 to 4. 請求項1から4の何れか1項に記載のジャイロセンサのオフセット補正装置としてコンピュータを機能させるためのオフセット補正プログラムであって、上記静止判定部、上記オフセット値算出部および上記オフセット値更新部としてコンピュータを機能させるためのオフセット補正プログラム。   An offset correction program for causing a computer to function as an offset correction device for a gyro sensor according to any one of claims 1 to 4, comprising: the stillness determination unit, the offset value calculation unit, and the offset value update unit Offset correction program to make the computer work. 請求項6に記載のオフセット補正プログラムを記録したコンピュータ読み取り可能な記録媒体。   The computer-readable recording medium which recorded the offset correction program of Claim 6.
JP2017203653A 2017-10-20 2017-10-20 Gyro sensor offset correcting device, offset correction program, and pedestrian autonomous navigation device Pending JP2019078560A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2017203653A JP2019078560A (en) 2017-10-20 2017-10-20 Gyro sensor offset correcting device, offset correction program, and pedestrian autonomous navigation device
US16/147,739 US10627237B2 (en) 2017-10-20 2018-09-29 Offset correction apparatus for gyro sensor, recording medium storing offset correction program, and pedestrian dead-reckoning apparatus
CN201811191610.9A CN109696178A (en) 2017-10-20 2018-10-12 Offset correction device, offset correction program, pedestrian's dead-reckoning analyzer and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017203653A JP2019078560A (en) 2017-10-20 2017-10-20 Gyro sensor offset correcting device, offset correction program, and pedestrian autonomous navigation device

Publications (1)

Publication Number Publication Date
JP2019078560A true JP2019078560A (en) 2019-05-23

Family

ID=66170498

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017203653A Pending JP2019078560A (en) 2017-10-20 2017-10-20 Gyro sensor offset correcting device, offset correction program, and pedestrian autonomous navigation device

Country Status (3)

Country Link
US (1) US10627237B2 (en)
JP (1) JP2019078560A (en)
CN (1) CN109696178A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020245902A1 (en) * 2019-06-04 2020-12-10 三菱電機株式会社 Azimuth estimation device, gyro system, azimuth estimation method, and program
WO2021010068A1 (en) * 2019-07-16 2021-01-21 ソニー株式会社 Mobile body control device and mobile body control method
JP2021192012A (en) * 2020-06-05 2021-12-16 株式会社東芝 Sensor and electronic device

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7025215B2 (en) * 2018-01-05 2022-02-24 ローム株式会社 Positioning system and positioning method
JP7406340B2 (en) * 2019-10-18 2023-12-27 株式会社小松製作所 Acceleration detection device, work machine and acceleration detection method
CN111197983B (en) * 2020-01-15 2022-12-27 重庆邮电大学 Three-dimensional pose measurement method based on human body distribution inertia node vector distance measurement
JP2022085112A (en) * 2020-11-27 2022-06-08 日本航空電子工業株式会社 Measurement device, measurement method, measurement program, and recording medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08178687A (en) * 1994-12-26 1996-07-12 Pioneer Electron Corp Posture detecting method, and device therefor
JP2002023919A (en) * 2000-07-07 2002-01-25 Olympus Optical Co Ltd Posture detection device and operation input device
WO2010001970A1 (en) * 2008-07-02 2010-01-07 独立行政法人産業技術総合研究所 Moving body posture angle processing device
JP2013054009A (en) * 2011-09-06 2013-03-21 Toyota Motor Corp Posture estimation device, posture estimation method and posture estimation program
JP2014202617A (en) * 2013-04-05 2014-10-27 セイコーエプソン株式会社 Positioning device, integrated circuit device, electronic device and program
US20150241245A1 (en) * 2014-02-23 2015-08-27 PNI Sensor Corporation Orientation estimation utilizing a plurality of adaptive filters
JP2017040115A (en) * 2015-08-20 2017-02-23 日建リース工業株式会社 Auxiliary tool for cloth plate connection and clamp for brace as well as prefabricated scaffolding using these
JP2017049115A (en) * 2015-09-02 2017-03-09 カシオ計算機株式会社 Electronic equipment, sensor calibration method for electronic equipment, and sensor calibration program for electronic equipment

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2166433B1 (en) * 2007-07-09 2017-03-15 Sony Corporation Electronic apparatus and method for controlling the same
US9772815B1 (en) * 2013-11-14 2017-09-26 Knowles Electronics, Llc Personalized operation of a mobile device using acoustic and non-acoustic information
US9753054B2 (en) * 2012-02-21 2017-09-05 Panasonic Intellectual Property Management Co., Ltd. Inertial force sensor
US9360497B2 (en) * 2012-08-29 2016-06-07 Blackberry Limited Controlling sensor use on an electronic device
US9326058B2 (en) * 2012-09-26 2016-04-26 Sony Corporation Control method of mobile terminal apparatus
JP5956914B2 (en) 2012-11-14 2016-07-27 Kddi株式会社 Angular velocity measuring device, calibration program and method having calibration function of gyro sensor
WO2014185444A1 (en) 2013-05-14 2014-11-20 独立行政法人産業技術総合研究所 Estimated-azimuth-angle assessment device, mobile terminal device, control program for estimated-azimuth-angle assessment device, computer-readable storage medium, control method for estimated-azimuth-angle assessment device, and positioning device
CN103968827B (en) * 2014-04-09 2017-11-28 北京信息科技大学 A kind of autonomic positioning method of wearable body gait detection
CN104764451A (en) * 2015-04-23 2015-07-08 北京理工大学 Target posture tracking method based on inertia and geomagnetic sensor
US9846040B2 (en) * 2015-05-08 2017-12-19 Sharp Laboratories Of America, Inc. System and method for determining the orientation of an inertial measurement unit (IMU)
JP6555033B2 (en) * 2015-09-11 2019-08-07 株式会社Jvcケンウッド Angular velocity sensor correction apparatus and angular velocity sensor correction method
CN106813679B (en) * 2015-12-01 2021-04-13 佳能株式会社 Method and device for estimating attitude of moving object
CN105509740A (en) * 2015-12-31 2016-04-20 广州中海达卫星导航技术股份有限公司 Measuring method and module for attitude of agriculture machinery vehicle
KR102350199B1 (en) * 2016-01-05 2022-01-14 삼성전자주식회사 Method and apparatus for estimating position in terminal
JP2017140115A (en) * 2016-02-08 2017-08-17 テルモ株式会社 Spine treatment method, and catheter for spine treatment
CN113804191B (en) * 2016-11-17 2024-03-19 格兰菲智能科技有限公司 Mobile device and method for calculating gesture of mobile device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08178687A (en) * 1994-12-26 1996-07-12 Pioneer Electron Corp Posture detecting method, and device therefor
JP2002023919A (en) * 2000-07-07 2002-01-25 Olympus Optical Co Ltd Posture detection device and operation input device
WO2010001970A1 (en) * 2008-07-02 2010-01-07 独立行政法人産業技術総合研究所 Moving body posture angle processing device
US20110105957A1 (en) * 2008-07-02 2011-05-05 Masakatsu Kourogi Moving body posture angle processing device
JP2013054009A (en) * 2011-09-06 2013-03-21 Toyota Motor Corp Posture estimation device, posture estimation method and posture estimation program
JP2014202617A (en) * 2013-04-05 2014-10-27 セイコーエプソン株式会社 Positioning device, integrated circuit device, electronic device and program
US20150241245A1 (en) * 2014-02-23 2015-08-27 PNI Sensor Corporation Orientation estimation utilizing a plurality of adaptive filters
JP2017040115A (en) * 2015-08-20 2017-02-23 日建リース工業株式会社 Auxiliary tool for cloth plate connection and clamp for brace as well as prefabricated scaffolding using these
JP2017049115A (en) * 2015-09-02 2017-03-09 カシオ計算機株式会社 Electronic equipment, sensor calibration method for electronic equipment, and sensor calibration program for electronic equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020245902A1 (en) * 2019-06-04 2020-12-10 三菱電機株式会社 Azimuth estimation device, gyro system, azimuth estimation method, and program
JPWO2020245902A1 (en) * 2019-06-04 2021-10-14 三菱電機株式会社 Azimuth estimation device, gyro system, azimuth estimation method and program
JP7066062B2 (en) 2019-06-04 2022-05-12 三菱電機株式会社 Azimuth estimation device, gyro system, azimuth estimation method and program
WO2021010068A1 (en) * 2019-07-16 2021-01-21 ソニー株式会社 Mobile body control device and mobile body control method
JP7484915B2 (en) 2019-07-16 2024-05-16 ソニーグループ株式会社 MOBILE BODY CONTROL DEVICE AND MOBILE BODY CONTROL METHOD
JP2021192012A (en) * 2020-06-05 2021-12-16 株式会社東芝 Sensor and electronic device

Also Published As

Publication number Publication date
US20190120627A1 (en) 2019-04-25
US10627237B2 (en) 2020-04-21
CN109696178A (en) 2019-04-30

Similar Documents

Publication Publication Date Title
JP2019078560A (en) Gyro sensor offset correcting device, offset correction program, and pedestrian autonomous navigation device
US10197587B2 (en) Device and method for using time rate of change of sensor data to determine device rotation
JP5397915B2 (en) Attitude angle processing device for moving body
US9939273B2 (en) Attitude estimating device, attitude estimating method, and storage medium
CN108731664B (en) Robot state estimation method, device, computer equipment and storage medium
JP2012173190A (en) Positioning system and positioning method
US20150286279A1 (en) Systems and methods for guiding a user during calibration of a sensor
CN110109551B (en) Gesture recognition method, device, equipment and storage medium
KR20200091709A (en) Electronic apparatus and control method thereof
Ayub et al. Pedestrian direction of movement determination using smartphone
TW201709025A (en) Device for integrating position, gesture, and wireless transmission
EP3227634B1 (en) Method and system for estimating relative angle between headings
CN106708088B (en) Coordinate calculation method and device, flight control method and system and unmanned aerial vehicle
CN113218389B (en) Vehicle positioning method, device, storage medium and computer program product
CN108592902B (en) Positioning equipment, positioning method and system based on multiple sensors and mechanical arm
CN109866217B (en) Robot mileage positioning method, device, terminal equipment and computer storage medium
CN109690449B (en) Positioning determination techniques for virtual reality systems
CN110645976B (en) Attitude estimation method of mobile robot and terminal equipment
Lee et al. A sequential orientation kalman filter for AHRS limiting effects of magnetic disturbance to heading estimation
CN106931965B (en) Method and device for determining terminal posture
CN108225368B (en) Step counting device and step counting method
JP6014711B2 (en) Mobile devices and autonomous navigation calculation
JP2015099153A (en) Portable device and autonomous navigation calculation method
CN106123901B (en) A kind of localization method and device
JP5176537B2 (en) Motion sensing device, motion sensing method, and motion sensing circuit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200917

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210714

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210727

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20220208