Effect of EastGyroDrift and Initial AzimuthError on theCompass Azimuth Alignment Convergence Time

0e effect of gyro constant drift and initial azimuth error on the convergence time of compass azimuth is analyzed in this article. Using our designed compass azimuth alignment system, we obtain the responses of gyro constant drift and initial azimuth error in the frequency domain. 0e corresponding response function in the time domain is derived using the inverse Laplace transform, and its convergence time is then analyzed. 0e analysis results demonstrate that the convergence time of compass azimuth alignment is related to the second-order damping oscillation period, the gyro constant drift, and the initial azimuth error. In this study, the error band is set to 0.01° to determine convergence. When the gyro drift is less than 0.05°/h, compass azimuth alignment can converge within 0.9 damping oscillation periods. When the initial azimuth error is less than 5°, compass azimuth alignment can converge within 1.4 damping oscillation periods. When both conditions are met, the initial error plays a major role in convergence, while gyro drift has a smaller effect on convergence time. Finally, the validity of our method is verified using simulations.


Introduction
Compass alignment is a typical initial alignment approach for inertial navigation systems (INSs). It is based on the principle of the compass effect and adopts classic control theory in the frequency domain to design a compass aligning circuit. Compass alignment has the advantages of few parameters, low computational complexity, and easy implementation [1]. At present, studies on compass alignment have mainly focused on parameter settings, error analysis, compass alignment of large azimuth misalignment angle, and rotation modulation compass alignment.
In terms of parameter setting, in [2], the self-alignment technique was investigated for the strapdown INS (SINS) under the swing state. e horizontal and azimuth alignment parameters were designed and optimized; they subsequently performed well under different sea conditions, different initial attitude errors, and omnidirectional conditions. Zhu et al. [3] introduced an intelligent optimization algorithm into compass alignment and optimized its parameters using a particle swarm optimization algorithm to improve the initial alignment performance of the strapdown INS. In [4], a mechanization scheme for gyrocompassing to an arbitrary attitude was proposed.
In terms of error analysis, Xu and Xao [5] studied the initial alignment of a compass loop under a sailing turntable and analyzed the alignment error based on the equivalence of the device error. Zhang et al. [6] analyzed the effect of random noise on compass azimuth alignment and proposed an innovative method in the time domain. Moreover, a method based on the inverse attitude calculation proposed that the periodic oscillation error of the gyro output can cause additional oscillation errors in compass azimuth alignment [7]. Furthermore, the azimuth error is amplified with increasing switching frequency. Ben et al. [8] described the effect of an outer lever arm on in-motion gyrocompass alignment, and a method for outer lever arm correction was provided to counteract the outer lever arm effect on the performance of the alignment. In [9], a complete error covariance analysis for strapdown inertial navigation system was presented, and, from this paper, it can be found that the cross-coupling terms in gyrocompass alignment errors can significantly influence the system error propagation.
A considerable number of studies have been carried out on compass alignment for a large azimuth misalignment angle. Abbas et al. [10] derived a nonlinear error model of the SINS with a large azimuth misalignment and proposed the static base alignment of the SINS employing simplified unscented Kalman filter (UKF) on the nonlinear error model. Sun et al. [11] proposed a timevarying parameter compass azimuth alignment method, which did not require the assumption of a linear model with a small misalignment angle; it also improved the alignment speed of a large azimuth misalignment angle. He et al. [12] proposed a time-varying parameter compass alignment algorithm based on an optimal model and used a genetic algorithm to optimize the parameters of compass alignment for a large azimuth misalignment angle. In [13], a general nonlinear psi-angle approach for large misalignment errors that does not require coarse alignment was presented.
Owing to its rapid development in recent years, many researchers have also introduced rotation modulation technology [14] into the initial alignment of the SINS to eliminate the influence of the inertia device constant error on the initial alignment. To eliminate the influence of the east gyro drift on the azimuth alignment accuracy of the SINS, Yanling et al. [15] proposed a compass alignment method suitable for a rotation modulation SINS based on an analysis of the frequency characteristics of the compass. Liu et al. [16] introduced an azimuth rotating modulation method to classical compass alignment for SINS and designed an alignment method based on repeated data calculation to improve the alignment accuracy with certain accuracy sensors and eliminate the effect of the carrier's attitude on alignment accuracy. us, although many studies have dealt with compass alignment, the convergence time has received minimal attention, despite being a relatively significant index for compass alignment. is is because the system is expected to (1) have a strong anti-interference ability to minimize the random environmental interference and (2) be able to converge within a limited initial alignment time. However, these two requirements are always conflicting [17]. Previous research designed a fourth-order compass azimuth alignment control system and indicated that the convergence time is related to the selected second-order damping oscillation period [17]. at study only analyzed the classic second-order system, which is directly applied to the fourth-order compass azimuth alignment system; however, the authors revealed clear similarities between the second-order and fourth-order systems. A three-order compass alignment system was designed in [18], which indicated that when selecting the corresponding parameters, the system can converge within 30-50 min. However, a concrete analysis method has not yet been provided. erefore, this study analyzes the effect of east gyro drift and initial azimuth error on the convergence time based on the fourth-order compass azimuth alignment system. We propose a novel method that converts the azimuth error response from the frequency domain to the time domain and then analyzes the convergence time in the time domain. A theoretical reference is provided to set the corresponding parameters of compass azimuth alignment and to control the convergence time.

Gyrocompass Azimuth Alignment Principle
Compass azimuth alignment is a self-alignment method based on the compass effect and classic control theory. e initial alignment is divided into two stages: horizontal leveling and azimuth alignment, where horizontal leveling is the basis of azimuth alignment. In general, horizontal alignment is rapid, precise, and simple, whereas azimuth alignment is problematic during the alignment process. Here, we briefly describe the principle of compass azimuth alignment, shown in Figure 1, where ω ie is the angular velocity of earth's rotation; L is the local geographic latitude; g is the acceleration of gravity; ∇ N is the north accelerometer bias; ε E is the east gyro drift, which affects the azimuth alignment accuracy; ε U is the zaxis gyro drift, which generally has a smaller effect on the initial alignment precision; δV N is the north velocity error; ϕ x is the pitch error; ϕ z is the azimuth error; K 1 and K 2 are the designed parameters of the north horizontal loop; and K(s) � K 3 /[ω ie cos L(s + K 4 )] is the control link of the compass loop, where the input is δV N and the output is K(s)δV N , which replaces the command angular velocity of vertical control. During the process of compass azimuth alignment, beginning from ϕ z through each link of the compass effect to output δV N and then through the azimuth control link K(s), the output ϕ z is adjusted.
According to the principle shown in Figure 1, the fourthorder system response is where ϕ x (0) is the initial error of the east error angle, which is very small and has a minimal influence on compass azimuth alignment after compass horizontal leveling, and ϕ z (0) is the initial error of the azimuth error angle, which affects the convergence characteristics of compass azimuth alignment. us, this is the parameter that requires research. e east gyro drift ε E also affects the azimuth alignment accuracy. Δ(s) is the characteristic equation of the compass azimuth alignment system: 2 Mathematical Problems in Engineering where ω s � ��� � g/R is the Schuler frequency and K 1 , K 2 , K 3 , and K 4 are the parameters to be set [19].
In general, a relatively mature parameter setting method separates a fourth-order system into a series formed of two identical second-order systems. e characteristic root then has the following form [2]: where σ � ξω n is the attenuation coefficient; ξ is the damping ratio; ω n is the undamped oscillation frequency of the designed second-order system; ω d � 2π/T d is the damping oscillation frequency; and T d is the damping oscillation period of the second-order system. e damping ratio is generally set to ξ � � 2 √ /2. erefore, ω d � σ, with the corresponding parameters of K 1 � K 4 � 2σ, K 2 � 4σ 2 /ω s − 1, and K 3 � 4σ 4 /g. For compass azimuth alignment, the other parameters are subsequently determined only if T d is set.
According to the response function of ϕ z , the output is influenced by five parameters. However, according to previous research, ∇ N , ϕ x (0), and ε U have a smaller impact on compass azimuth alignment. eir orders of magnitude are also small, so these parameters are not considered here. e focus of this study is analyzing the effects of east gyro drift and initial azimuth error on the convergence time of compass azimuth alignment.

Determination of Compass Azimuth Alignment.
Generally, automatic control theory regards the controlled parameter in a certain error band as entering a steady system process, which means that the system converges. Meanwhile, the error band is generally assumed as 2% or 5% of the steady value. However, this selection is not appropriate for the study of compass azimuth alignment because the steady value of the effect of initial azimuth error on compass azimuth alignment is zero; thus, the error band cannot be assumed to be a percentage of the steady value. Additionally, determination of the azimuth convergence should be comprehensively considered during initial alignment based on inertial device precision and azimuth angle accuracy. Hence, whether the azimuth angle enters the error band (the unit of this error band is angle) is used as a criterion for the convergence of the compass azimuth.
In this study, our analysis is based on the fiber optic gyroscope, and the gyro drift stability is restricted to 0.05°/h. Based on the initial alignment error formula, the initial alignment precision is constrained to 0.35°for a latitude of 53°north. en, an error band of 0.01°is used with a comprehensive consideration of the effect of random error on the initial alignment, which is considered to have converged for medium-accuracy inertial devices. Certainly, during practical applications, this convergence determination may be adjusted according to the requirements of the environment, inertial device precision, and alignment accuracy. If the gyro drift stability is in the order of 0.001°/h, the error band can be up to 0.005°; however, if the gyro drift stability is in the order of 0.1°/h, the error band can be reduced to 0.02°or 0.03°.

Effect of Gyro Constant Drift on Convergence Time.
According to Section 2, the system response term related to east gyro drift is In order to examine the time characteristics, the response of the frequency domain is converted into that of the time domain. us, we apply the inverse Laplace transform to ϕ z1 (s) and obtain According to the values of the corresponding parameters in Section 2, σ � ω d � (2π/T d ) and gK 3 � 4σ 4 . erefore, equation (5) can be simplified as follows: From equation (6), ϕ z1 (t) converges to − (ε E /ω ie cos L), which is the same as the formulae related to the effect of east gyro drift on initial alignment. However, we need to consider when this convergence occurs.
Because the gyro drift stability is constrained to less than 0.05°/h in this study, the gyro constant drift is generally less than 0.05°/h. e latitude is set to 53°and Consider the four decay oscillation error terms in equation (7): en, taking the 0.01°error band to determine whether the azimuth alignment converges, we obtain en, σt � 5.57 can be calculated, so t � 5.57/σ � 5.57T d /2π ≈ 0.9T d , which indicates that the compass azimuth alignment converges to the 0.01°error band after approximately 0.9 damping oscillation periods. erefore, we conclude that the effect of east gyro drift on compass azimuth alignment can converge within 0.9 damped oscillation periods. However, the analysis here is too conservative; as the gyro precision is improved, its constant drift will be lower and its convergence time will be reduced. Table 1 lists the convergence time of several typical gyro constant drifts.
According to Table 1, the convergence time of compass azimuth alignment is related to the selected second-order damping oscillation period and the gyro constant drift. When the gyro constant drift is determined, there is a fixedproportion relationship between the convergence time and the second-order damping oscillation period. When the second-order damping oscillation period is determined, a larger gyro constant drift results in a longer convergence time, and vice versa.
It should be noted that, due to adoption of the inequality amplification in the theoretical calculation of convergence time, the actual convergence time is often less than the calculated theoretical time. In other words, the convergence time given here is more conservative and denotes the maximum time that the system takes to stabilize.

Effect of Initial Azimuth Error on Convergence Time.
is section mainly analyzes the influence of initial azimuth error on convergence time. According to Section 2, the system response term related to the initial azimuth error is According to the values of the corresponding parameters in Section 2, By performing the inverse Laplace transform, the obtained function in the time domain is Because ω d � σ, ϕ z2 (t) � ϕ z (0) (σt + 2)e − σt sin ω d t In equation (13), ϕ z2 (t) eventually converges to 0; however, the target of this research is determining when the convergence occurs.
us, due to (σt + 2)e − σt sin(ωt) +(− σt + 1)e − σt cos(ωt) the following is true: en, using an error band of 0.01°to determine the initial alignment convergence, In equation (16), ϕ z2 (t) is proportionate to the initial azimuth error ϕ z (0), so its convergence time is also related to the initial azimuth error. Furthermore, the greater the value of ϕ z (0), the longer the convergence time.
However, before compass alignment, coarse alignment is generally required to guarantee the linear characteristic of the compass azimuth alignment error model. When the initial azimuth error is within 5°, the inertial error model has better linearity; the initial alignment performs well for compass azimuth alignment. When the initial azimuth error is more than 5°, the inertial error model has inferior linearity; the performance of compass azimuth alignment gradually decreases. erefore, in practical applications, the coarse alignment error is always controlled within 5°. In fact, this section only considers a convergence time of the initial azimuth error within 5°. Based on the typical initial errors listed above, the convergence time of compass azimuth alignment is shown in Table 2.
We conclude from Table 2 that the convergence time of compass azimuth alignment is related to the selected second-order oscillation period and the initial azimuth error. When the initial azimuth error is determined, the convergence time is fixed in proportion to the secondorder oscillation period. When the second-order oscillation period is determined, the greater the initial azimuth error, the longer the convergence time. As in Section 3, part B, the convergence times listed in Table 2 are relatively conservative, and the actual convergence time is generally less than the calculated value.
Due to adoption of the inequality amplification in the theoretical calculation of convergence time, the actual convergence time is often less than the calculated theoretical time. In other words, the convergence time given here is more conservative and denotes the maximum time that the system takes to stabilize.

Combined Effect of Both Errors on Convergence Time.
During the actual initial alignment of INS, constant drift and an initial azimuth error both exist. erefore, it is necessary to analyze the influence of both errors on the convergence time to provide theoretical guidance for parameter setting in practical applications. e gyro constant drift and initial azimuth error are mutually independent. Based on automatic control theory, both responses obtained by the transfer function of compass azimuth alignment can exhibit linear superposition. So, under both errors, the response function of the compass azimuth alignment error is In Equation 17, when both errors exist, ϕ z3 (t) converges to − (ε E /ω ie cos L), for which the error decay oscillation term is erefore, Taking the 0.01°error band as the criteria of initial alignment convergence, From equation (20), |Δϕ z3 (t)| is proportional to |ϕ z (0) + (ε E /ω ie cos L)|, so the convergence time is associated with the initial azimuth angle. When the absolute values of ϕ z (0) and ε E are unchanged, |Δϕ z3 (t)| under opposite signs of ϕ z (0) and ε E is less than that under the same signs. As we perform the most conservative estimation in our convergence time analysis, both signs are the same. Typical convergence times of the initial azimuth error and gyro constant drift are listed in Table 3.
By comparing Tables 2 and 3, we see that, relative to the initial azimuth error, the gyro constant drift has a minimal influence on the convergence time, whereas the main factor influencing compass azimuth alignment is the initial azimuth error. When this error is within 5°, compass azimuth alignment will converge within 1.41 T d .

Simulation of the Effect of Gyro Constant on Convergence
Time. We assume that the reference coordinate system is the east-north-up coordinate system and the local latitude is 53°. Only the X-axis gyro has a constant drift of 0.05°/h. e INS attitudes are 0°, 0°, and 0°. e initial attitude errors are all 0°. T d is set to 200 s, 300 s, 400 s, and 500 s, respectively. e simulation time is 600 s. e obtained convergence curve of the initial alignment error is shown in Figure 2 for different convergence times.
According to the related theory of initial alignment (formula (7)), at this time, the initial alignment error limit is − 0.3165°. erefore, according to Figure 2 and the definition of the 0.01°error band used in this study, we assume that the compass azimuth alignment converges when the initial alignment error curve finally passes through − 0.3165°. us, the convergence times for different T d are shown in Table 4.
According to Table 4, although the convergence time is different for different T d , the ratio of convergence time to T d coincides well with the theoretical analysis, which verifies the validity of our proposed analytical method.
Due to limited space, the convergence curves of other gyro drifts are not presented here. For gyro drifts of 0.01°/h, 0.02°/h, 0.03°/h, and 0.04°/h, the T d convergence times are 200 s, 300 s, 400 s, and 500 s, respectively. erefore, the ratio of convergence time to T d is shown in Table 5.
It can be seen from Table 5 that when the gyro drift is over 0.02°/h, it exhibits good agreement with the theoretical calculation. Moreover, the actual convergence time is less than the theoretical convergence time with a gyro drift of 0.02°/h and 0.01°/h. is is because the amplification of inequality is adopted during the process of theoretical derivation, resulting in an overconservative convergence time in the theoretical calculation. Despite this, the analysis method of this study is generally valid.

Simulation of the Effect of Initial Azimuth Error on
Convergence Time. We assume that there is no inertial device error, the initial azimuth error is 5°, T d is set to 200 s, 300 s, 400 s, and 500 s, respectively, the simulation time is 1000 s, and the attitude is 0°, 0°, and 0°. e resulting simulation results are shown in Figure 3 and Table 6.
According to Table 6, although the convergence time is different for different T d , the ratio of convergence time to T d is consistent with the theoretical analysis, which verifies the validity of our proposed analytical method. Due to limited space, the convergence curves of other gyro drifts are not shown here. We assume that the initial azimuth errors are 4°, 3°, 2°, 1°, and 0.5°and T d is 200 s, 300 s, 400 s, and 500 s, respectively. Table 7 lists the convergence times and ratios of convergence time to T d .
It can be seen from Table 7 that when the initial error is more than 2°, it agrees almost perfectly with the theoretical calculation results. When the initial error is less than 2°, the actual convergence time is less than the theoretical calculation time. is phenomenon, explained briefly in Section 4, part A, is due to the inequality amplification in the theoretical analysis.

Simulation of the Effect of Both Errors on Convergence
Time. We assume that there is no error of inertial device, the initial azimuth error is 5°, the x-axis gyro constant drift is 0.05°/h, T d is equal to 200 s, 300 s, 400 s, and 500 s, the simulation time is 1000 s, and the attitude is 0°, 0°, and 0°. e resulting simulation results are shown in Figure 4 and Table 8.
Due to limited space, other convergence curves are not shown here. If the initial azimuth errors are 4°, 3°, 2°, 1°, and 0.5°and the gyro constant drift is 0.05°/h, T d is 200 s, 300 s, 400 s, and 500 s, respectively. e convergence times and ratios of convergence time to T d are listed in Table 9. When

Experiment
In order to test the effect of east gyro drift and initial azimuth error on the compass azimuth alignment convergence time, we implemented three sets of actual ship experiments in Harbin, China. e main equipment includes the self-made strapdown INS and a high-precision inertial navigation system PHINS. We used the data output by PHINS as the reference value. In the experiment, the constant gyro drifts and the accelerometer biases were set to 0.05 deg/h and 0.0001 g, respectively.
e experiment procedure was as follows. e initial azimuth errors are 5°and 1°, and two sets of experiments were performed based on different azimuth errors. In each set of experiments, T d is equal to 200 s, 300 s, 400 s, and 500 s. e experiment results are shown in Table 10 and Figure 5. Obviously, the experimental results and the simulation results are basically the same. When the east gyro drift and the initial azimuth error are considered, the initial azimuth error plays a major role in the convergence time, compared to the gyro constant drift.

Conclusion
In compass azimuth alignment, precision conflicts with rapidity. Within a limited initial alignment time, the expected random disturbance is filtered as much as possible, and compass azimuth alignment is required to converge. us, it is necessary to analyze the convergence time of compass azimuth alignment and determine optimum parameters based on the precision of inertial devices and a reasonable selection of corresponding parameters. In this article, by analyzing the system transfer function of compass azimuth alignment, we obtain the response function of east gyro drift and initial azimuth error in the frequency domain, which are then transformed to the time-domain response function by the inverse Laplace transform. erefore, we analyze the effect of east gyro drift and initial azimuth error on the convergence time of compass azimuth alignment in the time domain. Our analytical results indicate that convergence time is related to gyro drift, initial azimuth error, and the second-order damping oscillation period. When an error band of 0.01°is used to determine the convergence and the gyro drift is less than 0.05°/h, the compass azimuth alignment will converge within 0.9 damping oscillation periods due to gyro drift. When the initial azimuth error is less than 5°, the compass azimuth alignment will converge within 1.4 damping oscillation periods due to the initial   azimuth error. When both errors are considered, the initial azimuth error plays a major role in the convergence time, compared to the gyro constant drift. Our proposed method provides a theoretical basis for setting the corresponding parameters and controlling the convergence time during compass azimuth alignment.

Data Availability
e data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest
e authors declare that there are no conflicts of interest regarding the publication of this paper.