WO2012111413A1 - 地磁気応用機器 - Google Patents

地磁気応用機器 Download PDF

Info

Publication number
WO2012111413A1
WO2012111413A1 PCT/JP2012/051929 JP2012051929W WO2012111413A1 WO 2012111413 A1 WO2012111413 A1 WO 2012111413A1 JP 2012051929 W JP2012051929 W JP 2012051929W WO 2012111413 A1 WO2012111413 A1 WO 2012111413A1
Authority
WO
WIPO (PCT)
Prior art keywords
measurement point
geomagnetic
measurement
value
points
Prior art date
Application number
PCT/JP2012/051929
Other languages
English (en)
French (fr)
Inventor
本蔵 義信
克彦 土田
英児 加古
竜二 正木
Original Assignee
アイチ・マイクロ・インテリジェント株式会社
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 アイチ・マイクロ・インテリジェント株式会社 filed Critical アイチ・マイクロ・インテリジェント株式会社
Priority to EP12747123.3A priority Critical patent/EP2660561B1/en
Priority to US13/983,308 priority patent/US8698503B2/en
Publication of WO2012111413A1 publication Critical patent/WO2012111413A1/ja

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01VGEOPHYSICS; GRAVITATIONAL MEASUREMENTS; DETECTING MASSES OR OBJECTS; TAGS
    • G01V3/00Electric or magnetic prospecting or detecting; Measuring magnetic field characteristics of the earth, e.g. declination, deviation
    • G01V3/40Electric or magnetic prospecting or detecting; Measuring magnetic field characteristics of the earth, e.g. declination, deviation specially adapted for measuring magnetic field characteristics of the earth
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C17/00Compasses; Devices for ascertaining true or magnetic north for navigation or surveying purposes
    • G01C17/38Testing, calibrating, or compensating of compasses
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R33/00Arrangements or instruments for measuring magnetic variables
    • G01R33/0023Electronic aspects, e.g. circuits for stimulation, evaluation, control; Treating the measured signals; calibration
    • G01R33/0035Calibration of single magnetic sensors, e.g. integrated calibration

Definitions

  • the present invention relates to a geomagnetic application device that measures geomagnetism using a magnetic sensor and uses the measured value.
  • the present invention relates to an electronic compass, an air mouse, a magnetic gyroscope, AR (augmented reality, extended). It also relates to a portable device having a function such as a sense of reality. And even if the azimuth sphere consisting of the measurement points obtained by the triaxial geomagnetic sensor is not a true sphere but an elliptical sphere, for example, because the sensitivity of the triaxial geomagnetic sensor is different from each other.
  • the present invention relates to a geomagnetism application device capable of measuring a direction in which a correct geomagnetism application device is directed by performing a calibration method.
  • Geomagnetic vector such as an electronic compass equipped with a magnetic sensor that detects geomagnetism and performing orientation measurement based on the geomagnetic vector detected by the magnetic sensor, or an air mouse that allows operation on a computer screen by changing the direction in the air
  • the geomagnetism application equipment which measured the result and used the result is used.
  • the electronic compass advances the destination on the screen of a mobile phone or the like. It can be used to determine the direction of travel when performing navigation to guide the direction.
  • an air mouse with a built-in magnetic sensor can be operated on a computer screen based on the orientation of the mouse calculated by the geomagnetism detected at that time by rotating in the air.
  • the rotation axis can be calculated based on the detection result of geomagnetism, and the rotation angle and angular velocity can be calculated. In this case as well, it is very important to accurately calculate the azimuth from the calculated geomagnetism. It is. Since the geomagnetism can be used for various purposes as described above, the measured geomagnetic vector is required to be accurate.
  • geomagnetism applied devices there are many portable devices such as mobile phones, portable game machines, tablet PCs, etc. that are carried and used, but since magnetized electronic parts such as speakers are present inside them,
  • the built-in magnetic sensor detects a magnetic field obtained by combining the geomagnetism with the magnetic field generated from these electronic components. Therefore, a calibration process is required to correct an error (offset) caused by a magnetic field generated from an electronic component or the like inside the geomagnetic application device.
  • the geomagnetic application device can be in various posture states by using the change in the posture of the geomagnetism application device when the user operates the geomagnetism application device for some purpose, or by forcing a specific rotation operation in some cases.
  • the measurement data of the magnetic sensor was collected, and the offset value was estimated based on the measurement data.
  • the locus forms a sphere.
  • This sphere is called an azimuth sphere, and the center of the azimuth sphere corresponds to the offset of the magnetic sensor. Therefore, the calibration of the offset is nothing but to obtain the center point of the azimuth sphere from the measured values of geomagnetism measured in various directions and postures and to adopt it as a new offset value.
  • the radius of the azimuth sphere corresponds to the strength of geomagnetism.
  • each of the three-axis magnetic sensors incorporated in the geomagnetism application device has the same sensitivity, and both the three-axis sensors output the same output voltage to the same magnitude of the geomagnetic vector. It is assumed that it will be obtained.
  • the azimuth sphere is a true sphere having a constant radius regardless of the azimuth.
  • the present invention enables accurate offset correction even when the azimuth sphere is an elliptical sphere instead of a true sphere, and the measurement point that enables offset correction with less azimuth error by selecting fewer measurement points.
  • the object is to provide a new geomagnetic application device having a selection procedure.
  • the present invention is a geomagnetic application device that measures the geomagnetism and uses the measured value of the geomagnetism
  • An orthogonally arranged three-axis magnetic sensor for detecting, as orthogonal three-axis component data, a three-axis component of a geomagnetic vector that changes as the geomagnetic application device moves and changes in posture
  • a measurement point acquisition unit that acquires a predetermined number of geomagnetic vectors by the three-axis magnetic sensor and stores the acquired data in a measurement point storage unit
  • Calibration means for calibrating the offset of the three-axis magnetic sensor; Comprising azimuth calculating means for correcting the geomagnetic vector by the offset calibration value obtained based on the calibrating means and calculating the azimuth facing the geomagnetic application device,
  • the calibration means is The measurement point consisting of at least six points of the geomagnetic vector is selected from the data group stored in the measurement point storage unit by the measurement point acquisition means, and the selected measurement point is stored in the offset calculation
  • Measuring point selection means for offset calculation Based on the six or more measurement points stored in the offset calculation measurement point storage unit, the ellipsoidal sphere equation is solved to obtain the center coordinates of the elliptic sphere, and the offset value calculation stored in the offset calibration value storage unit With means, The offset calculation measurement point selection means selects at least six points having the maximum and minimum component values for each of three orthogonal axes from the data group stored in the measurement point storage unit. It is configured as The offset value calculating means is a geomagnetic application device that calculates parameters for determining an elliptical sphere that is an azimuth sphere from data of selected measurement points.
  • the user brings the geomagnetism application equipment, the orientation changes while moving in a bag, pocket, etc., the orientation change while operating while looking at the screen, depending on the case Is a range that does not place an excessive burden on the user, for example, by using the posture change of geomagnetic application equipment during forced rotation operation such as having the figure 8 operated once or several times, etc.
  • a plurality of magnetic vector detection values are obtained using a magnetic sensor.
  • measurement points are selected from among the plurality of obtained detection values so that at least the points where the component values are maximum and minimum (total of 6 points) are included for each axis component of the 3-axis orthogonal coordinate system.
  • the center point of the azimuth sphere is calculated from the equation of the selected measurement point and the elliptic sphere.
  • the geomagnetism applied device referred to in the present invention refers to all products that measure geomagnetism as described in the title of the invention and use the measured value for some purpose. That is, as long as the geomagnetism is used, it is essential to obtain the offset value in common regardless of the application and correct the detected value of the geomagnetic vector.
  • Specific examples of applied products include, for example, an electronic compass that calculates azimuth using geomagnetism and displays it on a screen, a mobile device such as a mobile phone that performs position navigation using GPS information, and the like.
  • the current position is specified and the current position information is displayed on the screen AR (Augmented Reality), the change in the attitude of the geomagnetic application device is judged from the geomagnetism, and the rotation axis, rotation angle and rotation angular velocity are obtained.
  • An expression gyro, an air mouth, etc. are mentioned.
  • the change in the attitude of the geomagnetic application device described above changes greatly depending on the behavior change process of the user who uses it.
  • the geomagnetic application device acquires the geomagnetic vector in various directions in the three-dimensional space.
  • FIG. 1 is a partial perspective view of a mobile phone equipped with an electronic compass function, which is an example of a geomagnetic application device in Embodiment 1.
  • FIG. The block diagram of the electronic compass which is an example of the geomagnetic application apparatus in Example 1.
  • FIG. The figure which showed the detected value of a magnetic vector, and the position of the center point before and behind correction
  • FIG. 1 is a perspective view of a triaxial magnetic sensor in Embodiment 1.
  • FIG. 1 is a perspective view of a triaxial magnetic sensor in Embodiment 1.
  • the offset calculation measuring point selection means selects any two of the three orthogonal axes, determines two axes which are virtual coordinate axes inclined by 30 to 60 degrees with respect to the two axes, and After further selecting the point where the component value of the coordinate axis is maximum and minimum, it is stored in the measurement point storage unit for offset calculation, and a parameter for determining an elliptical sphere that is an azimuth sphere is calculated based on the selected measurement point Is preferred.
  • the calculation of the center point of the ellipsoidal sphere is more accurate when the measurement points in as many directions as possible are used for the center point calculation. Accordingly, in claim 2, in addition to the point where the component values of the three orthogonal axes selected in claim 1 are the maximum and minimum, a virtual tilted 30-60 degrees with any two of the three orthogonal axes The coordinate points of the two virtual coordinate axes are additionally selected from the points stored in the measurement point storage unit, and the points at which the component values of the two virtual coordinate axes are maximum and minimum are additionally selected. The center coordinates of the ellipsoidal sphere are obtained using the measurement points (when there is no overlap with the measurement point selected in item 1). Thereby, the calculation accuracy of the center coordinates of the elliptic sphere can be further improved.
  • the inclination between the arbitrarily selected two axes and the three orthogonal axes is preferably 40 to 50 degrees, more preferably 45 degrees.
  • the direction of the tilt angle may be an axis rotated in a direction on a plane including the selected two axes, or may be an axis tilted in a direction inclined with respect to the plane including the selected two axes. This is because there is no difference in the effect of improving the calculation accuracy regardless of which means is employed.
  • the measurement point selection unit for offset calculation excludes the measurement point selected by the measurement point selection unit for offset calculation according to claim 1 or 2 from the data group stored in the measurement point storage unit. Take out each measured point from the data, and measure the taken measurement point for offset calculation only when the distance from all the measurement points already selected and stored in the offset calculation measurement point storage unit is greater than or equal to the specified value It is preferable to repeatedly perform the procedure of newly storing in the point storage unit while changing the predetermined reference value to a smaller value until the stored number reaches a predetermined number.
  • the measurement points including the data group including the points where the axis components of the respective orthogonal axes selected for offset calculation in claim 1 or claims 1 and 2 are the maximum and minimum are used. It is necessary to add measurement points on the bearing sphere in the direction that is still missing. Therefore, in claim 3, only the measurement points that satisfy the condition that the distances from all the measurement points already selected from the measurement point storage unit and stored in the offset calculation measurement point storage unit are not less than a predetermined value, It is characterized in that it is selected in addition to the already selected measurement points, and finally the center coordinates of the ellipsoid are obtained using all the selected measurement points.
  • a predetermined threshold value as a selection condition is determined, and measurement points that have not yet been selected are taken out from the measurement point storage unit one by one, and the distance between this point and all the measurement points that have already been selected. Calculate Then, only when the calculated distances to all measurement points are equal to or greater than a predetermined threshold value, they are newly stored in the offset calculation measurement point storage unit. This operation is performed until the number of selected measurement points reaches a predetermined number while changing the predetermined threshold value little by little for all unselected measurement points.
  • the measurement point selection process described above limits the range of measurement points initially stored in the measurement point storage unit, it does not deviate from a specific area on the azimuth sphere and varies on the azimuth sphere. Since the measurement points located in any direction can be reliably selected, the center point calculation accuracy can be reliably increased efficiently with a small number of measurement points.
  • the offset value calculation means calculates an elliptical sphere parameter by a least square method based on the selected measurement point.
  • Each measured geomagnetic vector contains an error. Therefore, by obtaining the parameters of the elliptic sphere equation by the least square method using a plurality of selected measurement points, it has the effect of canceling out the error values included in each measurement point, so the accuracy is high.
  • An elliptical sphere that is an azimuth sphere can be obtained.
  • an operation instruction for requesting a rotation operation is displayed on the screen of the geomagnetism application device, and the measurement point acquisition unit is implemented during the subsequent rotation operation.
  • -Users do not always use functions that require measurement results of geomagnetic vectors, such as an electronic compass function, while bringing geomagnetic application equipment. And even if the user does not directly operate the geomagnetism application device, for example, if the geomagnetism application device is a mobile phone, since it does not know when there is an incoming call or mail, Brought in a bag or pocket. Therefore, when the user changes the direction during the action, the direction of the geomagnetism applied device such as a mobile phone also changes. Further, when an incoming mail is received, the direction of the geomagnetism applied device further changes in the process of taking out from the pocket. Therefore, normally, measurement points in various directions can be acquired by utilizing the naturally occurring change in the posture of the geomagnetic application device without forcing the user to operate.
  • an operation instruction screen for requesting a rotation operation can be displayed on the screen of an applied product such as a portable device, and the user can perform the operation. Thereby, necessary data can be reliably acquired in a short time.
  • each axis component data of three axes orthogonal in real time using the acquired measurement point is calculated for all three axes on the condition that a predetermined number of measurement points are obtained when the measurement points that are equal to or greater than the predetermined reference value are obtained. It is preferable to display on the screen that the rotation operation has been completed.
  • the rotation operation performed by the user according to claim 5 may vary in the rotation direction depending on the user, and depending on how the operation is performed, there may be a case where measurement points are hardly acquired in some directions on the elliptical sphere. There is sex. Therefore, in order to check whether sufficient measurement points can be obtained to obtain the center point of the ellipsoidal sphere, data is acquired during the rotation operation, and the maximum and minimum values of each axis component of the three orthogonal axes in real time. Is obtained and compared with a predetermined reference value.
  • the execution of the measurement point acquisition means is terminated, and this can be displayed on the screen of the geomagnetic application device, which means that no further rotation operation is required. Thereby, it is possible to reliably acquire the measurement points necessary for accurately obtaining the center point of the elliptic sphere during the user's rotation operation.
  • the difference between the maximum value and the minimum value of the axis components of all three orthogonal axes is preferably checked in the same manner even if the rotation operation is not forced as in claim 5, and the standard can be satisfied. It is of course possible to check whether or not the measurement point has been acquired. Even in this case, if it can be determined that sufficient measurement points have been obtained, a message indicating that the execution of the measurement point acquisition means has been completed, or conversely, sufficient measurement points have not been acquired yet. Of course, it is also possible to display the guidance and to continue the data acquisition.
  • the reference point when acquiring the geomagnetic vector sequentially, the reference point is first acquired, and then a point that is more than a predetermined distance from the reference point can be acquired.
  • the acquisition means to store the limited points acquired in the measurement point storage unit and store the measurement points separated by a predetermined distance or more in the measurement point storage unit with the latest stored measurement point as the reference point Is preferred.
  • the azimuth calculating means obtains the sensitivity of each of the three-axis magnetic sensors based on the length of the principal axis obtained by obtaining an elliptic sphere equation, and corrects the value of the geomagnetic vector corrected based on the obtained sensitivity. Based on this, it is preferable to calculate the direction in which the geomagnetic application device is directed. When calculating the azimuth with high accuracy, it is necessary to perform correction so that the sensitivities of the orthogonal three-axis magnetic sensors are the same and then use the values of the respective axis components after offset correction.
  • the length of the principal axis of the three orthogonal axes can be obtained by obtaining the elliptic sphere equation from the selected measurement points as already described, the sensitivity of the three orthogonal axes is corrected based on the value. From the component values of each axis, it is possible to calculate the direction in which the geomagnetism applied device is directed. Using the obtained azimuth data, it can be applied not only to an electronic compass but also to various uses.
  • Example 1 Hereinafter, an embodiment in which the present invention is applied to an electronic compass built in a portable device will be described as an embodiment of the present invention.
  • An electronic compass according to an embodiment of the present invention will be described with reference to FIGS.
  • the electronic compass 1 of this example is provided in a portable device 2.
  • the electronic compass 1 calculates the direction in which the mobile device 2 faces while correcting the influence of the internal magnetic field of the mobile device 2.
  • the electronic compass 1 includes a three-axis magnetic sensor 3, a measurement point acquisition unit 4, an offset calculation measurement point selection unit 5, an offset value calculation unit 6, and an azimuth calculation unit 7.
  • the triaxial magnetic sensor 3 detects geomagnetism as a magnetic vector M in a triaxial orthogonal coordinate system fixed to the portable device 2.
  • the measurement point acquisition means 4 uses the posture change when the user moves with the portable device 2 or directly holds it in the hand, and the geomagnetic vector data when the portable device 2 is in various posture states. Obtained by the three-axis magnetic sensor 3. At this time, every time a measurement point that is separated to some extent is obtained, it is stored in the measurement point storage unit 8 so that an accurate offset value can be obtained by an offset value calculation means described later by acquiring fewer measurement points. It is preferable to acquire the measurement points while efficiently selecting them.
  • the offset measurement point selection means 5 is a measurement point that satisfies a predetermined condition from the data group stored in the measurement point storage unit 8 in order to select a measurement point at which the center point of the ellipsoid can be accurately calculated. And the geomagnetic vector data relating to the measurement point is stored in the offset calculation measurement point storage unit 9.
  • the offset value calculation means 6 uses the geomagnetic vector data stored in the offset calculation measurement point storage unit 9 to solve the elliptic sphere equation and obtain the coordinates of the center point. An offset value that is an influence of a magnetic vector other than the geomagnetic field is calculated.
  • the azimuth calculation means 7 is based on the offset value obtained by the offset value calculation means 6 and the length of the principal axis of the elliptic sphere obtained by solving the elliptic sphere equation, that is, the sensitivity for each axis of the three-axis magnetic sensor. It corrects the geomagnetic vector data acquired by the three-axis magnetic sensor, and calculates the direction in which the geomagnetism application device faces. The details will be described below.
  • the mobile device 2 includes a three-axis magnetic sensor 3 and a microcomputer 100.
  • a plurality of electronic components 200 are mounted.
  • a magnetic field is generated inside the portable device 2 by the electronic component 200, and the triaxial magnetic sensor 3 is affected by this magnetic field.
  • the mobile device 2 includes a display unit 20.
  • the direction to which the geomagnetic application device is directed is displayed based on the direction calculated by the electronic compass of the present invention.
  • the map around the current position can be displayed by adjusting the direction so that the upward direction of the screen is the traveling direction based on the calculated direction.
  • the microcomputer 100 includes a CPU 10, a ROM 11, a RAM 12, an I / O 14, and a line 13 that connects them.
  • the ROM 11 stores a program 11p.
  • the RAM 12 is assigned a memory that can store the acquired measurement point data or the selected measurement point, and the measurement point storage unit 8 serves as a memory that stores the measurement points obtained as a result of executing the program 11p.
  • the offset calculation measurement point storage unit 9 and the unselected measurement point storage unit 16 are allocated. Then, the CPU 10 reads and executes the program 11p of the ROM 11 to realize the measurement point acquisition unit 4, the offset calculation measurement point selection unit 5, the offset value calculation unit 6, and the azimuth calculation unit 7 of this example.
  • the triaxial magnetic sensor 3 detects a magnetic vector, for example, every several milliseconds, and transmits the detected value to the microcomputer 100.
  • the triaxial magnetic sensor 3 is constituted by a magneto-impedance sensor element 30 as shown in FIG. That is, the three-axis magnetic sensor 3 causes the three magneto-impedance sensor elements 30 to be in three-axis directions (X-axis direction, Y-axis direction, and Z-axis direction) in which the respective magnetic sensing directions are orthogonal to each other. It is formed by arranging.
  • the center point O ′ of the azimuth sphere 15 of the triaxial magnetic sensor 3 is the origin O of the triaxial magnetic sensor 3 as shown in FIG. If the sensitivity of the magnetic sensor 3 on each axis is different due to the influence of magnetized soft magnetic parts, manufacturing variations, and the like, an elliptical sphere is formed.
  • the OO ′ vector represents a deviation between the origin O of the three-axis orthogonal coordinate system and the center point O ′ of the azimuth sphere 15. If the center point O ′ of the azimuth sphere can be accurately calculated, the detection value (OP vector) of the three-axis magnetic sensor 3 affected by the internal magnetic field can be corrected using the following formula, and the influence of the internal magnetic field can be reduced. The detection value (O′P vector) of the three-axis magnetic sensor 3 that is not received can be obtained. Thereby, it becomes possible to calculate the azimuth
  • the present invention employs a means for selecting a measurement point that can obtain the center point of the elliptical sphere most accurately from a small number of measurement points.
  • the measurement point acquisition means 4 first, acquisition of geomagnetic vector data that is a candidate for a measurement point suitable for solving the elliptic sphere equation, that is, the measurement point acquisition means 4 is executed.
  • the electronic compass function is not always used, but the user has time to acquire the measurement point after turning on the power and before using the electronic compass function.
  • the measurement point is automatically acquired by using the change in the posture of the portable device 2 when it is directed in various directions while being stored in the bag or pocket in the meantime, or when performing e-mail or telephone operation.
  • a guidance requesting a rotation operation may be displayed on the screen 20 of the mobile device 2. good.
  • magnetic vector data in a state where the portable device is directed in various directions is acquired by the three-axis magnetic sensor 3 and stored in the measurement point storage unit 8.
  • the user may or may not be in the middle of performing the rotation operation of the mobile device 2. Even if the magnetic vector is continuously acquired in a state in which the posture of the portable device 2 is not changed, a plurality of measurement points having substantially the same value can be continuously acquired. Therefore, after storing one piece of geomagnetic vector data in the measurement point storage unit 8, the distance on the azimuth sphere between the latest stored data and the newly acquired measurement point is calculated, and this is greater than or equal to a predetermined value. Only in this case, it is preferable to newly store the geomagnetic vector data in the measurement point storage unit 8.
  • the memory allocated as the measurement point storage unit 8 can be used efficiently, and the time for selecting an offset calculation measurement point, which will be described later, can be shortened.
  • a measurement point can be newly stored.
  • the measurement point acquisition unit 4 is terminated when the number of measurement points stored in the measurement point storage unit reaches a predetermined number.
  • the predetermined number of measurement points varies depending on the required accuracy and the like, but can be 60 points, for example. Of course, it is possible to further increase the offset accuracy.
  • the posture of the mobile device 2 may be biased in a specific direction.
  • the measurement point is also biased to a specific position on the azimuth sphere. Therefore, the center point of the elliptic sphere cannot be obtained with high accuracy. Therefore, for all the data stored in the measurement point storage unit 8, the maximum value and the minimum value are calculated for the component values for each of the three orthogonal axes in real time, and when these values are not equal to or greater than a predetermined value, Furthermore, it is more preferable to continue storing the measurement points or to display on the screen 20 that the accuracy may be lowered.
  • the predetermined value can be set to 500 mG.
  • the offset calculation measurement point selection means 5 first selects the point where the component value for each of the three orthogonal axes is the maximum and the point where the component value is the minimum.
  • FIG. 5 shows an example of the position of the measurement point when the azimuth sphere is viewed from the direction in which the Z-axis is orthogonal to the paper surface.
  • the measurement point A has the maximum X-axis component value
  • the minimum measurement point B has the maximum Y-axis component value
  • the minimum measurement point D is selected and stored in the measurement point storage unit 9 for offset calculation.
  • the measurement point E point at which the axis component value of the Z axis is the maximum and the measurement point F point at which the axis component value is minimum are selected and stored in the offset calculation measurement point storage unit 9 in the same manner.
  • the selected measurement point is preferably stored in the offset calculation measurement point storage unit 9 and deleted from the measurement point storage unit 8 at the same time. With the above selection, six measurement points are selected.
  • a measurement point is selected in addition to the above six points by the following method.
  • the point where the component value for each of the three orthogonal axes of the magnetic sensor is the maximum and the point where the component value is the minimum is selected.
  • the point where the component value of is the maximum and the point where the component value is the minimum are selected.
  • two of the three orthogonal axes, the X axis and the Y axis are selected, and the virtual orthogonal axes X ′ axis and Y ′ axis that are inclined by 45 ° are selected.
  • the point where the component values of the X ′ axis and the Y ′ axis are the maximum and the minimum is selected.
  • FIG. 6 two of the three orthogonal axes, the X axis and the Y axis, are selected, and the virtual orthogonal axes X ′ axis and Y ′ axis that are inclined by 45 ° are selected.
  • the points where the component values on the X ′ axis are maximum and minimum are the G point and H point, and the points where the component values on the Y ′ axis are maximum and minimum are the I point and J point. . These four points are stored in the offset calculation measurement point storage unit 9.
  • the X axis and the Y axis are selected as arbitrary two axes, but other two axes may be used.
  • the virtual axis is set by rotating the tilting direction on the plane including the X axis and the Y axis, but it is of course possible to set the virtual axis by tilting in the other direction.
  • the angle of inclination when setting the virtual axis is optimally 45 °, but can be selected and set between 30 ° and 60 °. With the above selection, 10 measurement points for offset calculation can be selected.
  • the number of measurement points selected so far is not 10 points but 9 points or less.
  • the final number of measurement points selected is a predetermined measurement. The number of points may be selected.
  • the measurement points not yet selected for offset calculation in the selection of the 10 measurement points so far are stored in the unselected measurement point storage unit 16 (step S1). Then, the data of one arbitrary point (excluding the points where steps S3 and S4 have already been completed with the same distance reference value) are taken out from the unselected measurement point storage unit 16 (step S2), and the taken measurement is taken. The distance between the point and all the points already selected for offset calculation is calculated (step S3).
  • step S4 it is checked whether the calculated distances from all the already selected measurement points are equal to or greater than a predetermined reference value.
  • a predetermined reference value e.g., a predetermined reference value
  • the extracted measurement points are newly stored in the offset calculation measurement point storage unit 9 and at the same time, the data is deleted from the unselected measurement point storage unit 16 (Step S5), it is checked whether the number of selected measurement points has reached a predetermined number (Step S6). If the predetermined number has been reached, the process ends. If not, the process proceeds to Step S7. . If the distance between any of the already selected measurement points is less than the reference value in step S4, the process proceeds to step S7 without doing anything.
  • step S7 it is confirmed whether or not all unselected measurement point storage units have been checked with the currently set distance reference value. If all the data checks have been completed, the distance reference value is set. The value is changed to a smaller value (step S8), and the process returns to step S2. Otherwise, the procedure returns to step S2 again without changing the distance reference value, and the same steps are repeated.
  • the measurement points By selecting the measurement points according to the procedure described above, of course, it is limited to the range of data stored in the first measurement point storage unit 8, but it is not biased to a specific area on the azimuth sphere, and the direction Measurement points can be reliably selected in various states on the sphere. Therefore, it is possible to reliably select a combination of measurement points from which the center point of the ellipsoid can be obtained with the highest accuracy among the obtained measurement points.
  • the center point calculation accuracy improves more when the number of measurement points to be finally selected is larger, but if the number exceeds a certain number, the accuracy improvement effect will be reduced even if more points are selected. Since the amount of calculation increases and the processing time becomes long, it is preferable to set the number to about 15 to 20 points including the 10 measurement points described above. In this embodiment, the number of selections is 18 points.
  • the reference value of the distance is not particularly limited, but it can be said that the initial value is 300 mG and the value is decreased by 25 mG, for example.
  • Equation 2 Equation 2
  • the parameter of the elliptic sphere that is an unknown is obtained by solving this by the method of least squares.
  • Equation 4 In order to obtain a parameter value that can minimize the value of Equation 3, if all the six parameters are partially differentiated and Equation 3 is set to 0, simultaneous equations consisting of the six equations can be obtained. (Equation 4)
  • this equation is a non-linear simultaneous equation
  • six parameters can be obtained by performing a convergence calculation by a known method for obtaining a solution of the non-linear simultaneous equation (bisection method, Newton-Raphson method).
  • OffsetX, OffsetY, and OffsetZ which are offset values of the orthogonal three axes, are obtained, and when the azimuth calculation is performed thereafter, it corresponds to the obtained offset value of the magnetic vector and the sensitivity of the three-axis magnetic sensor.
  • the data before correction (Xn, Yn, Zn) is corrected as shown in Equation 5, and the azimuth is calculated from the data after correction (Xn ′, Yn ′, Zn ′).
  • the sensor output of any one of the three-axis magnetic sensors is stored in an environment where the magnitude of the geomagnetism is known in advance, and the sensitivity of the reference magnetic sensor is grasped and obtained using this value. It is preferable to correct the length of the main axis of the elliptic sphere. By this correction, it is possible to select the correct measurement point and calculate the azimuth regardless of the geomagnetic state of the place where the offset calculation measurement point is acquired.
  • the point at which each axis component value of the orthogonal three axes becomes the maximum and minimum is selected from the measurement points of the geomagnetic vector measured by the three-axis magnetic sensor, and any two of the orthogonal three axes ( In the present example, a total of 10 points are first selected from the points where the component values of the respective axes of the X axis and the Y axis) and the virtual orthogonal axis inclined by 45 ° are maximum and minimum.
  • measurement points that are more than a predetermined reference value apart from all the other selected points including the above ten points are selected, and a total of 18 measurement points are selected.
  • the case of an electronic compass has been described as an example.However, regardless of the electronic compass, the geomagnetism is detected by a magnetic sensor, and various physical quantities such as azimuth are calculated based on the detection results. Similarly, this technique can be used, that is, if the application is other than an electronic compass, for example, even in the case of an air mouse, the direction of the mouse is detected by the same method, and this technique is used to provide high accuracy. By obtaining the offset value, the direction of the mouse can be accurately calculated, and operations on the computer screen can be performed in the air.
  • the number of selected measurement points is 18 points, and after selecting a point where the component values of the three orthogonal axes are maximum and minimum and a point where the component value of the virtual axis is maximum and minimum, the processing is as shown in FIG. Eight more measurement points were selected in the step.
  • the present embodiment is an example in the case where importance is attached to offset correction by simpler processing than accuracy, and an ellipsoidal sphere is selected from 10 measurement points without selecting 8 measurement points according to the steps shown in FIG. This is a case where the center point is obtained and the direction is calculated.
  • the method for obtaining the equation of the elliptic sphere after selecting the measurement point and the method for calculating the azimuth are exactly the same as in the first embodiment.
  • the accuracy of the offset value is slightly inferior to that of the first embodiment, there is an advantage that the calculation process can be performed in a short time.
  • Example 3 The present embodiment is an embodiment in the case where the calculation time is to be further shortened compared to the second embodiment, and the offset calculation is performed by selecting only six measurement points at which the component values of the three orthogonal axes are maximum and minimum. It is an example. Since six equations can be obtained by substituting the six measurement points into the above-described elliptic sphere equation (Equation 1), the equation using the values of the measurement points is solved as it is instead of using the least square method described above. Thus, six unknowns can be obtained.
  • the offset value and the length of the main axis obtained in this example are inferior in accuracy to those in Example 1 and Example 2, but the 6 selection points used for the calculation are at least on the azimuth sphere, although the selection number is small. It is almost impossible to think that the position is biased to only a specific position, and from the selection method, it can be considered as an optimal selection method as a method of solving an equation only by selecting six points. And by obtaining from only 6 points, although it is slightly inferior in accuracy compared to the first embodiment etc., the calculation processing is greatly reduced, and in addition to the effect that the processing time is shortened, the required power consumption is reduced. The advantage of doing so is also obtained.
  • the second and third embodiments are exactly the same in that they can be used for applications other than the electronic compass shown as the embodiment.
  • Which method of the first to third embodiments is most suitable depends on the calculation accuracy required at that time, or the reason why it is desired to calculate the direction quickly even if the high accuracy is slightly falsified. Even in the same geomagnetism application device, it is preferable to calculate the azimuth or the like while selecting an optimum method depending on the case.

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Remote Sensing (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Condensed Matter Physics & Semiconductors (AREA)
  • Environmental & Geological Engineering (AREA)
  • Geology (AREA)
  • General Life Sciences & Earth Sciences (AREA)
  • Geophysics (AREA)
  • Measuring Magnetic Variables (AREA)

Abstract

 3軸の磁気センサと、測定点取得手段と、磁気センサのオフセットを校正する校正手段と、方位計算手段からなる地磁気応用機器であって、 前記校正手段が、前記地磁気ベクトルの少なくとも6点からなる測定点を前記測定点取得手段により前記測定点格納部に格納されたデータ群の中から選択し、オフセット計算用測定点格納部に選択された測定点を格納するオフセット計算用測定点選択手段を備え、 前記オフセット計算用測定点選択手段は、前記測定点格納部に格納されたデータ群の中から直交する3軸の各軸毎の成分値が最大と最小となる6点を少なくとも含むように選択することを特徴とする。

Description

地磁気応用機器
 本発明は、磁気センサを用いて地磁気を測定し、その測定値を利用する、地磁気応用機器に関する発明であって、例えば電子コンパス、エアーマウス、磁気式ジャイロ、AR(オーグメンテッド・リアリティ、拡張現実感等とも言う。)等の機能を有する携帯機器に関するものである。そして、特に、3軸の地磁気センサの感度が互いに異なる等の理由で、3軸の地磁気センサにより求めた測定点からなる方位球が真球ではなく楕円球となる場合であっても、適正な校正方法を行って正しい地磁気応用機器が向く方位を測定することができる地磁気応用機器に関する。
 地磁気を検出する磁気センサを備え、磁気センサによって検出された地磁気ベクトルに基づいて方位測定を行う電子コンパスや、空中で向きを変えることによってコンピュータ画面上の操作を可能とするエアーマウス等、地磁気ベクトルを測定し、その結果を利用した地磁気応用機器が使用されている。この際、磁気センサにより得られた地磁気ベクトルのデータに基づいて地磁気応用機器が向く方位を算出し、その計算された方位に基づいて、電子コンパスでは、携帯電話等の画面上で目的地の進行方向を案内するナビゲーションをする際に進行方向を判断するために用いることができる。また、磁気センサー内蔵のエアーマウスでは、空中で回転操作することで、その際に検出した地磁気により計算したマウスの向きに基づいて、コンピュータ画面上の操作を行うことができる。また、磁気式ジャイロでは、地磁気の検出結果に基づいて回転軸を算出し、回転角度や角速度を求めることができることから、この場合も求めた地磁気から方位等を精度良く算出することは非常に重要である。このように地磁気の検出により、様々な用途に利用することができるため、その測定された地磁気ベクトルは正確であることが要求される。
 地磁気応用機器としては、携帯電話、携帯ゲーム機、タブレット型PC等、携帯して使用する携帯機器が多いが、その内部にはスピーカ等の磁化された電子部品が存在するため、地磁気応用機器内に内蔵された磁気センサは、地磁気にこれらの電子部品から発生する磁界とを合成した磁界を検出することになる。従って、地磁気応用機器内部の電子部品などから発生する磁界により生じる誤差(オフセット)分を補正するための校正処理が必要となる。
 そこで、従来はユーザーが地磁気応用機器を何らかの目的で操作する際の地磁気応用機器の姿勢の変化を利用したり、場合によっては特定の回転操作を強制させて、地磁気応用機器が様々な姿勢状態になった場合の磁気センサの測定データを収集し、測定データに基づいてオフセット値を推定していた。
 具体的には、3軸の磁気センサを一定の地磁気の中で回転させた場合の各軸成分の出力を空間にプロットした場合、その軌跡が球をなす。この球を方位球と呼び、方位球の中心が磁気センサのオフセットに対応する。したがって、オフセットの校正は、さまざまな方位・姿勢で計測された地磁気の計測値から、方位球の中心点を求めてそれを新しいオフセット値として採用することに他ならない。なお、ここで方位球の半径は地磁気の強さに対応する。
 この方位球の中心点の座標を正確に求めるためには、地磁気応用機器をあらゆる方向に万遍なく向ける操作を行って、方位球上のデータをできるだけ広い領域で測定点を取得する必要がある。ところが、このような操作は、ユーザーに過度の負担を課すことになるため、特にユーザーに特定の回転操作を要求することなく、ユーザー自身が必要と感じる操作を地磁気応用機器に行う際の姿勢の変化を利用し、得られた測定点の中から方位球を正確に求めるのに適した一定の条件を満足するデータを選択し、方位球の中心点を求めようとする技術が提案されている(特許文献1)。
特開2008-241675号 特開平9-68431号
 前記した特許文献1は、地磁気応用機器内に内蔵されている3軸の磁気センサのそれぞれが、同じ感度を有し、3軸センサが共に同一の大きさの地磁気ベクトルに対して同じ出力電圧を得られることが前提になっている。この場合方位球は方位に関係なく半径が一定である真球となる。
 ところが、地磁気応用機器内部には、前記した通り磁化された電子部品が存在する。特にその中には磁力線を集めやすい特性を有する軟磁性特性を有する部品も存在する。このような部品の近くに地磁気センサが配置されている場合、特定の方位でより前記した電子部品の磁気の影響を強く受けてしまう可能性が生じる。また、磁気センサは製造過程におけるバラツキ等によって3軸の磁気センサ同士の感度に差異が生じる場合もある。このような場合においては、前記した方位球は真球とならず楕円球となってしまい、真球となることを前提にオフセット値を求めても、正確なオフセット補正ができなくなる。すなわち、方位球が楕円球となる場合のオフセット値を求めるのに適した測定点の選択方法を検討する必要がある。
 なお、方位球や方位円が楕円となる場合でオフセット値を求めることを目的とする特許は既に出願されている(例えば、前記特許文献2)。しかしながら、特許文献2を含め過去に出願された楕円球を考慮したオフセット値算出の特許には、取得した測定点を特に選択することなく、そのままオフセット計算に用いることが記載されているのみである。特に、特許文献2のような検出する測定値が2軸の場合ではなく、3軸の場合における中心点の算出は、2軸の場合に比べ、様々な方向に向けた測定点の取得が必要となり、単純な一平面上の回転(船舶の回転等)のみのデータ取得では、精度の良いオフセット計算は困難である。また、このような3次元空間で様々な方向の測定点が必要な場合には、仮にユーザーに8の字に地磁気応用機器を回転操作してもらったとしても、オフセット値を求めるのに必要な測定点があらゆる方向に万遍なく得られるとは限らない。従って、取得できた限られた方向の測定点の中で精度良くオフセット値求めるために可能な測定点を厳選して選択するとともに、より少ない点かつ少ない計算量で楕円球の中心点をより求めるのに、特許文献1の技術が真球の中心座標を求めるのに適した測定点の選択方法であるのと同様に楕円球を求めるのに適した測定点の選択方法を検討する必要があるが、従来の出願には、そのような開示が十分になされていない。
 また、このような測定点を特に選択することなく計算すると、測定点が方位球上の一部の領域に偏って集中し、他の位置はまばらに存在しているような場合には、その集中して存在するデータのみに著しく左右された楕円球しか求められず、高い精度で中心点を求めることは困難となる。
本発明は、方位球が真球ではなく楕円球となる場合であっても正確なオフセット補正が可能であって、より少ない測定点の選択で方位誤差の少ないオフセット補正を可能とする測定点の選択手順を備えた地磁気応用機器を新規に提供することを目的とするものである。
 本発明は、地磁気を測定し、測定された地磁気の測定値を利用する地磁気応用機器であって、
 前記地磁気応用機器の移動や姿勢の変化とともに変化する地磁気ベクトルの3軸成分を直交する3軸成分データとして検出する直交配列された3軸の磁気センサと、
 前記3軸の磁気センサによって地磁気ベクトルを所定個数取得し、取得したデータを測定点格納部に保存する測定点取得手段と、
 前記3軸の磁気センサのオフセットを校正する校正手段と、
 前記校正手段に基づいて得られたオフセット校正値により前記地磁気ベクトルを補正して前記地磁気応用機器が向く方位を算出する方位計算手段とからなり、
 前記校正手段が、
 前記地磁気ベクトルの少なくとも6点からなる測定点を前記測定点取得手段により前記測定点格納部に格納されたデータ群の中から選択し、オフセット計算用測定点格納部に選択された測定点を格納するオフセット計算用測定点選択手段と、
 前記オフセット計算用測定点格納部に格納された前記6点以上の測定点に基づいて、楕円球体の方程式を解くことにより楕円球の中心座標を求め、オフセット校正値格納部に格納するオフセット値計算手段を備え、
 前記オフセット計算用測定点選択手段は、前記測定点格納部に格納されたデータ群の中から直交する3軸の各軸毎の成分値が最大と最小となる6点を少なくとも含むように選択するよう構成してあり、
前記オフセット値計算手段は、選択された測定点のデータから、方位球である楕円球を定めるパラメータを算出することを特徴とする地磁気応用機器にある。
 上記地磁気応用機器においては、ユーザーが地磁気応用機器を持参し、鞄、ポケット等に入れて移動している間の向きの変化、画面をみながら操作をしている間の向きの変化、場合によってはユーザーに過度な負担とならない範囲、例えば8の字に1~数回操作してもらう等の強制的な回転操作を行っている間の地磁気応用機器の姿勢変化等を利用して、3軸磁気センサを用いて磁気ベクトルの検出値を複数個取得する。そして、得られた複数個の検出値の中から少なくとも3軸直交座標系の各軸成分毎に成分値が最大と最小となる点(合計6点)が含まれるように測定点を選択する。そして選択した6点以上の測定点を用い、選択した測定点と楕円球の方程式から、方位球の中心点を算出する。
 なお、本発明で言う地磁気応用機器とは、発明の名称に記載の通り地磁気を測定し、その測定値を利用し何らかの用途に利用する製品全てのことを言う。すなわち、地磁気を利用する限り、用途に関係なく共通してオフセット値を求め、検出した地磁気ベクトルの値を補正することが必須となるためである。そして、応用製品の具体的なものとしては、例えば地磁気を用いて方位計算をし、それを画面上に表示する電子コンパス、GPS情報も利用しつつ位置のナビゲーションを行う携帯電話等の携帯機器や、同様に現在位置を特定し、現在位置の情報を画面に表示するAR(オーグメンテッド・リアリティ)、地磁気応用機器の姿勢変化を地磁気より判断して回転軸、回転角度、回転角速度を求める磁気式ジャイロ、エアーマウス等が挙げられる。
 前記した地磁気応用機器の姿勢の変化は、それを使用するユーザーの行動変化の過程によって大きく変化する。楕円球の中心点をより正確に算出するためには、地磁気応用機器が3次元空間上で様々な方向に向いた状態で地磁気ベクトルを取得することが理想となるが、得られた測定点をそのまま使った場合、場合によってはある限られた特定の方向のデータのみが多く取得されている場合がある。このような場合、測定点のデータ個数自体は多くても、楕円球の中心点を精度良く求めることは困難となる。そこで、取得できたデータ群の中から3軸直交座標系の各軸成分毎に最大と最小となる点を2点ずつ合計6点が少なくとも含まれるように測定点を選択することにより、最小限の測定点で方位球の中心点を精度良く算出することを可能としたものである。
 すなわち、仮に方位球上の特定の領域に多数の測定点が存在していた場合、そのまま測定点データを入力して最小自乗法を行うと、存在していた点数分の誤差を合計し、最小化するということになる。これに対し、本発明の方法であれば、このような一部の領域に集中して存在している場合には、仮に選択されたとしても、その集中した測定点群の中から1点が選ばれるのみで、残りの5点以上の点は別の領域から選ばれることになる。従って、一部の領域に偏って測定点が集中していたとしても、本発明では他の領域の測定点も同様に選択されるため、確実に精度の良いオフセット計算が可能となる。
実施例1における、地磁気応用機器の概念図。 実施例1における、地磁気応用機器の一例である電子コンパス機能を搭載した携帯電話の一部透視斜視図。 実施例1における、地磁気応用機器の一例である電子コンパスのブロック図。 磁気ベクトルの検出値及び補正前後の中心点の位置を示した図。 X軸、Y軸の軸成分が最大と最小となる点を選択する仕方を説明する図。 X軸とY軸に45°傾いた仮想軸の軸成分が最大と最小となる点を選択する仕方を説明する図。 実施例1における11~18点目の測定点を選択する手順を説明するフローチャート。 実施例1における、3軸磁気センサの斜視図。
 上述した本発明における好ましい実施の形態につき説明する。
 また、前記オフセット計算用測定点選択手段は、前記直交3軸のうち、任意の2軸を選択し、その2軸と30~60度傾いた仮想の座標軸となる2軸を定め、該仮想の座標軸の成分値が最大と最小となる点をさらに選択した後前記オフセット計算用測定点格納部に格納し、選択された測定点に基づいて、方位球である楕円球を定めるパラメータを算出することが好ましい。
 楕円球の中心点の算出は、できるだけ多くの方向の測定点を中心点算出に用いた方が精度のよい算出が可能となる。そこで、請求項2では、請求項1で選択した直交3軸の各成分値が最大と最小となる点に加えて、前記直交3軸のうち、任意の2軸と30~60度傾いた仮想の座標軸を定め、測定点格納部に格納されている点の中から2つの仮想の座標軸それぞれの成分値が最大と最小となる点も追加で選択し、合計で少なくとも10点以上(但し、請求項1で選択した測定点との重複がない場合)の測定点を使って楕円球の中心座標を求める。これにより、楕円球の中心座標の算出精度をさらに向上させることができる。
 なお、任意に選択した2軸と前記直交3軸の間の傾きは、好ましくは40~50度、さらに好ましくは45度である。また、傾ける角度の方向は、選択した2軸を含む平面上の方向内で回転させた軸としてもいいし、選択した2軸を含む平面に対し傾いた方向に傾けた軸としてもよい。いずれの手段を採用しても、算出精度を向上できる効果に差異はないからである。
 また、前記オフセット計算用測定点選択手段は、前記測定点格納部に格納されたデータ群のうち、請求項1又は2に記載の前記オフセット計算用測定点選択手段により選択された測定点を除くデータの中から1点ずつ取り出し、既に選択され、オフセット計算用測定点格納部に格納されている全測定点との距離が所定値以上となる場合に限り、取り出した測定点をオフセット計算用測定点格納部に新たに格納するという手順を、格納された個数があらかじめ定めた所定の個数となるまで、基準となる前記所定値を少しずつ小さい値に変更しつつ繰返し実施することが好ましい。
 より精度のよい中心座標算出を行うには、請求項1又は請求項1と2でオフセット計算用として選択した各直交軸の軸成分が最大と最小となる点からなるデータ群からなる測定点でまだ欠落している方向の方位球上の測定点を追加することが必要である。そこで、請求項3では、測定点格納部から既に選択され、オフセット計算用測定点格納部に格納されている全測定点との距離が、所定の値以上となる条件を満足する測定点のみ、既に選択されている測定点に追加で選択し、最終的に選択された全測定点を使って楕円球の中心座標を求めることを特徴とする。
この選択の際は、まず選択の条件となる所定の閾値を定め、まだ選択されていない測定点を1点ずつ測定点格納部から取り出し、この点と既に選択されている全測定点との距離を計算する。そして、算出した全測定点との距離が所定の閾値以上である場合に限り、オフセット計算用測定点格納部に新規に格納する。この作業をまだ未選択の全測定点について所定の閾値を少しずつ小さい値に変更しながら、選択された測定点があらかじめ定めた所定の個数になるまで行う。
以上説明した測定点の選択プロセスにより、最初に測定点格納部に格納されていた測定点の範囲に限定はされるものの、方位球上の特定の領域に偏ることなく、かつ方位球上で様々な方向に位置する測定点を確実に選択することができるため、少ない測定点で効率良く中心点算出精度を確実に高めることができる。
また、前記オフセット値計算手段は、選択された測定点に基づき、最小自乗法により楕円球のパラメータを算出することが好ましい。
 測定される地磁気ベクトルには、それぞれ誤差を含んでいる。そこで、選択した複数の測定点を使って、最小自乗法により楕円球の方程式のパラメータを求めることにより、それぞれの測定点が含んでいる誤差の値を互いに打ち消しあう効果を有するため、精度の良い方位球である楕円球を求めることができる。
また、本発明においては、地磁気応用機器の画面に回転操作を要求する操作指示を表示させ、その後の回転操作中に前記測定点取得手段を実施することを特徴とすることが好ましい。
 ユーザーは、地磁気応用機器の持参中に、電子コンパス機能等の地磁気ベクトルの測定結果が必須となる機能を常に使うわけではない。そして、ユーザーは地磁気応用機器を直接操作しない場合であっても、例えば地磁気応用機器が携帯電話である場合には、電話やメールの着信がいつあるかわからないことから、通常電源をONしたまま、鞄やポケット内に入れた状態で持参される。従って、ユーザーが行動途中に向きを変えると携帯電話等の地磁気応用機器の向きも変わる。また、メールの着信があった場合には、ポケットから取り出す作業の過程において、さらに地磁気応用機器の向きが変わる。従って、通常はこのような特にユーザーに操作を強制させなくても、自然に起きる地磁気応用機器の姿勢の変化を利用して様々の向きの測定点を取得することができる。
ところが、電源をONした直後に測定した地磁気ベクトルの値が必須となる応用製品の機能を使用したい場合等、十分な測定点が取得できていない段階で地磁気データが必要な応用製品の機能を使用したい場合には、すばやく測定点を取得する必要のある場合が生じる。従って、そのような場合には、携帯機器等、応用製品の画面上に回転操作を要求する操作指示画面を表示させ、ユーザーに操作を行ってもらうようにすることができる。これにより、短時間で必要なデータを確実に取得することができる。
 また、請求項5にて行う回転操作等、前記測定点取得手段実行中の地磁気ベクトルを検出し、取得する際において、取得された測定点を用いてリアルタイムで直交する3軸の各軸成分データの最大値と最小値の差を求め、3軸全てについて、あらかじめ定める基準値以上となる測定点が得られた時点で所定の個数の測定点が取得できていることを条件に地磁気応用機器の画面に回転操作が終了した旨の表示ことが好ましい。
 請求項5でユーザーが行う回転操作は、ユーザーによってその回転方向にバラツキがあり、その操作の仕方によっては、楕円球上の一部の方向について、測定点がほとんど取得できていない場合が生じる可能性がある。従って、楕円球の中心点を求めるのに十分な測定点が取得できているかをチェックするため、回転操作中にデータを取得するとともに、リアルタイムで直交3軸の各軸成分の最大値と最小値の差を求め、所定の基準値と比較する。直交3軸の全ての軸成分について、最大値と最小値の差が所定の閾値以上となるようにデータが取得できた場合に、所定の個数を超える測定点が取得できていることを条件に、測定点取得手段の実行を終了させ、そのことを地磁気応用機器の画面にこれ以上の回転操作は不要であることを意味する表示を行うことができる。これにより、ユーザーの回転操作時に精度良く楕円球の中心点を求めるのに必要となる測定点を確実に取得することができる。
なお、ユーザーの回転操作が適切でなく、基準を満足できる測定点が取得できない場合は、「体の向きを変更して再度実施して下さい。」、「違う方向に向くように回転させて下さい。」等の案内表示をすることが望ましい。
また、直交3軸全ての軸成分の最大値と最小値の差のチェックは、請求項5のように回転操作を強制する場合でなくても同様にデータチェックすることが好ましく、基準を満足できる測定点が取得できているかどうかをチェックすることは勿論可能である。この場合でも、十分な測定点が得られたことを判断できた場合には、測定点取得手段の実行が終了した旨の表示をしたり、逆にまだ十分な測定点が取得できていないことを案内表示し、さらにデータ取得を継続する表示をすることも勿論可能である。
 また、前記測定点取得手段の実行中においては、順次地磁気ベクトルを取得する際に、基準となる点をまず取得し、その後は基準となる点から所定の距離以上離れた点が取得できた時に限定して取得した点を測定点格納部に格納し、さらに最新の格納した測定点を基準点として所定の距離以上離れた測定点を測定点格納部に格納するという取得手段を繰返し実施することが好ましい。
 最近使用されている地磁気センサは、短時間に多数の測定点を継続して取得することができる。従って、地磁気応用機器の姿勢が全く変化していない場合には、連続して地磁気ベクトルを測定しても、方位球上のほぼ同じ位置の点が繰返し複数取得できるだけであり、ほぼ同じ位置の点を多数記憶させてもオフセット値計算の精度向上に全く役立たない。そこで、測定点を取得し測定点格納部に格納する際には、直前に測定点格納部に格納した測定点から所定の距離以上に離れた測定点が取得できるまでは、新規に測定点を測定点格納部に格納しないこととし、ある程度離れた測定点が取得できた時に、新規に格納するようにする。これにより、少ない測定点の格納で、精度良く楕円球の中心点を求めるのに必要な測定点を確実に取得することができる。ここで、請求項5のように回転操作をユーザーに強制させる場合には、測定点が所定の個数格納された時点で、地磁気応用機器の画面に回転操作が終了した旨の表示をし、それ以上の回転操作が不要であることを知らせることもできる。
 また、前記方位演算手段は、楕円球の方程式を求めることにより得られた主軸の長さに基づいて、3軸磁気センサそれぞれの感度を求め、求めた感度に基づいて補正した地磁気ベクトルの値に基づいて地磁気応用機器が向く方位を算出することが好ましい。
 精度良く方位を計算する際には、直交3軸の磁気センサの感度が同じとなるように補正した上で、オフセット補正後の各軸成分の値を使って求める必要がある。既に説明したように選択した測定点から楕円球の方程式を求めることにより、直交3軸の主軸の長さを求めることができるため、その値に基づいて、直交3軸の感度補正を行った後の各軸の成分値から、地磁気応用機器が向く方位を計算することができる。この求めた方位データを使って、電子コンパスに限らず、様々な用途に応用することができる。
(実施例1)
 以下、本発明の一実施例として、携帯機器内に内蔵した電子コンパスに本発明を適用した場合の実施例を説明する。
本発明の実施例にかかる電子コンパスにつき、図1~図8を用いて説明する。
 図2に示すごとく、本例の電子コンパス1は、携帯機器2に設けられている。電子コンパス1は、携帯機器2の内部磁界による影響を補正しつつ、携帯機器2が向く方位を計算する。
 図1に示すごとく、電子コンパス1は、3軸磁気センサ3と、測定点取得手段4と、オフセット計算用測定点選択手段5と、オフセット値計算手段6と、方位計算手段7とを備える。
 図2に示すごとく、3軸磁気センサ3は、携帯機器2に固定された3軸直交座標系における磁気ベクトルMとして地磁気を検出する。
 測定点取得手段4は、ユーザーが携帯機器2と共に移動したり、直接手に持って操作する際の姿勢変化を利用して、携帯機器2が様々な姿勢状態となった場合における地磁気ベクトルデータを前記3軸磁気センサ3により取得する。この際、より少ない測定点の取得で後述のオフセット値計算手段によって精度の良いオフセット値が求められるように、ある程度離れた測定点が得られる毎に測定点格納部8に格納する等の方法で、効率良く測定点を選択しつつ取得していくことが好ましい。
 オフセット測定点選択手段5は、楕円球の中心点を精度良く計算可能となる測定点を選択するため、測定点格納部8に格納されたデータ群の中からあらかじめ定めた条件を満足する測定点のみを選択し、その測定点に関する地磁気ベクトルのデータをオフセット計算用測定点格納部9に格納する。
 オフセット値計算手段6は、オフセット計算用測定点格納部9に格納された地磁気ベクトルのデータを使い、楕円球の方程式を解くことにより、中心点の座標を求めることによって、3軸センサが検出している地磁気以外の磁気ベクトルの影響分であるオフセット値を計算する。
 方位計算手段7は、オフセット値計算手段6により求めたオフセット値及び楕円球の方程式を解くことにより求められる楕円球の主軸の長さ、すなわち3軸磁気センサの各々の軸毎の感度に基づいて、3軸磁気センサにより取得した地磁気ベクトルのデータを補正し、地磁気応用機器が向く方位を計算する。
 以下、詳説する。
 図2に示すごとく、携帯機器2には3軸磁気センサ3、マイコン100が搭載されている。また、これらの他に、複数の電子部品200が搭載されている。電子部品200によって携帯機器2の内部には磁界が発生しており、この磁界の影響を3軸磁気センサ3が受けている。
 また、携帯機器2は表示部20を備える。この表示部20に、本発明の電子コンパスにより算出した方位に基づいて、地磁気応用機器が向く方位が表示される。また、計算された方位に基づいて画面の上方向が進行方向となるように向きを調整して現在位置周辺の地図が表示することもできる。
 図3に示すごとく、マイコン100は、CPU10と、ROM11と、RAM12と、I/O14と、これらを繋ぐライン13とを備える。ROM11はプログラム11pを記憶している。RAM12には、取得した測定点データあるいは、選択された測定点を格納できるメモリが割り当てられており、プログラム11pを実行した結果、得られた測定点が格納されるメモリとして、測定点格納部8、オフセット計算用測定点格納部9、未選択測定点格納部16が割り当てられている。そして、CPU10がROM11のプログラム11pを読み出して実行することにより、本例の測定点取得手段4、オフセット計算用測定点選択手段5、オフセット値計算手段6、方位計算手段7が実現される。
 また、マイコン100には3軸磁気センサ3と表示部20が接続している。3軸磁気センサ3は、例えば数m秒毎に磁気ベクトルを検出し、その検出値をマイコン100に送信している。
 3軸磁気センサ3は、図8に示すごとく、マグネト・インピーダンス・センサ素子30によって構成してある。即ち、3軸磁気センサ3は、3個のマグネト・インピーダンス・センサ素子30を、それぞれの感磁方向が互いに直交する3軸方向(X軸方向、Y軸方向、Z軸方向)となるように配設することにより、形成してある。
 一方、3軸磁気センサ3は携帯機器2の内部磁界の影響を受けるため、図4に示すごとく、3軸磁気センサ3の方位球15の中心点O'は、3軸磁気センサ3の原点Oからずれているとともに、各軸の磁気センサ3の感度が磁化された軟磁性部品の影響や製造上のばらつき等で異なっている場合には、楕円球となる。
 OO'ベクトルは、3軸直交座標系の原点Oと方位球15の中心点O'とのずれを表している。方位球の中心点O'を正確に算出できれば、内部磁界の影響を受けた3軸磁気センサ3の検出値(OPベクトル)を、下記数式を使って補正することができ、内部磁界の影響を受けない3軸磁気センサ3の検出値(O'Pベクトル)を求めることができる。これにより、正確な地磁気応用機器が向く方位を算出することが可能になる。
Figure JPOXMLDOC01-appb-M000001
 楕円球となる方位球15の中心O'を精度よく求めるためには、携帯機器2の向きをあらゆる方向に万遍なく向けて測定点を取得することが理想であるが、実際にこのような操作をユーザーに強制させるのは負担が大きいという問題がある。そこで、本発明では取得できた測定点の中から少ない測定点で最も精度良く楕円球の中心点を求めることのできる測定点を選択するという手段を採用する。
そこで、本発明ではまず楕円球の方程式を解くのに適した測定点の候補となる地磁気ベクトルデータの取得、すなわち測定点取得手段4を実行する。ユーザーは、携帯機器2を使用する際に、常時電子コンパス機能を使うわけではなく、電源をONした後、電子コンパスの機能を使用するまでの間に測定点を取得する時間的余裕がある場合も多い。従って、その間に鞄やポケット内に保管された状態で様々な向きに向けられたり、メールや通話の操作を行う際の携帯機器2の姿勢変化を利用して、測定点を自動的に取得するようにしてもよいし、まだ十分にオフセット計算用測定点を取得できていない段階で電子コンパスの機能を使う場合には、携帯機器2の画面20に回転操作を要求する案内を表示させても良い。これにより、携帯機器を様々な向きに向けた状態における磁気ベクトルのデータが3軸磁気センサ3により取得され、測定点格納部8に格納される。
このデータ取得の際、ユーザーは、携帯機器2の回転操作を行っている途中状態の場合とそうでない場合がある。携帯機器2の姿勢に変化のない状態において、磁気ベクトルを連続的に取得しても、ほぼ同じ値の測定点が複数個続けて取得できるだけである。従って、測定点格納部8に地磁気ベクトルのデータを1個格納した後は、最新の格納データと新たに取得した測定点との間の方位球上での距離を計算し、これが所定値以上となる場合に限り、新規に測定点格納部8に地磁気ベクトルのデータを格納するようにすることが好ましい。これにより測定点格納部8として割り当てたメモリを効率良く利用できるとともに、後述のオフセット計算用測定点の選択時間を短縮することができる。具体的には、例えば100mG以上離れた点を取得できた場合に、測定点を新規に格納するというようにすることができる。これを繰返し実施することにより、測定点格納部に記憶された測定点の数が所定の個数に到達した時点で、測定点取得手段4を終了する。なお、測定点の所定の個数は、要求される精度等によって変化するが、例えば60点とすることができる。勿論さらに増加してオフセット精度を高めることは可能である。
ところが、ユーザーの操作等の仕方によっては、携帯機器2の姿勢が特定の向きに偏ってしまう場合があり、その場合には、測定点も方位球上の特定の位置に偏って存在することになるため、楕円球の中心点を精度良く求めることができない。そこで、測定点格納部8に格納されている全データについて、リアルタイムに直交3軸の各軸毎の成分値について最大値と最小値を計算し、この値が所定の値以上でない場合には、さらに測定点の格納を継続するか、又は画面20に精度が低下する恐れがある旨の表示をするようにすることがより好ましい。具体的には、例えばこの所定の値を500mGとすることができる。
測定点格納手段4の実行により必要となる測定点が取得できたら、次に取得した測定点の中から楕円球の中心点を精度良く求めるのに適当なオフセット計算用測定点を選択する。
オフセット計算用測定点選択手段5では、まず、直交3軸の各軸毎の成分値が最大となる点と最小となる点を選択する。図5は、方位球をZ軸が紙面と直交するような向きから見た場合の測定点の位置の例を示したものである。この図に示すようにX軸の軸成分値が最大となる測定点A点、最小となる測定点B点及びY軸の軸成分値が最大となる測定点C点及び最小となる測定点D点を選択し、オフセット計算用測定点格納部9に格納する。図は省略するが、同様にZ軸の軸成分値が最大となる測定点E点と最小となる測定点F点を選択し、同様にオフセット計算用測定点格納部9に格納する。この際、選択された測定点は、オフセット計算用測定点格納部9に格納すると同時に測定点格納部8からは削除しておくと良い。以上の選択により6点の測定点が選択される。
楕円球の方程式の解き方については後述するが、未知数は6つとなることから、この6点の測定点のみからだけでも方程式を解くことが可能である。しかしながら、本実施例では、中心点の算出精度を向上するため、さらに以下の方法で前記6点に加えて測定点を選択する。
前記した6点の選択では、磁気センサの直交する3軸の各軸毎の成分値が最大となる点と最小となる点を選択したが、さらに別の直交軸を仮想的に定め、その軸の成分値が最大となる点と最小となる点を選択する。具体的には、図6に示すように直交3軸のうちの2軸であるX軸とY軸を選択し、それに45°傾いている仮想の直交軸であるX'軸とY'軸を定め、このX'軸とY'軸の成分値が最大となる点と最小となる点を選択する。図6の例の場合には、X'軸の成分値が最大と最小なる点がG点、H点となり、Y'軸の成分値が最大と最小となる点がI点とJ点となる。この4点をオフセット計算用測定点格納部9に格納する。
なお、この例では任意の2軸としてX軸とY軸を選択したが、勿論他の2軸でも構わない。また傾ける方向をX軸とY軸を含む平面上で回転させて仮想の軸を設定したが、勿論そうでない方向に傾けて仮想の軸を設定することもできる。
また、仮想の軸を設定する際の傾ける角度は、45°が最適であるが、30°から60°の間で選択し設定することができる。以上の選択によりオフセット計算用の測定点が10点選択できる。
ここで、最初に測定したデータによっては、前の説明で選択した6点と新たに選択した4点との間で重複する点が生じる場合がある。その場合はここまでの測定点の選択数が10点とならず9点以下となるが、後述の測定点の選択をさらに行う場合には、最終的な測定点の選択数があらかじめ定めた測定点の数になるように選択すれば良い。
以上説明した通り選択された10点の測定点から楕円球の方程式を解くことも可能であるが、本実施例では、さらに中心点算出の精度を高めるため、図7に示す手法によりさらに追加で測定点を選択する。
 まず、これまでの10点の測定点の選択でまだオフセット計算用として選択されていない測定点を未選択測定点格納部16に格納する(ステップS1)。そして、この未選択測定点格納部16より任意の1点のデータ(既に同一の距離の基準値でステップS3、S4が終了している点は除く。)を取り出し(ステップS2)、取り出した測定点と既にオフセット計算用として選択されている全ての点との間の距離を計算する(ステップS3)。
そして、計算した全ての既に選択されている測定点との距離があらかじめ定めた基準値以上かどうかをチェックする(ステップS4)。ここで、全ての距離が基準値以上であった場合に限り、取り出している測定点をオフセット計算用測定点格納部9に新規に格納すると同時に未選択測定点格納部16からはこのデータを削除(ステップS5)し、測定点の選択数が所定個数に到達したかをチェック(ステップS6)し、所定の個数に到達している場合は処理を終了し、そうでない場合は、ステップS7に進む。また、ステップS4においていずれかの既に選択済の測定点との間の距離が基準値未満であった場合には、なにもせずステップS7に進む。ステップS7では、現在設定されている距離の基準値で全ての未選択測定点格納部のデータをチェックしたかどうかを確認し、全てのデータチェックが終了している場合は、距離の基準値をより小さい値に変更(ステップS8)し、ステップS2に戻る。また、そうでない場合は、距離の基準値を変更することなく再びステップS2に戻り同様のステップを繰返す。
以上説明した手順により測定点を選択することにより、勿論最初の測定点格納部8に格納されていたデータの範囲内に限定されるものの、方位球上で特定の領域に偏っておらず、方位球上の様々な位置にちらばった状態で測定点を確実に選択することができる。従って、取得できた測定点の中から最も精度良く楕円球の中心点を求めることができる測定点の組合せを確実に選択することができる。
なお、最終的に選択する測定点の数は多くする方がより中心点の算出精度は向上するが、ある程度の数を超えると、それ以上多く選択しても精度向上効果が小さくなることに加え、計算量が増加し、処理時間が長くなることから、前記した10点の測定点も含め、15~20点程度とするのが好ましい。なお、本実施例では、選択個数を18点とした。
また、距離の基準値は、特に限定はしないが、例えば初期値を300mGとし、25mGずつ値を小さくしていくということができる。以上のデータ処理により、オフセット計算用として最適と考えられる測定点が選択できる。
次に選択したオフセット計算用測定点を使って楕円球の方程式を解く手順について説明する。楕円球の方程式は、下記の数2のように書くことができる。
Figure JPOXMLDOC01-appb-M000002
 本実施例では、これを最小自乗法によって解くことにより未知数である楕円球のパラメータを求める。なお、上記方程式のうち未知数であるパラメータは、各直交軸のオフセット値であるOffsetX、OffsetY、OffsetZと楕円球の主軸の長さ(ゲイン)に相当する、GainX、GainY、GainZの6つとなる。
 これを18点の測定点から求める場合、全ての測定点上を通る楕円球を求めるのは不可能となるので、18点の測定点とのズレ(=誤差)が最も小さくなる楕円球を最小自乗法により求める。そこで、測定点と求める楕円球との間の誤差の自乗を合計し、その値をeとおくと、前記数2より下記数3のように書くことができる。
Figure JPOXMLDOC01-appb-M000003
この数3の値を最小化できるパラメータの値を求めるため、6つのパラメータ全てで、数3の式を偏微分し、その値を0とおくと、6つの式からなる連立方程式を得ることができる(数4)。
Figure JPOXMLDOC01-appb-M000004
なお、この方程式は非線形の連立方程式となるため、非線形の連立方程式の解を求める既知の手法(二分法、Newton-Raphson法)により収束計算を行うことにより6つのパラメータを求めることができる。
以上により直交3軸のオフセット値であるOffsetX、OffsetY、OffsetZが求められたので、その後に方位計算をする際は、取得した磁気ベクトルの値を求めたオフセット値及び3軸磁気センサの感度に相当する主軸の長さの値に基づいて、補正前のデータ(Xn、Yn、Zn)を数5に示す通り補正し、補正後のデータ(Xn'、Yn'、Zn')から方位を計算する。
Figure JPOXMLDOC01-appb-M000005
ただし、オフセット計算用の測定点を取得した場所が、何らかの外部環境が原因で地磁気が小さくなっている場合、前記で求めた主軸の長さがその分小さくなってしまい、前記した各ステップで距離の基準値等と比較する際に支障が生じる可能性がある。従って、あらかじめ地磁気の大きさがわかっている環境で3軸磁気センサの任意のいずれかの軸のセンサの出力を記憶しておき、基準となる磁気センサの感度を把握し、この値を使って求めた楕円球の主軸の長さを補正することが好ましい。この補正により、オフセット計算用測定点を取得する場所の地磁気の状態に関係なく、正しい測定点の選択及び方位計算を可能とすることができる。
次に、本例の作用効果について説明する。本例では、3軸磁気センサにより測定した地磁気ベクトルの測定点の中から直交3軸の各軸成分値が最大と最小となる点を選択し、さらに直交3軸のうち、任意の2軸(本例ではX軸とY軸)と45°傾いた仮想の直交軸の各軸の成分値が最大と最小となる点の、合計10点をまず選択する。
さらに、上記10点を含む他の全ての選択点と互いに所定の基準値以上距離が離れた測定点を8点選択し、合計18点の測定点を選択する。
このようにすると、取得した測定点の中で、方位球上において互いに離れており、かつ特定の領域に偏ることのない測定点を確実に選択することができる。従って、測定点の選択数が少ないにもかかわらず、精度の高いオフセット値を計算することができる。
なお、本発明では一実施例として電子コンパスの場合について説明したが、電子コンパスに関係なく、磁気センサで地磁気を検出し、その検出結果に基づいて方位等の各種物理量を計算する場合には、同様にこの技術を利用することができる、すなわち、用途が電子コンパス以外、例えばエアーマウスの場合でもマウスの向きを同様な方法で検出する場合であれば、この技術を利用して、精度の良いオフセット値を求めることにより、マウスの向きを精度良く計算し、コンピュータ画面上の操作を空中で行うことができる。また、磁気式ジャイロのように回転角速度を求める場合でも角速度を求めるには、精度の良い地磁気ベクトルから回転軸を求める必要があり、本発明の技術により高い精度でオフセット値を求め、それにより補正した地磁気ベクトルを利用して回転軸を計算することにより、精度の良い回転角度及び回転角速度を求めることができる。その場合において、本実施例と同様の測定点の選択技術を実施することにより、同様の作用効果を得ることができる。
また、測定点の選択が、精度の良いオフセット値計算に最適な測定点に絞り込んで選択するため、多数の測定点を取得し、その方位球上の存在位置の傾向を全く考慮することなく、そのまま最小自乗法で解く場合に比較すると、少ない計算時間でより精度の良い計算が可能になるとともに、一部の領域に多数存在する測定点を使ってオフセット計算した場合のように、偏って多数存在する測定点の値に強く左右されることによる精度低下の問題も回避することができる。従って、楕円球の中心点を最も効率良く求めることができる。
(実施例2)
実施例1では、測定点の選択数を18点とし、直交3軸の成分値が最大、最小となる点と仮想軸の成分値が最大、最小となる点を選択した後に、図7からなるステップでさらに8点の測定点を選択した。本実施例は、精度よりもより簡単な処理でオフセット補正ができることを重視する場合の例であり、図7からなるステップによる8点の測定点を選択せず、10点の測定点から楕円球の中心点を求め方位計算する場合である。測定点を選択した後の楕円球の方程式の求め方、方位計算の方法については、全く実施例1と同様である。本実施例の場合、オフセット値の精度は実施例1に比較して若干劣るものの、計算処理等が短時間で行えるという利点がある。
(実施例3)
本実施例は、実施例2よりもさらに計算時間を短縮したい場合の実施例で、直交3軸の成分値が最大、最小となる6点の測定点のみを選択し、オフセット計算を行う場合の例である。6点の測定点を前記した楕円球の方程式(数1)に代入することにより6つの方程式が得られるため、前記した最小自乗法によるのではなく、測定点の値を代入した方程式をそのまま解くことにより、6つの未知数を求めることができる。
本実施例により求めたオフセット値、主軸の長さは、実施例1、実施例2に比べ精度は劣るが、計算に用いる6点の選択点は、少ない選択数ではあるが、少なくとも方位球上の特定の位置のみに偏って位置しているということは、その選択方法から考えてほぼ考えられず、6点の選択のみで方程式を解く方法としては、最適の選択方法と考えられる。そして、6点のみから求めることによって、実施例1等と比較すると精度の点では若干劣るものの、計算処理については大きく軽減され、処理時間が短縮されるという効果に加え、必要な消費電力が減少するという利点も得られるものである。
ここで、実施例1の箇所で既に説明したが、実施例2、3についても実施例として示した電子コンパス以外の用途に利用できる点は全く同様である。そして、実施例1~3のどの手法を選ぶのが最適であるかは、その時に要求される計算精度、あるいは高い精度を若干擬制にしても素早く方位を計算したい場合等の理由によって変化するので、同じ地磁気応用機器であっても、場合によって最適な手法を選択しつつ方位等の計算をすることが好ましい。

Claims (8)

  1.  地磁気を測定し、測定された地磁気の測定値を利用する地磁気応用機器であって、
     前記地磁気応用機器の移動や姿勢の変化とともに変化する地磁気ベクトルの3軸成分を直交する3軸成分データとして検出する直交配列された3軸の磁気センサと、
     前記3軸の磁気センサによって地磁気ベクトルを所定個数取得し、取得したデータを測定点格納部に保存する測定点取得手段と、
     前記3軸の磁気センサのオフセットを校正する校正手段と、
     前記校正手段に基づいて得られたオフセット校正値により前記地磁気ベクトルを補正して前記地磁気応用機器が向く方位を算出する方位計算手段とからなり、
     前記校正手段が、
     前記地磁気ベクトルの少なくとも6点からなる測定点を前記測定点取得手段により前記測定点格納部に格納されたデータ群の中から選択し、オフセット計算用測定点格納部に選択された測定点を格納するオフセット計算用測定点選択手段と、
     前記オフセット計算用測定点格納部に格納された前記6点以上の測定点に基づいて、楕円球体の方程式を解くことにより楕円球の中心座標を求め、オフセット校正値格納部に格納するオフセット値計算手段を備え、
     前記オフセット計算用測定点選択手段は、前記測定点格納部に格納されたデータ群の中から直交する3軸の各軸毎の成分値が最大と最小となる6点を少なくとも含むように選択するよう構成してあり、
    前記オフセット値計算手段は、選択された測定点のデータから、方位球である楕円球を定めるパラメータを算出することを特徴とする地磁気応用機器。
  2.  前記オフセット計算用測定点選択手段は、前記直交3軸のうち、任意の2軸を選択し、その2軸と30~60度傾いた仮想の座標軸を定め、該仮想の座標軸の成分値が最大と最小となる点をさらに選択した後前記オフセット計算用測定点格納部に格納し、選択された測定点に基づいて、方位球である楕円球を定めるパラメータを算出することを特徴とする請求項1に記載の地磁気応用機器。
  3.  前記オフセット計算用測定点選択手段は、前記測定点格納部に格納されたデータ群のうち、前記オフセット計算用測定点選択手段により選択された測定点を除くデータを1点ずつ取り出し、既に選択され、オフセット計算用測定点格納部に格納されている全測定点との距離が所定値以上となる場合に限り取り出した測定点をオフセット計算用測定点格納部に新たに格納するという手順を、格納された個数があらかじめ定めた所定の個数となるまで、基準となる前記所定値を少しずつ小さい値に変更しつつ繰返し実施することを特徴とする請求項1又は2に記載の地磁気応用機器。
  4.  前記オフセット値計算手段は、選択された測定点に基づき、最小自乗法により楕円球のパラメータを算出することを特徴とする請求項1~3のいずれか1項に記載の地磁気応用機器。
  5.  前記地磁気応用機器の画面に回転操作を要求する操作指示を表示させ、その後の回転操作中に前記測定点取得手段を実施することを特徴とする請求項1~4のいずれか1項に記載の地磁気応用機器。
  6.  前記測定点取得手段実行中の地磁気ベクトルを検出し、取得する際において、取得された測定点を用いてリアルタイムで直交する3軸の各軸成分データの最大値と最小値の差を求め、あらかじめ定める基準値を3軸全てについて超えた時点で所定の個数の測定点が取得できていることを条件に地磁気応用機器の画面に測定点取得手段の実行が終了した旨の表示をすることを特徴とする請求項1~5のいずれか1項に記載の地磁気応用機器。
  7.  前記測定点取得手段の実行中に順次地磁気ベクトルを検出する際に、基準となる点をまず取得し、その後は基準となる点から所定の距離以上離れた点が取得できた時に限定して取得した点を測定点格納部に格納し、さらに最新の格納した測定点を基準点として所定の距離以上離れた測定点を測定点格納部に格納するという取得手段を繰返することを特徴とする請求項1~6のいずれか1項に記載の地磁気応用機器。
  8.  前記方位演算手段は、楕円球の方程式を求めることにより得られた主軸の長さに基づいて、3軸の磁気センサの感度を求め、求めた感度に基づいて補正した地磁気ベクトルの値に基づいて前記地磁気応用機器が向く方位を算出することを特徴とする請求項1~7のいずれか1項に記載の地磁気応用機器。
PCT/JP2012/051929 2011-02-17 2012-01-30 地磁気応用機器 WO2012111413A1 (ja)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP12747123.3A EP2660561B1 (en) 2011-02-17 2012-01-30 Geomagnetic device
US13/983,308 US8698503B2 (en) 2011-02-17 2012-01-30 Geomagnetic application device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2011031533A JP5017539B1 (ja) 2011-02-17 2011-02-17 地磁気を測定し、利用する応用機器
JP2011-031533 2011-02-17

Publications (1)

Publication Number Publication Date
WO2012111413A1 true WO2012111413A1 (ja) 2012-08-23

Family

ID=46672350

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2012/051929 WO2012111413A1 (ja) 2011-02-17 2012-01-30 地磁気応用機器

Country Status (4)

Country Link
US (1) US8698503B2 (ja)
EP (1) EP2660561B1 (ja)
JP (1) JP5017539B1 (ja)
WO (1) WO2012111413A1 (ja)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140182148A1 (en) * 2012-12-31 2014-07-03 Suunto Oy Method and a device for determining a direction in a magnetic field

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5849448B2 (ja) * 2011-06-14 2016-01-27 リコーイメージング株式会社 3軸電子コンパスを用いた方位測定方法および方位測定装置
WO2015070451A1 (zh) * 2013-11-18 2015-05-21 宇龙计算机通信科技(深圳)有限公司 电子罗盘校准方法和终端
JP2015102512A (ja) * 2013-11-27 2015-06-04 愛知製鋼株式会社 磁場発生装置およびオフセット算出方法
JP2016057190A (ja) * 2014-09-10 2016-04-21 愛知製鋼株式会社 磁界測定装置
KR20160136928A (ko) * 2015-05-21 2016-11-30 삼성전자주식회사 전자 장치의 지자계 센서 정보를 보정하는 방법 및 이를 사용하는 전자 장치
CN107478192A (zh) * 2016-06-08 2017-12-15 京信通信技术(广州)有限公司 方位角测量装置、天线、方位角测量系统及测量方法
US10058016B2 (en) * 2016-09-22 2018-08-21 Apple Inc. Compensation of magnetic interference
US20190130137A1 (en) * 2017-10-30 2019-05-02 Conduent Business Services, Llc Versatile magnetic presence detection of a mobile computing device by a tag
CA3030247A1 (en) 2018-01-19 2019-07-19 Ascension Technology Corporation Calibrating a magnetic sensor
CA3030409A1 (en) 2018-01-19 2019-07-19 Ascension Technology Corporation Calibrating a magnetic transmitter
US11703577B2 (en) * 2020-08-14 2023-07-18 Baidu Usa Llc Recalibration determination system for autonomous driving vehicles with multiple LiDAR sensors
CN112505599B (zh) * 2020-10-20 2024-02-06 深圳市华信天线技术有限公司 一种三轴磁强计的校正方法及装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0968431A (ja) 1995-08-31 1997-03-11 Furuno Electric Co Ltd 電子式コンパス
JP2004309227A (ja) * 2003-04-03 2004-11-04 Asahi Kasei Electronics Co Ltd 計測装置、方位角計測装置及びキャリブレーションプログラム、並びにキャリブレーション方法
JP2005195376A (ja) * 2003-12-26 2005-07-21 Asahi Kasei Electronics Co Ltd 方位角計測方法および方位角計測装置
JP2006047038A (ja) * 2004-08-03 2006-02-16 Yamaha Corp 地磁気センサの補正方法
JP2007271454A (ja) * 2006-03-31 2007-10-18 Yamaha Corp 携帯端末、および該携帯端末における磁気センサデータの取込方法
JP2008241675A (ja) 2007-03-23 2008-10-09 Aichi Micro Intelligent Corp 電子コンパス

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5991311A (ja) * 1982-10-12 1984-05-26 ロケ マナ リサーチ リミテッド 電子コンパスを有する乗物ナビゲーション装置
JPH07111348B2 (ja) * 1986-06-05 1995-11-29 日本電装株式会社 方位検出装置の出力補正装置
US6513252B1 (en) * 1999-04-08 2003-02-04 Donnelly Corporation Vehicle compass compensation
US6968273B2 (en) * 2002-03-01 2005-11-22 Gentex Corporation Electronic compass system
WO2005003683A1 (ja) * 2003-07-03 2005-01-13 Asahi Kasei Emd Corporation 方位角計測装置及び方位角計測方法
WO2006011276A1 (ja) * 2004-07-23 2006-02-02 Yamaha Corporation 方位処理装置、方位処理方法、方位処理プログラム、方位測定装置、傾斜オフセットの補正方法、方位計測方法、方位センサユニット及び携帯電子機器
EP1775550B1 (en) * 2005-10-11 2013-12-11 Yamaha Corporation Magnetic sensor control device
JP4919142B2 (ja) * 2005-10-19 2012-04-18 アイチ・マイクロ・インテリジェント株式会社 磁気コンパス
US20080201096A1 (en) * 2007-02-21 2008-08-21 Johnson Controls Technology Company Compass calibration system and method
FI120276B (fi) * 2007-05-21 2009-08-31 Suunto Oy Kompassilaite ja menetelmä kompassilaitteita varten
US8370097B2 (en) * 2009-06-05 2013-02-05 Apple Inc. Calibration techniques for an electronic compass in portable device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0968431A (ja) 1995-08-31 1997-03-11 Furuno Electric Co Ltd 電子式コンパス
JP2004309227A (ja) * 2003-04-03 2004-11-04 Asahi Kasei Electronics Co Ltd 計測装置、方位角計測装置及びキャリブレーションプログラム、並びにキャリブレーション方法
JP2005195376A (ja) * 2003-12-26 2005-07-21 Asahi Kasei Electronics Co Ltd 方位角計測方法および方位角計測装置
JP2006047038A (ja) * 2004-08-03 2006-02-16 Yamaha Corp 地磁気センサの補正方法
JP2007271454A (ja) * 2006-03-31 2007-10-18 Yamaha Corp 携帯端末、および該携帯端末における磁気センサデータの取込方法
JP2008241675A (ja) 2007-03-23 2008-10-09 Aichi Micro Intelligent Corp 電子コンパス

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2660561A4

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140182148A1 (en) * 2012-12-31 2014-07-03 Suunto Oy Method and a device for determining a direction in a magnetic field
US9068832B2 (en) * 2012-12-31 2015-06-30 Suunto Oy Method and a device for determining a direction in a magnetic field

Also Published As

Publication number Publication date
EP2660561A4 (en) 2016-03-23
EP2660561A1 (en) 2013-11-06
US20130307547A1 (en) 2013-11-21
US8698503B2 (en) 2014-04-15
JP5017539B1 (ja) 2012-09-05
JP2012168140A (ja) 2012-09-06
EP2660561B1 (en) 2016-09-28

Similar Documents

Publication Publication Date Title
JP5017539B1 (ja) 地磁気を測定し、利用する応用機器
US9506754B2 (en) Magnetometer accuracy and use
US9164600B2 (en) Mobile device
JP4590511B2 (ja) 電子コンパス
JP5706576B2 (ja) オフセット推定装置、オフセット推定方法、オフセット推定プログラムおよび情報処理装置
JP2006300880A (ja) 傾斜センサおよびこれを用いた方位計測装置
US20120078562A1 (en) Geomagnetic sensing device
JP2006113019A (ja) 3軸型電子コンパス及びこれを用いた方位検出方法
JP2012242267A5 (ja)
KR20120107439A (ko) 자체 보정 멀티-자기력계 플랫폼을 위한 시스템 및 방법
JP2017166895A (ja) 電子機器及びセンサ較正方法、センサ較正プログラム
JP2019120587A (ja) 測位システム及び測位方法
KR100831373B1 (ko) 에러 여부를 체크하는 전자기기 및 그 방법
JP5678748B2 (ja) 端末装置及び地磁気環境判定プログラム
CN108592902A (zh) 一种基于多传感器的定位设备及定位方法、系统和机械臂
JP5457890B2 (ja) 方位検知装置
JP3797661B2 (ja) 姿勢角度検出装置
JPWO2011129288A1 (ja) 地磁気検知装置
JP2006337333A (ja) 3軸型電子コンパス及びこれを用いた方位検出方法
JP2009264917A (ja) 加速度センサ及び地磁気センサを用いて進行向きの転換を判定する携帯端末、プログラム及び方法
JP5309373B2 (ja) 電子コンパス
JP2013217793A (ja) オフセット算出装置、オフセット算出方法、プログラム、及び情報処理装置
CN108413970A (zh) 一种定位方法、云系统、电子设备及计算机程序产品
JP2013015435A (ja) 磁気式ジャイロ
JP6146962B2 (ja) 磁気データ処理装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12747123

Country of ref document: EP

Kind code of ref document: A1

REEP Request for entry into the european phase

Ref document number: 2012747123

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2012747123

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 13983308

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE