MAGNETIC COMPASS CALIBRATION

Abstract: A method and apparatus for providing a magnetic com­ pass, and system to accurately calibrate the compass with a rotation of the vessel on which the compass is mounted through a single rotation of 360 degrees. The compass com­ prises gimballed field sensing elements, and processor to pro­ vide a signal which is corrected for compass offsets, for per­ manent magnetic field anomalies and for induced magnetic field anomalies.

Description: The present invention relates to a method of providing a corrected compass bearing Magnetic compasses utilize a magnetic device to sense and measure orientation within an ambient magnetic field. In the absence of local magnetic anomalies, the ambient magnetic field is the earth's magnetic field. A pendulous mass is commonly used to retain a vertical compass orientation to avoid contamination by the vertical component of the earth's magnetic field. A freely pivoting magnet will align itself with the ambient magnetic field. The compass bearing, , is determined by measuring the angle between the compass case, which rotates in space, and the pivoting internal magnet, which maintains its alignment with the horizontal component of the earth's magnetic field. If the compass code wheel is not aligned with the internal magnet, the compass output will be biased. Also, magnetic material (other than the single internal magnet) attached to the code wheel assembly will cause a bias in the compass output. Magnetic material attached to the compass case will rotate around the internal magnet, causing sinusoidal errors in the compass output. The compass internal magnet aligns itself with the vector sum of the earth's field and the field of the magnetic material. The general expression for multiple pieces of magnetic material is:  = ϑ + a + b sinϑ + c cosϑ where a is the bias error, discussed above, b and c are the sum of the amplitudes of the orthogonal components of the internal magnetic material, ϑ is the actual bearing of the compass case, and  is the compass output heading. The errors induced by permanently magnetized material are "one cycle" errors (i.e., functions of sin ϑ and cosϑ) because the permanently magnetized material amplitude does not change as a function of ϑ. Permeable magnetic material will assume and magnify any field with which it is aligned. Therefore, permeable magnetic material attached to the compass case will rotate around the internal magnet, causing a "two cycle" error (i.e., functions of sin(2ϑ) and cos(2ϑ)) that can be expressed as:  = ϑ + d sin(2ϑ) + e cos(2ϑ) where d and e are the sum of the maximum amplitudes of the orthogonal components of the internal permeable material. Note that the bias term, the "one cycle" errors, and the "two cycle" errors are all independent of any of the other errors, and therefore, error corrections or calibrations may be considered separately. A well known method exists for calibrating and removing the compass deviation errors using five correction coefficients: A, B, C, D, and E, as discussed in the Handbook of Magnetic Compass Adjustment , Publication No. 226, Defense Mapping Agency Office, Stock No. NVPUB226, 1980. The A correction is simply the correction for compass bias of offset. The B and C corrections adjust for permanent magnetic anomalies within the compass, and the D and E corrections adjust for induced magnetic anomalies within the compass. The compass deviation correction for actual magnetic head is: deviation correction = A + B sin + C cos + D sin2 + E cos2 where  is the compass reading. In order to calculate the deviation coefficients, it is necessary to place the compass on a rotary table with precise angular resolution and a known reference bearing. The compass must be rotated at a constant rate through 360° in each direction while the table bearings and compass bearings are recorded at regular increments and known positions of table bearing. Another method of data collection is to stop the table at each measurement point and allow the compass gimbal swing to settle out prior to taking data at each point. This alternate procedure is much slower even though only one revolution is required. When the data is taken on the fly, the method for determining the A, B, C, D, and E coefficients is derived by noting that the average of the differences between the actual compass heading ϑ and the compass reading  is the sum of the average lag and the average deviation: ϑ -  = L + A + B sin + C cos + D sin2 + E cos2 The overbar indicates the average over all data points. Since the compass is rotated 360° in each direction at the same rate, L = 0. Thus, ϑ -  = A + B sin + C cos + D sin2 + E sin2 Since A is constant for all values of ϑ, A = ϑ- . To determine the B coefficient, each of the data points is multiplied by sin: (ϑ-)sin = A sin + B sin2 + C sin cos + D sin sin2 + E sin cos2 The only term on the right side of the equation that is not zero for 360° rotations is B sin(2) = B/2 Therefore, B = 2(ϑ-)sin . The same method can be used for computing the C, D, and E coefficients by multiplying each of the data points by cos, sin2, and cos2, respectively. That is, B = 2(ϑ-)sin C = 2(ϑ-)cos D = 2(ϑ-)sin(2) E = 2(ϑ-)cos(2) It should be noted that the A error will change if the compass alignment is not preserved in its final mount. The B, C, D, and E errors will vary if the compass is mounted in a magnetic environment that is different from the one in which the compass was calibrated. Finally, the B and C errors vary with latitude. The requirement of an absolute reference and a precise rotation renders field calibration impractical for most compass applications. Gyro compasses aboard ships have been used for years as a reference for "swing ship" calibrations of magnetic compasses, but gyro errors during maneuvering situations prevent precise calibrations in most cases. From FR-A-2 302 505 a compensation method for errors of magnetic compasses is known. For the measuring of signals, one primary coil and three secondary coils are used. The secondary coils are arranged under an angle of 120°. EP-A-0 041 892 discloses a compensation for errors in magnetic compasses, as well. Thereby, the compensation process is based on the alteration of the shape of an ellipse, which is created during the appearance of disturbances, that means, errors. Finally, from US-A-4 031 630 a system for automatic correction of deviation and other magnetic errors is known. A circuitry is used for providing signals to compensate for the deviation errors in the output of a digital compass. A deviation corrected output signal is produced by comparing the measure data with the deviation-correction factors, which have previously been stored. By means of a processor, the variation correction with the deviation-corrected output signal to compensate for errors from both magnetic variation and deviation are combined. It is an object of the present invention to provide an improved simple, accurate, and rapid field calibration technique for magnetic compasses. This object is achieved with the method of providing a corrected compass bearing, comprising the steps of: providing a plurality of magnetic field sensors in orthogonal relationship, including an X and a Y magnetic field sensor providing X and Y sensor outputs; rotating said plurality of magnetic field sensors in a fixed field throughout at least 360° to detect a plurality of peak amplitudes of said X and said Y magnetic field sensor and to measure an X sinusoidal signal and a Y sinusoidal signal corresponding to said X and said Y magnetic field sensor, respectively; calculating average signals from said X and said Y magnetic field sensor to provide X and Y bias values; subtracting out said X and Y bias values from said X and Y sensor outputs to provide once-corrected X and Y magnetic field sensor signals having B and C term effects of permanent magnetism on compass bearing removed therefrom; normalizing said X and Y sensor outputs, according to said plurality of peak amplitudes, by computing a first two-cycle correction value proportional to the ratio of said plurality of peak amplitudes of said X and said Y magnetic field sensors and applying said first two-cycle correction value to at least one of said once corrected X and Y magnetic field sensor signals to provide twice-corrected magnetic field sensor signals having D term soft iron subject to induced magnetization effects on compass bearing removed therefrom; correcting the phase relationship of said X and Y sensor outputs according to a second two-cycle correction value that is a function of phase difference between said X sinusoidal signal and said Y sinusoidal signal and applying said second two-cycle correction value to at least one of said twice-corrected magnetic field sensor signals to provide thrice-corrected magnetic field sensor signals having E term soft iron subject to induced magnetization effects on compass bearing removed therefrom; calculating a partially corrected bearing from said thrice corrected magnetic field sensor signals and calculating said corrected compass bearing by adding an A term correction to said partially corrected bearing. The solid state compass according to one preferred embodiment of the present invention comprises two coils capable of measuring the intensity of the earth's magnetic field, mounted orthogonally and concentrically in the horizontal plane, so that the center of each coil coincides with rotation of the gimbal system. The system according to the present invention then calculates the average signal from the field sensing coils, which is the offset or bias. The field sensing coils are rotated through a fixed earth field to provide a sampled sinusoidal signal through a minimum of 360°, and sampled at approximately equally spaced intervals, using the uncorrected compass output as a reference. Thereafter, the phase error is estimated and corrected. As a result, the present invention provides five separate error signals that are then used to provide a correct magnetic angle without extensive testing or complex and expensive equipment. The amplitude of each coil is further compensated to provide a normalized peak-to-peak signal from which the corrected angle may be determined. These and other features according to the present invention will be better understood by reading the following detailed description, taken together with the drawing, wherein: Fig. 1 is a schematic diagram showing the orientation of two field sensing coils; and Figs. 2-4 comprise a flow diagram sequence detailing the process according to the present invention. The arrangement 50 of the two coils 52, 54 is shown in Fig. 1. The x coil 52 is parallel to the compass housing 56 so that when the compass is pointed north, the x coil 52 reads the magnitude of the horizontal magnetic field (H) and the y coil reads zero. Thus: y coil = H sin ϑ x coil = H cos ϑ The compass heading ϑ is calculated by ϑ = arctan [Y/X] . The coil cruciform is symmetrical and fixed with respect to the compass case and contains no moving parts. It may be gimballed to provide a horizontal reference, or strapped down. The output signals from the coils 52 and 54 are sampled by respective signal samples 62 and 64 which provide a signal to the processor 60 for calculation of the bearing angle and to provide error correction. The errors are corrected during a calibration process, described below, when a calibration switch 66 enables the process. The samples 62 and 64 and the processor 60 may be analog, digital, or a combination thereof. Any misalignment of the longitudinal axis of the x coil 52 and the lubber line 58 of the compass case 56 causes a bias error in the solid state compass that is identical to that of the optical compass, so that the compass output bearing is  = a + ϑ where a is the alignment error and ϑ is the actual compass bearing. Any permanent magnetic material attached to the compass case may be modelled as a bias term in each of the coil outputs. Consider a permanent magnet with field strength Hp that is oriented so that the angle between the x coil axis and the axis of the permanent magnet is γ. The coil outputs are X coil = H cosϑ + Hp cosγ Y coil = H sinϑ + Hp sinγ Note that the values of Hp cosγ and Hp sinγ are constant because the permanent magnet is fixed with respect to the x and y coils and rotates with the compass case. If there were n permanent magnets within the case, then: X coil = H cosϑ + Hp₁ cosγ₁ + Hp₂ cosγ₂ + ... Hp n cosγ n Y coil = H sinϑ + Hp₁ sinγ₁ + Hp₂ sinγ₂ + ... Hp n sinγ n Since Hpi sinγi and Hpi cosγi are a set of constants for i=1 to n, the coil outputs may be expressed in general as: X coil = H cosϑ + Px Y coil = H sinϑ + Py where Px and Py are the summed effects of permanent magnetism on the x coil and the y coil respectively. Therefore, any permanent magnetic material (not shown) with the compass or in the vehicle within which the compass is mounted creates a fixed DC level shift (bias) in each of the coil outputs. A small x coil bias (|Px|<<H) will create a B-type deviation error with B ≃ -Px/H. Also, a small y coil bias (|Py|<<H) will create a C-type deviation error with C Py/H. Therefore, for errors due to permanent magnetism of less than 15°, the solid state compass output is similar to that of the optical units. The errors may be corrected by removing the x and y coil bias prior to calculating the compass output azimuth . The bias removal is the preferable means of calibration, since the bias correction is latitude independent. Any soft iron or permeable material will have some field induced within it by the presence of the earth's field. The soft iron effect may be modelled by a bar of permeable material (not shown) oriented so that the angle from the x coil axis to the bar axis is γ. The magnitude of the field induced by the earth's field is a function of earth's field strength (H) and compass orientation (ϑ): Hs = ℓH cos(ϑ + γ) where Hs is the induced field strength, ℓ is the ratio of induced field strength to earth's field strength when the bar is aligned with the earth's field, ϑ is the actual compass bearing, and γ is the angle measured from the longitudinal axis of the x coil to the longitudinal axis of the permeable material. The induced field sums vectorially with the earth's field in the x and y coil outputs: X coil = Hcosϑ + Hs cosγ = H cosϑ + ℓH cosγ cos(ϑ + γ) Y coil = Hsinϑ + Hs sinγ = H sinϑ + ℓH sinγ cos (ϑ + γ) Noting that cos(ϑ + γ) = cosγ cosϑ - sinγ sinϑ and substituting it into the above expression yields: X coil = H(1 + ℓH cosγ)cosϑ - ℓH sinγ sinϑ Y coil = H(1 - ℓH sinγ)sinϑ + ℓH cosγ cosϑ As in the case of the level bias model, it is trivial to show that for N pieces of soft iron, the values of Hs cosγ and Hs sinγ may be replaced by Hs x = Hs₁ cosγ₁ + Hs₂ cosγ₂ + ... + Hs n cosγ n and Hsy = Hs1 sinγ1 + Hs2 sinγ2 + ... Hsn sinγn respectively. However, to demonstrate the physical process involved, the discussion will be continued using the single piece of soft iron as a model. It is clear that the sinusoidal error term added to each coil causes an amplitude and phase shift in each of the coil outputs. The outputs may be written as X coil =D x H cos(ϑ + γ x ) Y coil =D y H sin(ϑ + γ y ) where: γ x = -cotan⁻¹{[1 + ℓH cosγ]/ℓ sinγ} γ y = tan⁻¹{[- ℓ cosγ]/[1 - ℓH sinγ]} D x = (1 + ℓH cosγ)cos(γ x ) - ℓ sinγ sin(γ x ) D y = (1 - ℓH sinγ)sin(γy + 90) + ℓ cosγ cos(γy + 90) Since the precise value of the H-field is unimportant for compass applications, it may be assumed, without loss of generality, that Dx=1 and that the x coil is the reference coil. sin( - ϑ) = [(D y - 1)sin(2ϑ)]/{SQR(2)SQR[(1 + D y ²) + (1 - D y ²)cos2ϑ]} For D < 10,  - ϑ ≃ [(D y - 1)(sin2ϑ)]/{SQR(2)[SQR(1 + D² y )]} or  ≃ ϑ + [D y - 1]/[SQR(2)SQR(1 + D y ²)]sin(2ϑ) If the phase shifts in the X and Y coils are equal in magnitude and opposite in sign (γ = γ y = -γ x ), then sin( - ϑ) = (sinγ cos2ϑ)/{SQR[cos²(ϑ - γ) + sin²(ϑ + γ)]} For small values of γ:  - ϑ ≃ γcos2ϑ or  = ϑ + γcos2ϑ If the phase shifts in the x and y coils are not equal and opposite in sign, it is equivalent to phase shifting  until the coil phase shifts are equal in magnitude and opposite in sign. In other words, the phase shift errors may be modelled as an A-type error and an E-type error. The soft iron errors may be corrected by removing the gain mismatch and phase error between the coils. The removal of gain mismatch and phase error is the preferable means of calibration, since they are latitude independent corrections. If the compass cruciform is not horizontal, then some of the horizontal field strength will be lost and some vertical component will be added. Specifically, X coil = H[cosϑ cosP + sinP cosR] + z[sinP cosR] Y coil = H[cosϑ cosR + sinR cosP] + z[cosP sinR] where P is the pitch angle, R is the roll angle, and z is the vertical field strength. In order to calibrate a solid state compass, it is necessary to: 1. Remove the bias errors from each coil; 2. Remove the vertical field component from each coil; 3. Remove the gain mismatch between the two coils; 4. Remove the phase error between the two coils; and 5. Correct for misalignment between the x coil axis and the lubber's line of the compass. In a controlled laboratory environment, the coil bias values may be measured by: 1) averaging data that is sampled at regular intervals around the compass, or by 2) identifying the minimum and maximum values for each coil and calculating the center value, or by 3) placing the compass in a mu-metal container and measuring the output in the absence of a magnetic field. For a field calibration, the second method is the simplest, i.e., to turn the compass through 360°, identify the minimum and the maximum points, and calculate the bias. In a controlled laboratory environment, the coil gain mismatch may be measured by 1) averaging the squares of data that is sampled at regular intervals around the compass, or by 2) identifying the minimum and maximum values for each coil and forming a ratio, or by 3) inducing a known field in each coil, measuring its value, and forming a ratio. Again, for field calibration, use the second method. The phase error between coils may be calculated from any ordered pair of x coil and y coil outputs, so that any data collected for steps 1 and 2 may be used in step 3. The preferred method is to select the phase error that minimizes the orthogonality errors between the pairs of coil outputs in the least-squares sense. The phase error may then be used to adjust the phase of the y coil output. Any of the above calibration coefficients may be calculated using data collected during one or more compass revolution. The x coil absolute reference may be found by ensuring that the x coil reading is zero when placed at right angles to the lines of flux of the earth's magnetic field. The gimbals must be balanced so that the solid state coils do not pick up any components of the vertical field, or the vertical field may be measured by a third coil and the output signal may be used to remove the effect of vertical field bias in each coil output signal. If the gimbals are not properly balanced (with x,y coils horizontal) and the coil output signals are not corrected for the vertical field adjustment, the calibration procedure is still valid but only for the magnetic latitude where the calibration was conducted. The calibration procedure may be alternately performed in part in the laboratory, wherein the following equations are computed: X = X coil - X bias Y = [(Y coil - Y bias )(Y scale) - (X)(S phase )]/C phase (for small error angles, C phase ≃ 1)  = arctan (Y/X)(corrected output) Using the corrected compass outputs after determining the above information, the next step is completed by measuring the difference between known headings and compass output headings. The result at any heading should be a fixed A, which is subtracted from the heading output as the final correction step.  = arctan (Y/X) - A or  = A + arctan (Y/X) Repeat the first step in a field to calibrate out the magnetic effects of the final housing for the sensor. For small angle errors, (less than 15 degrees), the relationship between the optical compass correction values and the solid state compass corrections are as follows: A ≃A B ≃sin⁻¹(X bias/H) C ≃-sin⁻¹(Y bias/H) D ≃tan⁻¹(Y scale) - 45° E ≃sin⁻¹(S phase)/2 A calibration method has been developed to provide a simple procedure for field calibrating solid state compasses. The calibration technique requires only a slow rotation of the compass through at least 360° and a digital computer for parameter calculations. The process according to the present invention and implemented in the processor 60, described above, includes the process 100 steps illustrated by the flowchart comprising Figs. 2-4. In Fig. 2, the process 100 is initialized at step 102, wherein the data point index I and other parameters are initialized and the coil values are read from the samplers at step 104. The signals read are processed to provide an angle from an arc tangent, which is also stored in step 106, which then issues instructions to indicate that the calibration turn may be begun at step 108. The signals from the orthogonal sensing coils are read at step 110, and smoothed angle estimates are provided at step 112. The step 114 provides the minimum/maximum routine after which a new value of angle is calculated at step 116 from the arctangent of the estimated signal values. The process 100 continues on Fig. 3, wherein the relative magnitude of the angles ϑ and ϑ R is determined at step 118 relative to an incremental value, initially 1°. If the value of the angle is less than the reference angle ϑ R plus the increment, the difference between the reference and the measured angle is compared to 370° at step 120. If the magnitude is greater than 370°, the value K (maximum sample index number) is set to the value of index I, and index I is reset to zero, indicating that the calibration data is complete at step 122. Thereafter, the X and Y bias coefficients are determined at step 124 as well as determining the Y scale coefficient at step 126. If in step 118 the angle is not less than the reference angle plus an incremental value, the system begins step 128, calculating a ϑ K , and storing a value at step 130, thereafter incrementing the index I by 1 at step 132 to resume the process beginning with step 120, discussed above. If the angle difference measured in step 120 is not greater than 370°, the system then jumps to step 110, to thereafter repeat the above-described sequence. After computing the Y scale factor in step 126, the process 100 continues on Fig. 4, wherein the corrected signals are calculated at step 134. Afterwards, the I parameter is incremented by 1 at step 136. The sin value is calculated at step 138, whereafter the step 140 provides a sum of the calculated signals. At step 142, the index I is compared to the maximum data point index K, and if equal, the process continues at step 144, wherein the S phase parameter is calculated. The phase error is thereafter calculated at step 146, and finally the C phase value is calculated at step 148. Afterwards, the initialization and calibration program returns, and the compass may now produce precise angle readings according to the method according to the present invention. Modifications and substitutions made by one skilled in the art according to the present invention are within the scope of the present invention, which is not to be limited except by the claims which follow.

Claims: A method of providing a corrected compass bearing, comprising the steps of: providing a plurality of magnetic field sensors (52,54) in orthogonal relationship, including an X and a Y magnetic field sensor providing X and Y sensor outputs; rotating said plurality of magnetic field sensors in a fixed field throughout at least 360° to detect a plurality of peak amplitudes of said X and said Y magnetic field sensor and to measure an X sinusoidal signal and a Y sinusoidal signal corresponding to said X and said Y magnetic field sensor, respectively; calculating average signals from said X and said Y magnetic field sensor to provide X and Y bias values; subtracting out said X and Y bias values from said X and Y sensor outputs to provide once-corrected X and Y magnetic field sensor signals having B and C term effects of permanent magnetism on compass bearing removed therefrom; normalizing said X and Y sensor outputs, according to said plurality of peak amplitudes, by computing a first two-cycle correction value proportional to the ratio of said plurality of peak amplitudes of said X and said Y magnetic field sensors and applying said first two-cycle correction value to at least one of said once corrected X and Y magnetic field sensor signals to provide twice-corrected magnetic field sensor signals having D term soft iron subject to induced magnetization effects on compass bearing removed therefrom; correcting the phase relationship of said X and Y sensor outputs according to a second two-cycle correction value that is a function of phase difference between said X sinusoidal signal and said Y sinusoidal signal and applying said second two-cycle correction value to at least one of said twice-corrected magnetic field sensor signals to provide thrice-corrected magnetic field sensor signals having E term soft iron subject to induced magnetization effects on compass bearing removed therefrom; calculating a partially corrected bearing from said thrice corrected magnetic field sensor signals and calculating said corrected compass bearing by adding an A term correction to said partially corrected bearing. The method of claim 1 characterized by the step of correcting for vertical magnetic field components. The method of claim 2, characterized in that the step of correcting for vertical magnetic field components includes at least one of: orienting said magnetic field sensors in a horizontal plane, and correcting said magnetic field sensor output signals for said vertical magnetic field.

Inventors: FOWLER, JOHN T., GILBERT, DOUGLAS C.
Applicants: THE LAITRAM CORPORATION
Application year: 1986
Main classification: G01C17
IPC codes: G01C21, G01C17