CALIBRATION METHOD FOR A RELATIVE HEADING SENSOR

Abstract: The invention provides a direction sensor and a method of calibrating a direction sensor having a relative heading sensor (14) and an absolute heading sensor (16). The method allows calibration (22) of both the relative heading sensor (14) and the absolute heading sensor (16) at the same time, by taking advantage of the known angular relationship between maxima and minima on the measurement curve of the absolute heading sensor (16). Such maxima and minima are found by rotating the sensors (12-18) through an angle of at least 360 DEG , reading the absolute and relative heading sensor outputs at numerous points and comparing each successive output. The relative heading sensor output at the minimum is subtracted from that at the maximum, and the difference divided by the known angle to arrive at a conversion constant for the relative heading sensor (14). The center and radii of the measurement curve of the absolute heading sensor (16) may be found by determining the maxima and minima of the curve in two perpendicular directions.

Description: CALIBRATION METHOD FOR A RELATIVE HEADING SENSOR BACKGROUND OF THE INVENTION The present invention relates generally to direction sensors for route guidance systems for vehicle * navigation and more specifically, to calibration of a 5 relative heading sensor such as a gyroscope. Frequently, route guidance systems navigate using dead-reckoning, wherein a vehicle's current position is determined by considering a known previous position of the vehicle and the direction and distance 10 travelled since the previous position. In such dead- reckoning systems, it is necessary to track the heading or direction of the vehicle relative to a reference direction. Usually, such systems utilize both an absolute heading sensor, such as a magnetic compass or 15 geomagnetic sensor, for sensing vehicle heading relative to a reference direction fixed with respect to the earth, as well as a relative heading sensor, such as a gyroscope, for sensing vehicle heading relative to a previous vehicle heading, i.e., the change in vehicle 20 heading. In automobile route guidance systems, the accuracy of such heading sensors can be significantly influenced by a number of factors. For example, the presence of local magnetic fields can significantly 25 affect magnetic compass readings. Such local magnetic fields are created by ' , for example, mechanisms in the vehicle in which the compass is carried, other vehicles in the vicinity, or nearby structures. Without periodic calibration to compensate for local effects, a magnetic 30 compass will produce heading readings with significant error. * A geomagnetic sensor typically has two outputs from two separate windings which produce X and Y component signals corresponding to the Earth's magnetic 35 field in two directions at right angles from each other. Ideally, if one was to plot the sensor's X and Y outputs at every point as the geomagnetic sensor is turned in a complete circle, the output would be a perfect circle such as shown in Figure 4. Thus, the direction a vehicle is pointing can be determined by comparing the X and Y coordinates output from the sensor to the center of the circle. In practice, however, the circle typically becomes an ellipse such as shown in Figures 5 or 6, due to effects discussed above. Relative heading sensors, such as gyroscopes, also require periodic calibration. Typically, two constants are critical in determining a relative heading from such a sensor. One is the sensor output at a reference or zero position, commonly called the "zero reading". The zero reading is subject to change with operating temperatures and other environmental factors. An inaccurate zero reading will cause all relative heading readings to be displaced from the actual relative heading by an amount equal to the error in the zero reading. A second constant in relative heading sensors is the conversion factor between the output signal of the sensor and the relative heading. Like the zero reading, this conversion factor is subject to the influence of temperature and other environmental factors, and may have an even more profound effect upon the accuracy of the sensor. For example, a 10% error in the conversion factor would result in a 10% error in all relative heading measurements, regardless of magnitude. It has been found that errors in zero reading and conversion factor produce significant inaccuracies in heading measurement in automobile navigation systems. It has been recognized, therefore, that the absolute and relative heading sensors used in automobile guidance systems must be calibrated regularly and accurately. On method for compensating for the magnetic compass or geomagnetic sensor output is shown in U.S. Patent Nos. 4,611,293 and 4,797,841. Upon entering a vehicle, the user triggers an input to put the system into calibration mode. The car is then turned in a complete circle, with the system recording the X and Y points as the car is turned through a complete circle. The X and Y outputs are recorded for all angles of the turn, and the maximum and minimum values of the X and Y outputs are determined to allow determination of the axes of the ellipse. The system then determines the difference between the points on the ellipse and a perfect circle for each output and uses these as a correction factor for that output. Patent No. 4,072,565 suggests at col. 4, lines 15-19, that a separate sensor could be used to detect a revolution of the vehicle for such a calibration method. Another method for calculating a geomagnetic sensor is to use the output from an angular rate sensor to provide a correction. Such systems are shown in U.S. Patent Nos. 4,831,563 and 4,862,398. However, as is apparent from the above discussion, the angular rate sensor itself needs to be calibrated. A conventional method of calibrating a relative heading sensor, such as a gyroscope, is to sample the sensor output when the vehicle is standing still to obtain a zero reading. Then, in order to calibrate the conversion constant, the sensor is placed on a turntable turning at a constant speed. The sensor output is compared with the speed, and the conversion factor is determined by dividing the speed by the gyroscope voltage output. However, this method of calibrating a relative heading sensor is not practical for vehicle navigation, since it would require removing the sensor and rotating it on a turntable. This method further requires specialized calibration (e.g. a turntable) equipment which may not be readily available. Another approach to calibration of a relative heading sensor utilizes a pre-calibrated absolute heading sensor, such as a magnetic compass, mounted in a fixed position relative to the relative heading sensor. As the relative heading sensor is rotated, the difference between two headings recorded by the absolute heading sensor is compared with the heading displacement measured by the relative heading sensor in order to calculate a conversion factor. This method is advantageous where the relative heading sensor is mounted in a vehicle and cannot be easily removed. However, the method requires the use of a second sensor such as a compass, and the second sensor must be calibrated before the relative heading sensor may be calibrated. For these and other reasons, a method of calibrating a relative heading sensor in a vehicle navigation system is desired which does not require additional calibration equipment or removal of the sensor from the vehicle. It would be further desirable if the calibration method allowed calibration of the relative heading sensor without requiring the use of a pre- calibrated absolute heading sensor. In particular, the calibration method should permit calibration of both a relative heading sensor and an absolute heading sensor at the same time and during the same procedure. Finally, the calibration method should be simple to perform in view of the frequency that such calibration is required in automobile navigation systems. SUMMARY OF THE INVENTION The present invention provides a method for simultaneously calibrating absolute and relative heading sensors. A user enters the vehicle and provides an input to the guidance system to put it in a calibration mode. The user then turns the vehicle in a complete circle. After the vehicle is started and before it turns, the system determines the zero reading of the relative heading sensor in the standard manner. As the vehicle rotates, the X and Y outputs of the geomagnetic sensor are examined and historical maximum and minimum values are recorded. The maximum and minimum values are updated if a new value is higher or lower, respectively. When the vehicle has turned completely in a circle, the recorded maximum and minimum values for the X and Y direction will be the points on the ellipse of Figures 5 or 6 which are the maximum and minimum values. The invention recognizes that the difference between the maximum and minimum in the X direction or in the Y direction is 180°. Thus, the conversion factor for the relative heading sensor is calibrated by applying 180° to the relative heading sensor outputs recorded at the same time as the maximum and minimum geomagnetic sensor outputs in one of the X or Y directions. The present invention further improves on the calibration of the conversion factor by calculating the maximum and minimum values in both the X and Y directions, then averaging the two factors. At the same time, the geomagnetic sensor itself is calibrated using a standard elliptical-to-circle comparison method discussed in the Background above. The method of the present invention recognizes that while the user is turning a circle to calibrate both sensors, an output of either sensor to determine when the circle has been completed will not be accurate since neither has been calibrated yet. Accordingly, the method requires that the vehicle be turned approximately 400° as determined by the relative heading sensor. This insures that at least 360° points are obtained, and no harm is done by the duplication of points since the plot for the geomagnetic sensor will simply retrace over portions of the ellipse already determined, and will not change the maximum and minimum values recorded. The present invention provides a method of calibrating a relative heading sensor which has significant advantages over conventional calibration methods. The calibration method of the present invention does not require the use of additional calibration equipment such as turntables, and may be used to calibrate a heading sensor mounted in a vehicle without removing the sensor from the vehicle. The method further eliminates the need for a pre-calibrated sensor to assist in calibration. The method further allows both a relative heading sensor and an absolute heading sensor to be calibrated during the same series of steps. The calibration method is simple and requires little time to complete, allowing calibration to be performed frequently to maintain accurate heading'readings for use in vehicle navigation. A further understanding of the nature and advantages of the invention may be realized by reference to the remaining portions of the specification and the drawings. BRIEF DESCRIPTION OF THE DRAWING Fig. 1 is a schematic showing data flow in a route guidance system constructed in accordance with the principles of the present invention; Fig. 2 is a schematic of a route guidance system constructed in accordance with the principles of the present invention; Fig. 3 is a schematic of a prior art geomagnetic sensor used in the system of Fig. 2; Figs. 4-6 are diagrams of measurement curves of the geomagnetic senso of Fig. 3. Figs. 7-12 are flow charts showing the steps to be executed in the calibration method of the present invention. DETAILED DESCRIPTION OF THE ILLUSTRATIVE EMBODIMENTS The present invention provides a direction sensor and a method for calibrating a direction sensor with particular usefulness in vehicle navigation and route guidance systems. Figure 1 illustrates an exemplary embodiment of a vehicle route guidance system. Guidance system 10 includes a plurality of sensors for providing positional data, including a mileage sensor 12, angular velocity (relative heading) sensor 14 and geomagnetic sensor 16. Usually, the angular velocity sensor comprises a gyroscope, but could comprise, for example, a differential odometer or other type of angular velocity sensor. The absolute heading sensor usually comprises a geomagnetic field sensor or compass. The system further includes a global positioning system (GPS) receiver 18 which receives position data such as latitude and longitude from, for example, a satellite-based navigation system. Data from sensors 12 to 16 and GPS receiver 18 is input to computing means 20. The signals from sensors 12-16 are calibrated to adjust for error-producing discontinuities in calibration section 22. The sensor output signals are then processed in signal processing section 24, where the signals are filtered to arrive at one or more estimates of a vector representing vehicle travel since the last known position. Dead-reckoning means 26 then determines a best estimate of the vehicle position and transmits the position to map matching means 28. If it is preferred to utilize GPS data rather than data from sensors 12-16, data from GPS receiver 18 is input to map matching means 28. Database 30 contains data representing a map of the area in which the vehicle is traveling. The data may represent, for example, road segments, headings, average speeds, turn restrictions and other relevant information. Map matching means 28 compares the position determined by dead-reckoning means 26 or input from GPS receiver 18 with the map data in database 30 to determine the location of the vehicle on the map. The vehicle position may then be transmitted to output communication means 32 to communicate to the user the position of the vehicle relative to the map. The system further provides route guidance capability wherein the user inputs a desired destination through user interface 34, commonly comprising a keyboard. The computing means 20 then calculates the optimum route from the current position of the vehicle to the desired destination. Route guidance means 36 determines the optimum route, including, for example, the most appropriate roadways to follow, where turns should be made, and distance to destination, using map data in database 30. The proper route is then communicated to the user through output communication means 32, which may comprise a screen display, audio speaker, or other means of communication. Figure 2 schematically illustrates an exemplary embodiment of the hardware of computing means 20. Sensors 12-16 and GPS receiver 18 are coupled to computing means 20 through sensor/GPS interface 40. Data from interface 40 is transmitted to CPU 42, which performs the calibration, signal processing, dead- reckoning, map matching and route guidance functions described above. Database 30 may be stored in storage medium 48, with software directing the operation of computing means 20 stored in ROM 44 for execution by CPU 42. RAM 46 permits reading and writing of the information necessary to execute such software programs. Storage medium 48 may comprise a hard disk drive, CD-ROM or IC onto which digitized map information has been stored. Output controller 52, which may comprise a graphics controller for a display screen, receives data processed by CPU 42 and transmits such data to output communicator 32, usually comprising a display screen. The user may input data, such as a desired destination, through user interface 34, typically a keyboard. As shown in the illustration of Figure 1, vehicle navigation systems usually employ one or more direction sensors to determine vehicle heading. Typically both a relative heading sensor, such as angular velocity sensor 14, as well as an absolute heading sensor such as geomagnetic sensor 16, are used so that the outputs of both sensors may be compared or checked for erroneous readings due to noise or environmental effects. Figure 3 illustrates an exemplary embodiment of a geomagnetic sensor 16, described in detail in U.S. Patent No. 4,672,565. The geomagnetic sensor includes a magnetic core 60 of ferromagnetic material with a pair of output windings 62A, 62B wound about the core at right angles to each other. An oscillation circuit 64 produces an electric current which is transmitted through signal winding 66 around core 60. An output proportional to a first X-component of the Earth's magnetic field produced in winding 62A, while an output proportional to a second Y- component (perpendicular to the X-component) of the Earth's magnetic field is produced in winding 62B. The output of windings 62A, 62B are filtered in filters 68, and the resultant signals amplified in amplifier circuits 70. Hold circuits 72 temporarily store the signals, which are output at outputs 74A, 74B upon a triggering signal from timing circuit 76. Thus, geomagnetic sensor 16 produces a first signal proportional to the geomagnetic field in a first "X" direction and a second output signal proportional to the geomagnetic field in a second "Y" direction, wherein the X and Y directions are perpendicular. As illustrated in Figure 4, if the Y output signal of geomagnetic -sensor 16 is plotted as a function of the X output signal, the theoretical result is a circle centered at a point (X0, Y0) . However, due to various factors, including local magnetic effects of the host vehicle and the non-ideal nature of the sensor itself, significant distortion can be seen in the sensor output. This distortion frequently produces an elliptical measurement curve as shown in Figure 5, or a tilted elliptical curve as shown in Figure 6. Therefore, the geomagnetic sensor must be calibrated in order to compensate for this distortion. Calibration results in the determination of the center and radii of such an elliptical measurement curve. Having found the center and radii, the corrected heading corresponding to a given output from the geomagnetic sensor can be determined using well-known calculations. A relative heading sensor in a vehicle navigation system, e.g. angular velocity sensor 14, will also require periodic calibration. An angular velocity sensor will typically consist of a gyroscope, or a differential odometer coupled to the wheels of the vehicle, and produces an output signal proportional to a change in angular velocity from a reference position. Therefore, two parameters are important in determining a relative heading from such a sensor. First, a zero reading must be obtained when the vehicle is in the reference position. Secondly, the conversion constant for translating the signal output of the sensor into a change in vehicle heading must be determined. It has been found that variable environmental factors such as temperature can have a significant effect upon zero reading and conversion constant, leading to error in relative heading calculation. The present invention provides a method and apparatus for calibrating an absolute heading sensor and a relative heading sensor which take advantage of the known angular relationship between maximum/minimum pairs on the measurement curve of the absolute heading sensor. As shown in Figure 5, the geomagnetic sensor output signal has a maximum at point PI and a minimum at point P3 in the X direction, and a maximum at point P2 and a minimum at point P4 in the Y direction. The angle between maximum PI and minimum P3 or between maximum P2 and minimum P4 will always be 180°, even in the case of a tilted elliptical measurement curve, as shown in Figure 6. The present invention utilizes the maximum/minimum pairs and this known angular relationship to calculate the characteristics of the absolute heading measurement curve, as well as the zero reading and conversion constant of the relative heading sensor. In the method of the present invention, a zero reading from the relative heading sensor, typically a gyroscope, is taken while the vehicle is standing still. Referring to Figure 7, the vehicle is then moved in a circular path. The precise shape of the path is not important, so long as the vehicle is tending to return to its original position, such that the sensors are being rotated through at least 360°. As the vehicle moves, the X and Y outputs of the geomagnetic sensor (compass) are repeatedly sampled. At the same time, the output of the angular velocity sensor (gyroscope) is sampled. The vehicle is moved along the circular path until it has turned at least 400° as measured by the angular velocity sensor, using a predetermined, uncalibrated conversion constant. Because this conversion constant may not be accurate, the vehicle is turned at least 400° as measured by the angular velocity sensor, rather then just 360°, so as to accommodate at least a 10% error in relative heading measurement and thereby ensure that the vehicle has turned at least 360°. As the vehicle turns, each geomagnetic sensor output signal (both X and Y) is compared with the previous value, with the greater of the two stored as a maximum and the lesser of the two stored as a minimum. When the vehicle has -completed its circle, the maximum PI and minimum P3 of the X component of the geomagnetic field, as well as the maximum P2 and the minimum P4 of the Y component of the geomagnetic field will have been found and stored. Having found the maximum and minimum pairs, the relative heading sensor output signals corresponding to the positions of each maximum and minimum are determined. Because the angle between each maximum and minimum is known to be 180°, the difference between the relative heading signal at the maximum and the relative heading signal at the minimum is divided by 180° to obtain the conversion constant of the relative heading sensor. This may be performed for the maximum/minimum pairs in both the X and Y direction, with the resulting values averaged to arrive at a final conversion constant. Having determined the maximum and minimum of the geomagnetic field in both directions, the measurement curve of the absolute heading sensor is also determinable. Referring to Figure 5, for an elliptical measurement curve aligned with the X and Y axes, the center (X QΛ Y Q ) is located at the point (PI + P3)/2, (P2 + P4)/2. The radii of the ellipse will be (Pi - P3)/2, and (P2 - P4)/2, respectively. For a tilted ellipse such as that shown in Figure 6, the coordinates of maxima PI, P2 and minima P3, P4 can be input into the well known equation discussed below for a tilted ellipse to arrive at radii a, b. Having found maxima PI, P2 and radii a, b, the angle of tilt α is easily determined. The series of steps involved in the method of the present invention is illustrated in Figure 7. The steps may be executed by means of CPU 42 and a software program stored in ROM 44. The calibration program is started by the driver of the vehicle inputting a calibration request from the user interface 34. From start point 80, the sensors are read to determine at decision step 82 whether the vehicle has started to move. If the answer to this question is no, "NO" path 86 is followed to gyroscope zero calibration step 88, wherein the gyroscope output signal is read to obtain a zero reading. Following path 90, decision step 82 is again reached, where the processor again reads the sensors to determine whether the vehicle has begun to move. Once the zero reading has been obtained, vehicle movement in a circular path may be initiated, and "YES" path 84 is followed to sensor read step 92. At sensor read step 92, the outputs of geomagnetic sensor 16 and angular velocity sensor 14 are read, giving X and Y values for sensor 16 and corresponding angular velocity readings. Using the output of the angular velocity sensor, a total bearing is calculated in step 96 using a pre-determined conversion factor. The conversion factor may contain some error because the sensor has not yet been calibrated. This is compensated for by moving the vehicle until the angular velocity sensor indicates that it has moved through an angle of at least 400°, thereby accommodating an error in the conversion factor of at least 10%. The current X output and Y outputs of sensor 16 are compared with the stored values (step 98) , with the lesser and greater of each stored as the minimum and maximum in both the X and the Y directions. On the first pass, initial predetermined values are used for the maximum and the minimum. The angular velocity or gyroscope output signals corresponding to these minima and maxima are also stored. The processor then loops back to step 92, repeating the data collection and comparison until the vehicle has moved at least 400° (step 100) . Once the total bearing is greater than 400°, the center and radii of the absolute heading measurement curve are calculated (step 106) , and the conversion constant of the relative heading sensor is calculated, as described above. The .calibration of the two sensors has been accomplished without requiring specialized calibration instruments, removal of the sensors from the vehicle or pre-calibration of either sensor. Figure 8 illustrates the gyroscope zero calibration of step 88 of Fig. 7 in greater detail. During the zero calibration procedure, the vehicle is at a standstill. To accommodate noise in the gyroscope output, the zero reading is calculated by averaging a plurality of samples of gyroscope output. This results in a more reliable zero reading calculation. Accordingly, in step 110 the gyroscope output signal G is read for the first sample number N = 1. In step 112, zero reading G Q is calculated by adding output signal reading G to the previous zero reading value, which is given an initial value of zero for N = 0, and the sum divided by the sample number N. At the same time, the amplitude of the noise dG in the sensor output is calculated as the absolute value of the difference between the current output signal reading and the most recent zero reading G Q calculation. At decision step 114, the current value of the noise dG is compared with a maximum noise amplitude dG maχ , which is initially given an empirically predetermined value. If dG is greater than dG maχ , "YES" path 118 is followed to step 120. In step 120, dg maχ is set at a new maximum noise value of dG. Path 122 is then followed to return to the beginning of the zero calibration procedure. If, on the other hand, dG is not greater than dG maχ , "NO" path 116 is followed from decision step 114 to return to the beginning of the zero calibration procedure. The steps of the procedure are repeated to obtain a plurality of sensor output readings until, as shown in decision step 82 of Figure 7, the vehicle has started to move. Once the vehicle starts to move, "YES" path 84 is followed in Fig. 7 from decision step 82 to step 92, where the compass and gyroscope signals are read. Then, in step 96, the total bearing is calculated. The total bearing calculation procedure is shown in greater detail in Figure 9. As the vehicle begins to turn in a circle, the gyroscope is used to measure the angular displacement. To do this, as shown in step 126, the zero reading is first subtracted from the gyroscope output signal. At decision step 128, the absolute value of this difference B is compared to the maximum noise value dG__ v . If the absolute value of the difference B is less than dG_ aχ , the vehicle is considered to be standing still and the difference is dropped from the calculation by following "YES" path 130 to step 132, where B is set to zero. This technique of eliminating sensor readings less than the noise value dG maχ is often referred to as the "Dead-Zone" technique, and is used to prevent the accumulation of angular velocity measurement noise. If the absolute value of the difference B is not less than dG max' " N0 " P ath 134 is followed to step 138. Total bearing is then calculated by adding the current value for total bearing, initially set at zero, to the difference B multiplied by a pre-determined uncalibrated value for the conversion constant K G . The total bearing calculated indicates the total angular rotation of the vehicle since the beginning of the calibration process. After total bearing has been calculated in step 96 of Figure 7, the maxima and minima of the compass output, as well as the corresponding maxima and minima in the gyroscope output are calculated in step 98. The procedure is shown in Figure 10. First, the X component of the compass signal is compared with a preset value X maχ at decision step 140, X J ^ JJ being the maximum value of the X-component of the compass output signal. If X is greater than J^^, "YES" path 142 is followed to step 146 where Xm ax is assigned the value of X. Further, the corresponding value of the gyroscope output signal in this position, gyro Xm ax , is assigned the value of the total bearing at the position. If X is not greater than X maχ , "NO" path 144 is followed from decision step 140 to decision step 148, where X is compared with a preset value for the minimum value of the X component of the compass output signal. If X is less than X^^ "YES" path 150 is followed to step 152, where ^^. ^ s 9Ϊ ven tile value of X and the corresponding value of gyro is assigned the value of the total bearing at this position. If X is not less than X^^ n at decision step 148, or if X is in fact less than and the procedure of step 152 has been followed, "NO" path 154 or path 153 are followed to decision step 156. Here, the Y value of the compass output signal is compared with a preset value of Y maχ/ the maximum value of the Y component of the magnetic field. If Y is greater than Y max , "YES" path 158 is followed to step 160, where Y max is set at the value Y, and the corresponding value of the gyroscope, gyro Y max , is assigned a value of the total bearing at the position. If Y is not greater than Y max , "NO" path 162 is followed to decision step 164. The value of the Y component of the magnetic field is then compared with a preset value ϊ m i n , the minimum value of the magnetic field in the Y direction. If Y is greater than Y mj _ n , "YES" path 166 is followed to step 168. Y min is then given the value of Y, and the corresponding value of the gyro Y m _ n is assigned the value of the total bearing at the position. If Y is not greater than Y m _ n at decision step 164, "NO" path 170 is followed or, alternatively, path 169 is followed from step 168 to exit the procedure. It should be noted that the procedure shown in Figure 10 requires slight modification where the compass output measurement curve is in the shape of a tilted ellipse like that illustrated in Figure 6. The modified procedure is shown in Figure 11. The methodology is essentially the same as that for a non-tilted ellipse, except that for each maximum and minimum in the X and Y directions, the corresponding component in the complementary direction must be stored, shown in the figure as P1Y at P2X at Y max , and P4X at ϊ m i n « Pl r P2, P3 and P4 correspond to the maxima and minima points illustrated in Figure 6. Once the coordinates (X^, P1Y) , (X^, P3Y) , (P2X, Y max ) , and (P4X, ϊ mj _ n ) have been found, any two of these maxima or minima can be substituted into the following well-known general equation for a rotated ellipse so as to determine the radii a and b and the angle of tilt α needed for calibration: Γ COSO. ( X-XΛ ) + sina ( Y-Y n 1 l 2 + f -3 ina ( X-X^ + cosa f Y-Y,-. '. I 2 = 1 After step 98 of Fig. 7, where ^^ Xm ax , γ min' γ max nd tlιe corres P ondinι ? values of the gyroscope output have been determined, decision step 100 of Figure 7 is reached. At this point the total bearing is compared with a pre-determined value, which is usually set at 400°. The essential aim is to ensure that the vehicle has turned at least a full circle. Until the total bearing is greater than 400°, "NO" path 102 is followed to repeat steps 92-98. When total bearing exceeds 400°, "YES" path 104 is followed to step 106, which is illustrated in greater detail in Figure 12. At this stage, the maxima and minima of the compass output signals are used to determine the radii and center of the compass measurement curve. Thus, as shown in step 108, the X coordinate of the center, X 0 , is calculated by adding the maximum and minimum values of the X component of the compass output signal and dividing the sum by two. Similarly, the Y coordinate of the center is the sum of the maximum and minimum output signal in the Y direction divided by two. The radius of the curve in the X direction is the difference between the maximum and minimum in the X direction divided by two, while the radius in the Y direction is the difference between the maximum and minimum in the Y direction divided by two. Because two .maximum-minimum pairs and their angular relationship are known, two values for the conversion constant for the gyroscope can be determined. A first value K G 1 is the absolute value of the difference between gyro and gyro divided by 180°. The second value K G 2 is the absolute value of gyro Y max - gyro Y mj _ n divided by 180°. These two values K Q 1, K G 2 may then be averaged to arrive at a final value for the conversion constant K Q . This completes the calibration process. The present invention further provides a direction sensor having means for carrying out the calibration method just described. Referring again to Figure 2, the output signals from geomagnetic sensor 16 and angular velocity sensor 14 are received by computing means 20 at sensor/GPS interface 40. CPU 42, executing a software program stored in ROM 44, can sample sensor output data at interface 40 through data bus 50 to carry out the operations described above. The values for variables such as G Q , dG, dG maχ , total bearing, Xmin' γ max n γ min' ^ ro ^ax' etc« ' alon 9 with the final calibration values X Q , Y Q , a, b, G Q and G can be stored in RAM 46 or storage medium 48. The final calibration values will be retained, usually in storage medium 48, where they may be retrieved by CPU 42 and applied to the output signals of geomagnetic sensor 16 and angular sensor 14 so as to calculate vehicle heading. While the invention has been described with reference to a specific embodiment, the description is illustrative of the invention and is not to be construed as limiting the invention. Various modifications and applications may occur to those skilled in the art without departing from the true spirit and scope of the invention as defined by the appended claims. For example, the vehicle could be turned through other than 400° during calibration, as long as it is greater than 360° by some margin. An input other than the angular rate sensor could be used to determine when 400° is accomplished, such as the driver activating an input when he has more than completed a circle.

Claims: WHAT IS CLAIMED IS; 1. A method of calibrating a relative heading sensor in a system also having an absolute heading sensor, the method comprising the steps of: rotating said sensors through an angle of at least 360°; reading said absolute heading sensor at each of a plurality of points during said rotating step; reading said relative heading sensor at each of said points; finding a maximum absolute heading and a minimum absolute heading in at least a first direction; calculating a difference between a first relative heading reading at a point corresponding to said maximum absolute heading and a second relative heading reading at a point corresponding to said minimum absolute heading; and dividing said difference by 180° to obtain a first relative heading conversion constant. 2. The method of claim 1 " further comprising the step of monitoring said relative heading sensor to detect the angle through which said sensors are rotated. 3. The method of claim 2 wherein said absolute heading sensor comprises a geomagnetic field sensor, said geomagnetic field sensor capable of measuring a geomagnetic field in said first direction and in a second direction perpendicular to said first direction, and producing first and second output signals proportional to said geomagnetic field in said first and second directions, wherein said maximum and minimum absolute headings comprise a first maximum and first minimum in said first output signal. 4. The method of claim 3 further comprising calibrating said geomagnetic field sensor contemporaneously with calibrating said relative heading sensor, said calibration of said geomagnetic field sensor comprising the steps of: finding a second maximum and a second minimum in said second output signal; and locating the center of a measurement curve of said geomagnetic field sensor relative to a predetermined origin, said measurement curve being defined by said second output signal as a function of said first output signal when the geomagnetic sensor is rotated about 360°, said center being defined by x 0 = ( ^ax + ^in ) f 1 γ 0 " < γ max + γ min>/ 2 wherein X Q is the first output signal at the center, Y Q is the second output signal at the center, X χnaχ is the first maximum, is the first minimum, γ max ^- s tlle second maximum and m j_ n the second minimum. 5. The method according to claim 4, further comprising determining a first and a second radius of said measurement curve, said measurement curve being elliptical, said first and second radii being defined as b = ( γ maχ - γ min)/ 2 wherein a is the first radius and b is the second radius. 6. The method according to claim l further comprising the steps of: finding a second maximum absolute heading and a second minimum absolute heading in a second direction; and finding a second relative heading conversion constant by calculating a second difference between a third relative heading reading at a point corresponding to said second maximum and a fourth relative heading reading at a point corresponding to said second minimum, said second relative heading conversion constant being said second difference divided by 180°. 7. The method according to claim 6 wherein said first and second relative heading conversion constants are averaged to arrive at a final relative heading conversion constant. 8. The method according to claim 1 further comprising taking a relative heading reading from said relative heading sensor in a stationary position before said step of rotating to obtain a zero reading. 9. The method according to claim 8 further comprising subtracting said zero reading from output signals of said relative heading sensor to obtain a net output signal, and applying said relative heading conversion constant to said net output signal to obtain a relative heading. 10. The method according to claim 5 further comprising determining an absolute heading equal to the angle between a predetermined direction and a first line connecting said center and the point (X,Y) , wherein X is said first output signal and Y is said second output signal. 11. The method of claim 1 wherein said relative heading sensor comprises a gyroscope. 12. A method of calibrating a direction sensor, said direction sensor having a relative heading sensor and a geomagnetic sensor, said geomagnetic sensor producing a first output signal proportional to the geomagnetic field in an X-direction and a second output signal proportional to the geomagnetic field in a Y- direction, said X and Y directions being perpendicular, the method comprising the steps of: rotating said sensors through an angle of at least 360°; reading said geomagnetic sensor at each of a plurality of points about said angle; reading said relative heading sensor at each of said points; finding a first maximum and a first minimum heading in said first output signal; finding a second maximum and a second minimum in said second output signal; calculating a first difference between a relative heading reading at a point corresponding to said first maximum and a point corresponding to said first minimum; dividing said first difference by 180° to obtain a first relative heading conversion constant; locating the center of a measurement curve of said geomagnetic sensor relative to a predetermined origin, said measurement curve being defined by said second output signal -as a function of said first output signal when the geomagnetic sensor is rotated about 360°, said center being at the point (X 0 ,Y 0 ) wherein X 0 = (χ max + Y min )/2 γ 0 = (γ max + γ min ) 2 and wherein X Q is the first output signal at the center, Y 0 is the second output signal at the center, is the 35 first maximum, is the first minimum, Y max is second maximum and Y mj _ n the second minimum; and determining a first and a second radius of said measurement curve, said first and second radii being defined as 40 a = (∑na - γ min)/ 2 wherein a is the first radius and b is the second radius. 13. The method according to claim 12 further comprising reading said relative heading sensor in a stationary position before said step of rotating to obtain a zero reading. 14. The method according to claim 12 further comprising: calculating a second difference between a relative heading at a point corresponding to said second 5 maximum and a point corresponding to said second minimum; dividing said second difference by 180° to obtain a second relative heading conversion constant; and averaging said first and second relative heading conversion constants to obtain a final relative 10 heading conversion constant. 15. A direction sensor for a vehicle navigation system, said direction sensor comprising: means for sensing relative heading and producing a first relative heading signal; , 5 means for sensing absolute heading and producing a first absolute heading signal; means for determining a first maximum and a first minimum in said first absolute heading signal in a first direction as said vehicle is rotated through an 10 angle; means for calculating a difference in said first relative heading signal at a first point corresponding to said first maximum and at a second point corresponding to said first minimum; and means for dividing said difference by 180° to obtain a first conversion constant. 16. The direction sensor according to claim 15 wherein said means for sensing absolute heading comprises a geomagnetic field sensor capable of sensing said geomagnetic field in said first direction and in a second direction perpendicular to said first direction, said geomagnetic field sensor producing said first absolute signal heading in proportion to the geomagnetic field in said first direction and further producing a second absolute heading signal proportional to said field in said second direction. 17. The direction sensor according to claim 15 further comprising means for finding a second maximum and a second minimum in said second absolute heading signal. 18. The direction sensor according to claim 17 further comprising means for locating the center of an absolute heading measurement curve defined by said second absolute heading signal as a function of said first absolute heading signal as said geomagnetic field sensor is rotated through an angle of 360°, said center being located at a point (X Q , Y Q ) , wherein and wherein X Q is the first absolute heading signal at the center, Y Q is the second absolute heading signal at the center, is the first minimum, Y maχ is the second maximum and Y mj _ n the second minimum. 19. The method according to claim 18, further comprising means for determining a first and second radii of said absolute heading measurement curve, said measurement curve being elliptical, said first and second radii being defined as b = (γ max " γ min ) 2 wherein a is the first radius and b is the second radius. 20. The direction sensor according to claim 15 further comprising means for computing a difference in said first relative heading signal between a reference position and a rotated position to obtain a net relative heading signal; and means for applying said relative heading conversion constant to said net relative heading signal to obtain a relative heading. 21. The direction sensor according to claim 19 further comprising means for determining an absolute heading, said absolute heading being the angle between a predetermined direction and a first line connecting said center and a point (X,Y) , wherein X is said first absolute heading signal and Y is said second absolute heading signal. 22. The direction sensor according to claim 15 wherein said means for sensing relative heading comprises a gyroscope.

Inventors: KAO WEI-WEN, KAO, WEI-WEN
Applicants: KAO WEI WEN, ZEXEL CORP, ZEXEL CORPORATION
Application year: 1993
Main classification: G01C17
IPC codes: G01C17, G01C19, G01C21