A horizontal attitude measurement system and method based on adaptive incremental Kalman filtering
Through adaptive incremental Kalman filtering technology, the accelerometer output and gyroscope output of the inertial device are used, combined with the carrier maneuvering vector, to solve the problem of reduced attitude measurement accuracy of the inertial measurement element under carrier maneuvering, and achieve higher attitude measurement accuracy. and stability.
Patent Information
- Application Number
- CN202310575800.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-19
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2043-05-19
AI Technical Summary
When the carrier maneuvers, the horizontal attitude measurement accuracy of the inertial measurement element is affected by motion acceleration. It is difficult to effectively avoid this interference with existing technology, resulting in an increase in attitude error.
A method based on adaptive incremental Kalman filtering is used to calculate the attitude through the accelerometer output of the inertial device, and continuously correct the cumulative angular velocity error of the gyro output. The carrier maneuver vector is used to adaptively adjust the Kalman filter noise matrix to weaken the carrier. Effect of maneuvering on attitude resolution.
It improves the accuracy of horizontal attitude measurement in maneuvering scenarios, reduces the impact of carrier maneuvering on measurement results, and is more stable than the ordinary Kalman filter method.
Smart Images

Figure CN116972833B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of inertial measurement. Background Art
[0002] The inertial measurement unit (IMU) of micro electro mechanical system (MEMS) has the characteristics of small size, low cost and high reliability. It has broadened the application field of inertial navigation and has become one of the most widely used inertial devices, providing reliable attitude control and navigation solution functions for underwater unmanned submersibles, drones and other fields.
[0003] The output information of the accelerometer and gyroscope can be used to calculate the horizontal misalignment angle with high accuracy. However, when the carrier has motion acceleration, the system attitude error will increase. Many patent documents have studied how to effectively avoid the interference of motion acceleration so that the carrier can still have a high attitude measurement accuracy when maneuvering.
[0004] For example, patent document CN111307114B published on June 19, 2020 discloses a method for measuring the horizontal attitude of a surface ship based on a motion reference unit. The patent document divides the carrier's maneuvering state into a low-maneuvering state and a high-maneuvering state, and uses different processing methods to solve the carrier's misalignment angle in different maneuvering states, and updates and corrects the quaternion, so that the system has a high attitude measurement accuracy in different motion states, and the carrier's maneuvering will affect the horizontal attitude measurement accuracy.
[0005] The patent document published on July 27, 2021: CN113175926B, discloses an adaptive horizontal attitude measurement method based on motion state monitoring. The patent document uses specific force as a measurement quantity to correct the gyroscope accumulated error, and attributes the influence of carrier maneuvering and the angular velocity of the earth's rotation on the specific force measurement to the measurement noise of the accelerometer. Summary of the invention
[0006] The present invention provides a horizontal attitude measurement method based on adaptive incremental Kalman filtering, which improves the horizontal attitude measurement accuracy of a vehicle in a maneuvering scenario and provides more accurate horizontal attitude information for the vehicle.
[0007] To achieve the above object, the present invention provides the following solutions:
[0008] The present invention provides a horizontal posture measurement method based on adaptive incremental Kalman filtering, the measurement method is:
[0009] S1. Calibrate the inertial device and perform initial alignment on the calibrated inertial device to obtain the initial roll angle θ0 and initial pitch angle
[0010] S2, collecting carrier maneuvering data and the earth's rotation angular velocity, and establishing a Kalman filter state space model according to the carrier maneuvering data and the earth's rotation angular velocity;
[0011] S3, according to the initial roll angle θ0 and pitch angle , initializing the Kalman filter state space model to obtain an initialized Kalman filter state space model;
[0012] S4. Collect the IMU data of the inertial device at any time, and compensate the IMU data to obtain the specific force in the carrier coordinate system and the angular velocity in the carrier coordinate system.
[0013] S5. Obtaining an angular increment according to the angular velocity in the carrier coordinate system
[0014] S6. Obtaining a quantity measurement according to the specific force in the carrier coordinate system;
[0015] S7, using the initialized Kalman filter state space model to perform Kalman filter one-step prediction on the angular increment to obtain prediction data;
[0016] S8. Obtain the maneuvering vector T of the carrier according to the specific force in the carrier coordinate system and the angular velocity in the carrier coordinate system. k , and adaptively adjusting the initialized Kalman filter state space model according to the maneuver vector of the carrier to obtain a Kalman filter measurement noise matrix;
[0017] S9, performing measurement update on the Kalman filter measurement noise matrix according to the measurement and prediction data to obtain a measurement update matrix;
[0018] S10, processing the IMU data through the measurement update matrix to obtain a horizontal attitude estimation value;
[0019] S11. Using the estimated value of the horizontal posture as the initial value of the state quantity at the next moment until the optimal horizontal posture measurement value is obtained.
[0020] Furthermore, in another preferred embodiment, the Kalman filter state space model in the above step S2 is expressed as:
[0021]
[0022] Among them, Φ k / k-1=I2 is the state transfer matrix, I2 is the second-order unit matrix; X k-1 and X k are the state quantities at time k-1 and time k respectively; B k-1 is the input coefficient matrix; u k-1 is a deterministic input; W k-1 is the system noise vector; Γ k / k-1 is the system noise allocation matrix; Z k H is the quantity measurement; k is the measurement matrix; Y k is the known deviation of the measurement; V k is the measurement noise matrix; measurement noise V k is a first-order Markov process; V k =ΨV k-1 +e k-1 , V k-1 and V k are the measurement noise matrices at time k-1 and time k respectively; Ψ=(1-βT)I2, β is the anti-correlation time constant, T is the solution period, and I2 is the second-order unit matrix; e k-1 is zero-mean Gaussian white noise.
[0023] Furthermore, in another preferred embodiment, the specific force in the carrier coordinate system in the above step S4 is expressed as:
[0024]
[0025] The angular velocity in the carrier coordinate system is expressed as:
[0026]
[0027] in, is the component of the specific force at time K on the x-axis, y-axis and z-axis of the carrier coordinate system; are the components of the angular velocity at time K on the x-axis, y-axis and z-axis of the carrier coordinate system.
[0028] Furthermore, in another preferred embodiment, the angle increment in the above step S5 is expressed as:
[0029]
[0030] Where T is the solution period.
[0031] Further, in another preferred embodiment, the quantity measurement in the above step S6 is expressed as:
[0032]
[0033] Among them, 11 is the first row and first column element of Ψ, 22is the element in the second row and second column of Ψ, Ψ=(1-βT)I2, β is the anti-correlation time constant of the first-order Markov, T is the solution period, I2 is the second-order unit matrix, They are the components of the specific force on the x-axis and y-axis of the carrier coordinate system at time k-1 respectively.
[0034] Furthermore, in another preferred embodiment, the maneuvering vector T of the carrier in the above step S8 is k It is expressed as:
[0035]
[0036] Where g is the local gravitational acceleration; σ f , σ ω All are weight coefficients; ||g|| represents the modulo operation.
[0037] Furthermore, in another preferred embodiment, the measurement update matrix in the above step S9 is expressed as:
[0038]
[0039] in, is the measurement matrix at time k, g is the local gravitational acceleration, θ k / k-1 , For forecast data; is the measurement matrix at time k-1, θ k-1 , is the optimal state estimate at time k-1; P k / k-1 is the mean square error matrix of one-step prediction at time k; Ψ is the noise transfer matrix; Φ k / k-1 is the state transfer matrix at time k; P k-1 is the mean square error matrix at k-1 time; R k is the measurement variance at time k; Λ and Σ are both process matrices; K k is the filter gain matrix at time k; Z k For quantity measurement; One-step prediction value for the state quantity; and are the state quantities at time k-1 and time k respectively; P k is the mean square error matrix at time k.
[0040] The present invention also provides a horizontal attitude measurement system based on an adaptive incremental Kalman filter, wherein the measurement system is:
[0041] Used to calibrate the inertial device and perform initial alignment on the calibrated inertial device to obtain the initial roll angle θ0 and initial pitch angle storage device;
[0042] A storage device for collecting carrier maneuvering data and the earth's rotation angular velocity, and establishing a Kalman filter state space model based on the carrier maneuvering data and the earth's rotation angular velocity;
[0043] According to the initial roll angle θ0 and pitch angle , initializing the Kalman filter state space model to obtain a storage device for the initialized Kalman filter state space model;
[0044] It is used to collect the IMU data of the inertial device at any time, and compensate the IMU data to obtain the specific force in the carrier coordinate system and the angular velocity in the carrier coordinate system. storage device;
[0045] Used to obtain the angular increment according to the angular velocity in the carrier coordinate system storage device;
[0046] a storage device for obtaining a quantity measurement based on the specific force in the carrier coordinate system;
[0047] A storage device for performing Kalman filter one-step prediction on the angular increment using an initialized Kalman filter state space model to obtain prediction data;
[0048] Used to obtain the maneuvering vector T of the carrier according to the specific force in the carrier coordinate system and the angular velocity in the carrier coordinate system k , and adaptively adjusting the initialized Kalman filter state space model according to the maneuver vector of the carrier to obtain a storage device for the Kalman filter measurement noise matrix;
[0049] A storage device for performing measurement update on the Kalman filter measurement noise matrix according to the measurement and prediction data to obtain a measurement update matrix;
[0050] A storage device for processing the IMU data through the measurement update matrix to obtain a horizontal attitude estimation value;
[0051] A storage device for using the estimated value of the horizontal posture as the initial value of the state quantity at the next moment until the optimal horizontal posture measurement value is obtained.
[0052] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, any one of the above-mentioned methods for measuring horizontal posture based on adaptive incremental Kalman filtering is executed.
[0053] The present invention also provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor runs the computer program stored in the memory, the processor executes any one of the above-mentioned horizontal posture measurement methods based on adaptive incremental Kalman filtering.
[0054] The beneficial effects of the present invention are:
[0055] 1. The present invention discloses a horizontal attitude measurement method based on an adaptive incremental Kalman filter, which uses the specific force output by an accelerometer in an inertial navigation device to perform attitude calculation, while continuously correcting the cumulative error of the angular velocity output by a gyroscope in the inertial navigation device, and uses an incremental Kalman filter to weaken the influence of carrier maneuvers on attitude calculation, thereby improving the accuracy of attitude calculation in a moving state. The method has no requirements for the moving state of the carrier, and compared with the ordinary Kalman filter method, factors such as carrier maneuvers have less influence on the filtering method.
[0056] 2. The present invention discloses a method for measuring horizontal attitude based on an adaptive incremental Kalman filter, which models the influence of carrier maneuvers and the angular velocity of the earth's rotation on the specific force measurement as a first-order Markov model, takes the angular velocity output by the gyroscope as the deterministic input and the specific force output by the accelerometer as the quantity to be measured, and adopts an exponential fading memory weighted average method according to the maneuvering state of the carrier at the most recent N moments to obtain the maneuvering vector of the carrier, uses the maneuvering vector of the carrier to adaptively adjust the measurement noise, and finally weakens the influence of the carrier maneuvering on the horizontal attitude measurement through the incremental Kalman filter method.
[0057] The present invention is applicable to the technical field of horizontal posture measurement based on adaptive incremental Kalman filtering in a moving state. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 It is a flow chart of a method for constructing an incremental Kalman filter model described in Implementation Method 1.
[0059] Figure 2 It is a schematic diagram of calculating the horizontal posture based on the adaptive incremental Kalman filter described in the first embodiment.
[0060] Figure 3 It is an error comparison diagram between the existing common Kalman filtering method described in Implementation Example 11 and the horizontal posture measurement method based on adaptive incremental Kalman filtering described in the present invention. DETAILED DESCRIPTION
[0061] The specific implementation mode of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. The following examples will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention.
[0062] Implementation method 1. See Figure 1 and Figure 2 This embodiment describes a method for measuring horizontal posture based on an adaptive incremental Kalman filter. The method is as follows:
[0063] S1. Calibrate the inertial device and perform initial alignment on the calibrated inertial device to obtain the initial roll angle θ0 and initial pitch angle
[0064] S2, collecting carrier maneuvering data and the earth's rotation angular velocity, and establishing a Kalman filter state space model according to the carrier maneuvering data and the earth's rotation angular velocity;
[0065] S3, according to the initial roll angle θ0 and pitch angle , initializing the Kalman filter state space model to obtain an initialized Kalman filter state space model;
[0066] S4. Collect the IMU data of the inertial device at any time, and compensate the IMU data to obtain the specific force in the carrier coordinate system and the angular velocity in the carrier coordinate system.
[0067] S5. Obtaining an angular increment according to the angular velocity in the carrier coordinate system
[0068] S6. Obtaining a quantity measurement according to the specific force in the carrier coordinate system;
[0069] S7, using the initialized Kalman filter state space model to perform Kalman filter one-step prediction on the angular increment to obtain prediction data;
[0070] S8. Obtain the maneuvering vector T of the carrier according to the specific force in the carrier coordinate system and the angular velocity in the carrier coordinate system. k , and adaptively adjusting the initialized Kalman filter state space model according to the maneuver vector of the carrier to obtain a Kalman filter measurement noise matrix;
[0071] S9, performing measurement update on the Kalman filter measurement noise matrix according to the measurement and prediction data to obtain a measurement update matrix;
[0072] S10, processing the IMU data through the measurement update matrix to obtain a horizontal attitude estimation value;
[0073] S11. Using the estimated value of the horizontal posture as the initial value of the state quantity at the next moment until the optimal horizontal posture measurement value is obtained.
[0074] In practical application, various inertial devices are first calibrated, and then the calibrated inertial devices are initially aligned to obtain the initial roll angle θ0 and the initial pitch angle Then, various inertial devices are set to the navigation working mode. Inertial navigation devices include accelerometers, gyroscopes, etc. The Kalman filter state space model is constructed by using the carrier maneuvering data and the earth's rotation angular velocity, combined with the specific force equation and the Euler angle differential equation. The initial roll angle θ0 and the initial pitch angle As the initial value of the state quantity of the Kalman filter state space model, that is, , obtain an initialized Kalman filter state space model; collect IMU data of the inertial device at time K, the IMU data includes specific force and angular velocity, and compensate the IMU data for temperature and constant zero bias to obtain the specific force in the carrier coordinate system and the angular velocity in the carrier coordinate system; use the angular velocity at the Kth moment to obtain the angular increment, use the initialized Kalman filter state space model to perform Kalman filter one-step prediction on the angular increment to obtain prediction data; use the specific force in the carrier coordinate system and the angular velocity in the carrier coordinate system to obtain the maneuvering vector of the carrier, and adaptively adjust the measurement variance matrix in the initialized Kalman filter state space model according to the maneuvering vector of the carrier to obtain the Kalman filter measurement noise matrix; obtain the measurement value according to the specific force in the carrier coordinate system, and then measure and update the Kalman filter measurement noise matrix in combination with the prediction data to obtain the measurement update matrix; process the IMU data through the measurement update matrix to obtain the horizontal attitude estimation value; use the horizontal attitude estimation value as the initial value of the state quantity at the next moment until the optimal horizontal attitude measurement value is obtained.
[0075] This embodiment provides a horizontal attitude measurement method based on an adaptive incremental Kalman filter. After obtaining the compensated gyro and accelerometer outputs and performing initial alignment, the system enters a navigation working mode. At this time, the horizontal attitude angle is used as a state quantity, the angular increment output by the MEMS-IMU is used as a deterministic input of the system equation, and the difference in the specific force output by the MEMS-IMU at adjacent moments is used as a quantitative measurement, which effectively reduces the impact of factors such as carrier maneuvers on attitude solution.
[0076] The present embodiment is a horizontal attitude measurement method based on an adaptive incremental Kalman filter, which uses the specific force output by the accelerometer in the inertial navigation device to perform attitude solution, while continuously correcting the cumulative error of the angular velocity output by the gyroscope in the inertial navigation device, and uses an incremental Kalman filter to weaken the influence of the carrier maneuvering on the attitude solution, thereby improving the accuracy of the attitude solution in the motion state. The method has no requirements for the motion state of the carrier. Compared with the ordinary Kalman filtering method, factors such as the carrier's maneuvering have less influence on the filtering method.
[0077] The present embodiment is a horizontal attitude measurement method based on an adaptive incremental Kalman filter, which models the influence of carrier maneuvers and the angular velocity of the earth's rotation on the specific force measurement as a first-order Markov model, takes the angular velocity output by the gyroscope as the deterministic input and the specific force output by the accelerometer as the quantity to be measured, and adopts the exponential fading memory weighted average method according to the maneuvering state of the carrier at the most recent N moments to obtain the maneuvering vector of the carrier, uses the maneuvering vector of the carrier to adaptively adjust the measurement noise, and finally weakens the influence of the carrier maneuvering on the horizontal attitude measurement through the incremental Kalman filter method.
[0078] Implementation method 2. This implementation method is an example of the Kalman filter state space model of step S2 in the horizontal posture measurement method based on the adaptive incremental Kalman filter described in implementation method 1, and the Kalman filter state space model is expressed as:
[0079]
[0080] Among them, Φ k / k-1 =I2 is the state transfer matrix, I2 is the second-order unit matrix; X k-1 and X k are the state quantities at time k-1 and time k respectively; B k-1 is the input coefficient matrix; u k-1 is a deterministic input; W k-1 is the system noise vector; Γ k / k-1 is the system noise allocation matrix; Z k H is the quantity measurement; k is the measurement matrix; Y k is the known deviation of the measurement; V k is the measurement noise matrix; measurement noise V k is a first-order Markov process; V k =ΨV k-1 +e k-1 , V k-1 and V k are the measurement noise matrices at time k-1 and time k respectively; Ψ=(1-βT)I2, β is the anti-correlation time constant, T is the solution period, and I2 is the second-order unit matrix; e k-1is zero-mean Gaussian white noise.
[0081] Implementation method three. This implementation method is to illustrate the specific force in the carrier coordinate system and the angular velocity in the carrier coordinate system in step S4 in the method for constructing an incremental Kalman filter model described in implementation method one. The specific force in the carrier coordinate system is expressed as:
[0082]
[0083] The angular velocity in the carrier coordinate system is expressed as:
[0084]
[0085] in, is the component of the specific force at time K on the x-axis, y-axis and z-axis of the carrier coordinate system; are the components of the angular velocity at time K on the x-axis, y-axis and z-axis of the carrier coordinate system.
[0086] In actual application, this embodiment uses the specific force output by the accelerometer in the inertial navigation device to perform attitude calculation, and at the same time continuously corrects the accumulated error of the angular velocity output by the gyroscope in the inertial navigation device.
[0087] Embodiment 4. This embodiment is an example of the angular increment in step S5 in the method for constructing an incremental Kalman filter model described in embodiment 1, and the angular increment is expressed as:
[0088]
[0089] Where T is the solution period.
[0090] In practical application, this embodiment uses the angular velocity at the kth moment. Get the angle increment , where T is the solution period; the Kalman filter state space model initialized is used to perform a Kalman filter one-step prediction on the angular increment to obtain the prediction data, specifically:
[0091]
[0092] In the formula, is the optimal state estimate at time k-1; is the one-step prediction value of the state quantity; Φ k / k-1 is the state transfer matrix at time k; is the input coefficient matrix at time k; u k-1 is the deterministic input angle increment at time k P k-1 is the mean square error matrix of the state estimation at time k-1; P k / k-1is the one-step prediction mean square error matrix at time k; Q k-1 is the system noise variance matrix.
[0093] Implementation mode 5. This implementation mode is to illustrate the measurement in step S6 of the horizontal posture measurement method based on adaptive incremental Kalman filtering described in implementation mode 1 by way of example, and the measurement is expressed as:
[0094]
[0095] Among them, 11 is the first row and first column element of Ψ, 22 is the element in the second row and second column of Ψ, Ψ=(1-βT)I2, β is the anti-correlation time constant of the first-order Markov, T is the solution period, I2 is the second-order unit matrix, They are the components of the specific force on the x-axis and y-axis of the carrier coordinate system at time k-1 respectively.
[0096] In practical application, this embodiment uses the specific force at the kth moment to obtain the quantity measurement.
[0097] Implementation 6. This implementation is a method for measuring the horizontal attitude based on an adaptive incremental Kalman filter in step S8 of the carrier's maneuvering vector T described in Implementation 1. k For example, the maneuver vector of the carrier is expressed as:
[0098]
[0099] Where g is the local gravitational acceleration; σ f , σ ω All are weight coefficients; ||g|| represents the modulo operation.
[0100] In practical applications, this embodiment adaptively adjusts the measurement noise matrix R according to the vehicle maneuvering state. k The specific method is: first use the specific force obtained in the above steps and angular velocity Calculate the maneuver vector T of the carrier k :
[0101]
[0102] In the formula, are the specific force and angular velocity obtained in the above steps respectively; g is the local gravitational acceleration; σ f , σ ω All are weight coefficients; ||g|| represents the modulo operation.
[0103] Then, the N maneuvering vectors from time k-N+1 to time k are used to perform exponential fading memory weighted averaging:
[0104] β k-N+1 =1,T=T k-N+1
[0105]
[0106]
[0107] M
[0108]
[0109] Where b is the fading factor, usually b = 0.9 ~ 0.999. The smaller the value, the stronger the adaptive ability, but too small a value will lead to drastic jumps in the estimation results; β k-N+1 ~β k is the weight coefficient; N is the sliding window size; T k-N+1 ~T k is the maneuvering vector from time k-N+1 to time k; T is the maneuvering vector after exponential fading memory weighted averaging.
[0110] Finally, the Kalman filter measurement noise matrix R is calculated using the following formula: k Perform adaptive adjustment.
[0111]
[0112] Where, T n is the nth element of T; is the accelerometer noise variance.
[0113] Implementation VII. This implementation is an example of step S9 in the horizontal posture measurement method based on adaptive incremental Kalman filtering described in Implementation 1. The measurement update matrix in step S9 is expressed as:
[0114]
[0115] in, is the measurement matrix at time k, g is the local gravitational acceleration, θ k / k-1 , For forecast data; is the measurement matrix at time k-1, θ k-1 , is the optimal state estimate at time k-1; P k / k-1 is the mean square error matrix of one-step prediction at time k; Ψ is the noise transfer matrix; Φ k / k-1 is the state transfer matrix at time k; P k-1 is the mean square error matrix at k-1 time; Rk is the measurement variance at time k; Λ and Σ are both process matrices; K k is the filter gain matrix at time k; Z k For quantity measurement; One-step prediction value for the state quantity; and are the state quantities at time k-1 and time k respectively; P k is the mean square error matrix at time k.
[0116] In actual application, this embodiment obtains a measurement value based on the specific force in the carrier coordinate system, and then updates the Kalman filter measurement noise matrix in combination with the predicted data to obtain a measurement update matrix; the IMU data is processed through the measurement update matrix to obtain a horizontal attitude estimation value; the horizontal attitude estimation value is used as the initial value of the state quantity at the next moment until the optimal horizontal attitude measurement value is obtained.
[0117] The present embodiment provides a method for measuring horizontal attitude based on an adaptive incremental Kalman filter, which uses the specific force output by an accelerometer in an inertial navigation device to perform attitude solution, while continuously correcting the accumulated error of the angular velocity output by a gyroscope in the inertial navigation device, and uses an incremental Kalman filter to weaken the influence of carrier maneuvers on attitude solution, thereby improving the accuracy of attitude solution in a moving state. The method has no requirements for the moving state of the carrier, and compared with ordinary Kalman filtering methods, factors such as carrier maneuvers have less influence on the present filtering method.
[0118] The present embodiment provides a horizontal attitude measurement method based on an adaptive incremental Kalman filter, which models the influence of carrier maneuvers and the angular velocity of the earth's rotation on the specific force measurement as a first-order Markov model, takes the angular velocity output by the gyroscope as the deterministic input and the specific force output by the accelerometer as the quantity to be measured, and uses the exponential fading memory weighted average method to obtain the carrier's maneuvering state at the most recent N moments, and uses the carrier's maneuvering vector to adaptively adjust the measurement noise, and finally uses the incremental Kalman filter method to weaken the influence of the carrier's maneuvers on the horizontal attitude measurement.
[0119] Embodiment 8. This embodiment provides a horizontal attitude measurement system based on an adaptive incremental Kalman filter, the system comprising:
[0120] Used to calibrate the inertial device and perform initial alignment on the calibrated inertial device to obtain the initial roll angle θ0 and initial pitch angle storage device;
[0121] A storage device for collecting carrier maneuvering data and the earth's rotation angular velocity, and establishing a Kalman filter state space model based on the carrier maneuvering data and the earth's rotation angular velocity;
[0122] According to the initial roll angle θ0 and pitch angle , initializing the Kalman filter state space model to obtain a storage device for the initialized Kalman filter state space model;
[0123] It is used to collect the IMU data of the inertial device at any time, and compensate the IMU data to obtain the specific force in the carrier coordinate system and the angular velocity in the carrier coordinate system. storage device;
[0124] Used to obtain the angular increment according to the angular velocity in the carrier coordinate system storage device;
[0125] a storage device for obtaining a quantity measurement based on the specific force in the carrier coordinate system;
[0126] A storage device for performing Kalman filter one-step prediction on the angular increment using an initialized Kalman filter state space model to obtain prediction data;
[0127] Used to obtain the maneuvering vector T of the carrier according to the specific force in the carrier coordinate system and the angular velocity in the carrier coordinate system k , and adaptively adjusting the initialized Kalman filter state space model according to the maneuver vector of the carrier to obtain a storage device for the Kalman filter measurement noise matrix;
[0128] A storage device for performing measurement update on the Kalman filter measurement noise matrix according to the measurement and prediction data to obtain a measurement update matrix;
[0129] A storage device for processing the IMU data through the measurement update matrix to obtain a horizontal attitude estimation value;
[0130] A storage device for using the estimated value of the horizontal posture as the initial value of the state quantity at the next moment until the optimal horizontal posture measurement value is obtained.
[0131] Implementation method nine. This implementation method provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, a horizontal posture measurement method based on an adaptive incremental Kalman filter as described in any one of implementation methods one to seven is executed.
[0132] Implementation method ten. This implementation method provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program. When the processor runs the computer program stored in the memory, the processor executes a horizontal posture measurement method based on an adaptive incremental Kalman filter as described in any one of implementation methods one to seven.
[0133] Implementation method 11. See Figure 3 This embodiment is described. This embodiment compares the horizontal posture measurement method based on adaptive incremental Kalman filtering described in any one of the embodiments 1 to 7 with the existing common Kalman filtering method. The conditions are set as follows:
[0134] The gyroscope bias of each axis is 1° / h, and the accelerometer bias is 1×10 -4 g, the carrier is in a swaying state, the three axes are swaying according to the law of sine function, the swaying amplitude is 10°, the swaying period is 10s, the initial attitude angle and phase angle are both 0, and it is moving northward at a uniform speed of 1m / s.
[0135] The simulation results of the ordinary Kalman filter method and the horizontal attitude measurement method based on adaptive incremental Kalman filter proposed in this embodiment are shown in Table 3.
[0136] It can be seen that the horizontal attitude measurement method based on the adaptive incremental Kalman filter in this embodiment adopts the specific force output by the accelerometer in the inertial navigation device to perform attitude solution, and continuously corrects the cumulative error of the angular velocity output by the gyroscope in the inertial navigation device. The incremental Kalman filter is used to weaken the influence of the carrier maneuver on the attitude solution, thereby improving the accuracy of the attitude solution in the motion state. The method has no requirements for the motion state of the carrier. Compared with the ordinary Kalman filtering method, the factors such as the carrier's maneuverability have less influence on the filtering method.
[0137] The present embodiment provides a method for measuring horizontal attitude based on an adaptive incremental Kalman filter, which uses the specific force output by an accelerometer in an inertial navigation device to perform attitude solution, while continuously correcting the accumulated error of the angular velocity output by a gyroscope in the inertial navigation device, and uses an incremental Kalman filter to weaken the influence of carrier maneuvers on attitude solution, thereby improving the accuracy of attitude solution in a moving state. The method has no requirements for the moving state of the carrier, and compared with ordinary Kalman filtering methods, factors such as carrier maneuvers have less influence on the present filtering method.
[0138] The present embodiment provides a horizontal attitude measurement method based on an adaptive incremental Kalman filter, which models the influence of carrier maneuvers and the angular velocity of the earth's rotation on the specific force measurement as a first-order Markov model, takes the angular velocity output by the gyroscope as the deterministic input and the specific force output by the accelerometer as the quantity to be measured, and uses the exponential fading memory weighted average method to obtain the carrier's maneuvering state at the most recent N moments, and uses the carrier's maneuvering vector to adaptively adjust the measurement noise, and finally uses the incremental Kalman filter method to weaken the influence of the carrier's maneuvers on the horizontal attitude measurement.
[0139] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0140] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0141] The above description is only an embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may be subject to various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention shall be included in the scope of the claims of the present invention.
Claims
1. A horizontal attitude measurement method based on adaptive incremental Kalman filtering, characterized in that: The method is: S1. Calibrate the inertial device and perform initial alignment on the calibrated inertial device to obtain the initial roll angle θ0 and initial pitch angle S2, collecting carrier maneuvering data and the earth's rotation angular velocity, and establishing a Kalman filter state space model according to the carrier maneuvering data and the earth's rotation angular velocity; S3, according to the initial roll angle θ0 and pitch angle Initializing the Kalman filter state space model to obtain an initialized Kalman filter state space model; S4. Collect the IMU data of the inertial device at any time, and compensate the IMU data to obtain the specific force in the carrier coordinate system and the angular velocity in the carrier coordinate system. S5. Obtain an angular increment according to the angular velocity in the carrier coordinate system. S6. Obtaining a quantity measurement according to the specific force in the carrier coordinate system; S7, using the initialized Kalman filter state space model to perform Kalman filter one-step prediction on the angular increment to obtain prediction data; S8. Obtain the maneuvering vector T of the carrier according to the specific force in the carrier coordinate system and the angular velocity in the carrier coordinate system. k , and adaptively adjusting the initialized Kalman filter state space model according to the maneuver vector of the carrier to obtain a Kalman filter measurement noise matrix; S9, performing measurement update on the Kalman filter measurement noise matrix according to the measurement and prediction data to obtain a measurement update matrix; The measurement update matrix is expressed as: in, is the measurement matrix at time k, g is the local gravitational acceleration, θ k / k-1 , For forecast data; is the measurement matrix at time k-1, θ k-1 , is the optimal state estimate at time k-1; P k / k-1 is the mean square error matrix of one-step prediction at time k; Ψ is the noise transfer matrix; Φ k / k-1 is the state transfer matrix at time k; P k-1 is the mean square error matrix at k-1 time; R k is the measurement variance at time k; Λ and Σ are both process matrices; K k is the filter gain matrix at time k; Z k For quantity measurement; One-step prediction value for the state quantity; and are the state quantities at time k-1 and time k respectively; P k is the mean square error matrix at time k; S10, processing the IMU data through the measurement update matrix to obtain a horizontal attitude estimation value; S11. Using the estimated value of the horizontal posture as the initial value of the state quantity at the next moment until the optimal horizontal posture measurement value is obtained.
2. The method for measuring horizontal posture based on adaptive incremental Kalman filtering according to claim 1, characterized in that: The Kalman filter state space model in step S2 is expressed as: Among them, Φ k / k-1 =I2 is the state transfer matrix, I2 is the second-order unit matrix; X k-1 and X k are the state quantities at time k-1 and time k respectively; B k-1 is the input coefficient matrix; u k-1 is a deterministic input; W k-1 is the system noise vector; Γ k / k-1 is the system noise allocation matrix; Z k H is the quantity measurement; k is the measurement matrix; Y k is the known deviation of the measurement; V k is the measurement noise matrix; measurement noise V k is a first-order Markov process; V k =ΨV k-1 +e k-1 , V k-1 and V k are the measurement noise matrices at time k-1 and time k respectively; Ψ=(1-βT)I2, β is the anti-correlation time constant, T is the solution period, and I2 is the second-order unit matrix; e k-1 is zero-mean Gaussian white noise.
3. The method for measuring horizontal posture based on adaptive incremental Kalman filtering according to claim 1, characterized in that: The specific force in the carrier coordinate system in step S4 is expressed as: The angular velocity in the carrier coordinate system is expressed as: in, is the component of the specific force at time K on the x-axis, y-axis and z-axis of the carrier coordinate system; are the components of the angular velocity at time K on the x-axis, y-axis and z-axis of the carrier coordinate system.
4. The method for measuring horizontal posture based on adaptive incremental Kalman filtering according to claim 1, characterized in that: The angle increment in step S5 is expressed as: Where T is the solution period.
5. The method for measuring horizontal posture based on adaptive incremental Kalman filtering according to claim 1, characterized in that: The quantity measurement in step S6 is expressed as: Among them, 11 is the first row and first column element of Ψ, 22 is the element in the second row and second column of Ψ, Ψ=(1-βT)I2, β is the anti-correlation time constant of the first-order Markov, T is the solution period, I2 is the second-order identity matrix, They are the components of the specific force on the x-axis and y-axis of the carrier coordinate system at time k-1 respectively.
6. The method for measuring horizontal posture based on adaptive incremental Kalman filtering according to claim 1, characterized in that: The maneuvering vector T of the carrier in step S8 k It is expressed as: Where g is the local gravitational acceleration; σ f , σ ω are all weight coefficients; ||·|| represents the modulo operation.
7. A horizontal attitude measurement system based on adaptive incremental Kalman filtering, characterized in that: The system comprises: Used to calibrate the inertial device and perform initial alignment on the calibrated inertial device to obtain the initial roll angle θ0 and initial pitch angle storage device; A storage device for collecting carrier maneuvering data and the earth's rotation angular velocity, and establishing a Kalman filter state space model based on the carrier maneuvering data and the earth's rotation angular velocity; According to the initial roll angle θ0 and pitch angle Initializing the Kalman filter state space model to obtain a storage device for the initialized Kalman filter state space model; It is used to collect the IMU data of the inertial device at any time, and compensate the IMU data to obtain the specific force in the carrier coordinate system and the angular velocity in the carrier coordinate system. storage device; Used to obtain the angular increment according to the angular velocity in the carrier coordinate system storage device; a storage device for obtaining a quantity measurement based on the specific force in the carrier coordinate system; A storage device for performing Kalman filter one-step prediction on the angular increment using an initialized Kalman filter state space model to obtain prediction data; Used to obtain the maneuvering vector T of the carrier according to the specific force in the carrier coordinate system and the angular velocity in the carrier coordinate system k , and adaptively adjusting the initialized Kalman filter state space model according to the maneuver vector of the carrier to obtain a storage device for the Kalman filter measurement noise matrix; A storage device for performing measurement update on the Kalman filter measurement noise matrix according to the measurement and prediction data to obtain a measurement update matrix; The measurement update matrix is expressed as: in, is the measurement matrix at time k, g is the local gravitational acceleration, θ k / k-1 , For forecast data; is the measurement matrix at time k-1, θ k-1 , is the optimal state estimate at time k-1; P k / k-1 is the mean square error matrix of one-step prediction at time k; Ψ is the noise transfer matrix; Φ k / k-1 is the state transfer matrix at time k; P k-1 is the mean square error matrix at k-1 time; R k is the measurement variance at time k; Λ and Σ are both process matrices; K k is the filter gain matrix at time k; Z k For quantity measurement; One-step prediction value for the state quantity; and are the state quantities at time k-1 and time k respectively; P k is the mean square error matrix at time k; A storage device for processing the IMU data through the measurement update matrix to obtain a horizontal attitude estimation value; A storage device for using the estimated value of the horizontal posture as the initial value of the state quantity at the next moment until the optimal horizontal posture measurement value is obtained.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, executes a horizontal attitude measurement method based on an adaptive incremental Kalman filter as described in any one of claims 1 to 6.
9. A computer device, characterized in that: The device includes a memory and a processor, wherein a computer program is stored in the memory. When the processor runs the computer program stored in the memory, the processor executes a horizontal posture measurement method based on an adaptive incremental Kalman filter as described in any one of claims 1 to 6.
