This invention relates to an electronic compass and a direction finding method of a mobile object, using a magnetic sensor and, more particularly, to an electronic compass and a direction finding method for calibrating directional errors caused by disturbing magnetic fields, for example, generated by magnetization of the mobile object.
First, a direction finding principle using a conventional magnetic sensor will be explained with reference to
As illustrated in
Hox=He′ cos Ψ
Hoy=He′ sin Ψ [Equations 1]
The outputs X, Y have certain values in accordance with these two components of the Earth's magnetic field vector. As apparent from the above Equations 1, as the angle Ψ is varied, namely, the mobile object on which the geomagnetic direction sensor is mounted is turned, the outputs X, Y draw a circle with a center at the origin O (0,0) of the coordinate system with the abscissa axis X and the ordinate axis Y shown in
θ=tan−1(X/Y) [Equation 2]
As mentioned above, when there is no influence of magnetization of the mobile object in itself (hereinafter, simply referred to “magnetization”), the plot of the output signals X, Y in a full turn of the mobile object forms a circle with a center at the origin O (0,0), as indicated by the solid line in
When the mobile object crosses railroad tracks, for instance, the mobile object is magnetized and the azimuth circle is shifted, for instance, in the direction of the arrow and becomes a circle with a center at OA (XA, YA), as indicated by the dotted line. If the heading direction of the mobile object is calculated on the base of the output signals on the azimuth circle which has been sifted thus greatly, that is, the output signals (Xi, Yi) detected as two perpendicular component data of the Earth's magnetic field vector, large directional errors are measured and an unintelligible direction is suddenly displayed.
To reduce this kind of directional errors caused by magnetization, in some conventional electronic compasses for mobile objects using a magnetic sensor, a perpendicular bisector of a line segment connecting two two-dimensional coordinate data points is calculated and the calculated perpendicular bisector is sequentially stored and classified into a plurality of sectors by its inclination, and when more than a specified number of data are stored in all the sectors, a representative value of each sector is calculated. Then, a point where the sum of squares of distances from the respective representative values is a minimum is calculated and used as a center of the azimuth circle. (For example, see Japanese Unexamined Patent Publication (Koukai) No. H06-58758)
This method takes a long time to display a relatively accurate direction, because this method needs to store more than a specified number of data in all sectors and the center of the azimuth circle is obtained by calculating a point where the sum of squares is a minimum.
In another some electric compasses, a parameter to determine an oval as an azimuth circle is obtained from a predetermined number of two-dimensional coordinate data detected by a geomagnetic direction sensor, using the least square method, and the two-dimensional coordinate data located on the determined oval are converted into data on a true circle and then a center of the azimuth circle is calculated. (For example, see Japanese Unexamined Patent Publication (Koukai) No. H09-68431)
This method also takes a long time to display a relatively accurate direction, since this method needs to wait until a certain number of data are collected in order to obtain a center of the azimuth circle.
When these conventional electronic compasses using a magnetic sensor are magnetized, it takes a lot of time to display a relatively accurate direction, as mentioned above. Therefore, a direction including an enormous error (or an intelligible direction) will be displayed for a long time. Since a driver is generally ignorant of the magnetization, the display of the intelligible direction for a long time makes the driver uneasy.
The present invention has been conceived in view of the above problems. It is an object of the present invention to provide an electronic compass and a direction finding method which can free a driver from uneasiness due to display of an intelligible direction.
An electronic compass according to a first aspect of the present invention, which has been conceived to dissolve the above problems, comprises: a geomagnetic direction sensor having two magnetic sensor elements arranged perpendicular to each other for detecting two components of the Earth's magnetic field vector, which varies with a heading direction θ of a mobile object, as two-dimensional Cartesian coordinate data (X1, Y1), (X2, Y2) . . . (Xi, Yi); a direction calculating means for calculating the heading direction θ of the mobile object from the two-dimensional coordinate data (Xi, Yi); a magnetic field judging means for determining whether the magnetic field is normal or abnormal; and a correcting means for correcting a center of an azimuth circle plotted by the two-dimensional coordinate data (Xi, Yi) in a turn of the mobile object, when the magnetic field judging means determines that the magnetic field is abnormal. The correcting means has the center calculating means for calculating a center of the azimuth circle from at least three of the two-dimensional coordinate data (Xi, Yi); and a least squares calculating means for calculating the azimuth circle from a predetermined number of the two-dimensional coordinates data (Xi, Yi), using the least square method. The direction calculating means outputs the heading direction θ calculated from the two-dimensional coordinate data (Xi, Yi) when the magnetic field judging means determines that the magnetic field is normal, and calculates and outputs the heading direction θ sequentially by using the center of the azimuth circle corrected by the correcting means when the magnetic field judging means determines that the magnetic field is abnormal.
Only when the magnetic field judging means determines that the magnetic field is abnormal and the center of the azimuth circle has to be corrected, a center of the azimuth circle is calculated from at least three two-dimensional coordinate data (Xi, Yi) by the center calculating means, and the direction is obtained by the direction calculating means by using the calculated center as a provisional center of the azimuth circle. Therefore, a relatively accurate direction can be displayed in a short time. At a later time, a center of the azimuth circle is obtained from a predetermined number of the two-dimensional coordinate data by the least squares calculating means and a direction is obtained by the direction calculating means. So, a direction with a higher accuracy can be displayed eventually. Accordingly, display of an intelligible direction due to magnetization can be stopped and the driver can be freed from uneasiness.
In an electronic compass according to the first aspect of the present invention, the magnetic field judging means may determine whether the magnetic field is normal or abnormal by comparing magnitude of the magnetic field vector obtained from the two-dimensional coordinate data (Xi, Yi) and/or a time variation of the heading direction θ calculated by the direction calculating means, with a predetermined threshold value.
Since both magnitude of the magnetic field vector and a time variation of the heading direction θ can be obtained from the two-dimensional coordinate data (Xi, Yi), a new component is not required. Whether the magnetic field is normal or abnormal can be determined by either or both of magnitude of the magnetic vector or a time variation of the heading direction θ. The determination based on the both attains a higher accuracy.
In an electronic compass according to the first aspect of the present invention, the center calculating means may obtain at least two perpendicular bisectors of at least two line segments connecting different two-dimensional coordinate data, from the two-dimensional coordinate data (Xi, Yi), and calculate an intersecting point of the at least two perpendicular bisectors.
Since an intersecting point of respective perpendicular bisectors of two chords connecting three two-dimensional coordinate data is obtained and used as a provisional center of the azimuth circle, display of an intelligible direction due to magnetization can be stopped in a short time.
In this electronic compass, the correcting means may further have an averaging means for averaging the intersecting point calculated by the center calculating means and a center point of the azimuth circle calculated by the least squares calculating means.
Since an average value of the intersecting point calculated by the center calculating means and a center point of the azimuth circle calculated by the least squares calculating means is obtained and a direction is obtained by the direction calculating means by using the average value as a center of the azimuth circle, a direction with a higher accuracy can be displayed eventually.
In an electronic compass according to the first aspect of the present invention, the center calculating means may obtain a triangle connecting three data from the two-dimensional coordinate data (Xi, Yi), and draw a perpendicular defined by a length of a longest side of the triangle and an apex angle opposite the longest side from a midpoint on the longest side, thereby calculating an end point of the perpendicular.
Since a triangle connecting three data is obtained and an end point of a perpendicular drawn from a midpoint on a longest side of the triangle is calculated and used as a provisional center of the azimuth circle, display of an intelligible direction due to magnetization can be stopped in a short time.
In this electronic compass, the correcting means may have an averaging means for averaging the end point calculated by the center calculating means and a center point of the azimuth circle calculated by the least squares calculating means.
Since an average value of the end point calculated by the center calculating means and a center point of the azimuth circle calculated by the least squares calculating means is obtained and a direction is obtained by the direction calculating means by using the average value as a center of the azimuth circle, a direction with a higher accuracy can be displayed eventually.
In an electronic compass according to the first aspect of the present invention, the magnetic sensor elements can be magneto-impedance sensors.
Magneto-impedance sensors are so ultracompact that the geomagnetic direction sensor can be reduced in size. Accordingly, the geomagnetic direction sensor can be installed in a mirror frame or a mounting base of a rearview mirror of a vehicle. Consequently, the geomagnetic direction sensor can be installed at a distance from such steel products having high permeability as roof and other structural body components of a vehicle, which are prone to have harmful influences on magnetic sensors, and an electronic compass with a higher accuracy can be realized.
A direction finding method according to a second aspect of the present invention, which has been conceived to dissolve the above problems, comprises a two-dimensional coordinate data detecting step for detecting two components of the Earth's magnetic field vector, which varies with a heading direction θ of a mobile object, as two-dimensional Cartesian coordinate data (X1, Y1), (X2, Y2) . . . (Xi, Yi); a direction calculating step for calculating the heading direction θ of the mobile object from the two-dimensional coordinate data (Xi, Yi) detected in the two-dimensional coordinate data detecting step; a magnetic field judging step for determining whether the magnetic field is normal or abnormal; and a correcting step for correcting a center of an azimuth circle plotted by the two-dimensional coordinate data in a turn of the mobile object, when the magnetic field judging step determines that the magnetic field is abnormal. The correcting step has a center calculating step for calculating the center of the azimuth circle from at least three of the two-dimensional coordinate data (Xi, Yi); and a least squares calculating step for calculating the azimuth circle plotted in the turn of the mobile object from a predetermined number of the two-dimensional coordinate data (Xi, Yi), using the least square method. The direction calculating step outputs the heading direction θ of the mobile object calculated from the two-dimensional coordinate data (Xi, Yi) when the magnetic field judging step determines that the magnetic field is normal, and calculates and outputs the heading direction θ sequentially by using the center of the azimuth circle corrected in the correction step when the magnetic field judging step determines that the magnetic field is abnormal.
In a direction finding method according to the second aspect of the present invention, the magnetic field judging step may determine whether the magnetic field is normal or abnormal by comparing magnitude of the magnetic vector obtained from the two-dimensional coordinate data (Xi, Yi) and/or a time variation of the heading direction θ calculated in the direction calculating step, with a predetermined threshold value.
In a direction finding method according to the second aspect of the present invention, the center calculating step may obtain at least two perpendicular bisectors of at least two line segments connecting different two-dimensional coordinate data, from the two-dimensional coordinate data (Xi, Yi), and calculate an intersecting point of the at least two perpendicular bisectors.
In this direction finding method, the correcting step may have an averaging step for averaging the intersecting point calculated in the center calculating step and a center point of the azimuth circle calculated in the least squares calculating step.
In a direction finding method according to the second aspect of the present invention, the center calculating step may obtain a triangle connecting three data from the two-dimensional coordinate data (Xi, Yi), and draw a perpendicular defined by a length of a longest side of the triangle and an apex angle opposite the longest side from a midpoint on the longest side, thereby calculating an end point of the perpendicular.
In this direction finding method, the correcting step may have an averaging step for averaging the end point calculated in the center calculating step and a center point of the azimuth circle calculated in the least squares calculating step.
Owing to the above construction, the electronic compass according to the first aspect of the present invention and the direction finding method according to the second aspect of the present invention have the following advantages.
Even if the electronic compass displays an incorrect direction due to magnetization, immediately the center of the azimuth circle can be corrected by the center calculating means, using a turn of the vehicle, and at a later time the center of the azimuth circle can be corrected with a higher accuracy by the least squares calculating means. Therefore, the present invention allows a vehicle driver to keep comfortable drive, freed from uneasiness due to display of directional errors.
Besides, since an average value of the center position of the azimuth circle calculated by the center calculating means and the center position of the azimuth circle calculated by the least squares calculating means is used as a center of the azimuth circle, correction can be carried out with a much higher accuracy.
In describing preferred embodiments of the present invention, reference is made to the accompanying drawings wherein like parts have like reference numerals.
Now, preferred embodiments of the present invention will be described with reference to the drawings.
An electronic compass of this preferred embodiment comprises, as shown in
It is possible to employ, as the geomagnetic direction sensor 1, the conventional sensor which uses two coils wound orthogonally around a permalloy core as the magnetic sensor elements 11, 11′, as shown in
The A/D converter 2 preferably has a resolution of about 14 bits. In this case, the mobile object can attain enough heading direction resolution and at the same time signals will never be saturated even when strength of peripheral magnetic fields of the geomagnetic direction sensor 1 becomes greater than the Earth's magnetic field due to magnetization of the mobile object.
The microcomputer 3 comprises a magnetic field judging means A 31 for determining whether the magnetic field is normal or abnormal, a direction calculating means 32 for calculating a heading direction θ of the mobile object, and a correcting means 33 for correcting a center of an azimuth circle when the magnetic field judging means A 31 determines that the magnetic field is abnormal. The correcting means 33 has a center calculating means A 331 and a least squares calculating means 332. It is to be noted that the magnetic field judging means A 31, the direction calculating means 32 and the correcting means 33 are software components.
The magnetic field judging means A 31 is to determine whether the magnetic field is normal or abnormal by comparing magnitude of the magnetic field vector obtained from the two-dimensional coordinate data (Xi, Yi) with a predetermined threshold value.
The center calculating means A 331 is to obtain two perpendicular bisectors of two line segments between different two-dimensional coordinate data, from the two-dimensional coordinate data (Xi, Yi), calculate an intersecting point of the two perpendicular bisectors and use the intersecting point as a center. However, it is preferable to obtain three or more perpendicular bisectors of three or more line segments between different two-dimensional coordinate data, from the two-dimensional coordinate data (Xi, Yi) and average their intersecting points. In this case, the intersecting point can be obtained with a higher accuracy and the heading direction can be measured with a higher accuracy.
The two-dimensional coordinate data (Xi, Yi) from the two magnetic sensor elements 11, 11′ are inputted into the microcomputer 3 through the A/D converter 2. The magnetic field judging means A 31 of the microcomputer 3 determines which of an absolute value (Xi2+Yi2)1/2 of the two-dimensional coordinate data (Xi, Yi) and Ha±Hs is greater. Here, Ha is an absolute value of the horizontal components of the Earth's magnetic field in Honshu, the main island of Japan and Ha=300 mGs (=30 μT), and Hs is set in the range from one-tenth to two-tenths of Ha and, for instance, Hs=50 mGs (=5 μT). Desirably, Ha and Hs are varied in accordance with a region in which the electronic compass is used. Hs can have different values between on the positive side and on the negative side, for example, +Hs and −Hs′.
The operation of the magnetic field judging means A 31 will be described with reference to the flowchart of
When the magnetic field is determined to be normal in step 12 or step 14, the microcomputer 3 proceeds to the direction calculating means 32, where θ is calculated using the aforementioned Equation 2 and the heading direction is informed to a vehicle driver by the display means 4.
As mentioned above, when the magnetic field is determined to be abnormal again in step 14, the microcomputer 3 proceeds to the correction means 33, where the center of the azimuth circle is corrected as follows. For example, as shown in
θ=tan−1[(Xi−Xp)/(Yi−Yp)] [Equation 3]
Then the heading direction is informed to a vehicle driver by the display means 4.
The operation of the center calculating means A 331 is carried out by software, as shown in the flowchart of
This method of calculating a center of the azimuth circle by using perpendicular bisectors is characterized in that only three data points in a turn of a vehicle allows immediate calculation of a center of the azimuth circle and that a provisional heading direction can be informed to the driver. It is true that this method using momentarily changing data of the geomagnetic direction sensor 1 tends to have errors, because in the actual use respective data points do not always lie on an ideal azimuth circle, as mentioned above. However, this method allows a quick recovery from such a situation as the vehicle is magnetized and an unintelligible direction is suddenly displayed. Therefore, this method is useful and practical enough as a correcting means to protect a driver from uneasiness. Especially in the case of electronic compasses for vehicles, because displays are often demanded to have a resolution of about 8 directions or 16 directions, it is judged that this method exhibits sufficient performance.
Next, in the zone Zc after the turn of the vehicle as well as in the zone Za before the turn of the vehicle as shown in
The operation of the least squares calculating means 332 is carried out by software, as shown in the flowchart of
This calculation of the center position (Xp′, Yp′) by the least squares calculating means 332 needs a certain time to collect a predetermined number of data points and is completed at a later time than the center calculating means A 331. As shown in
It is preferable that, as shown in
When the magnetic field judging means A 31 determines that the magnetic field is abnormal, as shown in
The operation of the averaging means 333 is carried out by software, as shown in the flowchart of
Upon receiving the center position data (Xp″, Yp″) from the averaging means 333, as shown in
An electronic compass of this preferred embodiment is similar to that of the first preferred embodiment, except for the microcomputer, as shown in
The magnetic field judging means B 31′ calculates an angular velocity δθ/δt by differentiating with respect to time the directions θ received from the direction calculating means 32 and compares the calculated angular velocity δθ/δt with a predetermined angular velocity k. The predetermined angular velocity k is a larger angular velocity than those which can be generated by a turn of the vehicle and, for instance, k=90°/sec.
The operation of the magnetic field judging means B 31′ will be described with reference to the flowchart of
As mentioned before, when the magnetic field is determined to be abnormal in step 53, the microcomputer 3″ proceeds to the correcting means 33″, where the center of the azimuth circle is corrected as follows. While the center calculating means A 331 of the first preferred embodiment obtains an intersecting point of two perpendicular bisectors, as shown in
l=(c/2)/tan(π−φ) [Equation 4]
Equation 4 is derived as follows. From the cosine law, we have
φ=cos−1[(c2−a2−b2)/(−2ab)] [Equation 5]
where, as shown in
On the other hand, since an exterior angle at a vertex Op of a triangle connecting two points (X1, Y1) (X3, Y3) of a triangle (X1, Y1), (X2, Y2), (X3; Y3) inscribed in a circle G and the center Op of the circle G, namely, an exterior angle of ∠(X1, Y1), Op, (X3, Y3) is geometrically 2φ, an interior angle at the vertex Op, namely, ∠(X1, Y1), Op, (X3, Y3) is 2(π−φ). Each apex angle of two triangles whose sides are a perpendicular l dropped from the center Op to the side having the length c is (π−φ). Accordingly, we have
tan(π−φ)=(c/2)/l
Equation 4 is derived from this equation.
The center position (Xp, Yp) of the azimuth circle calculated by the center calculating means B 331′ is used by the direction calculating means 32, as shown in
The operation of the center calculating means B 331′ is carried out by software, as shown in the flowchart of
This method of calculating a center of the azimuth circle by drawing a perpendicular from a midpoint on a side having a length c of a triangle also allows immediate calculation of a center of an azimuth circle if there are only three data points in a turn of the vehicle and can inform a provisional heading direction to a vehicle driver.
Changes and modifications in the specifically described embodiments can be carried out without departing from the principles of the invention, which is intended to be limited only by the scope of the appended claims, as interpreted according to the principles of patent law.
Number | Date | Country | Kind |
---|---|---|---|
2005-049731 | Feb 2005 | JP | national |