Optical fiber compass and magnetic compass integrated calibration method
Technical Field
The invention relates to the technical field of navigation for ships, in particular to an integrated calibration method for an optical fiber compass and a magnetic compass.
Background
The compass is an instrument and equipment for determining the course of the ship, is widely applied to navigation and provides guarantee for the safe navigation of the ship. The optical fiber compass senses angular movement of the ship through the optical fiber gyro, and the course and posture information of the carrier under a local geographic coordinate system are obtained through calculation through a strapdown mathematical platform by utilizing the earth rotation information.
Magnetic compass refers to a device that uses the action of the earth's magnetic field to observe but the geographic orientation and heading of the vessel. The optical fiber compass and the magnetic fiber compass are commonly used on ships in parallel, the optical fiber compass is used for horizontal leveling and heading correction by utilizing the compass effect, the optical fiber compass has the advantage of good dynamic performance, the heading precision depends on the compass loop and the Kalman filtering operation effect, the long-term stability of the optical fiber compass is required to be improved, the magnetic compass is easy to be interfered, and the output precision of the magnetic fiber compass is poor.
Disclosure of Invention
In order to ensure the reliability of a navigation system and improve the system accuracy, the invention provides an integrated calibration method for an optical fiber compass and a magnetic compass, which combines the working characteristics of the optical fiber compass and the magnetic compass, and adds a magnetic sensor measurement module and a data fusion calculation module, wherein the optical fiber compass and the magnetic compass are mutually complemented and mutually calibrated, thereby not only improving the system reliability, but also improving the system accuracy through data fusion.
An integrated calibration method for optical fiber compass and magnetic compass specifically comprises the following steps:
s1, constructing a magnetic compensation algorithm according to the influence of a complex magnetic environment on the magnetic compass and angle data actually output by the optical fiber compass;
S2, judging working calibration modes of the optical fiber compass and magnetic compass integrated equipment after the optical fiber compass and magnetic compass integrated equipment enter a working state, wherein the working calibration modes comprise a magnetic calibration mode and an optical fiber compass calibration mode;
When the optical fiber compass and magnetic compass integrated equipment enters a magnetic calibration mode, substituting the information currently output by the optical fiber compass and the local magnetic field information of the current position of the ship into the magnetic compensation algorithm, and calculating the compensated true north course output by the magnetic compass;
when the optical fiber compass and magnetic compass integrated equipment enters an optical fiber compass calibration mode, the measurement result of the optical fiber compass is corrected by utilizing the compensated true north heading outputted by the magnetic compass through a Kalman filtering algorithm.
Preferably, in step S1, the specific steps of constructing the magnetic compensation algorithm according to the influence of the complex magnetic environment on the magnetic compass and the angle data actually output by the optical fiber compass are as follows:
Calculating the true value of the local geomagnetic field according to the angle data actually output by the optical fiber compass and the projections of the local geomagnetic field in the east, north and sky directions;
Deriving a magnetic compensation calculation formula for compensating the magnetic field data measured by the magnetic compass by utilizing the angle data actually output by the optical fiber compass according to the actual value of the local magnetic field and the magnetic field data actually measured by the magnetic compass;
And calculating to obtain a true north course compensation calculation formula of the magnetic compass by using the compensated magnetic field data output by the magnetic compass and the magnetic bias angle of the local magnetic field.
Preferably, the specific steps of calculating the true value of the local magnetic field according to the angle data actually output by the optical fiber compass and the projections of the local magnetic field in the east, north and sky directions are as follows:
Firstly, according to the angle data actually output by the optical fiber compass, a coordinate conversion matrix from a navigation coordinate system X nYnZn to a carrier coordinate system X bYbZb is obtained
Then, according to the coordinate transformation matrixAnd calculating the true value of the local geomagnetic field by projection of the local geomagnetic field in the east, north and sky directions.
Preferably, the coordinate transformation matrixThe calculation formula of (2) is as follows:
Wherein, psi is the course angle actually output by the optical fiber compass, theta is the pitch angle actually output by the optical fiber compass, and gamma is the roll angle actually output by the optical fiber compass;
the calculation formula of the true value of the local magnetic field is as follows:
Wherein, [ M E MN MU]T ] is the projection of the local magnetic field in the east, north and sky directions.
Preferably, the specific steps for deriving the magnetic compensation calculation formula according to the local geomagnetic field true value and the magnetic field data actually measured by the magnetic compass are as follows:
considering the influence of a complex magnetic environment on the magnetic compass, the magnetic field data actually output by the magnetic compass can be expressed as:
wherein [ M x My Mz]T is the projection of the magnetic field intensity actually output by the magnetic compass in the directions of x, y and z, [ H xHy Hz]T is the true value of the local magnetic field, And B 0 represents the influence of soft magnetic interference and hard magnetic interference on the magnetic field respectively;
Equation (3) may be further expressed as:
Wherein,
Substituting the actual value of the local magnetic field and the magnetic field data actually measured by the magnetic compass into a formula (4) to obtain a relational expression of ferromagnetic interference coefficients A and B;
performing least square fitting on the relation between the ferromagnetic interference coefficients A and B, and calculating to obtain the ferromagnetic interference coefficients A and B;
Substituting the ferromagnetic interference coefficients A and B into the formula (4) to obtain a magnetic compensation calculation formula for compensating magnetic field data actually measured by the magnetic compass by utilizing the angle output by the optical fiber compass.
Preferably, the specific steps of obtaining the true north course compensation calculation formula of the magnetic compass by utilizing the compensated magnetic field data output by the magnetic compass and the magnetic bias angle of the local magnetic field are as follows:
Projection in x-y direction after compensation according to output of magnetic compass AndCalculating a magnetic heading angle;
And obtaining a true north course compensation calculation formula of the magnetic compass according to the magnetic course angle and the magnetic bias angle of the local magnetic field.
Preferably, the calculation formula of the magnetic heading angle is:
Wherein, The magnetic compass outputs are compensated and projected in the x and y directions;
The true north course compensation calculation formula of the magnetic compass is as follows:
Wherein, ψ M is the true north course after the compensation that magnetic compass output, and ψ M0 is local magnetic declination, and local magnetic declination carries out the table look-up according to the longitude and latitude that optical fiber compass output and obtains.
Preferably, in step S2, the specific steps of correcting the measurement result of the optical fiber compass by using the compensated true north heading outputted by the magnetic compass by the kalman filter algorithm are as follows:
The INS navigation parameter error and the drift error of the inertial sensor are selected as the state vector of the filter, and the state vector of the filter can be obtained
Considering the noise of the magnetic compass, the observation equation of the magnetic compass is:
Z(t)=H(t)x(t)+υ(t)(8)
H(t)=[01×2101×18]1×21(9)
The observed quantity of the actual measurement of the magnetic compass is as follows:
Z(t)=ψINS-ψM(10)
Wherein, ψ M is the compensated true north heading outputted by the magnetic compass, and ψ INS is the heading value outputted by the optical fiber compass.
According to formulas (7) - (10), the state variable x (t) is estimated in real time based on a Kalman filtering algorithm, and the measuring result of the optical fiber compass is subjected to open loop correction.
Preferably, the state vector component process of the filter is:
carrying out disturbance analysis on the measurement result of the optical fiber compass, omitting the high-order term of the basic error quantity, and obtaining the linearized inertial navigation attitude, speed and position error equation of the optical fiber compass as follows:
in the formula, alpha and δv n、δpn represent three-dimensional posture, speed and position errors.
The other elements in M pv and M pp are zero, L is the local latitude, R M、RN is the mortise unitary radius and the meridian radius respectively, h is the motion height of the ship, and v E、vN is the east and north speeds of the ship respectively;
fiber optic compass and accelerometer drift errors can be modeled as:
constant zero offset epsilon b Can be expressed as:
first order Gaussian-Markov process ε r and Can be expressed as:
and constructing and obtaining a state vector of the filter according to the inertial navigation attitude, the speed and the position error equation after linearization of the optical fiber compass and the drift error of the optical fiber compass and the accelerometer:
the system state equation of the inertial navigation system is:
Where the submatrix F 12~F33 is an expanded version of equation (11), and 0 represents a3×3 zero matrix.
Wherein, I is a3 x 3 unit array, [ w gx wgy wgz wax way waz]T is the white noise of the optical fiber gyro compass and the accelerometer in the three directions of x, y and z, [ w rgx wrgy wrgz wrax wray wraz]T is the first-order Gaussian-Markov process noise of the optical fiber gyro compass and the accelerometer in the three directions of x, y and z.
In summary, the present invention includes at least one of the following beneficial technical effects:
1. The integrated calibration method for the optical fiber compass and the magnetic compass combines the working characteristics of the optical fiber compass and the magnetic compass, so that the optical fiber compass and the magnetic compass are mutually complemented and mutually calibrated, thereby not only increasing the reliability of the system, but also improving the precision of the system through data fusion.
Drawings
Fig. 1 is a flow chart of an integrated calibration method for optical fiber compass and magnetic compass.
Fig. 2 is a schematic diagram of magnetic compass error in an integrated calibration method for optical fiber compass.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the present invention is described below by means of specific embodiments shown in the accompanying drawings. It should be understood that the description is only illustrative and is not intended to limit the scope of the invention. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the present invention. The present invention will be described in further detail with reference to fig. 1.
The invention discloses an integrated calibration method for an optical fiber compass and a magnetic compass, which can use the output of the optical fiber compass to compensate the measurement data of the magnetic compass, and can also use the output of the magnetic compass as an observed quantity to restrict the course output of the optical fiber compass.
The invention relates to an integrated calibration method for an optical fiber compass and a magnetic compass, which specifically comprises the following steps:
S1, constructing a magnetic compensation algorithm according to the influence of a complex magnetic environment on the magnetic compass and angle data actually output by the optical fiber compass.
The set of fiber optic gyro compass (comprising an inertial measurement unit and a navigation computer circuit board) can receive satellite navigation system (GNSS) or Doppler log (DVL) information and output information such as heading angle, heading steering Rate (ROT) and the like.
The magnetic sensor measuring module is added in the optical fiber compass, the magnetic sensor measuring axial direction is consistent with the sensitive axial directions of the optical fiber compass gyroscope and the accelerometer, and the magnetic sensor measuring axial directions are respectively directed to the right axial direction, the front axial direction and the upper axial direction of the optical fiber/magnetic integrated compass, and the magnetic field data actually measured by the magnetic sensor are respectively M x、My、Mz.
Specifically, the steps of constructing the magnetic compensation algorithm are:
S11, calculating the actual value of the local geomagnetic field according to the angle data actually output by the optical fiber compass and the projections of the local geomagnetic field in the east, north and sky directions.
That is, first, a coordinate conversion matrix from the navigation coordinate system X nYnZn to the carrier coordinate system X bYbZb is obtained based on the angle data actually output from the optical fiber compass
Wherein, psi is the course angle actually output by the optical fiber compass, theta is the pitch angle actually output by the optical fiber compass, and gamma is the roll angle actually output by the optical fiber compass;
Then, according to the coordinate transformation matrix And calculating the true value of the local geomagnetic field by projection of the local geomagnetic field in the east, north and sky directions.
The calculation formula of the true value of the local magnetic field is as follows:
Wherein, [ M E MN MU]T ] is the projection of the local magnetic field in the east, north and sky directions.
S12, deriving a magnetic compensation calculation formula for compensating the magnetic field data measured by the magnetic compass by utilizing the angle data actually output by the optical fiber compass according to the local geomagnetic field true value and the magnetic field data actually measured by the magnetic compass.
In the azimuth angle resolving process of the magnetic compass, the local geomagnetic field vector information is required to be measured by utilizing a triaxial magnetic sensor, but the magnetic compass is inevitably subjected to various ferromagnetic interferences, and errors are caused to the azimuth angle of the magnetic compass.
That is, considering the influence of a complex magnetic environment on the magnetic compass, the magnetic field data actually output by the magnetic compass can be expressed as:
wherein [ M x My Mz]T is the projection of the magnetic field intensity actually output by the magnetic compass in the directions of x, y and z, [ H xHy Hz]T is the true value of the local magnetic field, And B 0 represents the influence of soft magnetic interference and hard magnetic interference on the magnetic field respectively;
Equation (3) may be further expressed as:
Wherein,
Substituting the actual value of the local magnetic field (the value [ H x Hy Hz]T ] calculated by the formula (2) and the magnetic field data actually measured by the magnetic compass ([ M x My Mz]T), wherein the magnetic field data actually measured by the magnetic compass are values obtained by actual measurement between data correction by the method of the invention, namely uncorrected measured values) into the formula (4) to obtain a relational expression of ferromagnetic interference coefficients A and B;
performing least square fitting on the relation between the ferromagnetic interference coefficients A and B, and calculating to obtain the ferromagnetic interference coefficients A and B;
Substituting the ferromagnetic interference coefficients A and B into the formula (4) to obtain a magnetic compensation calculation formula for compensating magnetic field data actually measured by the magnetic compass by utilizing the angle output by the optical fiber compass.
S13, calculating to obtain a true north course compensation calculation formula of the magnetic compass by using the compensated magnetic field data output by the magnetic compass and the magnetic bias angle of the local magnetic field.
I.e. the projection in x-y direction after compensation according to the output of the magnetic compassAndCalculating a magnetic heading angle:
Wherein, The magnetic compass outputs are compensated and projected in the x and y directions;
Then, according to the magnetic course angle And obtaining a true north course compensation calculation formula of the magnetic compass by the magnetic bias angle of the local magnetic field:
Wherein, ψ M is the true north course after the compensation that magnetic compass output, and ψ M0 is local magnetic deflection angle, and optical fiber compass can also output longitude and latitude information in addition to the course and course steering rate information, and local magnetic deflection angle is obtained according to the longitude and latitude that optical fiber compass output and look up the table.
S2, judging working calibration modes of the optical fiber compass and magnetic compass integrated equipment after the optical fiber compass and magnetic compass integrated equipment enters a working state, wherein the working calibration modes comprise a magnetic calibration mode and an optical fiber compass calibration mode.
When the optical fiber compass and magnetic compass integrated equipment enters a magnetic calibration mode, the information output by the optical fiber compass and the local magnetic field information of the current position of the ship are substituted into the magnetic compensation algorithm, and the true north course of the magnetic compass output after compensation is calculated.
Assuming that the angle data obtained by actually measuring the optical fiber compass at the Beijing time 00:01, the magnetic field data obtained by actually measuring the magnetic compass, and the local magnetic field data of the current position of the ship can be obtained according to the steps S11 and S12 (of course, the magnetic compensation algorithm can also be calculated by using the historical data of the optical fiber compass and the actual measurement of the magnetic compass in the history navigation of the ship and the local magnetic field data of the corresponding measurement position), the actual magnetic field data of the magnetic compass is corrected by using the angle output by the optical fiber compass at the Beijing time 00:02, then the true local magnetic field value at the moment is only calculated again according to the angle output by the optical fiber compass at the Beijing time 00:02, and then the current local magnetic field true value and the ferromagnetic interference coefficients A and B are substituted into the magnetic compensation calculation formula, so that the compensated magnetic field data output by the magnetic compass can be calculatedThen outputting the compensated magnetic field data from the magnetic compassSubstituting the formula in the step S13 to calculate the true north course of the magnetic compass output after compensation.
When the optical fiber compass and magnetic compass integrated equipment enters an optical fiber compass calibration mode, the measurement result of the optical fiber compass is corrected by utilizing the compensated true north heading outputted by the magnetic compass through a Kalman filtering algorithm.
The optical fiber compass is essentially a strapdown compass system, and iterative computation is performed through compass effect. Although the magnetic compass has large measuring noise, the magnetic compass has stable performance and is suitable for long-time work. And combining the characteristics of the optical fiber compass and the magnetic compass, constructing a kalman filter, and restraining the optical fiber compass by using the magnetic compass as an observed quantity.
Specifically, the specific steps of correcting the measurement result of the optical fiber compass by using the compensated true north heading outputted by the magnetic compass through the Kalman filtering algorithm are as follows:
carrying out disturbance analysis on the measurement result of the optical fiber compass, omitting the high-order term of the basic error quantity, and obtaining the linearized inertial navigation attitude, speed and position error equation of the optical fiber compass as follows:
in the formula, alpha and δv n、δpn represent three-dimensional posture, speed and position errors.
The other elements in M pv and M pp are zero, L is the local latitude, R M、RN is the mortise unitary radius and the meridian radius respectively, h is the motion height of the ship, and v E、vN is the east and north speeds of the ship respectively;
fiber optic compass and accelerometer drift errors can be modeled as:
constant zero offset epsilon b Can be expressed as:
first order Gaussian-Markov process ε r and Can be expressed as:
According to the inertial navigation attitude, speed and position error equation after linearization of the optical fiber compass and the drift error of the accelerometer, constructing and obtaining the state vector of the filter (namely selecting INS navigation parameter error and drift error of the inertial sensor as the state vector of the filter):
The system state equation of an inertial navigation system is expressed as:
Where the submatrix F 12~F33 is an expanded version of equation (7), and 0 represents a 3×3 zero matrix.
Wherein, I is a3 x 3 unit array, [ w gx wgy wgz wax way waz]T is the white noise of the optical fiber gyro compass and the accelerometer in the three directions of x, y and z, [ w rgx wrgy wrgz wrax wray wraz]T is the first-order Gaussian-Markov process noise of the optical fiber gyro compass and the accelerometer in the three directions of x, y and z.
Since the magnetic compass data as an observed quantity also contains errors, the observation equation of the magnetic compass is as follows, taking into account the noise of the magnetic compass:
Z(t)=H(t)x(t)+υ(t) (16)
H(t)=[01×2101×18]1×21 (17)
The observed quantity of the actual measurement of the magnetic compass is as follows:
Z(t)=ψINS-ψM (18)
Wherein, ψ M is the compensated true north heading outputted by the magnetic compass, and ψ INS is the heading value outputted by the optical fiber compass.
According to formulas (7) - (18), a kalman filter can be constructed, real-time estimation is carried out on the state variable x (t) based on a Kalman filtering algorithm, and open-loop correction is carried out on the measurement result of the optical fiber compass.
Fig. 2 shows a schematic diagram of magnetic compass error in the integrated calibration method of optical fiber compass and magnetic compass, wherein the X axis and the Y axis respectively represent the outputs of the right axis and the forward axis of the magnetic compass carrier. When the external magnetic interference does not exist and the XOY plane is parallel to the local horizontal plane, the magnetic compass rotates horizontally for one circle, the output of the magnetic field vectors in the two horizontal directions of the X axis and the Y axis is a circle with the center at the origin, as shown by a solid line A, the soft magnetic interference enables the output of the magnetic compass to be changed into an ellipse, the long axis of the ellipse forms a certain angle with the coordinate axis, as shown by a broken line B, and the hard magnetic interference enables the center of the output curve of the magnetic compass to deviate, as shown by a broken line C.
It should be understood that the described embodiments are merely some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.