Coarse Alignment of Marine Strapdown INS Based on the Trajectory Fitting of Gravity Movement in the Inertial Space

A ship experiences the random motion of sea waves during its travels. Hence, the coarse alignment of the marine strapdown Inertial Navigation System (INS) suffers from rocking disturbances such as pitch and roll. In this paper, a novel approach of marine coarse alignment was proposed for avoiding the resulting loss of accuracy from rocking disturbances. Unlike several current techniques, our alignment scheme is intuitional and concise. Moreover, the coarse alignment can be implemented without any external information. The gravity vector and its derivative expressed within the inertial frame can describe the attitude matrix between an inertial frame and the local geographic frame. We address the challenge of calculating the gravity derivative by the least-squares fitting of the trajectory of the gravity movement in the inertial frame. Meanwhile, the integration of angular rates measured by gyroscopes allows one to compute the attitude matrix between the inertial frame and the body frame. The coarse alignment can be thus accomplished by the combination of the above two attitude matrices. The experimental results show that the coarse alignment is effective with high accuracy and stability for demanding marine applications.


Introduction
The initial alignment of a strapdown Inertial Navigation System (INS) is to obtain initial attitude information referring to pitch, roll, and heading angles [1]. Generally, a coarse alignment and a subsequent fine alignment complete the initial alignment. The purpose of coarse alignment is to estimate the coarse attitude in a few minutes, which initialize the fine alignment. The error of coarse attitude is required to be limited to about one degree so that the final alignment time and accuracy can be satisfactory.
The typical initial alignment is realized by using two pairs of non-collinear vectors [2][3][4], which are suitable for stationary strapdown INS. In strapdown INS, the Inertial Measurement Unit (IMU) consists of three accelerometers and three gyroscopes. When the INS is stationary, the accelerometers and gyroscopes are used to measure the gravity and earth rotation velocity in the body frame, respectively. The initial attitude matrix can then be determined by using two pairs of non-collinear vectors; essentially, it is a Wahba's problem [5,6]. One pair of the non-collinear vectors is the gravity and earth rotation velocity in the body frame (see all frame definitions in Section 2), namely the measurements from IMU. Another pair of the non-collinear vectors is the gravity and earth rotation velocity in the navigation frame, which can be calculated by using local latitude information.
However, for marine strapdown INS, the ship continuously suffers from pitch and roll motions caused by sea waves and wind. The ship's angular velocity is consequently high, several orders of magnitude greater than the Earth rotation velocity. That is to say, we cannot obtain the earth rotation velocity from the gyroscopes measurements. Therefore, this typical coarse alignment approach is not applicable for marine strapdown INS in this case.
To address the above problem, a novel alignment approach [7] abandoning the direct use of the earth rotation velocity was proposed in the year 2000. This approach can allow initial alignment to be accurate and stable in less than 5 min at any sea conditions by examining the apparent movement of gravity in a fixed inertial frame. This initial alignment approach is used in the advanced Octans system products of the IxSea Company. Perhaps due to the protection of technical secrets, only a brief description of the approach is presented in [7], so unfortunately, we cannot obtain sufficient technical details for implementing this initial alignment approach. Originating from the basic idea of this alignment approach, many research studies on the initial alignment using the projection of gravity in the inertial frame have been presented since then [8][9][10][11][12][13][14][15][16].
From the perspective of the principle of alignment, the current research can be classified into two categories: approaches based on the indirect and direct use of the movement of gravity. In the indirect method [8][9][10][11][12][13], the initial attitude matrix is decomposed into the product of three attitude matrices. The difficulty is to determine one of them, that is, an attitude matrix between the two defined frames which are fixed frames in the inertial space. To determine the attitude matrix by solving Wahba's problem, two non-collinear vectors are constructed by the integrations of the projection of the gravity into the two defined frames over one period, and another two non-collinear vectors are generated by the integrations over another period. The results demonstrate that this approach can be applied for marine coarse alignment. An improved indirect method is proposed in [9] to decrease the variance of the alignment error.
The movement of gravity is embodied in the two non-collinear vectors, which is indirectly used in the alignment algorithm in [8][9][10][11][12][13]. However, this indirect method is complicated since it involves five reference frames and three attitude matrices in total. Furthermore, accurate latitude and longitude information is necessary for this method to calculate the final alignment results; that is to say, it is not a self-alignment method. The other alignment approach [14][15][16], namely the direct method, has none of these drawbacks.
In the direct method [14][15][16], the initial attitude matrix is decomposed into two attitude matrices. One is the attitude matrix from the body frame to the inertial frame. It can be obtained by the integral of the angular velocity measured by gyroscopes. The other is the attitude matrix from the inertial frame to the navigation frame. The gravity vector in the inertial frame and its derivative with time are directly used to calculate this attitude matrix. This direct method is more intuitional than the indirect method in [8][9][10][11][12][13]. The alignment algorithm is also more concise since only three frames and two attitude matrices are involved. Furthermore, it is a self-alignment without the dependence of any external information such as latitude and longitude.
For the direct method, an important but difficult task is to obtain the derivative of the gravity vector. In the current research [14][15][16], the approximate derivative of gravity is obtained by a difference operation based on discrete gravity measurements at different moments. In principle, exact data are required for the numerical differential procedures to obtain desirable results. Otherwise even a slight data error can lead a substantially large error in the numerical differential results [17,18]. However, the actual measurements inevitably contain types of error sources including offset, random noise, quantization error, etc. To solve this problem, [14,15] applied a low-pass filter while [16] used parameter identification and reconstruction to pre-process the measurement data.
Although adopting the preprocessing measures of data can achieve good results, it is useless for resolving the intrinsic problem of the numerical differential for non-exact data, which is a typical inverse problem [19]. The presence of the numerical differential is a hidden danger and can cause substantial error in the accuracy and stability of alignment results in practical applications.
In this paper, a novel alignment approach for marine strapdown INS is proposed. We follow the basic idea of the direct method [14][15][16], so our approach can provide a concise self-alignment algorithm. In terms of calculating the derivative of gravity, an innovative method is presented based on the trajectory fitting of the apparent movement of gravity in the inertial frame. Through the trajectory fitting, we can obtain the analytic expressions of the derivative of gravity so that the numerical differential can be abandoned.
The major contribution of this paper is that we propose a radically different method from the current research to calculate the derivative of gravity for the self-alignment. Consequently, the challenges of the numerical differential in calculating the derivative of gravity are fundamentally addressed. The details of the novel method are presented, and the results from the simulation and the experimental test verify the effectiveness of this novel algorithm.
The rest of this paper is organized as follows. In Section 2, the definitions of the frames used in this paper are presented. The general principle of the coarse alignment is explained in Section 3. Section 4 details the fitting of the spatial circle, namely the trajectory of gravity movement in the inertial frame. In Section 5, the determination of the final attitude matrix is presented. Experimental results and analyses are presented in Section 6. Finally, conclusions are summarized in Section 7.

Frame Definitions
The reference frames used in this paper are defined as follows [20]: The navigation frame (n-frame OX n Y n Z n ): this frame is a local geographic frame, whose origin O is set at the ship location, and its axes are aligned with the directions of North, East, and the local vertical (Up). (2) The body frame (b-frame OX b Y b Z b ): this frame is an orthogonal axis set, whose origin is the mass center of the ship, and its axes are aligned with the roll, pitch, and yaw axes of the ship.
The inertial frame (i-frame OX i Y i Z i ): this frame is the b-frame at initial time t 0 . After starting the system, this frame remains fixed, which belongs to the inertial space.
The frames mentioned above are shown in Figure 1. In this paper, a novel alignment approach for marine strapdown INS is proposed. We follow the basic idea of the direct method [14][15][16], so our approach can provide a concise self-alignment algorithm. In terms of calculating the derivative of gravity, an innovative method is presented based on the trajectory fitting of the apparent movement of gravity in the inertial frame. Through the trajectory fitting, we can obtain the analytic expressions of the derivative of gravity so that the numerical differential can be abandoned.
The major contribution of this paper is that we propose a radically different method from the current research to calculate the derivative of gravity for the self-alignment. Consequently, the challenges of the numerical differential in calculating the derivative of gravity are fundamentally addressed. The details of the novel method are presented, and the results from the simulation and the experimental test verify the effectiveness of this novel algorithm.
The rest of this paper is organized as follows. In Section 2, the definitions of the frames used in this paper are presented. The general principle of the coarse alignment is explained in Section 3. Section 4 details the fitting of the spatial circle, namely the trajectory of gravity movement in the inertial frame. In Section 5, the determination of the final attitude matrix is presented. Experimental results and analyses are presented in Section 6. Finally, conclusions are summarized in Section 7.

Frame Definitions
The reference frames used in this paper are defined as follows [20]: (1) The navigation frame (n-frame n n n OX Y Z ): this frame is a local geographic frame, whose origin O is set at the ship location, and its axes are aligned with the directions of North, East, and the local vertical (Up). OX Y Z ): this frame is an orthogonal axis set, whose origin is the mass center of the ship, and its axes are aligned with the roll, pitch, and yaw axes of the ship.
(3) The inertial frame (i-frame i i i OX Y Z ): this frame is the b-frame at initial time 0 t . After starting the system, this frame remains fixed, which belongs to the inertial space. The frames mentioned above are shown in Figure 1. Figure 1. Frame definitions and the movement of gravity in the inertial space.

Principle of the Coarse Alignment
As shown in Figure 1, the gravity vector expressed in the inertial frame (i-frame) changes with time. A vector in a frame coordinate is denoted by a point. The trajectory of the movement of

Principle of the Coarse Alignment
As shown in Figure 1, the gravity vector expressed in the inertial frame (i-frame) changes with time. A vector in a frame coordinate is denoted by a point. The trajectory of the movement of gravity in the i-frame is a circle due to the rotation of the Earth, which is represented by the red circle. By observing the movement of gravity, we can determine the attitude matrix between the i-frame and the n-frame. Figure 2 shows the relation between the i-frame and n-frame by using the gravity vector. As seen in Figure 2, the Up axis is parallel to the gravity vector expressed in the i-frame, the East axis lies along the derivative of the gravity vector, and the North axis is the vector product of the Up and East axes. e i U represents the direction of the Up axis in the i-frame, which is a 3-dimensional (3-D) unit vector along the Up axis by normalization. e i E represents the direction of the East axis in the i-frame, which is a 3-D unit vector along the East axis by normalization. e i N represents the direction of the North axis in the i-frame, which is a 3-D unit vector along the North axis by normalization. gravity in the i-frame is a circle due to the rotation of the Earth, which is represented by the red circle. By observing the movement of gravity, we can determine the attitude matrix between the i-frame and the n-frame. Figure 2 shows the relation between the i-frame and n-frame by using the gravity vector. As seen in Figure 2, the Up axis is parallel to the gravity vector expressed in the i-frame, the East axis lies along the derivative of the gravity vector, and the North axis is the vector product of the Up and East axes.
i U e represents the direction of the Up axis in the i-frame, which is a 3-dimensional (3-D) unit vector along the Up axis by normalization.
i E e represents the direction of the East axis in the i-frame, which is a 3-D unit vector along the East axis by normalization.
i N e represents the direction of the North axis in the i-frame, which is a 3-D unit vector along the North axis by normalization.
The trajectory of the movement of gravity in the inertial frame Figure 2. The relation between the i-frame and the n-frame by using the gravity vector.
Based on the above analyses and Figure 2, the unit vectors of the Up, East, and North axis expressed within the i-frame can be formalized by where, i g is the gravity vector expressed in the i-frame, and represents the calculation of vector module. It is easy to see that the unit vectors of the Up, East, and North axis expressed within the n-frame is an identical matrix, so we can obtain the following relationship between the unit vector of the Up, East, and North axis expressed within the i-frame and the n-frame Based on the above analyses and Figure 2, the unit vectors of the Up, East, and North axis expressed within the i-frame can be formalized by where, g i is the gravity vector expressed in the i-frame, and |||| represents the calculation of vector module. It is easy to see that the unit vectors of the Up, East, and North axis expressed within the n-frame is an identical matrix, so we can obtain the following relationship between the unit vector of the Up, East, and North axis expressed within the i-frame and the n-frame C n i is the attitude matrix between the i-frame and the n-frame, which can then be computed by The gyroscopes can sense the b-frame's angular velocity expressed in the i-frame, which is denoted by ω b ib . The attitude matrix C i b can be calculated by solving the following differential equation According to the definition of the i-frame, at the initial time the b-frame coincides with the i-frame, so the initial C i b is I 3×3 . While the ship is moored at sea for the initial alignment, the accelerometers can measure the sum of the gravity and interferential acceleration. After filtering out the interferential acceleration, we obtain the gravity in b-frame, g b , from the accelerometer measurements f b namely f b = −g b . Combined with the attitude matrix C i b , the gravity expressed in the i-frame g i can be written as In terms of filtering out the interferential acceleration, many researchers have studied and provided various approaches for alignment applications, for instance finite impulse response (FIR) low-pass digital filters in [14,15], a Hidden Markov model based Kalman filter in [10], and a recognition and reconstruction algorithm for gravity movement in [16]. There is no doubt that the filtering is necessary in this alignment application and a better performance of the filter can provide better alignment results. In this paper, we propose an improved alignment method, which has a lower sensitivity to the acceleration noise. The method of moving average is applied here for pre-processing the IMU measurements.
By substituting the g i and its derivative into Equation (1), the C n i can be obtained by using Equations (1) and (3). Combining that with the C i b from Equation (4), the coarse attitude matrix between the b-frame and the n-frame can be determined by Equation (6), and thus the initial alignment can be completed.
The rocking disturbances are contained in the gyroscope measurements. In traditional coarse alignment [2][3][4], the disturbances were expected to be eliminated. However, for the proposed approach, all the gyroscope measurements are needed as shown in Equations (4)(5)(6). From the perspective of principles, rocking disturbances cannot contaminate the alignment results. Therefore, the coarse alignment directly using the gravity can be suitable for marine strapdown INS.
To solve for the difficulty in calculating the derivative of gravity as explained in Section 1, a fitting method to the trajectory of the gravitational movement was developed. The general principle of the approach is summarized in Figure 3.
The trajectory of the gravity movement in the inertial frame is a circle, as illustrated in Figures 1  and 2. Therefore, the derivative of gravity is the tangent vector of the gravity on the circle. We first calculate the gravity expressed in the inertial frame by the IMU measurements. Then, a best fit of the circle to the gravity data is obtained by a least-squares method. The fitting can provide analytical expressions of the spatial circle. According to the expressions, we can derive the tangent vector of any point on the circle, i.e., the derivative of the gravity vector. Based on the accurate expression of the circle, this approach to calculating the gravity's derivative is robust while using noisy data. The details are presented in the following sections.

Least-Squares Fitting of the Spatial Circle
Least-squares fitting was used to estimate the optimal parameterized model of the fitted curve (or surface) by minimizing the sum of the square of geometric distances from the observed data to the fitted curve (or surface) [21].
The general model of a spatial circle can be expressed by the following system of equations.
where 0 Ax By Cz D     represents the plane that the circle lies on, and ( , , ) ABC is the normal vector of the plane.
represents the sphere surface that the circle belongs to. x y z R are the parameters to be estimated by the least-squares method. Considering the accuracy and robustness of the fitting results as well as practical implementation, we designed the following two-step processes for the fitting of the spatial circle.
1. Based on the data of gravity i g offered by Equation (5), the least-squares fitting of the plane is first accomplished. 2. The center of the sphere is approximately located at the plane, which generates a linear equality constraint for parameters 0 0 0 ( , , ) x y z . The sphere is then fitted by a constrained least-squares method.

Plane Fitting
The purpose of the plane fitting is to estimate the parameters A, B, C, and D in Equation (7). Using 3-D data, we can obtain

Least-Squares Fitting of the Spatial Circle
Least-squares fitting was used to estimate the optimal parameterized model of the fitted curve (or surface) by minimizing the sum of the square of geometric distances from the observed data to the fitted curve (or surface) [21].
The general model of a spatial circle can be expressed by the following system of equations.
where Ax + By + Cz + D = 0 represents the plane that the circle lies on, and (A, B, C) is the normal vector of the plane. (x − x 0 ) 2 + (y − y 0 ) 2 + (z − z 0 ) 2 = R 2 represents the sphere surface that the circle belongs to. (x 0 , y 0 , z 0 ) and R are the center and radius of the sphere, respectively. For the fitting of the circle, (A, B, C, D) and (x 0 , y 0 , z 0 , R) are the parameters to be estimated by the least-squares method. Considering the accuracy and robustness of the fitting results as well as practical implementation, we designed the following two-step processes for the fitting of the spatial circle.

1
Based on the data of gravity g i offered by Equation (5), the least-squares fitting of the plane is first accomplished. 2 The center of the sphere is approximately located at the plane, which generates a linear equality constraint for parameters (x 0 , y 0 , z 0 ). The sphere is then fitted by a constrained least-squares method.

Plane Fitting
The purpose of the plane fitting is to estimate the parameters A, B, C, and D in Equation (7). Using 3-D data, we can obtain       x 1 y 1 z 1 1 x 2 y 2 z 2 1 . . . . . . . . . . . .
x n y n z n 1 where (x 1 , y 1 , z 1 ), (x 2 , y 2 , z 2 ), . . . , (x n , y n , z n ) are the observed gravity data in Equation (5), and n represents the amount of the data. Equation (8) can be rewritten in the matrix form x n y n z n 1 Equation (9) is a homogeneous and overdetermined system of equations, in which a is the unknown to be solved. To compute its least-squares solution, the problem can be described as [22] min ||Ma|| 2 subject to ||a|| = 1 (11) where the objective function ||Ma|| 2 equals to where λ is the eigenvalue of M T M. The problem expressed by Equation (11) then transforms to the calculation of the minimal eigenvalue. Thus, the least-squares solution is the eigenvector corresponding to the smallest eigenvalue. We apply singular value decomposition (SVD) of M to compute the smallest eigenvector. M is decomposed using SVD into M = USV T where S is a diagonal matrix of the singular values of M, and U and V are the left-hand and right-hand eigenvector matrices, respectively. The least-squares solution of a is the singular vector in V corresponding to the smallest singular value.

Sphere Fitting
Determining the optimal fit of a sphere is a nonlinear least-squares problem, which may be solved by iterative minimization algorithms, such as Gauss-Newton or Levenberg-Marquardt [23]. The two methods normally converge in 5-10 iterations [24], but they are extremely sensitive to the presence of outliers. This approach is impractical due to its occasional divergence. Alternatively, we employed an approach that can reduce the problem to a linear least-squares problem. This approach has advantages in its implementation and computing costs [25].
We generalized the circle fitting by linear least squares in [23] to the sphere fitting. To find the best fit for a sphere in a least-squares sense to estimate the parameters x 0 , y 0 , z 0 and R in Equation (7), we can solve the problem where f (x 0 , y 0 , z 0 , R) is the residual described as At first sight, this problem is a nonlinear least-squares problem. However, f i (x 0 , y 0 , z 0 , R) can be written in a linear form by changing the parameters. Therefore, Equation (15) can be expanded as then the problem expressed by Equation (14) becomes or is expressed in a compact form of matrix where x n y n z n 1 . .
By transforming the parameters from (x 0 , y 0 , z 0 , R) to (X 0 , Y 0 , Z 0 , N), problem expressed by Equation (14) changes to a simple linear least-square problem expressed by Equation (19) which can be readily solved.
In addition, considering that the sphere center lies on the fitted plane in Section 4.1, the parameters (x 0 , y 0 , z 0 ) satisfy the following linear equality Based on Equations (17) and (21), we can obtain where Introducing the linear equality (21) as a constraint to the linear least-squares problem can improve the accuracy and robustness of the sphere fitting. The constrained least-squares problem is described by There are several algorithms for solving the linear least squares with linear equality constraints [26]. We utilize the algorithms using the Lagrangian multiplier method in [27], and then the solution to the problem expressed by Equation (24) is After estimating β, Equation (17) shows that the parameters (x 0 , y 0 , z 0 , R) are equal to Substituting the parameters a and β estimated in Sections 4.1 and 4.2 into Equation (7), we can determine a best fit of the spatial circle to the observed gravity data in a least-squares sense.

Projection of the Measured Gravity Data on the Fitted Circle
The fitted circle approximates the original gravity data in Equation (5), which is denoted by (x i , y i , z i ). The original data is noisy due to the IMU noise. It is required to know which point on the circle corresponds to the original data for two reasons. First, the point on the fitted circle is better than the original data in terms of the error variance. Thus, using the data on the circle instead of the original data is more accurate for determining the Up axis in Equation (1). Second, an exact point on the circle is needed to determine the East axis, by being substituted into the subsequent Equations (32) and (33). According to the least-squares criterion, the original data should correspond to its orthogonal projection point on the circle. The orthogonal projection of the original data onto the circle can be summarized by three steps.
1. Calculate the orthogonal projection point (x i , y i , z i ) onto the plane Ax + By + Cz + D = 0 fitted in Section 4 by      2. Provide the equation of the straight line through (x i , y i , z i ) and the circle center (x 0 , y 0 , z 0 ), which can be described by Then rewrite this line equation in the following form 3. Solve the system of equations (x − x 0 ) 2 + (y − y 0 ) 2 + (z − z 0 ) 2 = R 2 and Equation (30). Two intersection points can be obtained. Because the center (x 0 , y 0 , z 0 ) belongs to the fitted plane, the straight line also intersects with the fitted circle. Hence, the intersection point near (x i , y i , z i ) has the shortest distance to (x i , y i , z i ) as compared with the other points on the circle; that is to say, it is the orthogonal projection of the original data (x i , y i , z i ) onto the fitted circle.

Determination of the Initial Attitude Matrix
Instead of the original data, the orthogonal projection point represents the gravity vector in the i-frame, which is denoted by g i . We can directly apply g i to Equation (1) to determine the direction of the Up axis in the i-frame, namely e i U . As illustrated in Section 3, the East axis in the i-frame is parallel to the direction of the tangent vector of g i on the fitted circle. We first derive the expression of the tangent vector of any point on the circle described by Equation (7).
For the system described by Equation (7), assume x is an independent variable, and y and z are dependent variables on x (one also can assume y or z is the independent variable). Then, by deriving the derivatives with respect to x in the system described by Equation (7), we can obtain Sensors 2016, 16, 1714 10 of 16 Solving this system of equations, the partial derivative of y and z with respect to x can be obtained, which are Then, the tangent vector E of any point on the circle is The unit vector of the East axis in the i-frame, namely e i E in Equation (1), can be obtained by the normalization of E.
By using e i U and e i E obtained here, the initial attitude matrix can be determined by Equations (1)-(6).
Our coarse alignment approach can benefit the alignment performance in three aspects. First, rather than using the original gravity measurements in the i-frame, we use their orthogonal projection onto the fitted circle as the gravity vector. The noise of the original data can be hence eliminated to some extent, which can result in an improvement in the final alignment accuracy. Second, instead of numerical differentiation, the expression of the tangent vector is used to calculate the derivative of the gravity vector. This method can desensitize the results to data noise and hence lead to good robustness. Third, the accurate equations of the circle allow the alignment results to be stable for repeated experiments.

Coarse Alignment Using Simulated Data
To verify the performance of the proposed coarse alignment approach, simulations were conducted at three typical sea conditions (calm, moderate, and severe sea conditions). The simulation conditions were set as follows.
(1) Rocking motion The resulting attitude, i.e., pitch, roll, and heading angle, from the sea waves were modeled as the following sine function amplitude · sin (2πt/period) In the case of calm sea condition, the amplitude/period were set as The ship was simulated to be moored and the velocity was set to zero. (3) IMU biases The offset of the gyroscopes was set as 0.01 • /h, and the random white noise was set as 0.001 • /h standard deviation (SD). The offset of the accelerometers was set as 10 −4 g, and the random white noise was set as 10 −5 g SD.
The time of coarse alignment is 5 min, and the simulation step was 0.01 s. The generated acceleration (gravity) measurements were preprocessed by moving average for filtering out acceleration biases. The acceleration data was sampled every 10 s. Then, 30 sets of acceleration data were used for the circle fitting. For each sea condition, we conducted the simulation of coarse alignment 50 times. The obtained alignment results were used to verify the practical performance of the alignment. The results of our coarse alignment at the three sea conditions are shown below.
With the calm sea condition, the errors of the attitude alignment are shown in Figure 4 and their statistical analyses are listed in Table 1. In terms of the statistical analyses, the maximum and minimum of the alignment error results can reflect the alignment accuracy, and the standard deviation is related to the stability of the alignment results.  With the moderate sea condition, the errors of the attitude alignment are shown in Figure 5 and their statistical analyses are listed in Table 2.   The results show that, with the calm sea condition, the attitude error is less than 0.25 • and its maximum standard deviation is about 0.1 • .
With the moderate sea condition, the errors of the attitude alignment are shown in Figure 5 and their statistical analyses are listed in Table 2.
The results show that with the moderate sea condition, the attitude error is less than 0.34 • and its maximum standard deviation is about 0.1 • .
With the severe sea condition, the errors of the attitude alignment are shown in Figure 6 and their statistical analyses are listed in Table 3. With the moderate sea condition, the errors of the attitude alignment are shown in Figure 5 and their statistical analyses are listed in Table 2. The results show that with the moderate sea condition, the attitude error is less than 0.34° and its maximum standard deviation is about 0.1°.   With the severe sea condition, the errors of the attitude alignment are shown in Figure 6 and their statistical analyses are listed in Table 3. The results show that with the severe sea condition, the attitude error is less than 0.37° and its maximum standard deviation is about 0.1°.   The results show that with the severe sea condition, the attitude error is less than 0.37 • and its maximum standard deviation is about 0.1 • .
The results from the 50 simulation runs showed that the attitude errors of coarse alignment were less than 0.37 • and the mean values were roughly a few minutes of arc with the three sea conditions. Additionally, the standard deviation of pitch error, roll error, and heading error are about 0.002 • , 0.1 • , and 0.1 • , respectively.
It can also be seen that the maximum attitude error increases with the sea condition. With the severe sea condition, the large amplitude and high frequency of the attitude angle can enlarge the effect of the accelerometers' biases on the alignment error. Therefore, it is necessary to eliminate the acceleration disturbances caused by the rocking for practical applications.
The results imply that our coarse alignment approach is capable of being employed with any sea conditions. Additionally, the coarse alignment is significantly accurate and stable for marine applications.

Quasi-Static Alignment Using Trial Data
In addition to the simulations, practical experiments were conducted to test the performance of the coarse alignment. A moderate-precision IMU and a SGT-3 three-axis turntable were used for the experiments. The IMU was mounted on the turntable, as shown in Figure 7. The offset of the gyroscopes was 0.003 • /h, and the random white noise was 2.5 × 10 −4 • /h SD. The offset of the accelerometers was 10 −5 g, and the random white noise was 5 × 10 −6 g SD. The results imply that our coarse alignment approach is capable of being employed with any sea conditions. Additionally, the coarse alignment is significantly accurate and stable for marine applications.

Quasi-Static Alignment Using Trial Data
In addition to the simulations, practical experiments were conducted to test the performance of the coarse alignment. A moderate-precision IMU and a SGT-3 three-axis turntable were used for the experiments. The IMU was mounted on the turntable, as shown in Figure 7. The offset of the gyroscopes was 0.003 / h  , and the random white noise was  The coarse alignment lasted 5 min and sampling time was 0.01 s. During the coarse alignment, the turntable was quasi-static. We collected 50 sets of the measured data by IMU for testing the coarse alignment. For the turntable, an exact reference of the attitude was known. At the end of the alignment time, the attitude errors based on the 50 sets of trial data were determined and are shown in Figure 8. Their statistical analyses are presented in Table 4.  The coarse alignment lasted 5 min and sampling time was 0.01 s. During the coarse alignment, the turntable was quasi-static. We collected 50 sets of the measured data by IMU for testing the coarse alignment. For the turntable, an exact reference of the attitude was known. At the end of the alignment time, the attitude errors based on the 50 sets of trial data were determined and are shown in Figure 8. Their statistical analyses are presented in Table 4.
The coarse alignment lasted 5 min and sampling time was 0.01 s. During the coarse alignment, the turntable was quasi-static. We collected 50 sets of the measured data by IMU for testing the coarse alignment. For the turntable, an exact reference of the attitude was known. At the end of the alignment time, the attitude errors based on the 50 sets of trial data were determined and are shown in Figure 8. Their statistical analyses are presented in Table 4.   The results based on the trial data showed that the attitude errors of coarse alignment are less than 0.8 • and the mean values are roughly ten minutes of arc. Additionally, the standard deviation of pitch error, roll error, and heading error were about 0.004 • , 0.15 • , and 0.21 • , respectively. This performance satisfied the requirements of accuracy and stability, and demonstrated that the proposed coarse alignment can be applied for marine strapdown INS.

Conclusions
Here we have presented an innovative approach to coarse alignment for marine strapdown INS. The detailed approach is distinguished from that in the current published literature, which can address the difficulty in calculating the derivative of gravity. By using the trajectory fitting of the gravity movement in the inertial frame, we can examine the movement of gravity. The movement of the gravity vector can express the attitude matrix between the navigation frame and the inertial frame. The integration of the angular velocity measured by gyroscopes can provide the attitude matrix between the body frame and the inertial frame. Subsequently, the initial attitude matrix can be determined without any external information. This approach to coarse alignment allows the INS to function despite severe rocking disturbances. The experimental results have demonstrated that the coarse alignment can provide accurate and stable results with any sea conditions.