CN105716610A - Carrier attitude and heading calculation method assisted by geomagnetic field model and system - Google Patents
Carrier attitude and heading calculation method assisted by geomagnetic field model and system Download PDFInfo
- Publication number
- CN105716610A CN105716610A CN201610059817.5A CN201610059817A CN105716610A CN 105716610 A CN105716610 A CN 105716610A CN 201610059817 A CN201610059817 A CN 201610059817A CN 105716610 A CN105716610 A CN 105716610A
- Authority
- CN
- China
- Prior art keywords
- value
- magnetic sensor
- state
- measurement
- updating
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 230000005358 geomagnetic field Effects 0.000 title claims abstract description 44
- 238000004364 calculation method Methods 0.000 title claims abstract description 27
- 238000005259 measurement Methods 0.000 claims abstract description 203
- 239000011159 matrix material Substances 0.000 claims abstract description 155
- 230000007613 environmental effect Effects 0.000 claims abstract description 37
- 238000000034 method Methods 0.000 claims abstract description 35
- 239000013598 vector Substances 0.000 claims description 39
- 238000001914 filtration Methods 0.000 claims description 36
- 230000003044 adaptive effect Effects 0.000 claims description 19
- 230000005484 gravity Effects 0.000 claims description 16
- 238000010606 normalization Methods 0.000 claims description 16
- 230000009466 transformation Effects 0.000 claims description 11
- 230000008569 process Effects 0.000 claims description 8
- 230000001133 acceleration Effects 0.000 claims description 6
- 230000007704 transition Effects 0.000 claims description 6
- 238000006243 chemical reaction Methods 0.000 claims description 5
- 238000010276 construction Methods 0.000 claims description 4
- 238000006467 substitution reaction Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000005389 magnetism Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000017105 transposition Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/20—Instruments for performing navigational calculations
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Automation & Control Theory (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Navigation (AREA)
Abstract
The invention discloses a carrier attitude and heading calculation method assisted by a geomagnetic field model and a system. The method comprises the following steps that an ideal magnetic inclination angle is calculated according to position information of a carrier and the geomagnetic field model; an estimated magnetic inclination angle is calculated according to an output value of an accelerometer and an output value of a magnetic sensor; whether environmental magnetic interference exists or not is judged according to the ideal magnetic inclination angle and the estimated magnetic inclination angle; if the environmental magnetic interference exists, an equivalent weight matrix of magnetic sensor measurement values is constructed according to self-adaptive weights of the magnetic sensor measurement values; carrier attitude information and heading information are calculated according to an accelerometer measurement value, the magnetic sensor measurement values and the equivalent weight matrix of the magnetic sensor measurement values. According to the carrier attitude and heading calculation method assisted by the geomagnetic field model and the system, the environmental magnetic interference is detected according to the ideal magnetic inclination angle and the estimated magnetic inclination angle, when the environmental magnetic interference is detected, the equivalent weight matrix of the magnetic sensor measurement values is constructed, self-adaptive adjustment of contribution of the magnetic sensor measurement values to a state estimation value is achieved, and the calculated attitude information and heading information have robustness.
Description
Technical Field
The invention relates to the technical field of communication, in particular to a method and a system for calculating attitude and heading of a carrier assisted by a geomagnetic field model.
Background
An attitude and heading reference system (AHRS for short) is a measuring device capable of accurately measuring the three-axis attitude of a carrier in a space coordinate system, and is composed of hardware such as a three-axis magnetometer, a three-axis gyroscope, a three-axis accelerometer and the like and corresponding software, provides real-time attitude and heading information for the carrier, and is widely applied to the fields of aerospace, robots, the automobile industry and pedestrian navigation positioning. With the development of micro-electromechanical technology, attitude and heading reference systems based on micro-electromechanical system sensors are more widely applied. However, due to the drift of the gyroscope, the errors are accumulated continuously when the attitude and heading information of the carrier is calculated. In order to solve the problem, information of an accelerometer and a magnetic sensor is introduced into an attitude and heading reference system, a gravity field and a geomagnetic field are used as reference vectors, and attitude and heading information of a carrier is calculated in real time by using output values of the accelerometer and the magnetometer and output values of a gyroscope.
Although attitude and heading reference systems can provide accurate attitude and heading information for a carrier in real time, the carrier moving in the near ground is often interfered by the external environment, and particularly, a magnetic sensor is obviously interfered by environmental magnetism. When external magnetic interference occurs, the output value of the magnetic sensor is used as a measurement value to estimate the attitude and the heading information of the carrier, so that errors exist, and even the attitude and the heading information of the carrier cannot be correctly calculated, and great risk is brought to the autonomous control of the carrier.
Disclosure of Invention
The invention provides a geomagnetic field model-assisted carrier attitude and heading calculation method and system, which aim to solve the technical problem of real-time calculation of carrier attitude and heading in the presence of environmental magnetic interference.
The invention provides a geomagnetic field model-assisted carrier attitude and heading calculation method, which comprises the following steps of:
calculating an ideal magnetic inclination angle according to the position information of the carrier and the geomagnetic field model; calculating and estimating a magnetic inclination angle according to the output value of the accelerometer and the output value of the magnetic sensor;
judging whether environmental magnetic interference exists according to the ideal magnetic inclination angle and the estimated magnetic inclination angle;
when environmental magnetic interference exists, constructing a self-adaptive weight of a measured value of a magnetic sensor according to a normalized residual error of the measured value of the magnetic sensor and a covariance matrix of the measured value, and constructing an equivalent weight matrix of the measured value of the magnetic sensor according to the self-adaptive weight of the measured value of the magnetic sensor;
and calculating the attitude information and the course information of the carrier according to the accelerometer measurement value, the magnetic sensor measurement value and the equivalent weight matrix of the magnetic sensor measurement value.
Optionally, calculating the carrier attitude information and the heading information according to the accelerometer measurement value, the magnetic sensor measurement value, and the equivalent weight matrix of the magnetic sensor measurement value, specifically including:
updating the state prediction value according to the accelerometer measurement value to obtain a state update value, and updating the estimation value of the attitude quaternion by using the state update value;
updating the state updating value according to the magnetic sensor measurement value and the equivalent weight matrix of the magnetic sensor measurement value to obtain a state estimation value, and updating the estimation value of the attitude quaternion by using the state estimation value;
and calculating the attitude information and the course information of the carrier according to the estimated value of the attitude quaternion and a conversion matrix from a navigation coordinate system to a carrier coordinate system.
Optionally, the updating the state prediction value according to the accelerometer measurement value to obtain a state update value specifically includes:
updating the model according to the inertial sensor error model and the attitude error quaternion, and constructing a Kalman filtering state equation; constructing a first measurement equation according to the output value of the accelerometer and the output value of the accelerometer estimated according to the gravity field reference vector;
and updating the state prediction value according to the Kalman filtering state equation, the first measurement equation and the accelerometer measurement value to obtain a state update value.
Optionally, updating the state update value according to the magnetic sensor measurement value and the equivalent weight matrix of the magnetic sensor measurement value to obtain a state estimation value, specifically including:
updating the model according to the inertial sensor error model and the attitude error quaternion, and constructing a Kalman filtering state equation; constructing a second measurement equation according to the output value of the magnetic sensor and the output value of the magnetic sensor estimated according to the world geomagnetic field model;
and updating a state updating value according to the Kalman filtering state equation, the second measurement equation, the magnetic sensor measurement value and the equivalent weight matrix of the magnetic sensor measurement value to obtain a state estimation value.
Optionally, the state equation of the Kalman filter specifically includes:
wherein x (t) ═ qebωba]T∈R9×1T is the state quantity, T is the transpose, F (T) is the state transition matrix, W (T) is the process noise,for gyroscope output valuesOf an inverse matrix, vωIs the random drift noise of the gyroscope,is the noise of the random constant model of the gyroscope,for accelerometer stochastic constant model noise, qeVector portion being error quaternion, bωIs a random constant of the gyroscope, baIs the accelerometer bias.
Optionally, the first measurement equation specifically includes:
wherein L isaFor the difference between the output value of the accelerometer and the output value of the accelerometer estimated from the gravity field reference vector,is the output value of the accelerometer and is,for the transformation matrix from the navigation coordinate system to the carrier coordinate system,as an estimate of the attitude quaternion, gnIs the projection of the gravitational acceleration in a navigation coordinate system, vaIs the random error of the accelerometer.
Optionally, the state prediction value is updated according to the Kalman filtered state equation, the first measurement equation, and the accelerometer measurement value, so as to obtain a state update value, specifically:
updating the state predicted value by adopting the following formula to obtain a state updated value:
wherein,the value is updated for the state at time k,is a predicted value of the state at time k, La,kThe accelerometer measurement at time k, Aa,kIs the measurement matrix of the first measurement equation at time K, I is the unit matrix, Ka,kIn order to be a matrix of gains, the gain matrix,is composed ofOf covariance matrix, RaMeasuring a covariance matrix of the noise for the accelerometer;is time kThe covariance matrix of (2).
Optionally, updating the estimation value of the attitude quaternion by using the state update value, specifically:
updating the estimated value of the attitude quaternion by adopting the following formula:
wherein,is an estimate of the attitude quaternion,in order to be a quaternion multiplication,is composed ofThe normalization of (a) to (b) is performed,to assign a symbol, qeThe components of the update values for the states,updating the state with the value.
Optionally, the second measurement equation specifically includes:
wherein L ismAs a difference between the output value of the magnetic sensor and the output value of the magnetic sensor estimated from the world geomagnetic field model,is an output value of the magnetic sensor,for the transformation matrix from the navigation coordinate system to the carrier coordinate system,as an estimate of the attitude quaternion, mnAs a result of the normalization of the ideal geomagnetic field output value, vmRandom error of the magnetic sensor.
Optionally, updating a state update value according to the Kalman filtered state equation, the second measurement equation, the magnetic sensor measurement value, and the equivalent weight matrix of the magnetic sensor measurement value to obtain a state estimation value, specifically:
updating the state update value by adopting the following formula to obtain a state estimation value:
wherein,is an estimate of the state at time k,updating the value of the state at time k, Lm,kThe magnetic sensor measurement value at time k,is composed ofCovariance matrix of, Km,kIs the gain matrix at time k, Am,kIs a measurement matrix for the time k,an equivalent weight matrix of the magnetic sensor measurement values at time k.
Optionally, updating the estimated value of the attitude quaternion by using the state estimated value, specifically:
updating the estimated value of the attitude quaternion by adopting the following formula:
wherein,is an estimate of the attitude quaternion,in order to be a quaternion multiplication,is composed ofThe normalization of (a) to (b) is performed,to assign a symbol, qeIs a component of the state estimate that is,is the state estimate.
Optionally, the estimated magnetic tilt angle is calculated according to the output value of the accelerometer and the output value of the magnetic sensor, specifically:
the estimated declination angle is calculated using the following formula:
Dcacul=arccos(na·nm)
wherein D iscaculFor said estimated declination angle, naFor the direction vector of the output value of the accelerometer in the carrier system, nmThe vector is a direction vector of an output value of the magnetic sensor in the carrier system.
Optionally, judging whether there is environmental magnetic interference according to the ideal magnetic inclination angle and the estimated magnetic inclination angle, specifically:
judging whether the ideal magnetic dip angle and the estimated magnetic dip angle meet the following conditions:
|Dcacul-Dreference|>λD
wherein D isreferenceIs the ideal magnetic inclination angle, DcaculFor said estimation of the magnetic tilt angle, λDIs a preset threshold value;
if the above conditions are met, determining that environmental magnetic interference exists; otherwise, it is determined that there is no ambient magnetic interference.
Optionally, constructing an adaptive weight of the magnetic sensor measurement value according to the normalized residual of the magnetic sensor measurement value and the measurement value covariance matrix, specifically:
constructing an adaptive weight of the magnetic sensor measurement value by adopting the following formula:
in the absence of ambient magnetic interference;
in the presence of ambient magnetic interference;
wherein,adaptive weighting, p, of the i-th measured value of the magnetic sensor for time kkiIs the ith main diagonal element of the covariance matrix of the measured values, c is a constant, Vi' is the normalized residual of the magnetic sensor measurements.
Optionally, before constructing the adaptive weight of the magnetic sensor measurement value according to the normalized residual of the magnetic sensor measurement value and the measurement value covariance matrix, the method further includes:
calculating a normalized residual of the magnetic sensor measurement values using the following formula:
wherein L ismiIs the ith measurement equation of the second measurement equation, AmiIs a measurement matrixRow i of (1); i sigmaiI is the covariance matrix R of the measured noise of the magnetic sensormThe square root of the ith main diagonal element.
The invention also provides an attitude and heading reference system, comprising:
the first calculation module is used for calculating an ideal magnetic inclination angle according to the position information of the carrier and the geomagnetic field model;
the second calculation module is used for calculating and estimating a magnetic inclination angle according to the output value of the accelerometer and the output value of the magnetic sensor;
the judging module is used for judging whether environmental magnetic interference exists according to the ideal magnetic inclination angle and the estimated magnetic inclination angle;
the first construction module is used for constructing the self-adaptive weight of the magnetic sensor measuring value according to the normalized residual error of the magnetic sensor measuring value and the measuring value covariance matrix when the judgment module judges that the environmental magnetic interference exists;
the second construction module is used for constructing an equivalent weight matrix of the magnetic sensor measurement values according to the self-adaptive weights of the magnetic sensor measurement values;
and the third calculation module is used for calculating the attitude information and the course information of the carrier according to the accelerometer measurement value, the magnetic sensor measurement value and the equivalent weight matrix of the magnetic sensor measurement value.
Optionally, the third computing module comprises:
the first updating submodule is used for updating the state predicted value according to the accelerometer measurement value to obtain a state updating value;
a second update submodule for updating the estimated value of the attitude quaternion using the state update value;
the third updating submodule is used for updating the state updating value according to the magnetic sensor measuring value and the equivalent weight matrix of the magnetic sensor measuring value to obtain a state estimation value;
a fourth updating submodule for updating the estimated value of the attitude quaternion using the state estimated value;
and the calculation submodule is used for calculating the attitude information and the course information of the carrier according to the estimation value of the attitude quaternion and a conversion matrix from a navigation coordinate system to a carrier coordinate system.
Optionally, the first update submodule is specifically configured to update a model according to an inertial sensor error model and an attitude error quaternion, and construct a Kalman filtering state equation; constructing a first measurement equation according to the output value of the accelerometer and the output value of the accelerometer estimated according to the gravity field reference vector; and updating the state prediction value according to the Kalman filtering state equation, the first measurement equation and the accelerometer measurement value to obtain a state update value.
Optionally, the third update submodule is specifically configured to update a model according to an inertial sensor error model and an attitude error quaternion, and construct a Kalman filtering state equation; constructing a second measurement equation according to the output value of the magnetic sensor and the output value of the magnetic sensor estimated according to the world geomagnetic field model; and updating a state updating value according to the Kalman filtering state equation, the second measurement equation, the magnetic sensor measurement value and the equivalent weight matrix of the magnetic sensor measurement value to obtain a state estimation value.
Optionally, the state equation of the Kalman filter specifically includes:
wherein x (t) ═ qebωba]T∈R9×1T is the state quantity, T is the transpose, F (T) is the state transition matrix, W (T) is the process noise,for gyroscope output valuesOf an inverse matrix, vωIs the random drift noise of the gyroscope,is the noise of the random constant model of the gyroscope,for accelerometer stochastic constant model noise, qeVector portion being error quaternion, bωIs a random constant of the gyroscope, baIs the accelerometer bias.
Optionally, the first measurement equation specifically includes:
wherein L isaFor the difference between the output value of the accelerometer and the output value of the accelerometer estimated from the gravity field reference vector,is the output value of the accelerometer and is,for the transformation matrix from the navigation coordinate system to the carrier coordinate system,as an estimate of the attitude quaternion, gnIs the projection of the gravitational acceleration in a navigation coordinate system, vaIs the random error of the accelerometer.
Optionally, the first update submodule is specifically configured to update a model according to an inertial sensor error model and an attitude error quaternion, and construct a Kalman filtering state equation; according to the output value of the accelerometer and the output value of the accelerometer estimated according to the gravity field reference vector, a first measurement equation is constructed, and a state prediction value is updated by adopting the following formula to obtain a state update value:
wherein,the value is updated for the state at time k,is a predicted value of the state at time k, La,kThe accelerometer measurement at time k, Aa,kIs the measurement matrix of the first measurement equation at time K, I is the unit matrix, Ka,kIn order to be a matrix of gains, the gain matrix,is composed ofOf covariance matrix, RaMeasuring a covariance matrix of the noise for the accelerometer;is time kThe covariance matrix of (2).
Optionally, the second updating sub-module is specifically configured to update the estimation value of the attitude quaternion by using the following formula:
wherein,is an estimate of the attitude quaternion,in order to be a quaternion multiplication,is composed ofThe normalization of (a) to (b) is performed,to assign a symbol, qeThe components of the update values for the states,updating the state with the value.
Optionally, the second measurement equation specifically includes:
wherein L ismAs a difference between the output value of the magnetic sensor and the output value of the magnetic sensor estimated from the world geomagnetic field model,is an output value of the magnetic sensor,for the transformation matrix from the navigation coordinate system to the carrier coordinate system,as an estimate of the attitude quaternion, mnAs a result of the normalization of the ideal geomagnetic field output value, vmRandom error of the magnetic sensor.
Optionally, the third update submodule is specifically configured to update a model according to an inertial sensor error model and an attitude error quaternion, and construct a Kalman filtering state equation; according to the output value of the magnetic sensor and the output value of the magnetic sensor estimated according to the world geomagnetic field model, a second measurement equation is constructed, and a state updating value is updated by adopting the following formula to obtain a state estimation value:
wherein,is an estimate of the state at time k,updating the value of the state at time k, Lm,kThe magnetic sensor measurement value at time k,is composed ofCovariance matrix of, Km,kIs the gain matrix at time k, Am,kIs a measurement matrix for the time k,an equivalent weight matrix of the magnetic sensor measurement values at time k.
Optionally, the fourth updating sub-module is specifically configured to update the estimation value of the attitude quaternion by using the following formula:
wherein,is an estimate of the attitude quaternion,in order to be a quaternion multiplication,is composed ofThe normalization of (a) to (b) is performed,to assign a symbol, qeIs a component of the state estimate that is,is the state estimate.
Optionally, the second calculating module is specifically configured to calculate the estimated magnetic tilt angle by using the following formula:
Dcacul=arccos(na·nm)
wherein D iscaculFor said estimated declination angle, naFor the direction vector of the output value of the accelerometer in the carrier system, nmFor the magnetic sensorThe vector of the vector is output.
Optionally, the determining module is specifically configured to determine whether the ideal magnetic tilt angle and the estimated magnetic tilt angle satisfy the following conditions:
|Dcacul-Dreference|>λD
wherein D isreferenceIs the ideal magnetic inclination angle, DcaculFor said estimation of the magnetic tilt angle, λDIs a preset threshold value;
if the above conditions are met, determining that environmental magnetic interference exists; otherwise, it is determined that there is no ambient magnetic interference.
Optionally, the first constructing module is specifically configured to, when the determining module determines that the environmental magnetic interference exists, construct an adaptive weight of the magnetic sensor measurement value by using the following formula:
in the absence of ambient magnetic interference;
in the presence of ambient magnetic interference;
wherein,adaptive weighting, p, of the i-th measured value of the magnetic sensor for time kkiIs the ith main diagonal element of the covariance matrix of the measured values, c is a constant, Vi' is the normalized residual of the magnetic sensor measurements.
Optionally, the system further includes:
a fourth calculating module, configured to calculate a normalized residual error of the magnetic sensor measurement value by using the following formula:
wherein L ismiIs the ith measurement equation of the second measurement equation, AmiIs a measurement matrixRow i of (1); i sigmaiI is the covariance matrix R of the measured noise of the magnetic sensormThe square root of the ith main diagonal element.
The method detects the environmental magnetic interference according to the ideal magnetic inclination angle and the estimated magnetic inclination angle, constructs an equivalent weight matrix of the measured value of the magnetic sensor when the environmental magnetic interference is detected, and realizes the self-adaptive adjustment of the contribution of the measured value of the magnetic sensor to the state estimated value, so that the attitude information and the course information obtained by calculation have the tolerance, can adapt to the geomagnetic distortion environment, and solves the technical problem of real-time calculation of the attitude and the course of a carrier when the environmental magnetic interference exists.
Drawings
FIG. 1 is a flowchart of a geomagnetic field model-assisted carrier attitude and heading calculation method in an embodiment of the present invention;
FIG. 2 is a flowchart of another geomagnetic model-assisted method for calculating attitude and heading of a carrier in an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an attitude and navigation reference system in an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a geomagnetic field model-assisted carrier attitude and heading calculation method, which comprises the following steps of:
step 101, calculating an ideal magnetic inclination angle according to the position information of the carrier and the geomagnetic field model; and calculating the estimated magnetic tilt angle according to the output value of the accelerometer and the output value of the magnetic sensor.
And 102, judging whether environmental magnetic interference exists or not according to the ideal magnetic inclination angle and the estimated magnetic inclination angle.
And 103, when the environmental magnetic interference exists, constructing an adaptive weight of the magnetic sensor measuring value according to the normalized residual error and the measuring value covariance matrix of the magnetic sensor measuring value, and constructing an equivalent weight matrix of the magnetic sensor measuring value according to the adaptive weight of the magnetic sensor measuring value.
And step 104, calculating the attitude information and the course information of the carrier according to the accelerometer measurement value, the magnetic sensor measurement value and the equivalent weight matrix of the magnetic sensor measurement value.
The embodiment of the invention detects the environmental magnetic interference according to the ideal magnetic inclination angle and the estimated magnetic inclination angle, constructs the equivalent weight matrix of the measured value of the magnetic sensor when the environmental magnetic interference is detected, and realizes the self-adaptive adjustment of the contribution of the measured value of the magnetic sensor to the state estimated value, so that the attitude information and the course information obtained by calculation have the tolerance, can adapt to the geomagnetic distortion environment, and solves the technical problem of real-time calculation of the attitude and the course of a carrier when the environmental magnetic interference exists.
The embodiment of the invention also provides another geomagnetic field model-assisted carrier attitude and heading calculation method, as shown in FIG. 2, which comprises the following steps:
step 201, calculating the total magnetic field intensity, the magnetic dip angle and the magnetic declination angle of the ideal geomagnetic field according to the position information of the carrier and the geomagnetic field model, and taking the magnetic dip angle of the ideal geomagnetic field as the ideal magnetic dip angle.
Specifically, the geomagnetic field information at the position of the carrier can be calculated in real time according to a world geomagnetic model (WMM) published by the national geographic information system (NGA) and trajectory data of carrier motion, wherein the data is manufactured by the united states geophysical information center (NGDC) and the british geological survey Bureau (BGS), and the geomagnetic field information includes the total magnetic field strength, the declination angle and the declination angle.
In step 202, an estimated magnetic tilt angle is calculated based on the output value of the accelerometer and the output value of the magnetic sensor.
Specifically, the estimated declination angle may be calculated using the following formula:
Dcacul=arccos(na·nm)(1)
wherein D iscaculTo estimate the magnetic tilt angle, naAnd nmRespectively accelerometer and magnetic sensorThe vector of the vector is output.
And step 203, judging whether environmental magnetic interference exists according to the ideal magnetic inclination angle and the estimated magnetic inclination angle.
Specifically, it may be determined whether the ideal and estimated declination angles satisfy the following conditions:
|Dcacul-Dreference|>λD(2)
wherein D isreferenceTo an ideal magnetic inclination angle, DcaculTo estimate the magnetic tilt angle, λDIs a preset threshold.
If the above conditions are met, determining that environmental magnetic interference exists; otherwise, it is determined that there is no ambient magnetic interference.
In this embodiment, λD=0.55°。
And 204, updating the model according to the inertial sensor error model and the attitude error quaternion, and constructing a Kalman filtering state equation.
In particular, the vector portion q of the error quaternion can be takeneGyroscope random constant value bωAnd accelerometer bias baAs the state quantities, a state equation of Kalman filtering is constructed:
wherein x (t) ═ qebωba]T∈R9×1Is a state quantity; t is transposition; f (t) is a state transition matrix; w (t) is process noise;for gyroscope output valuesAn inverse matrix of (d); v. ofωRandom drift noise for the gyroscope;noise of a random constant model of the gyroscope;random constant model noise for the accelerometer;
and step 205, establishing a measurement equation according to the difference between the projection values of the earth gravity field reference vector and the earth magnetic field reference vector in the carrier coordinate system and the actual measurement values of the accelerometer and the magnetic sensor.
In particular, the difference L between the output value of the accelerometer and the estimated value of the output value of the accelerometer is usedaAnd a difference L between the magnetic sensor output value and the estimated value of the magnetic sensor output valuemRespectively constructing a first measurement equation and a second measurement equation:
wherein,is the output value of the accelerometer;is the output value of the magnetic sensor;is a transformation matrix from a navigation coordinate system n to a carrier coordinate system b;is an estimate of a quaternion; gn=[00-g]TIs the projection of the gravity acceleration g under the navigation coordinate system n; m isn=[0cosαsinα]TNormalized by the ideal geomagnetic field output value α is the magnetic tilt angle vaAnd vmRandom errors of the accelerometer and magnetometer, respectively.
In this example, gn=9.8m/s2。
And step 206, estimating quaternion errors and inertial sensor errors by adopting a Kalman filtering algorithm of two-step observation updating, and realizing the estimation of the attitude and the heading of the carrier through an attitude quaternion updating equation.
Specifically, according to equation (6), the observed value L at time k is useda,kUpdating the state prediction value at time k
Wherein,is the measurement matrix of measurement equation (6) at time k; i is a unit array;for state prediction at time kAn updated value of (d); ka,kIs a gain matrix;for state prediction at time kThe covariance matrix of (a); raMeasuring a covariance matrix of the noise for the accelerometer;is in a state at time kThe covariance matrix of (a);
in this example, Ra=(500μg)2I。
Using state quantitiesComponent (b) ofUpdating
Wherein, the symbolMultiplication is carried out for quaternion;is a quaternionNormalization of (1);assigning the calculated value on the right side of the equation to the variable on the left side of the equation for assigning the sign;
according to equation (7), the measured value L at time k is usedm,kUpdating time kObtaining a state estimate at time kCovariance matrix of sum state estimate
Wherein, Km,kA gain matrix for time k; l ism,kA measurement value calculated by the magnetic sensor for the time k; a. them,kA measurement matrix at the time k; an equivalent weight matrix of the measured value of the magnetic sensor at the moment k;
using the state quantities according to equations (11) and (12)Component (b) ofTo updateAnd useTo calculate attitude and heading information of the carrier.
And step 207, utilizing the equivalent weight matrix to online adjust the weight of the measurement value of the magnetic sensor according to the detection result of the environmental magnetic interference in the step 203, so that the calculated attitude and heading information of the carrier have tolerance.
Calculating the normalized residual error of the observed value of the magnetic sensor according to the measurement equation (7) as
Wherein L ismiThe ith measurement equation which is measurement equation (7); a. themiIs a measurement matrixRow i of (1); i sigmaiI is the covariance matrix R of the measured noise of the magnetic sensormThe square root of the ith main diagonal element;
in this example, Rm=0.001I;
Constructing a measurement value weight factor of
In the formula,an adaptive weight being an i-th measured value of the magnetic sensor at time k; p is a radical ofkiFor the ith main diagonal element of a given metrology covariance matrix; c is a constant;
in this example, c is 1.3 to 2.0.
The embodiment of the invention utilizes the self-adaptive weight of the measured value of the magnetic sensor at the moment kConstructing an equivalence weight matrix of magnetic sensor measurement valuesAnd the self-adaptive adjustment of the contribution of the measured value of the magnetic sensor to the state estimated value is realized, so that the attitude and heading information calculation has the tolerance.
The invention has the advantages that: the method comprises the following steps that the process of calculating attitude and heading reference system information is realized by adopting a two-step filtering method, and in the first step, an accelerometer is used as a measuring sensor to estimate the error of a quaternion and update the quaternion; and secondly, estimating the error of the quaternion by taking the magnetic sensor as a measuring sensor, detecting the magnetic interference of the environment where the carrier is positioned in real time by using a magnetic interference detection algorithm, adaptively adjusting the weight of the observation data of the magnetic sensor in filtering estimation by the ratio of a measuring residual error to an actual residual error, updating the quaternion and calculating the attitude of the carrier and the heading reference system information. The tolerance and the reliability of the carrier attitude and the heading reference system information are improved.
Based on the above geomagnetic field model-assisted carrier attitude and heading calculation method, an embodiment of the present invention further provides an attitude and heading reference system, as shown in fig. 3, including:
the first calculation module 310 is configured to calculate an ideal magnetic dip angle according to the position information of the carrier and the geomagnetic field model;
a second calculating module 320, configured to calculate an estimated magnetic tilt angle according to the output value of the accelerometer and the output value of the magnetic sensor;
the judging module 330 is configured to judge whether there is environmental magnetic interference according to the ideal magnetic inclination angle and the estimated magnetic inclination angle;
a first constructing module 340, configured to construct an adaptive weight of the magnetic sensor measurement value according to the normalized residual of the magnetic sensor measurement value and the measurement value covariance matrix when the determining module 330 determines that the environmental magnetic interference exists;
a second constructing module 350, configured to construct an equivalent weight matrix of the magnetic sensor measurement values according to the adaptive weights of the magnetic sensor measurement values;
and the third calculating module 360 is configured to calculate the carrier attitude information and the heading information according to the accelerometer measurement value, the magnetic sensor measurement value, and the equivalent weight matrix of the magnetic sensor measurement value.
Wherein, the third calculating module 360 comprises:
the first updating submodule is used for updating the state predicted value according to the accelerometer measurement value to obtain a state updating value;
a second update submodule for updating the estimated value of the attitude quaternion using the state update value;
the third updating submodule is used for updating the state updating value according to the magnetic sensor measuring value and the equivalent weight matrix of the magnetic sensor measuring value to obtain a state estimation value;
a fourth updating submodule for updating the estimated value of the attitude quaternion using the state estimated value;
and the calculation submodule is used for calculating the attitude information and the course information of the carrier according to the estimation value of the attitude quaternion and a conversion matrix from a navigation coordinate system to a carrier coordinate system.
Specifically, the first update submodule is specifically configured to update a model according to an inertial sensor error model and an attitude error quaternion, and construct a Kalman filtering state equation; constructing a first measurement equation according to the output value of the accelerometer and the output value of the accelerometer estimated according to the gravity field reference vector; and updating the state prediction value according to the Kalman filtering state equation, the first measurement equation and the accelerometer measurement value to obtain a state update value.
The third updating submodule is specifically configured to update the model according to the inertial sensor error model and the attitude error quaternion, and construct a Kalman filtering state equation; constructing a second measurement equation according to the output value of the magnetic sensor and the output value of the magnetic sensor estimated according to the world geomagnetic field model; and updating a state updating value according to the Kalman filtering state equation, the second measurement equation, the magnetic sensor measurement value and the equivalent weight matrix of the magnetic sensor measurement value to obtain a state estimation value.
The Kalman filtering state equation specifically comprises the following steps:
wherein x (t) ═ qebωba]T∈R9×1T is the state quantity, T is the transpose, F (T) is the state transition matrix, W (T) is the process noise,for gyroscope output valuesOf an inverse matrix, vωIs the random drift noise of the gyroscope,is the noise of the random constant model of the gyroscope,for accelerometer stochastic constant model noise, qeVector portion being error quaternion, bωIs a random constant of the gyroscope, baIs the accelerometer bias.
The first measurement equation specifically includes:
wherein L isaFor the difference between the output value of the accelerometer and the output value of the accelerometer estimated from the gravity field reference vector,is the output value of the accelerometer and is,for the transformation matrix from the navigation coordinate system to the carrier coordinate system,as an estimate of the attitude quaternion, gnIs the projection of the gravitational acceleration in a navigation coordinate system, vaIs the random error of the accelerometer.
Correspondingly, the first updating submodule is specifically configured to update a model according to an inertial sensor error model and an attitude error quaternion, and construct a state equation of Kalman filtering; according to the output value of the accelerometer and the output value of the accelerometer estimated according to the gravity field reference vector, a first measurement equation is constructed, and a state prediction value is updated by adopting the following formula to obtain a state update value:
wherein,the value is updated for the state at time k,is a predicted value of the state at time k, La,kThe accelerometer measurement at time k, Aa,kIs the measurement matrix of the first measurement equation at time K, I is the unit matrix, Ka,kIn order to be a matrix of gains, the gain matrix,is composed ofOf covariance matrix, RaMeasuring a covariance matrix of the noise for the accelerometer;is time kThe covariance matrix of (2).
The second updating submodule is specifically configured to update the estimation value of the attitude quaternion by using the following formula:
wherein,is an estimate of the attitude quaternion,in order to be a quaternion multiplication,is composed ofThe normalization of (a) to (b) is performed,to assign a symbol, qeThe components of the update values for the states,updating the state with the value.
The second measurement equation specifically includes:
wherein L ismAs a difference between the output value of the magnetic sensor and the output value of the magnetic sensor estimated from the world geomagnetic field model,is an output value of the magnetic sensor,for the transformation matrix from the navigation coordinate system to the carrier coordinate system,as an estimate of the attitude quaternion, mnAs a result of the normalization of the ideal geomagnetic field output value, vmRandom error of the magnetic sensor.
Correspondingly, the third updating submodule is specifically configured to update the model according to the inertial sensor error model and the attitude error quaternion, and construct a state equation of Kalman filtering; according to the output value of the magnetic sensor and the output value of the magnetic sensor estimated according to the world geomagnetic field model, a second measurement equation is constructed, and a state updating value is updated by adopting the following formula to obtain a state estimation value:
wherein,is an estimate of the state at time k,updating the value of the state at time k, Lm,kThe magnetic sensor measurement value at time k,is composed ofCovariance matrix of, Km,kIs the gain matrix at time k, Am,kIs a measurement matrix for the time k,an equivalent weight matrix of the magnetic sensor measurement values at time k.
The fourth updating submodule is specifically configured to update the estimation value of the attitude quaternion by using the following formula:
wherein,is an estimate of the attitude quaternion,in order to be a quaternion multiplication,is composed ofThe normalization of (a) to (b) is performed,to assign a symbol, qeIs a component of the state estimate that is,is the state estimate.
The second calculating module 320 is specifically configured to calculate the estimated magnetic tilt angle by using the following formula:
Dcacul=arccos(na·nm)
wherein D iscaculFor said estimated declination angle, naFor the direction vector of the output value of the accelerometer in the carrier system, nmThe vector is a direction vector of an output value of the magnetic sensor in the carrier system.
The determining module 330 is specifically configured to determine whether the ideal magnetic tilt angle and the estimated magnetic tilt angle satisfy the following conditions:
|Dcacul-Dreference|>λD
wherein D isreferenceIs the ideal magnetic inclination angle, DcaculFor said estimation of the magnetic tilt angle, λDIs a preset threshold value;
if the above conditions are met, determining that environmental magnetic interference exists; otherwise, it is determined that there is no ambient magnetic interference.
The first constructing module 340 is specifically configured to, when the determining module 330 determines that the environmental magnetic interference exists, construct the adaptive weight of the magnetic sensor measurement value by using the following formula:
in the absence of ambient magnetic interference;
in the presence of ambient magnetic interference;
wherein,adaptive weighting, p, of the i-th measured value of the magnetic sensor for time kkiIs the ith main diagonal element of the covariance matrix of the measured values, c is a constant, Vi' is the normalized residual of the magnetic sensor measurements.
Further, the above system further includes:
a fourth calculating module, configured to calculate a normalized residual error of the magnetic sensor measurement value by using the following formula:
wherein L ismiIs the ith measurement equation of the second measurement equation, AmiIs a measurement matrixRow i of (1); i sigmaiI is the covariance matrix R of the measured noise of the magnetic sensormThe square root of the ith main diagonal element.
The invention has the advantages that: the method comprises the following steps that the process of calculating attitude and heading reference system information is realized by adopting a two-step filtering method, and in the first step, an accelerometer is used as a measuring sensor to estimate the error of a quaternion and update the quaternion; and secondly, estimating the error of the quaternion by taking the magnetic sensor as a measuring sensor, detecting the magnetic interference of the environment where the carrier is positioned in real time by using a magnetic interference detection algorithm, adaptively adjusting the weight of the observation data of the magnetic sensor in filtering estimation by the ratio of a measuring residual error to an actual residual error, updating the quaternion and calculating the attitude of the carrier and the heading reference system information. The tolerance and the reliability of the carrier attitude and the heading reference system information are improved.
In the several embodiments provided in the present application, it should be understood that the disclosed method and system may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, for example: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. Furthermore, the coupling, direct coupling, or communication between the components shown or discussed may be through some interfaces, and the indirect coupling or communication between the devices or units may be electrical, mechanical, or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as a removable memory device, a Read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, and an optical disk.
The method is suitable for calculating the carrier attitude and the heading reference system information. The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (30)
1. A geomagnetic field model-assisted carrier attitude and heading calculation method is characterized by comprising the following steps of:
calculating an ideal magnetic inclination angle according to the position information of the carrier and the geomagnetic field model; calculating and estimating a magnetic inclination angle according to the output value of the accelerometer and the output value of the magnetic sensor;
judging whether environmental magnetic interference exists according to the ideal magnetic inclination angle and the estimated magnetic inclination angle;
when environmental magnetic interference exists, constructing a self-adaptive weight of a measured value of a magnetic sensor according to a normalized residual error of the measured value of the magnetic sensor and a covariance matrix of the measured value, and constructing an equivalent weight matrix of the measured value of the magnetic sensor according to the self-adaptive weight of the measured value of the magnetic sensor;
and calculating the attitude information and the course information of the carrier according to the accelerometer measurement value, the magnetic sensor measurement value and the equivalent weight matrix of the magnetic sensor measurement value.
2. The method of claim 1, wherein calculating the carrier attitude information and heading information based on the accelerometer measurements, the magnetic sensor measurements, and an equivalent weight matrix of the magnetic sensor measurements comprises:
updating the state prediction value according to the accelerometer measurement value to obtain a state update value, and updating the estimation value of the attitude quaternion by using the state update value;
updating the state updating value according to the magnetic sensor measurement value and the equivalent weight matrix of the magnetic sensor measurement value to obtain a state estimation value, and updating the estimation value of the attitude quaternion by using the state estimation value;
and calculating the attitude information and the course information of the carrier according to the estimated value of the attitude quaternion and a conversion matrix from a navigation coordinate system to a carrier coordinate system.
3. The method of claim 2, wherein updating the state prediction value according to the accelerometer measurement value to obtain a state update value comprises:
updating the model according to the inertial sensor error model and the attitude error quaternion, and constructing a Kalman filtering state equation; constructing a first measurement equation according to the output value of the accelerometer and the output value of the accelerometer estimated according to the gravity field reference vector;
and updating the state prediction value according to the Kalman filtering state equation, the first measurement equation and the accelerometer measurement value to obtain a state update value.
4. The method of claim 2, wherein updating the state update value according to the magnetic sensor measurement value and an equivalent weight matrix of the magnetic sensor measurement value to obtain the state estimation value comprises:
updating the model according to the inertial sensor error model and the attitude error quaternion, and constructing a Kalman filtering state equation; constructing a second measurement equation according to the output value of the magnetic sensor and the output value of the magnetic sensor estimated according to the world geomagnetic field model;
and updating a state updating value according to the Kalman filtering state equation, the second measurement equation, the magnetic sensor measurement value and the equivalent weight matrix of the magnetic sensor measurement value to obtain a state estimation value.
5. The method according to claim 3 or 4, characterized in that the Kalman filtering state equation is embodied as:
wherein x (t) ═ qebωba]T∈R9×1T is the state quantity, T is the transpose, F (T) is the state transition matrix, W (T) is the process noise,for gyroscope output valuesOf an inverse matrix, vωIs the random drift noise of the gyroscope,is the noise of the random constant model of the gyroscope,for accelerometer stochastic constant model noise, qeVector portion being error quaternion, bωIs a random constant of the gyroscope, baIs the accelerometer bias.
6. The method of claim 3, wherein the first measurement equation is specifically:
wherein L isaFor the difference between the output value of the accelerometer and the output value of the accelerometer estimated from the gravity field reference vector,is the output value of the accelerometer and is,for the transformation matrix from the navigation coordinate system to the carrier coordinate system,as an estimate of the attitude quaternion, gnIs the projection of the gravitational acceleration in a navigation coordinate system, vaIs the random error of the accelerometer.
7. The method of claim 6, wherein updating the state prediction value according to the Kalman filtered state equation, the first measurement equation, and the accelerometer measurement value to obtain a state update value comprises:
updating the state predicted value by adopting the following formula to obtain a state updated value:
wherein,the value is updated for the state at time k,is a predicted value of the state at time k, La,kThe accelerometer measurement at time k, Aa,kIs the measurement matrix of the first measurement equation at the time K, i is the unit matrix, Ka,kIn order to be a matrix of gains, the gain matrix,is composed ofOf covariance matrix, RaMeasuring a covariance matrix of the noise for the accelerometer;is time kThe covariance matrix of (2).
8. The method of claim 2, wherein the state update value is used to update the estimate of the attitude quaternion by:
updating the estimated value of the attitude quaternion by adopting the following formula:
wherein,is an estimate of the attitude quaternion,in order to be a quaternion multiplication,is composed ofThe normalization of (a) to (b) is performed,to assign a symbol, qeThe components of the update values for the states,updating the state with the value.
9. The method of claim 4, wherein the second measurement equation is specifically:
wherein L ismAs a difference between the output value of the magnetic sensor and the output value of the magnetic sensor estimated from the world geomagnetic field model,is an output value of the magnetic sensor,for the transformation matrix from the navigation coordinate system to the carrier coordinate system,as an estimate of the attitude quaternion, mnAs a result of the normalization of the ideal geomagnetic field output value, vmRandom error of the magnetic sensor.
10. The method of claim 9, wherein the state update value is updated according to the Kalman filtered state equation, the second measurement equation, the magnetic sensor measurement value, and an equivalent weight matrix of the magnetic sensor measurement value to obtain the state estimation value, and specifically:
updating the state update value by adopting the following formula to obtain a state estimation value:
wherein,is an estimate of the state at time k,updating the value of the state at time k, Lm,kThe magnetic sensor measurement value at time k,is composed ofCovariance matrix of, Km,kIs the gain matrix at time k, Am,kIs a measurement matrix for the time k,an equivalent weight matrix of the magnetic sensor measurement values at time k.
11. The method of claim 2, wherein the state estimate is used to update the estimate of the attitude quaternion by:
updating the estimated value of the attitude quaternion by adopting the following formula:
wherein,is an estimate of the attitude quaternion,in order to be a quaternion multiplication,is composed ofThe normalization of (a) to (b) is performed,to assign a symbol, qeIs a component of the state estimate that is,is the state estimate.
12. The method according to claim 1, wherein the estimated declination angle is calculated from the output of the accelerometer and the output of the magnetic sensor by:
the estimated declination angle is calculated using the following formula:
Dcacul=arccos(na·nm)
wherein D iscaculFor said estimated declination angle, naVector of direction of output value of said accelerometer in carrier systemAmount, nmThe vector is a direction vector of an output value of the magnetic sensor in the carrier system.
13. The method according to claim 1, wherein determining whether there is an environmental magnetic interference based on the ideal and estimated declination angles comprises:
judging whether the ideal magnetic dip angle and the estimated magnetic dip angle meet the following conditions:
|Dcacul-Driference|>λD
wherein D isriferenceIs the ideal magnetic inclination angle, DcaculFor said estimation of the magnetic tilt angle, λDIs a preset threshold value;
if the above conditions are met, determining that environmental magnetic interference exists; otherwise, it is determined that there is no ambient magnetic interference.
14. The method of claim 1, wherein the adaptive weights for the magnetic sensor measurements are constructed from normalized residuals of the magnetic sensor measurements and a measurement covariance matrix, in particular:
constructing an adaptive weight of the magnetic sensor measurement value by adopting the following formula:
in the absence of ambient magnetic interference;
in the presence of ambient magnetic interference;
wherein,adaptive weighting, p, of the i-th measured value of the magnetic sensor for time kkiIs the ith main diagonal element of the covariance matrix of the measured values, c is a constant, Vi' is a magnetic sensor measurement valueNormalized residual of (2).
15. The method of claim 9, wherein prior to constructing the adaptive weights for the magnetic sensor measurements from the normalized residuals of the magnetic sensor measurements and the measurement covariance matrix, further comprising:
calculating a normalized residual of the magnetic sensor measurement values using the following formula:
wherein L ismiIs the ith measurement equation of the second measurement equation, AmiIs a measurement matrixRow i of (1); i sigmaiI is the covariance matrix R of the measured noise of the magnetic sensormThe square root of the ith main diagonal element.
16. An attitude and heading reference system, comprising:
the first calculation module is used for calculating an ideal magnetic inclination angle according to the position information of the carrier and the geomagnetic field model;
the second calculation module is used for calculating and estimating a magnetic inclination angle according to the output value of the accelerometer and the output value of the magnetic sensor;
the judging module is used for judging whether environmental magnetic interference exists according to the ideal magnetic inclination angle and the estimated magnetic inclination angle;
the first construction module is used for constructing the self-adaptive weight of the magnetic sensor measuring value according to the normalized residual error of the magnetic sensor measuring value and the measuring value covariance matrix when the judgment module judges that the environmental magnetic interference exists;
the second construction module is used for constructing an equivalent weight matrix of the magnetic sensor measurement values according to the self-adaptive weights of the magnetic sensor measurement values;
and the third calculation module is used for calculating the attitude information and the course information of the carrier according to the accelerometer measurement value, the magnetic sensor measurement value and the equivalent weight matrix of the magnetic sensor measurement value.
17. The system of claim 16, wherein the third computing module comprises:
the first updating submodule is used for updating the state predicted value according to the accelerometer measurement value to obtain a state updating value;
a second update submodule for updating the estimated value of the attitude quaternion using the state update value;
the third updating submodule is used for updating the state updating value according to the magnetic sensor measuring value and the equivalent weight matrix of the magnetic sensor measuring value to obtain a state estimation value;
a fourth updating submodule for updating the estimated value of the attitude quaternion using the state estimated value;
and the calculation submodule is used for calculating the attitude information and the course information of the carrier according to the estimation value of the attitude quaternion and a conversion matrix from a navigation coordinate system to a carrier coordinate system.
18. The system of claim 17,
the first updating submodule is specifically used for updating a model according to an inertial sensor error model and an attitude error quaternion and constructing a Kalman filtering state equation; constructing a first measurement equation according to the output value of the accelerometer and the output value of the accelerometer estimated according to the gravity field reference vector; and updating the state prediction value according to the Kalman filtering state equation, the first measurement equation and the accelerometer measurement value to obtain a state update value.
19. The system of claim 17,
the third updating submodule is specifically used for updating the model according to the inertial sensor error model and the attitude error quaternion and constructing a Kalman filtering state equation; constructing a second measurement equation according to the output value of the magnetic sensor and the output value of the magnetic sensor estimated according to the world geomagnetic field model; and updating a state updating value according to the Kalman filtering state equation, the second measurement equation, the magnetic sensor measurement value and the equivalent weight matrix of the magnetic sensor measurement value to obtain a state estimation value.
20. The system according to claim 18 or 19, wherein the Kalman filtering state equation is specifically:
wherein x (t) ═ qebωba]T∈R9×1T is the state quantity, T is the transpose, F (T) is the state transition matrix, W (T) is the process noise,for gyroscope output valuesOf an inverse matrix, vωIs the random drift noise of the gyroscope,is the noise of the random constant model of the gyroscope,for accelerometer stochastic constant model noise, qeVector portion being error quaternion, bωIs a random constant of the gyroscope, baIs the accelerometer bias.
21. The system of claim 18, wherein the first measurement equation is specifically:
wherein L isaFor the difference between the output value of the accelerometer and the output value of the accelerometer estimated from the gravity field reference vector,is the output value of the accelerometer and is,for the transformation matrix from the navigation coordinate system to the carrier coordinate system,as an estimate of the attitude quaternion, gnIs the projection of the gravitational acceleration in a navigation coordinate system, vaIs the random error of the accelerometer.
22. The system of claim 21,
the first updating submodule is specifically used for updating a model according to an inertial sensor error model and an attitude error quaternion and constructing a Kalman filtering state equation; according to the output value of the accelerometer and the output value of the accelerometer estimated according to the gravity field reference vector, a first measurement equation is constructed, and a state prediction value is updated by adopting the following formula to obtain a state update value:
wherein,the value is updated for the state at time k,is a predicted value of the state at time k, La,kThe accelerometer measurement at time k, Aa,kIs the measurement matrix of the first measurement equation at the time K, i is the unit matrix, Ka,kIn order to be a matrix of gains, the gain matrix,is composed ofOf covariance matrix, RaMeasuring a covariance matrix of the noise for the accelerometer;is time kThe covariance matrix of (2).
23. The system of claim 17,
the second updating submodule is specifically configured to update the estimation value of the attitude quaternion by using the following formula:
wherein,is an estimate of the attitude quaternion,in order to be a quaternion multiplication,is composed ofThe normalization of (a) to (b) is performed,to assign a symbol, qeThe components of the update values for the states,updating the state with the value.
24. The system of claim 19, wherein the second measurement equation is specifically:
wherein L ismAs a difference between the output value of the magnetic sensor and the output value of the magnetic sensor estimated from the world geomagnetic field model,is an output value of the magnetic sensor,for the transformation matrix from the navigation coordinate system to the carrier coordinate system,as an estimate of the attitude quaternion, mnAs a result of the normalization of the ideal geomagnetic field output value, vmRandom error of the magnetic sensor.
25. The system of claim 24,
the third updating submodule is specifically used for updating the model according to the inertial sensor error model and the attitude error quaternion and constructing a Kalman filtering state equation; according to the output value of the magnetic sensor and the output value of the magnetic sensor estimated according to the world geomagnetic field model, a second measurement equation is constructed, and a state updating value is updated by adopting the following formula to obtain a state estimation value:
wherein,is an estimate of the state at time k,updating the value of the state at time k, Lm,kThe magnetic sensor measurement value at time k,is composed ofCovariance matrix of, Km,kIs the gain matrix at time k, Am,kIs a measurement matrix for the time k,an equivalent weight matrix of the magnetic sensor measurement values at time k.
26. The system of claim 17,
the fourth updating submodule is specifically configured to update the estimation value of the attitude quaternion by using the following formula:
wherein,is an estimate of the attitude quaternion,in order to be a quaternion multiplication,is composed ofThe normalization of (a) to (b) is performed,to assign a symbol, qeIs a component of the state estimate that is,is the state estimate.
27. The system of claim 16,
the second calculating module is specifically configured to calculate the estimated declination angle by using the following formula:
Dcacul=arccos(na·nm)
wherein D iscaculFor said estimated declination angle, naFor the direction vector of the output value of the accelerometer in the carrier system, nmThe vector is a direction vector of an output value of the magnetic sensor in the carrier system.
28. The system of claim 16,
the judging module is specifically configured to judge whether the ideal magnetic dip angle and the estimated magnetic dip angle satisfy the following conditions:
|Dcacul-Driference|>λD
wherein D isriferenceIs the ideal magnetic inclination angle, DcaculFor said estimation of the magnetic tilt angle, λDIs a preset threshold value;
if the above conditions are met, determining that environmental magnetic interference exists; otherwise, it is determined that there is no ambient magnetic interference.
29. The system of claim 16,
the first constructing module is specifically configured to, when the determining module determines that the environmental magnetic interference exists, construct the adaptive weight of the measured value of the magnetic sensor by using the following formula:
in the absence of ambient magnetic interference;
in the presence of ambient magnetic interference;
wherein,adaptive weighting, p, of the i-th measured value of the magnetic sensor for time kkiIs the ith main diagonal element of the covariance matrix of the measured values, c is a constant, Vi' is the normalized residual of the magnetic sensor measurements.
30. The system of claim 24, further comprising:
a fourth calculating module, configured to calculate a normalized residual error of the magnetic sensor measurement value by using the following formula:
wherein L ismiIs the ith measurement equation of the second measurement equation, AmiIs a measurement matrixRow i of (1); i sigmaiI is the covariance matrix R of the measured noise of the magnetic sensormThe square root of the ith main diagonal element.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610059817.5A CN105716610B (en) | 2016-01-28 | 2016-01-28 | A kind of attitude of carrier and course calculating method and system of Geomagnetic Field Model auxiliary |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610059817.5A CN105716610B (en) | 2016-01-28 | 2016-01-28 | A kind of attitude of carrier and course calculating method and system of Geomagnetic Field Model auxiliary |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105716610A true CN105716610A (en) | 2016-06-29 |
CN105716610B CN105716610B (en) | 2018-09-04 |
Family
ID=56154242
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610059817.5A Active CN105716610B (en) | 2016-01-28 | 2016-01-28 | A kind of attitude of carrier and course calculating method and system of Geomagnetic Field Model auxiliary |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105716610B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105937911A (en) * | 2016-07-01 | 2016-09-14 | 南京理工大学 | Magnetic sensor attitude calculation method |
CN107421535A (en) * | 2017-05-22 | 2017-12-01 | 上海交通大学 | A kind of indoor pedestrian's alignment system walked based on magnetic signature and acceleration information meter |
CN107860382A (en) * | 2017-11-07 | 2018-03-30 | 吉林大学 | A kind of method for measuring posture using AHRS in the case of magnetic anomaly |
CN108844536A (en) * | 2018-04-04 | 2018-11-20 | 中国科学院国家空间科学中心 | A kind of earth-magnetism navigation method based on measurement noise covariance matrix estimation |
CN108955669A (en) * | 2017-05-17 | 2018-12-07 | 田亮 | A kind of heavy magnetic field combination navigation algorithm |
CN109115241A (en) * | 2018-08-07 | 2019-01-01 | 中国航空无线电电子研究所 | Vector data source integrity monitoring method |
CN111649763A (en) * | 2020-04-26 | 2020-09-11 | 中国人民解放军61540部队 | Submarine navigation method and system established based on gravity beacon |
CN112013836A (en) * | 2020-08-14 | 2020-12-01 | 北京航空航天大学 | Attitude heading reference system algorithm based on improved adaptive Kalman filtering |
CN112050804A (en) * | 2020-07-31 | 2020-12-08 | 东南大学 | Near-field magnetic map construction method based on geomagnetic gradient |
CN112066984A (en) * | 2020-09-17 | 2020-12-11 | 深圳维特智能科技有限公司 | Attitude angle resolving method and device, processing equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101290229A (en) * | 2008-06-13 | 2008-10-22 | 哈尔滨工程大学 | Silicon micro-navigation attitude system inertia/geomagnetism assembled method |
CN103528587A (en) * | 2013-10-15 | 2014-01-22 | 西北工业大学 | Autonomous integrated navigation system |
CN103822633A (en) * | 2014-02-11 | 2014-05-28 | 哈尔滨工程大学 | Low-cost attitude estimation method based on second-order measurement update |
-
2016
- 2016-01-28 CN CN201610059817.5A patent/CN105716610B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101290229A (en) * | 2008-06-13 | 2008-10-22 | 哈尔滨工程大学 | Silicon micro-navigation attitude system inertia/geomagnetism assembled method |
CN103528587A (en) * | 2013-10-15 | 2014-01-22 | 西北工业大学 | Autonomous integrated navigation system |
CN103822633A (en) * | 2014-02-11 | 2014-05-28 | 哈尔滨工程大学 | Low-cost attitude estimation method based on second-order measurement update |
Non-Patent Citations (5)
Title |
---|
GAO N 等,: ""A novel robust Kalman filter on AHRS in the magnetic distortion environment"", 《ADVANCES IN SPACE RESEARCH》 * |
NAGESH YADAV 等,: ""Accurate Orientation Estimation Using AHRS under Conditions of Magnetic Distortion"", 《SENSORS》 * |
SEID H. POURTAKDOUST 等,: ""An adaptive unscented Kalman filter for quaternion-based orientation estimation in low-cost AHRS"", 《AIRCRAFT ENGINEERING AND AEROSPACE TECHNOLOGY》 * |
张晶宇,: ""MIMU/GPS/磁强计组合导航序贯自适应滤波技术"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
朱峰 等,: ""基于抗差自适应选权滤波的GPS/BD组合导航定位应用"", 《全球定位系统》 * |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105937911A (en) * | 2016-07-01 | 2016-09-14 | 南京理工大学 | Magnetic sensor attitude calculation method |
CN108955669A (en) * | 2017-05-17 | 2018-12-07 | 田亮 | A kind of heavy magnetic field combination navigation algorithm |
CN107421535A (en) * | 2017-05-22 | 2017-12-01 | 上海交通大学 | A kind of indoor pedestrian's alignment system walked based on magnetic signature and acceleration information meter |
CN107860382A (en) * | 2017-11-07 | 2018-03-30 | 吉林大学 | A kind of method for measuring posture using AHRS in the case of magnetic anomaly |
CN107860382B (en) * | 2017-11-07 | 2021-04-06 | 吉林大学 | Method for measuring attitude by applying AHRS under geomagnetic anomaly condition |
CN108844536B (en) * | 2018-04-04 | 2020-07-03 | 中国科学院国家空间科学中心 | Geomagnetic navigation method based on measurement noise covariance matrix estimation |
CN108844536A (en) * | 2018-04-04 | 2018-11-20 | 中国科学院国家空间科学中心 | A kind of earth-magnetism navigation method based on measurement noise covariance matrix estimation |
CN109115241A (en) * | 2018-08-07 | 2019-01-01 | 中国航空无线电电子研究所 | Vector data source integrity monitoring method |
CN111649763A (en) * | 2020-04-26 | 2020-09-11 | 中国人民解放军61540部队 | Submarine navigation method and system established based on gravity beacon |
CN111649763B (en) * | 2020-04-26 | 2021-08-27 | 中国人民解放军61540部队 | Submarine navigation method and system established based on gravity beacon |
CN112050804A (en) * | 2020-07-31 | 2020-12-08 | 东南大学 | Near-field magnetic map construction method based on geomagnetic gradient |
CN112050804B (en) * | 2020-07-31 | 2022-04-08 | 东南大学 | Near-field magnetic map construction method based on geomagnetic gradient |
CN112013836A (en) * | 2020-08-14 | 2020-12-01 | 北京航空航天大学 | Attitude heading reference system algorithm based on improved adaptive Kalman filtering |
CN112013836B (en) * | 2020-08-14 | 2022-02-08 | 北京航空航天大学 | Attitude heading reference system algorithm based on improved adaptive Kalman filtering |
CN112066984A (en) * | 2020-09-17 | 2020-12-11 | 深圳维特智能科技有限公司 | Attitude angle resolving method and device, processing equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN105716610B (en) | 2018-09-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105716610B (en) | A kind of attitude of carrier and course calculating method and system of Geomagnetic Field Model auxiliary | |
CN105606096B (en) | A kind of posture of carrier movement status information auxiliary and course calculate method and system | |
Ludwig et al. | Comparison of Euler estimate using extended Kalman filter, Madgwick and Mahony on quadcopter flight data | |
US10295365B2 (en) | State estimation for aerial vehicles using multi-sensor fusion | |
US11592512B2 (en) | Method for calibrating a magnetometer | |
US9417091B2 (en) | System and method for determining and correcting field sensors errors | |
US9939273B2 (en) | Attitude estimating device, attitude estimating method, and storage medium | |
US20140222369A1 (en) | Simplified method for estimating the orientation of an object, and attitude sensor implementing such a method | |
CN110231029B (en) | Underwater robot multi-sensor fusion data processing method | |
CN102654404A (en) | Method for improving resolving precision and anti-jamming capability of attitude heading reference system | |
Sabet et al. | Experimental analysis of a low-cost dead reckoning navigation system for a land vehicle using a robust AHRS | |
Sokolović et al. | INS/GPS navigation system based on MEMS technologies | |
CN117739972B (en) | Unmanned aerial vehicle approach stage positioning method without global satellite positioning system | |
Wang et al. | Attitude determination method by fusing single antenna GPS and low cost MEMS sensors using intelligent Kalman filter algorithm | |
CN104913789A (en) | Apparatus and method for background calibration | |
EP3227634B1 (en) | Method and system for estimating relative angle between headings | |
Almeida et al. | Magnetic mapping for robot navigation in indoor environments | |
Munguia et al. | An attitude and heading reference system (AHRS) based in a dual filter | |
CN110375773B (en) | Attitude initialization method for MEMS inertial navigation system | |
KR102547926B1 (en) | Method and apparatus for specifying direction of travel determined from magnetic field measurements | |
KR102683702B1 (en) | Determination of direction of travel from magnetic field measured by magnetic sensor | |
Habbachi et al. | Partical filtering for orientation determining using inertial sensors IMU | |
Damerius et al. | A generic inertial navigation system | |
KR101941009B1 (en) | Attitude and heading reference system and unmaned vehicle including the attitude and heading refernce system | |
CN115235454A (en) | Pedestrian motion constraint visual inertial fusion positioning and mapping method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |