Disclosure of Invention
The invention aims to provide a water surface ship horizontal attitude measurement method based on a motion reference unit, which improves the system attitude measurement precision.
The purpose of the invention is realized by the following technical scheme:
the method for measuring the horizontal attitude of the water surface ship based on the motion reference unit comprises the following steps:
step 1, giving an initial navigation parameter (at the moment when t is 0): the initial alignment of the motion reference unit obtains an initial quaternion Q (0);
step 2, setting a sampling period h by the system, and acquiring output signals of the gyroscope and the accelerometer on three axes in real time
And f
b =[f
x b f
y b f
z b ]
T ;
An attitude solution period H, an attitude solution period loop mark k is 1,2 …, and H is t k -t k-1 . The attitude solution period is equal to the system sampling period, i.e. H ═ H.
Step 3, obtaining a calculation quaternion by utilizing gyro output information
Further obtaining a relation matrix of the carrier coordinate system b and the geographic coordinate system n
Step 4, judging the motion state rule of the carrier as follows:
if it is
And is
Judging that the carrier is in a low-mobility state;
if it is
Or
The vehicle is in a high maneuver state.
Wherein the resultant angular velocity of the carrier is
Resultant acceleration of
n is taken
Step 5, when the vehicle is in a low-mobility state, outputting information f by using the accelerometer b (k-1) And a transfer matrix between the carrier coordinate system b and the geographic coordinate system n to obtain a horizontal misalignment angle phi b (k-1)。
Wherein "x" represents the cross product between vectors, C
3 (k-1) represents
The third row of row vectors.
And 6, when the carrier is in a high-mobility state, extracting the mobility acceleration of the carrier from the output information of the accelerometer by using a reasonably designed high-pass filter, and compensating. Namely:
wherein the high-pass filter H (z) has a transfer function of:
wherein tau is a time constant parameter and tau is 0.03 s.
Then, utilize
And a transfer matrix between the carrier coordinate system b and the geographic coordinate system n to obtain a misalignment angle phi
b (k-1)。
Step 7, obtaining a calculated value phi of the misalignment angle
b (k-1) after, calculating quaternion
Update and repairThe following are true:
wherein
Alpha is an error angle correction coefficient, and alpha is 0.01; Δ θ (k-1) is an angular increment after the misalignment angle correction and has a value of Δ θ (k-1) |.
Therefore, the updating and the correction of the horizontal attitude of the surface ship based on the motion reference unit are completed.
The invention has the beneficial effects that:
the invention comprehensively utilizes the acceleration and angular velocity information output by the motion reference unit to detect the motion state of the carrier, and adopts different misalignment angle calculation methods according to the detection result. Even if the system has the motion acceleration, the optimal calculation of the misalignment angle is still maintained, the system is ensured to have higher attitude measurement precision in different motion states, and the attitude measurement precision of the system is effectively improved.
Detailed Description
The following further describes embodiments of the present invention in conjunction with the attached figures:
the invention will now be described in more detail by way of example with reference to the accompanying drawing 1: the heave measurement method with the rod arm compensation of the strapdown inertial navigation system comprises the following steps:
step 1, giving an initial navigation parameter (at the moment when t is 0): the initial alignment of the motion reference unit obtains an initial quaternion Q (0);
step 2, setting a sampling period h by the system, and acquiring output signals of the gyroscope and the accelerometer on three axes in real time
And f
b =[f
x b f
y b f
z b ]
T (ii) a An attitude calculation period H, an attitude calculation period cyclic flag k being 1,2 …, and H being t
k -t
k-1 . The attitude calculation period is equal to the system sampling period, namely H-H.
Step 3, obtaining a calculation quaternion by utilizing gyro output information
Further obtaining a relation matrix of the carrier coordinate system b and the geographic coordinate system n
Step 4, judging the motion state rule of the carrier as follows:
if it is
And is provided with
Judging that the carrier is in a low-mobility state;
if it is
Or
The vehicle is in a high maneuver state.
Wherein the resultant angular velocity of the carrier is
Resultant acceleration of
n is taken
Step 5, when the vehicle is in a low-mobility state, outputting information f by using the accelerometer b (k-1) and carrier coordinate system b and geographic coordinate system n A transfer matrix therebetween, to obtain a horizontal misalignment angle phi b (k-1)。
Wherein "x" represents the cross product between vectors, C
3 (k-1) represents
The third row of row vectors.
And 6, when the carrier is in a high-mobility state, extracting the mobility acceleration of the carrier from the output information of the accelerometer by using a reasonably designed high-pass filter, and compensating. Namely:
wherein the high-pass filter H (z) has a transfer function of:
wherein tau is a time constant parameter and tau is 0.03 s.
Then, utilize
And a transfer matrix between the carrier coordinate system b and the geographic coordinate system n to obtain a misalignment angle phi
b (k-1)。
Step 7, obtaining a calculated value phi of the misalignment angle
b (k-1) after, calculating quaternion
The updating and correcting are performed as follows:
wherein
Alpha is an error angle correction coefficient, and alpha is 0.01; Δ θ (k-1) is an angular increment after the misalignment angle correction and has a value of Δ θ (k-1) |.
Therefore, the updating and the correction of the horizontal attitude of the surface ship based on the motion reference unit are completed.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.