1. Introduction
A strapdown inertial navigation system (SINS) is an autonomous navigation system that does not rely on any external information. A SINS has the characteristics of excellent concealment because it does not radiate energy to the outside. Thus, it can work in a variety of complex environments, such as air, ground, and underwater [
1,
2,
3]. In practical navigation applications, an integrated navigation system (INS) is usually used to improve navigation accuracy. An INS usually takes a SINS as the main navigation system and the Global Positioning System (GPS) or other systems, where errors do not accumulate with time, are used as auxiliary navigation systems [
4,
5,
6]. Among many INSs, SINS/GPSs have attracted the attention of many researchers because of their wide application range and high efficiency [
7]. In SINS/GPS research, initial alignment has been one of the significant focal areas [
8].
Initial alignment is the process of calculating the initial attitude, position, and velocity of vehicles [
9,
10]. In a SINS/GPS integrated system, the initial position and velocity can be easily obtained by GPS. Therefore, the essence of initial alignment is to calculate the initial attitude. In general, initial alignment is divided into two stages: coarse alignment and fine alignment [
11]. The coarse alignment period estimates and provides a rough attitude matrix for the fine alignment. Then, the fine alignment uses the liner model and filter technology based on the results of coarse alignment. Thus, the accuracy of coarse alignment greatly affects the accuracy of the whole integrated navigation process [
12,
13,
14].
Several researchers have devoted themselves to devising new coarse alignment algorithms. In [
15,
16,
17], the coarse alignment algorithms are studied based on gravitational apparent motion. The authors of [
15] used gravitational apparent motion vectors at three moments to construct an attitude matrix and then to obtain latitude information by calculating the geometric relationship among the apparent motions. However, the method proposed in [
15] is easily affected by random noise contained in accelerometer measurement. However, when the measurement time interval is very short, or the measurement quantity is inaccurate, the apparent motion of gravity will be collinear. In order to avoid collinearity among apparent motions, the authors of [
16] propose an online sensor data denoising method and study the design of a novel reconstruction method for apparent motion Through the reconstruction of vectors, the method can increase the accuracy of self-alignment. In addition, in [
17], a fast self-alignment method with real-time estimated latitude to obtain high accuracy with unknown geographic latitude constraints and limited time is proposed. Unfortunately, the above three coarse alignment methods can only be applied to the static base or swaying base and limit the application range of a SINS. Therefore, researchers have begun to investigate in-motion coarse alignment methods based on an external equipment auxiliary.
When a vehicle is moving, the coarse alignment process cannot be completed using measurement information from inertial sensors alone, and it is necessary to engage the assistance of external equipment. GPS is the most popular auxiliary equipment for land vehicles, and many coarse alignment methods based on GPS have been studied in recent years. The authors of [
18] investigated an optimization-based alignment (OBA) algorithm in an innovative way. The OBA algorithm uses infinite vector observations to transform the coarse alignment problem into an attitude determination problem. In [
19], the approach reported in [
18] is further developed by utilization of devised velocity integration formulae to construct the vector observation. Based on the above two algorithms, the basic problem of in-motion alignment can be solved. Unfortunately, both algorithms cannot suppress the impact of outliers contained in the outputs of GPS and inertial measurement units. Thus, in [
20], a robust optimization-based alignment method to detect the outliers and improve the accuracy of in-motion coarse alignment is proposed. It is worth noting that the above in-motion coarse alignment methods are all based on the ground velocity. However, not all GPS receivers can export the ground velocity and some of them can only provide the position information of the vehicle. This limits the application of in-motion coarse alignment. Therefore, ref. [
21] investigated an in-motion coarse alignment method for the SINS/GPS integrated system using position loci. The vector observation, based on position trajectory, further expands the application range of coarse alignment on the moving base. However, ref. [
21] uses a filter-QUEST algorithm to calculate the attitude matrix, which has only limited ability to reduce the errors of vector observation contained in the inertial sensors and GPS measurement. Furthermore, the propagation noises are treated as fixed fading memory values in the filter-QUEST algorithm, which is similar to the REQUEST algorithm, and this makes both of the algorithms suboptimal.
To improve the performance of in-motion coarse alignment, this paper extends the research of [
21] and proposes a new alignment method based on an Optimal-REQUEST algorithm and position loci (OP-PL). This paper employs a vector observation calculation method based on position loci. Then, the Optimal-REQUEST is utilized to suppress the noise in the measurement vectors and to filter the measurement noises by adaptively adjusting the fading memory value. Finally, the objective of improving the accuracy of coarse alignment is achieved. The contributions of the proposed in-motion coarse alignment are summarized as follows:
The proposed OP-PL utilizes position information to construct the observation vectors, which can expand the application range of the in-motion coarse alignment algorithm, because the proposed method only utilizes the position information which is available from every GPS receiver.
The outliers contained in the GPS positioning outputs can be suppressed as the outliers can be smoothed by GPS position loci; this can reduce the noise impact of outliers on observation vectors.
The proposed algorithm employs the Optimal-REQUEST algorithm to further suppress random noise contained in the observation vectors. The Optimal-REQUEST overcomes the defect of the REQUEST algorithm of the use of an empirical and constant gain to filter the random noise. Therefore, the Optimal-REQUEST algorithm can optimally filter random noise using a cost function, and can improve the stability and accuracy of the coarse alignment.
The remainder of the paper is organized as follows:
Section 2 introduces the traditional method of in-motion coarse alignment and defines the problem. Next,
Section 3 elaborates the principle of vector observation based on the position loci, and
Section 4 introduces the proposed Optimal-REQUEST algorithm. The simulation experiments conducted are described in
Section 5. Finally, the conclusions and suggestions for future work are presented in
Section 6. See
Appendix A for the proof of some formulas.
4. Attitude Determination Using the Optimal-REQUEST Algorithm
Based on the above calculations, models of the observation vector are acquired. However, the results of coarse alignment are inevitably affected by GPS measurement errors in the process of constructing vectors. Thus, an Optimal-REQUEST algorithm, based on position loci (OR-PL), is proposed to reduce the impact of errors and to determine the initial attitude matrix . The Optimal-REQUEST algorithm utilizes the measurement vectors and reference vectors to construct a K-matrix. Moreover, an iteration algorithm, which can adjust the gain according to the measurement error, is applied to update the K-matrix. The optimal attitude quaternion can then be obtained by calculating the K-matrix eigenvector corresponding to its largest eigenvalue.
4.1. Measurement Update
When the measurement vectors and reference vectors are obtained based on the position loci, the initial attitude matrix
can be determined by minimizing the following formula:
where
,
and
. The matrix
is the initial attitude matrix
. The construction method of the K-matrix is shown below:
where the parameters in Equation (30) are defined as follows:
According to the REQUEST algorithm, the propagation formula of the K-matrix is given by:
During the coarse alignment, the initial attitude matrix stays constant. Thus, the propagation coefficient matrix .
When the new observation vectors are obtained at time k + 1, we construct the corresponding incremental K-matrix, namely . The specific construction method is the same as Equations (30)–(32), and the only difference is that the vectors acquired at time k + 1 are used to calculate .
Next, the estimated
can be updated by the combination of prior estimation
and the incremental matrix
at time
k + 1, namely,
where
,
and
are scalar coefficients, and the specific relationship of the three scalars is as follows:
The fading memory factor is the core of the REQUEST algorithm and the Optimal-REQUEST algorithm. The REQUEST algorithm uses the fading memory concept to treat the measurement noise, and this makes the algorithm suboptimal. However, the proposed OP-PL algorithm can optimally filter the measurement noise by calculating the value of the fading memory factor adaptively.
4.2. Stochastic Models
To deduce the error models of the proposed OP-PL algorithm accurately, we assume that the reference vector
is error-free and that the measurement vector
is corrupted by the noisy vector
.
Define the following noise matrix:
where the parameters in Equation (37) are defined as:
It is worth noting that
is made up of
and
, and
is random. Thus, we conclude that
is also random. The linear relation of
in
is used to deduce a stochastic model for
and
. The relationship between
and
is given by:
where
denotes the error-free matrix.
The mean and the covariance of
are constructed as follows:
where
represents the Kronecker delta function and
represents the variance of the component of
. It is obvious that
is white noise with zero-mean. Thus,
also has the characteristics of zero-mean white noise, namely,
where
. To further derive the uncertainty of the matrix, we introduce a special form of uncertainty, namely
. The proof of
is shown in
Appendix A.
The P-matrix of
is given by:
The calculation formulae of each element in the matrix are shown below and the detailed derivation process is shown in [
23].
where
is the variance for all the
simultaneous observations calculated at time
.
4.3. Calculation of Optimal Gain
After the measurement update formulae and error models are deduced, the cost function can be determined through the estimated errors of the K-matrix. Next, the fading memory factor can be updated adaptively according to the cost function.
We define the estimation errors of the K-matrix as:
where
and
denote the a priori and the a posteriori estimation with error-free, respectively.
and
denote the errors of the a priori and the a posteriori estimation.
Similarly to Equation (34), reconstruct the equation with the error-free K-matrix, namely:
After subtracting Equations (34) and (51), substitute Equations (40), (49) and (50) into the following formula:
The P matrix of
and
are defined as below
Considering Equation (52), the following formula can be calculated as:
As mentioned,
and
represent the white noise process with zero-mean. Moreover,
consists of
, where
i is an integer from 1 to
k. Thus,
has no relation with
, namely,
Then, we take the expectation of Equation (55), and simplify the following formulae:
Based on Equation (58), we define the cost function
:
The calculation of the fading memory factor is then transformed by solving the minimization problem of Equation (59). We use the derivation to obtain the expression of the fading memory factor.
Finally, the stationary point
can be determined using the extremum of
.
4.4. Algorithm Summary
Compared with the REQUEST algorithm, the OP-PL algorithm uses the updated estimation error to define the special cost function and calculates the scalar gain
. Thus, the OP-PL can better reduce the impact of GPS measurement errors which are contained in the observation vectors. For clear explanation, the whole in-motion coarse alignment procedure is shown in
Table 1 and
Figure 1.
5. Simulation
The simulation tests carried out to verify the accuracy and rapidity of the proposed OP-PL algorithm are described in this section. The trajectory of the vehicle was designed to follow a zigzag movement, and the actual information of the vehicle was known. Thus, the actual angles were used as reference angles to calculate the errors of three angles. The zigzag trajectory and the reference information are shown in
Figure 2 and
Figure 3, respectively. It can be seen that the outliers, which corrupt the measurement of GPS, were added to the measurement. The output frequencies of GPS and the simulated inertial measurement unit (IMU) were set as 5 Hz and 200 Hz, respectively. The constant bias and random noise of the gyroscopes and accelerometers are listed in
Table 2. The initial latitude and longitude were set as 32.00° and 118.00°, respectively. Throughout the in-motion coarse alignment process, it was assumed that the vehicle was moving on the horizontal plane; the initial values of the attitude angles were all set as 0°. The simulation was conducted using Matlab 2016b with an alignment time of 300 s. The proposed OP-PL algorithm was compared with the QUEST algorithm and the REQUEST algorithm to verify performance.
Figure 4,
Figure 5 and
Figure 6 show the different performances of the REQUEST algorithm and the proposed OP-PL algorithm. We chose three different values of the fading memory factor, which were 0.1, 0.01 and 0.001, to compare with the optimal adaptive gain
.
Figure 7 shows the optimal gain of the proposed algorithm in the simulation. Considering the results from three angles, we found that the REQUEST algorithm was unstable during simulation. From
Figure 4 and
Figure 5, it is evident that the REQUEST algorithm showed similar performance to the proposed algorithm when 0.1 was chosen as the value of the fading memory factor. The ‘MEAN’ and ‘RMSE’ represent the mean and the root mean square error of the attitude errors. The MEAN and RMSE errors of the blue and black curves were calculated by collecting data from 150 s to 300 s, where the blue curve represents
and the black curve represents the optimal adaptively gain. The pitch MEAN errors of the blue and black curves were 0.0269° and −0.0760°, respectively. The pitch RMSE errors of the blue and black curves were 0.0425° and 0.0824°, respectively. Although the accuracy of the pitch angle calculated by the proposed OP-PL algorithm was lower than the REQUEST, the convergence rate of the pitch angle calculated by the proposed OP-PL algorithm was half that calculated by the REQUEST algorithm.
Moreover, the roll MEAN errors of the blue and black curves were 0.1875° and 0.1159°, respectively. The roll RMSE errors of the blue and black curves were 0.2114° and 0.1210°, respectively. From the RMSE data, it is evident that the proposed OP-PL algorithm performed better than the REQUEST algorithm for the calculation of the roll angle. It can also be seen from
Figure 5 that the proposed OP-PL algorithm was very stable and that the convergence speed was still very fast.
However, when , the performance of the yaw angle was very poor. Although this value can produce excellent results in calculating the roll angle and the pitch angle, it was completely wrong for calculating the yaw angle. This indicates that the fixed gain was unreliable during the coarse alignment. When the value of was selected as 0.1, the new K-matrix () accounted for a relatively large proportion during the update of the K-matrix. This made it impossible to calculate the yaw angle correctly. If the value of was decreased to 0.001, more error effects were accumulated because the old K-matrix () accounted for a relatively large proportion during the update of the K-matrix. This made it difficult to calculate the pitch and roll angles correctly.
To overcome the drawbacks of the REQUEST algorithm, the proposed algorithm uses a cost function to adjust the fading memory value adaptively. From
Figure 7, we can see that, the value is selected as one at the beginning of the filter. Thus, more parts of the new measurements can be used during the update stage to speed up convergence. With increase in alignment time, a relatively low weight is assigned to the new measurement to ensure that the alignment process is steady.
To further verify the superiority of the proposed OP-PL algorithm, we chose a third algorithm for comparison. Based on the obtained simulation results, we chose
as the fading memory factor in the REQUEST algorithm.
Figure 8,
Figure 9 and
Figure 10 show the calculation results of the REQUEST, QUEST and the proposed OP-PL algorithm, which are represented by the yellow, green and brown curves, respectively. To better compare the errors among the three algorithms, we list the mean values and root mean square errors of the angle error values in
Table 3, and present a box plot which is shown in
Figure 11.
In
Figure 8 and
Figure 9, the performance of the REQUEST algorithm can be seen to be still poor compared with the QUEST and the proposed OP-PL algorithm. The reason for this situation is that the REQUEST is a suboptimal algorithm, and it is hard to find an appropriate value to keep the algorithm stable.
Figure 11 confirms the poor performance of REQUEST, where the three angle errors were obviously larger than for the other two algorithms. The MEANs and RMSEs of the pitch and roll angles, which were calculated by the REQUEST algorithm, were also the worst among the three algorithms.
Moreover, the OP-PL algorithm retains the merits of the REQUEST algorithm, as it is a time-varying recursive attitude quaternion estimator which preserves the quaternion unit-norm property. Compared with the QUEST algorithm, the OP-PL algorithm has an enhanced ability to reduce the impact of the measurement noise contained in the measurement vectors.
From
Figure 8,
Figure 9 and
Figure 10, we can see that, although the convergence speed of the OP-PL algorithm was the same as that of the QUEST algorithm, the proposed algorithm had higher accuracy and the accuracy of the three angles were all improved. Moreover, as can be seen from
Figure 11, although the outliers of the yaw angle calculated by OP-PL were similar to that calculated by the QUEST algorithm, the proposed algorithm was relatively stable, based on the calculation results from the three angles. The main cause of the outliers in the yaw angle was unstable performance from 0 to 50 s. After the algorithm became stable, the advantages of the proposed algorithm were still evident. The pitch angle, roll angle and yaw angle calculated by the OP-PL algorithm were reduced by approximately 51.95%, 53.80% and 63.03%, respectively, compared with the QUEST algorithm.
Therefore, the above analyses confirm that the OP-PL algorithm had better alignment accuracy than the comparison algorithms.