Background of the Invention
The invention relates to a process for compensating for a magnetic interference field in a vehicle.
In order to direct the route of a vehicle, it is necessary to determine the direction of the earth's magnetic field in relation to the vehicle. The magnetic field is measured by a magnetometer, e.g. a magnetic field probe, which is fixedly mounted in the vehicle. During a calibration run, e.g. a circular run, the parameters of the locus curve, namely of an ellipse, of the magnetic field are determined in accordance with a known process. The parameters of the elliptical locus curve are the two semiaxes a and b, their rotation through a specified angle .delta. which describes the shape, and the displacement from the coordinate origin. This displacement is designated the "interference field vector".
An analysis of the accumulated measurement data of the magnetic field probe has revealed that the interference field vector changes in a discontinuous manner on account of external influences, while the shape of the locus curve as a rule remains constant. Such influences are, by way of example, the movement of a steel sliding roof or of a glass sliding roof with a steel frame, changing slopes of the roadway which extend perpendicular to the direction of travel, the loading or unloading of metallic loads in the vehicle or the switching of an electrical load in the vehicle, such as for example the rear window heating. These changes are longer-lasting or take place slowly, for example in the range of minutes. They must be distinguished from short-term interference or interference fields, which are caused by subways or buses traveling past.
Accordingly, various compensation processes have already been described. By way of example, German reference DE-OS 36 44 681 discloses a navigation process for vehicles having an electrical compass, in which strong magnetic influences in the environment of the magnetic field sensor are compensated for using a dynamic drag process. In the known process, a weighted interference field vector is added to the interference vector. In this process, it is however disadvantageous that the distinction between short and longer-lasting interference fields takes place only exclusively with the aid of the weighting factor. If the weighting factor according to the known process is selected to be 0.1 with a cycle time of 100 msec, then much short term interference, as mentioned above, is fully involved in the interference vector displacement and thus corrupts the result of the navigation in a lasting fashion. If, on the other hand, the weighting factor is selected to be so small that the above effect does not occur, then the short term interference fields are nevertheless involved in the result, but more weakly. Moreover, the drag then lasts for a very long time, for example in the ten-minute range, so that navigation is subjected to interference for an unreasonably great length of time.
Summary of the Invention
Accordingly, the object of the invention is to improve a process for compensating for magnetic interference fields which are generated by discontinuous changes and lead to longer-lasting interference. In this case, short-term interference which likewise leads to a change in the measured magnetic field can be suppressed, in order thereby to avoid indication errors.
The process according to the invention has the following process steps:
The locus curve of the measurements of the magnetic field probe lies on an ellipse. During a calibration run, for initial compensation, the interference field parameters (parameters of this ellipse) are determined, that is to say the center coordinates, the axes a and b and the oblique position. All measurements are transformed onto a circle with the radius a and the coordinate origin. All further process steps take place in this transformed system. Short-term interference field changes are detected using filters and by confidence region checks, and the associated magnetic field probe measurements are separated out. The angle and radius are calculated for each pair of measurements. The radius is stored in a segmented memory in accordance with the associated angle. This segmented memory covers the entire angular range from 0.degree. to 360.degree.; a multiplicity of angular ranges, for example 15.degree. in each instance, being formed, with associated memory cells. All radii which have been stored in identical memory cells of the segmented memory are averaged. In addition, the averages of all pairs of measurements belonging to an angular range are formed and stored. As soon as a sufficient quantity of measurements is available and a specified number of angular ranges has been swept over, one of the two processes described below is carried out.
In a first variant, the radius difference is calculated from the averaged radius value and the radius value of the original circle for each angular range. The radius difference values are filtered by means of a low pass filter, and the maximum of the magnitude is then determined. A new center of the locus curve is obtained by displacement of the old center by the magnitude and associated direction of the previously determined maximum. In a further step, the distances from the new circle center to the stored mean measurement values are calculated and compared with the radius of the original circle from the initial compensation, the newly determined interference field vector being declared valid if there is adequately accurate agreement. If there is no adequately accurate agreement, then the segment which corresponds to the maximum is declared invalid and the procedure is repeated using the remaining segments. This takes place as often as is necessary until either a fitting value has been found or a maximum percentage of all segment regions employed has been used up.
In another variant of the compensation process according to the invention, a straight line is calculated from the averaged measurements (X,Y) by means of linear regression, and its correlation coefficient is compared with an empirically determined value. If the correlation coefficient is greater, then the center of gravity of all the pairs of measurements is determined, e.g. as an average, the point of intersection of the straight line with the circle. The perpendicular at this center towards the coordinate origin is constructed. The radius of the circle is now plotted on the perpendicular, the end point giving the center of the new locus curve, so that the further compensation can be carried out with the interference field vector obtained thereby.
In both processes, measurements are first assembled and processed during a specific period of time, before the actual procedure of compensation matching is carried out. If detectable interference occurs during this phase, the measurement collection phase is interrupted and recommenced.
In both processes, the instant of the compensation process is determined by the following criteria:
A specified number of measurements have been received and a specified number of angle segments have been described.
In an improvement of the process, different combinations of a specific number of measurements and angle segments are permitted, at least one of which must be satisfied. The reason for this resides in the following fact:
A vehicle travels for a relatively long time substantially straight ahead, and a large number of measurements are collected within a small angular range. In another case, a vehicle travels through a 90.degree. curve, a small number of measurements being entered in a relatively large number of angular ranges. In both cases, empirical recompensation should be possible.
In a development of the process according to the invention, even during the data collection phase a check is made as to how well the present interference field vector corresponds to the instantaneous measurements. In this case, the radii of the measurements are compared with the theoretical radius. If a relatively great deviation is established, then the measurements can be buffer-stored and, after the next compensation matching, the position can be corrected retroactively.
Brief Description of the Drawings
The features of the present invention which are believed to be novel, are set forth with particularity in the appended claims. The invention, together with further objects and advantages, may best be understood by reference to the following description taken in conjunction with the accompanying drawings, in the several figures of which like reference numerals identify like elements, and in which:
FIG. 1 shows an elliptical locus curve of the magnetic field and its displacement in a cartesian coordinate system,
FIG. 2 shows a displaced locus curve, transformed onto the circle, on the basis of the interference field for calculation by means of maximum and pattern recognition, and
FIG. 3 shows the same for calculation by means of straight line correlation and the normal.
Description of the Preferred Embodiment
The known calibration procedure is illustrated in FIG. 1. During a calibration run, the parameters of the locus curve--ellipse E1--of the magnetic field are determined and stored.
Accordingly, this locus curve is known together with its parameters, the semiaxes a, b and the angular rotation .delta. and displaced from the coordinate origin O on account of the interference field, so that the interference field vector V1 can be calculated from the coordinate origin O to the center M1 of the ellipse E1. A discontinuous change of the magnetic field again leads to a further displacement of the elliptical locus curve; this is indicated in FIG. 1 by the broken-line ellipse E2, which then exhibits the center M2. The object of the invention is now to determine the discontinuous change of the interference field and thus the new interference field vector V2.
The process according to the invention (variant 1) for determining the interference field vector is intended to be illustrated with reference to FIG. 2. As initially explained, the measurements which fall within a specified segment are averaged with their radius value. The circle K1 corresponds to the locus curve from the initial compensation with the radius a and the center M1 at the origin O, which was determined using the calibration run. In the event of the vehicle continuing to move, and in the event of a discontinuous magnetic field change being caused, e.g. by opening the steel sliding roof, a new locus curve K2 is obtained with a series of measurement points MP, which were caused by this discontinuous interference. According to the invention, the radius difference value .DELTA.a is now calculated, for each segment, from the averaged radius values and the radius a of the original circle K1. In order to exclude scattered values of the measurement points, the radius difference values are filtered by means of a low pass filter. The maximum MAX is now determined, in terms of magnitude and direction, from the filtered radius difference values, and the center M2 of the new locus curve K2 is calculated therefrom. The new interference field vector V2 (from FIG. 1) with which the further compensation is intended to be carried out is now calculated therefrom.
Before, however, compensation takes place with this new interference field vector V2, pattern recognition is also started. To this end, the distances of the stored measurement points MP, transformed onto the circle K2, from the new circle center M2 are initially calculated. In this case, these distances are intended to agree adequately accurately with the radius a of the circle K1 from the initial compensation. If this condition is satisfied, then the operation finally takes place with the new interference field vector V2. Otherwise, the calculated maximum is designated as unusable and a new maximum is sought. The entire procedure is repeated until either a usable maximum has been found or more than a specific number of described angular segments have been identified as unusable. The process according to the invention has the advantage that in the event of a discontinuous disturbance of the magnetic field occurring, discontinuous rapid matching to the new magnetic interference field vector takes place. Subsequent matching by means of a directional factor is accordingly not necessary.
A further process according to the invention (variant 2) is illustrated in FIG. 3, for determining the interference field vector for compensating for the interference field. The process is based on the idea that a circular arc can be approximated by a straight line g within a small angle. If the perpendicular L at the center P is dropped in the direction of the coordinate origin O onto this straight line g or on this straight line section S1, S2 which corresponds to the measurements MP of the earth's magnetic field, and the radius a obtained from the locus curve K1 of the initial compensation is marked off thereon, then this gives the center M2 of the new locus curve K2. The locus curve K1 is the locus curve E1 from the initial compensation, normalized onto the circle, with the center M1 and the radius a. The discontinuously occurring interference field gives a set of measurement points MP on a displaced locus curve E2 to the transformed circle K2.
The new interference field vector is the vector sum of the old interference field vector (V1) and the center displacement OM2. The measurement points MP are statistically matched to a straight line g, and the correlation of this straight line g is determined. The straight line is evaluated with the aid of the correlation; in this case, it has become evident that the empirically found value of 0.93 can be regarded as the lower limit value, in order to avoid an erroneous displacement. In the event of falling below this value, the process is then interrupted and restarted. The points of intersection S1 and S2 of the straight line g with the measurement points MP are calculated, and the center P of the straight line section S1,S2 is determined therefrom. The perpendicular L is then dropped through the center of gravity which has been found P towards the origin O. As already mentioned above, the new center M2 is determined thereon, and the new interference field vector is thus obtained.
In both processes according to the invention, the quality of the interference field vector can be determined on the basis of the comparison of the radius values of all participating magnetic field measurements with the radius derived from the initial compensation. All the original measurements from the magnetic field probe and from the wheel sensor (track pulses) are stored from the moment when the quality of the interference field vector declines. After successful correction of the interference vector, i.e. when the quality of the interference field vector is once again adequately good, the position of the vehicle can subsequently be compensated for on the basis of the stored data.
The invention is not limited to the particular details of the method depicted and other modifications and applications are contemplated. Certain other changes may be made in the above described method without departing from the true spirit and scope of the invention herein involved. It is intended, therefore, that the subject matter in the above depiction shall be interpreted as illustrative and not in a limiting sense.