Next Article in Journal
A Simulation Framework for the Integration of Artificial Olfaction into Multi-Sensor Mobile Robots
Next Article in Special Issue
Improved Single Inertial-Sensor-Based Attitude Estimation during Walking Using Velocity-Aided Observation
Previous Article in Journal
Detecting Anomalous Transactions via an IoT Based Application: A Machine Learning Approach for Horse Racing Betting
Previous Article in Special Issue
Treadmill-to-Overground Mapping of Marker Trajectory for Treadmill-Based Continuous Gait Analysis
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Error Analysis of Accelerometer- and Magnetometer-Based Stationary Alignment

by
Felipe O. Silva
*,†,
Lucas P. S. Paiva
and
Gustavo S. Carvalho
Department of Automatics, Federal University of Lavras, Lavras 37200-900, Brazil
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Sensors 2021, 21(6), 2040; https://doi.org/10.3390/s21062040
Submission received: 21 January 2021 / Revised: 10 February 2021 / Accepted: 16 February 2021 / Published: 14 March 2021
(This article belongs to the Collection Inertial Sensors and Applications)

Abstract

:
This paper revisits the stationary attitude initialization problem, i.e., the stationary alignment, of Attitude and Heading Reference Systems (AHRSs). A detailed and comprehensive error analysis is proposed for four of the most representative accelerometer- and magnetometer-based stationary attitude determination methods, namely, the Three-Axis Attitude Determination (TRIAD), the QUaternion ESTimator (QUEST), the Factored Quaternion Algorithm (FQA), and the Arc-TANgent (ATAN). For the purpose of the error analysis, constant biases in the accelerometer and magnetometer measurements are considered (encompassing, hence, the effect of hard-iron magnetism), in addition to systematic errors in the local gravity and Earth magnetic field models (flux density magnitude, declination angle, and inclination angle). The contributions of this paper are novel closed-form formulae for the residual errors (normality, orthogonality, and alignment errors) developed in the computed Direction Cosine Matrices (DCM). As a consequence, analytical insight is provided into the problem, allowing us to properly compare the performance of the investigated alignment formulations (in terms of ultimate accuracy), as well as to remove some misleading conclusions reported in previous works. The adequacy of the proposed error analysis is validated through simulation and experimental results.

1. Introduction

Inertial Navigation Systems (INSs) are specialized dead-reckoning systems which provide a standalone navigation solution for attitude, velocity, and position [1]. Like any dead-reckoning system, INSs need to comply with a generally stationary initialization procedure, which, in the specific case of the attitude, is called alignment [2,3]. The very purpose of the alignment is to roughly estimate the attitude of the vehicle (or body) frame relative to the navigation frame, so that it can be used, and posteriorly corrected, by any filtering-based navigation/guidance stage deployed afterwards [4]. As explained by Thompson, Farrell, and Knight [5], the alignment requires the observation of, at least, two noncollinear vectors, whose components should be known in both body and navigation frames. Traditionally, the local gravity and Earth rate vectors, measured by stationary accelerometers and gyros, respectively, provided by an Inertial Measurement Unit (IMU), have been chosen for INS alignment purposes [6].
Despite the recognized efficiency of the aforementioned approach, it requires high quality (navigation-grade) gyros to be employed, which are expensive and contrast with the current expansion trend toward commercial low-cost navigation applications [7]. When low-cost IMUs are sought, a good candidate for replacing the Earth rate vector (for stationary alignment purposes) is the Earth magnetic flux density vector, which can be adequately observed by calibrated magnetometers [8]. When three-axial magnetometers are incorporated into an IMU, the resulting sensor set is often referred to as Attitude and Heading Reference System (AHRS) [9,10], or yet, Magnetic, Angular Rate, and Gravity (MARG) sensor array [11,12]. AHRSs have been successfully employed in a vast range of applications, including, but not limited to, Unmanned Aerial Vehicle (UAV) attitude control/stabilization [13], human body tracking [14,15], joint angle estimation [16], and mobile communications [17].
As in other INS-based integration approaches [1], AHRSs also resort to filtering schemes in order to have their inertial and magnetic sensor measurements optimally combined. The Extended Kalman filter (EKF) is probably the most employed integration architecture, wherein the attitude can be recursively propagated/updated based either on a linearized error model [1,18] or a nonlinear quaternion model [19,20]. Regardless of the adopted model, augmenting the states in order to estimate additional systematic/correlated noise contributions present in the sensor outputs is a recommended procedure [21]. Another modification that already proved to be effective consists in splitting the EKF in two separate filters, one devoted to tilt (pitch and roll) estimation and the other to that of heading [20,22]. Amongst the filtering-based AHRS integration architectures that do not employ EKFs (or its variants), stands out the Complementary Filter (CF), characterized by its efficient (although nonoptimal) operation and simplicity [23]. While much research effort has been dedicated to the investigation of these filtering-based AHRS integration architectures, only few works have studied the attitude initialization step, i.e., the alignment, that precedes any of them (either as a requirement for initializing the nonlinear attitude quaternion model or to guarantee the adequacy of using a small angle approximation for the attitude error states). As previously mentioned, the alignment is generally conducted in stationary conditions and is based on the observation of, at least, two noncollinear vectors. This paper, hence, is not aimed at investigating filtering-based attitude determination methods for AHRSs, but instead, it focuses on the particular problem of stationary AHRS alignment.
As recently analyzed by Fan, Li, and Liu [24], several attitude determination methods can be used to solve the AHRS stationary alignment problem. Among them, stands out the Three-Axis Attitude Determination (TRIAD)-based method, originally proposed by Black [25]. Despite being a straightforward analytical method, TRIAD has the drawback of only accommodating two vector observations per attitude computation. To solve this issue, the QUaternion ESTimator (QUEST) has been proposed by Shuster [26]. Based on Davenport’s work [27], QUEST optimally solved Wahba’s problem [28], becoming one of the most referred attitude determination methods so far [29]. When applied to the particular case of AHRS stationary alignment, however, QUEST proved to be unable to dissociate magnetometer errors from the estimation of pitch and roll [24,30,31]. A thorough investigation of the problem has not appeared in the literature afterwards. To overcome QUEST’s deficiency, Yun, Bachmann, and McGhee [32] proposed the Factored Quaternion Algorithm (FQA). Despite not being an optimal method, FQA demonstrated to be superior in accuracy (for roll and pitch), as well as 25% faster than QUEST. More recent, but still nonoptimal, alternatives to FQA are the Algebraic QUaternion Algorithm (AQUA) [11], the Super-fast Attitude of Accelerometer and Magnetometer (SAAM) [33], and the Simple-Structured Quaternion Estimator (SSQE) [34]. All of the latter claimed to reach the same accuracy as that of FQA but at an even lower computational cost.
Another attitude determination method, widely employed for AHRS stationary alignment purposes, is the Arc-TANgent (ATAN) solution [35]. Differently from TRIAD, QUEST, and FQA, which provide their attitude estimates in terms of Direction Cosine Matrices (DCM) and quaternions, respectively, ATAN calculates Euler angles directly, being hence susceptible to singularity problems [36]. Due to its simplicity, however, ATAN has been vastly used in the literature, both for the purpose of the AHRS stationary alignment [37,38,39,40], as for the attitude determination thereafter (i.e., in the navigation stage). In the latter case, ATAN’s attitude solution has been combined with solutions from different sensors/systems, both in a Complementary Filtering (CF) fashion [7,12,41,42] and Kalman Filtering (KF) fashion [19,43,44,45].
Even though the aforementioned AHRS stationary alignment approaches have been tested and validated in previous works, very little knowledge is available in the current literature about the analytic description of the residual errors remaining after the alignment or the benefits/drawbacks of each approach (from the analytical standpoint). In [46], for instance, a simplified overview of the main error sources affecting ATAN’s heading determination has been provided, but no mathematical background corroborated it. In [47], the analytical description of ATAN’s heading error has been proposed, as a function of the magnetometer (bias, scale factor, and cross-coupling) errors and the Earth magnetic model (declination angle) error. The drawbacks of the analysis, however, are: (a) it was only valid for two-axial (levelled) stationary AHRSs, and (b) the heading error equation was derived w.r.t. the magnetic heading, not to the true heading. Liu et al. [48] improved the aforementioned error analysis, by deriving a closed-form formula for ATAN’s heading error in a three-axial (nonlevelled) stationary AHRS application. Again, the analysis was confined to the magnetic heading error, which was equated as a function of the true pitch, roll and heading angles and not as a function of the magnetometer and Earth model parameter errors (which would have been more relevant). Even more simplified (or generic) analytical descriptions of ATAN’s (and QUEST’s) errors can be found in [1,29,44,49,50,51,52,53], which, however, do not provide much insight into the problem.
Apart from the above-mentioned works, most of the AHRS stationary alignment error analyses reported in the literature are solely based on numerical (simulated and/or experimental) results [54,55]. As an example, we may cite the work of Hu et al. [56], which numerically evaluated the impact of sensor cross-coupling and tilt errors in ATAN’s computed heading. Včelák et al. [57,58] improved Hu’s work, by also considering the detrimental effects of temperature variation. In [24,59,60,61,62], the authors numerically investigated the azimuth errors caused by changes in the magnetic field direction (i.e., in the declination and inclination angles), as well as variations (in the magnetic field magnitude) caused by common objects (i.e., hard-iron and soft-iron magnetisms). Sotak [38], Kuga and Carrara [30], and Del Rosario, Lovell and Redmond [42], in turn, evaluated the detrimental impact of accelerometer and magnetometer biases, as well as, scale factor errors, in ATAN, QUEST, and TRIAD, respectively. Bistrov [39], lastly, numerically analyzed the effect of sensor measurement noise in ATAN’s estimates. Even if the preceding numerical analyses are relevant, they are incomplete if not accompanied by a solid theoretical (analytical or stochastic) background. As a consequence, they can lead to misleading conclusions, as will be discussed throughout this paper.
To address the aforementioned issues, this paper presents an innovative and comprehensive analytical error description of four of the most employed attitude determination approaches for AHRS stationary alignment purposes, namely, TRIAD, QUEST, FQA, and ATAN. The main contribution of this paper is the derivation of novel closed-form formulae for the residual alignment errors developed in the corresponding DCM attitude solutions. For the purpose of the error analysis, errors in the accelerometers (constant biases), magnetometers (combined effect of constant biases and hard-iron magnetism), local gravity model, and Earth magnetic field model (flux density magnitude, declination angle, and inclination angle) are considered. Following the development of the closed-form formulae, a clarifying insight is provided into the AHRS stationary alignment problem, allowing us to compare the performance (in terms of ultimate accuracy) of the investigated algorithms properly, as well as to remove some misconceptions reported in previous works.
The remainder of this paper is organized as follows: Section 2 reviews TRIAD, QUEST, FQA, and ATAN algorithms. Section 3, in sequence, presents the procedures used to derive the novel closed-form formulae for the DCM residual errors, as well as the error analysis itself. Section 4 and Section 5 provide results from simulated and experimental tests, respectively, whilst Section 6 concludes the paper.

2. AHRS Alignment Formulations

This section reviews the most representative attitude determination methods employed for AHRS stationary alignment purposes. The discussion initiates with the Three-Axis Attitude Determination (TRIAD)-based method.

2.1. TRIAD Method

As briefly mentioned in Section 1, TRIAD is able to generate an estimate of the DCM relating body and navigation frames, from the observation of two arbitrary noncollinear vectors [25]. A suitable set of vectors for AHRS alignment purposes is the g P local plumb-bob gravity and the m E Earth magnetic flux density vectors. The analytical descriptions of each is straightforward in the navigation frame (In this paper, the navigation frame is represented by the superscript l and is defined with its x l , y l and z l axes pointing to the North, East and Down (NED) directions, respectively.) [1],
g P l = 0 0 g P T
m E l = B c α c γ s α c γ s γ T
where g P is the magnitude of the local plumb-bob gravity vector; B is the magnitude of the local Earth magnetic flux density vector; α and γ are the corresponding declination and inclination (dip) angles, respectively; and s and c stand for sine and cosine, respectively.
From (1) and (2), a third vector can be generated using the cross-product operator,
( g P × m E ) l = g P B s α c γ g P B c α c γ 0 T
Temporarily assuming that the AHRS is perfectly stationary and the accelerometers and magnetometers are uncorrupted, g P , m E and g P × m E can be resolved in the body frame (In this paper, the body frame is represented by the superscript b and is defined with its x b , y b and z b axes pointing forward, to the right-hand side and downward, all with respect to the vehicle on which the AHRS is mounted.) through the outputs of the sensors,
g P b a S F b = a x a y a z T
m E b m m b = m x m y m z T
( g P × m E ) b ( a S F × m m ) b = a z m y a y m z a x m z a z m x a y m x a x m y
where a S F is the specific force acceleration vector measured by the accelerometers; and m m is the total magnetic flux density vector measured by the magnetometers.
The C l b DCM, relating body and navigation frames, can be equated as,
𝓑 = C l b 𝓛
with,
𝓑 = g P b m E b ( g P × m E ) b
𝓛 = g P l m E l ( g P × m E ) l
From (7), it is obvious that,
C b l = ( 𝓛 1 ) T 𝓑 T
As (10) indicates, TRIAD’s attitude solution is directly given in terms of DCM and only requires elementary inverse/transpose operations over the 𝓑 and 𝓛 triads of vector observations.

2.2. QUEST Method

QUEST has been proposed by Shuster [26] aiming at solving Wahba’s problem [28]. As originally derived by Davenport [27], Wahba’s optimal solution (parametrized as a quaternion) consists of finding the normalized eigenvector corresponding to the largest eigenvalue of the following matrix,
K = S σ I Z Z T σ
with,
S = R + R T
σ = tr ( R )
Z = R 23 R 32 R 31 R 13 R 12 R 21 T
R = w a ( u a b · u a l )
where tr is the trace operator, R i j is the element of R in row i and column j, u a is an arbitrary unit vector, and w a is its associated weighting factor, subject to w a = 1 .
For AHRS stationary alignment purposes, suitable unit vectors are u g = g P / | g P | and u m = m E / | m E | , which transform the latter into an optimal two vector observation attitude determination problem [63]. For this particular problem, Shuster [26] already has demonstrated that the λ max maximum eigenvalue of (11) has a closed-form solution, which is given by,
λ m a x = w g 2 + 2 w g w m c ( θ g θ m ) + w g 2
with,
c ( θ g θ m ) = ( u g l · u m l ) ( u g b · u m b ) + | u g l × u m l | | u g b × u m b |
Given λ m a x , the computation of QUEST’s optimal quaternion (relating l and b frames) simplifies to [26],
q l b = 1 1 + | p | 2 1 p
with,
p = [ ( λ m a x + σ ) I S ] 1 Z
When QUEST’s optimal attitude is required in terms of DCM, it suffices doing [26],
C b l = ( q f 2 q · q ) I + 2 q q T + 2 q f ( q × )
where q f is the first element of q l b , and ( q × ) is the skew-symmetric matrix representation of vector q, formed from the three last elements of q l b .

2.3. FQA Method

The idea behind FQA is that a rigid body can be placed into any arbitrary attitude by performing three sequential rotations. In this sense, the AHRS stationary alignment problem can be broken into three pieces, each consisting on the computation of a rotation quaternion.
Let us consider, initially, the q θ quaternion, which is relative to the pitch rotation. As suggested by Yun, Bachmann, and McGuee [32], q θ can be computed as,
q θ = c ( θ / 2 ) 1 0 0 0 + s ( θ / 2 ) 0 0 1 0
with,
s ( θ / 2 ) = sign ( s θ ) ( 1 c θ ) / 2
c ( θ / 2 ) = ( 1 + c θ ) / 2
where sign() is the signum function that returns + 1 for positive arguments and 1 for negative arguments. To save computational effort, s θ and c θ do not need to be computed (in (22) and (23), respectively) using trigonometric functions, but instead,
s θ = a ¯ x
c θ = 1 s 2 θ
where,
a ¯ x a ¯ y a ¯ z T = u g b
Similar to the pitch quaternion, the q ϕ quaternion, relative to the roll rotation, can be computed as [32],
q ϕ = c ( ϕ / 2 ) 1 0 0 0 + s ( ϕ / 2 ) 0 1 0 0
where s ( ϕ / 2 ) and c ( ϕ / 2 ) are calculated as in (22) and (23), respectively (obviously replacing θ by ϕ ), with,
s ϕ = a ¯ y / c θ
c ϕ = a ¯ z / c θ
The q ψ heading quaternion, lastly, is computed as follows,
q ψ = c ( ψ / 2 ) 1 0 0 0 + s ( ψ / 2 ) 0 0 0 1
Once again, s ( ψ / 2 ) and c ( ψ / 2 ) are calculated as in (22) and (23), respectively (replacing θ by ψ ), with,
c ψ s ψ = M x M y M y M x N x N y
where N = [ N x N y ] T is the normalized Earth magnetic flux density vector in the horizontal plane, and M = [ M x M y ] T is the corresponding quantity measured by the magnetometers. As suggested by Yun, Bachmann, and McGuee [32], N and M can be calculated as follows,
N = 1 m N 2 + m E 2 m N m E
M = 1 e m x 2 + e m y 2 e m x e m y
where m N and m E are the north and east components of (2), respectively (In the rest of this paper, scalar variables accompanied by N, E and D subscripts indicate quantities in the north, east and down directions, respectively.); and e m x and e m y are second and third components of the e m m intermediate Earth frame quaternion, computed as
e m m = q θ q ϕ ( b m m ) q ϕ 1 q θ 1
with,
b m m = 0 m x m y m z
where ⊗ represents the quaternion multiplication operator.
Once q θ , q ϕ and q ψ have been computed, the q b l final attitude quaternion relating body and navigation frames can be obtained by simply doing [32],
q b l = q θ q ϕ q ψ
When FQA’s attitude solution is required in terms of DCM, it suffices doing,
C b l = q 1 2 + q 2 2 q 3 2 q 4 2 2 ( q 2 q 3 q 1 q 4 ) 2 ( q 2 q 4 + q 1 q 3 ) 2 ( q 2 q 3 + q 1 q 4 ) q 1 2 q 2 2 + q 3 2 q 4 2 2 ( q 3 q 4 q 1 q 2 ) 2 ( q 2 q 4 q 1 q 3 ) 2 ( q 3 q 4 + q 1 q 2 ) q 1 2 q 2 2 q 3 2 + q 4 2
where q i is the i-th element of q b l .

2.4. ATAN Method

Differently from the preceding methods, ATAN directly provides an estimate of the AHRS attitude through Euler angles. Basically, the rationale for the ϕ roll, θ pitch and ψ heading computation comes from the solution of the following equalities,
g P b = C l b g P l
m E b = C l b m E l
with C l b defined as [64],
C l b = c θ c ψ c θ s ψ s θ c ϕ s ψ + s ϕ s θ c ψ c ϕ c ψ + s ϕ s θ s ψ s ϕ c θ s ϕ s ψ + c ϕ s θ c ψ s ϕ c ψ + c ϕ s θ s ψ c ϕ c θ
Substitution of (1), (4) and (40) in (38), yields,
a x a y a z T = s θ s ϕ c θ c ϕ c θ T g P
whose solution, for ϕ and θ , is,
ϕ = arctan 2 ( a y / a z )
θ = arcsin ( a x / g P )
For the determination of the heading angle, (2), (5) and (40) can be substituted in (39), yielding, after rearrangement [1],
m x m y m z = c θ 0 s θ s ϕ s θ c ϕ s ϕ c θ c ϕ s θ s ϕ c ϕ c θ c ψ m c γ s ψ m c γ s γ B
with,
ψ m = ψ α
where ψ m is the magnetic heading, i.e., the heading w.r.t. the magnetic north. As derived in [1], the solution of (44), for ψ m , is,
ψ m = arctan 2 m y c ϕ + m z s ϕ m x c θ + m y s ϕ s θ + m z c ϕ s θ
If (42) and (43) are further substituted in (46), one has, after simplification [65],
ψ m = arctan 2 g P ( a z m y a y m z ) a y ( a y m x a x m y ) a z ( a x m z a z m x )
Once ψ m is obtained, and assuming α is known, ψ can be computed by direct substitution in (45). When ATAN’s DCM is required, it can be computed by substituting the previously obtained ϕ , θ , and ψ in the transposed version of (40).

3. Error Analysis

Regardless of the adopted approach, all AHRS stationary alignment algorithms presented in Section 2 rely on the same assumptions: vehicle perfectly stationary, sensors uncorrupted, and external information (local gravity and Earth magnetic field models) accurately known. Obviously, none of these assumptions is satisfied in real world conditions, which means that only a corrupted estimate of the true initial attitude can be obtained.
For the analysis that follows, let us assume that the true attitude is provided in terms of the C b l DCM. Without loss of generality, we can equate the corrupted C ^ b l to C b l as [66],
C ^ b l = C b l + δ C b l = ( I + E ) C b l
where I is the identity matrix, and δ C b l and E are two representations of C ^ b l errors.
As derived in [66,67,68], the following relations hold, to first order in E,
E = δ C b l ( C b l ) T = C ^ b l ( C b l ) T I = E s + E s s
with,
E s = E + E T 2 = C ^ b l ( C ^ b l ) T I 2 = η N o D o E o D η E o N o E o N η D
E s s = E E T 2 = 0 φ D φ E φ D 0 φ N φ E φ N 0
where η l , o l , and φ l are the DCM normality, orthogonality, and alignment error vectors, respectively.
To develop an innovative and comprehensive error analysis for the AHRS stationary alignment formulations presented in Section 2, we can expand their true C b l descriptions by linear perturbation technique,
δ C b l = C b l a x δ a x + C b l a y δ a y + C b l a z δ a z + C b l m x δ m x + C b l m y δ m y + C b l m z δ m z + C b l g P δ g P + C b l B δ B + C b l α δ α + C b l γ δ γ
where δ x represents the error (Throughout this paper, and for the purpose of the error analysis herein presented, the errors in the investigated variables (sensor readings and gravity/Earth magnetic field model parameters) are assumed to be constant, i.e., systematic biases.) in the generic (scalar or matrix) variable x.
After analytically solving (52), for each alignment method, the result, substituted in (49), and then in (50) and (51), can be used to produce novel closed-form formulae for the DCM residual normality, orthogonality, and alignment errors. Unfortunately, for the purpose of the error analysis herein proposed, an arbitrary orientation of the body frame w.r.t. the navigation frame produces closed-form formulae which are overly complicated and not readily amenable to physical interpretation. For simplification purposes hence, hereinafter, we will assume that body and navigation frames are aligned. Figure 1 summarizes the main steps involved in the process of deriving the closed-form formulae for the residual DCM errors for each investigated AHRS stationary alignment method.

3.1. TRIAD Method

Solving (52) for TRIAD’s C b l , and substituting the result (jointly with (10)) in (49) to (51), yields the following closed-form formulae for the residual errors,
η N = c α t γ g P δ a x + s α t γ g P δ a y s 2 α g P δ a z + c α B c γ δ m x + s α B c γ δ m y s 2 α g P δ g P + t γ δ γ 1 B δ B
η E = c α t γ g P δ a x + s α t γ g P δ a y c 2 α g P δ a z + c α B c γ δ m x + s α B c γ δ m y c 2 α g P δ g P + t γ δ γ 1 B δ B
η D = 1 g P δ a z 1 g P δ g P
o N = s ( 2 α ) 4 g P δ a x s 2 α 2 g P δ a y + s α t γ 2 g P δ a z + s α 2 B c γ δ m z + s α t γ 2 g P δ g P s α 2 δ γ s α t γ 2 B δ B
o E = c 2 α 2 g P δ a x s ( 2 α ) 4 g P δ a y + c α t γ 2 g P δ a z + c α 2 B c γ δ m z + c α t γ 2 g P δ g P c α 2 δ γ c α t γ 2 B δ B
o D = s ( 2 α ) 2 g P δ a z + s ( 2 α ) 2 g P δ g P
φ N = s ( 2 α ) 4 g P δ a x + c 2 α + 1 2 g P δ a y + s α t γ 2 g P δ a z + s α 2 B c γ δ m z + s α t γ 2 g P δ g P s α 2 δ γ s α t γ 2 B δ B
φ E = s 2 α + 1 2 g P δ a x + s ( 2 α ) 4 g P δ a y c α t γ 2 g P δ a z c α 2 B c γ δ m z c α t γ 2 g P δ g P + c α 2 δ γ + c α t γ 2 B δ B
φ D = s α t γ g P δ a x + c α t γ g P δ a y s α B c γ δ m x + c α B c γ δ m y δ α
where t stands for tangent.
As (53) to (58) indicate, residual normality and orthogonality errors are developed in TRIAD’s DCM. According to Choukroun et al. [69], these errors are highly undesirable, as they collaborate to propagate errors in the vector transformation operations conducted at high computational rates (as it is the case in AHRSs). As (50) indicates, however, the normality and orthogonality errors can be estimated, to first order, uniquely from the computed C ^ b l , and hence, they are easily compensated in practical implementations [70,71]. Alternatively, a more interesting application for the normality and orthogonality errors consists in using their first order estimates to produce coarse (or pseudo) estimates for some of the sensor biases. As (53) to (58) clearly indicate, there is a linear relationship between the residual η normality and o orthogonality errors, and the underlying δ a accelerometer and δ m magnetometer biases corrupting the alignment. By using the former (normality/orthogonality errors) as a set of “pseudo"-measurements clearly casts the set of equations (53) to (58) into a least-squares framework, for which solutions can be estimated in terms of some of the sensor biases. A similar idea has been successfully used in [72] for estimating accelerometer and gyro biases, in [73] for accelerometer and magnetometer biases and in [74] for accelerometer and dual-antennae Global Navigation Satellite System (GNSS) baseline biases.
Unlike the normality and orthogonality errors, which can be estimated and compensated, the alignment errors cannot, and hence, are of greater concern. As suggested in [75], this is due to an observability deficiency of the AHRS stationary alignment, which prevents the latter from being properly estimated (and compensated), even in posterior Kalman-filter-based integration schemes. As (59) to (61) indicate, almost all of the investigated error sources contribute to the development of alignment errors in TRIAD’s C ^ b l . It is worth noting, however, that the error terms weighed by s α tends to be less detrimental, since, as analyzed by Chulliat et al. [76], the value of α rarely exceeds ±20 deg in terrestrial applications. Despite this, caution is advised when analyzing the provided equations. In (59), for instance, even though δ m z is weighted by s α , its effect on φ N can be very significant, especially in the presence of hard-iron magnetism. As explained by Zhang and Yang [77], this magnetism is created by nearby man-made objects (including the navigational equipment itself) and is indistinguishable from the magnetometer bias. In the error analysis presented in this paper, hence, δ m represents the cumulative effect of constant magnetometer biases and hard-iron magnetism.
When the related literature is consulted, it is found that (59) to (61) also bring relevant clarifications about TRIAD’s accuracy (for AHRS stationary alignment purposes). Equations (59) and (60), for instance, clearly demonstrate that the north and east alignment errors are corrupted not only by accelerometer errors, as claimed in [24,32] but also by magnetometer, gravity, and Earth magnetic field model errors. Equation (61), in sequence, demonstrates that the down alignment error is corrupted by both accelerometer and magnetometer errors, although the former are generally negligible, compared to the latter (i.e., δ a / g P δ m / B ). None of these relations had been addressed in previous works [47,48]. Additionally, (61) provides conclusive evidence for the heading error behavior numerically reported in [59,60], according to which φ D seemed to vary, in magnitude, equal to the amount of the magnetic field deviation in the horizontal plane ( δ α ).
Lastly, it is worth noting that the error terms weighted by t γ in the preceding formulae tend to be negligible at low latitudes. As the latitude increases, however, also does the value of γ , causing the residual alignment errors to be dramatically magnified (this is the main reason why the alignment is not practical near the Earth poles). Geometrically speaking, at the poles, the gravity and Earth magnetic flux density vectors become collinear, invalidating the fundamental assumption behind TRIAD.

3.2. QUEST Method

If an error analysis, similar to the one conducted for TRIAD, is developed for QUEST, i.e., if we apply (52) in (20) and substitute the result in (49) to (51), the following closed-form formulae arise for the DCM residual errors,
η N = η E = η D = o N = o E = o D = 0
φ N = w g g P δ a y w m [ s ( 2 α ) 2 g P δ a x c 2 α g P δ a y + s ( 2 α ) s γ 2 B δ m x + s 2 α s γ B δ m y s α c γ B δ m z + s α δ γ ]
φ E = w g g P δ a x + w m [ s 2 α g P δ a x + s ( 2 α ) 2 g P δ a y + c 2 α s γ B δ m x + s ( 2 α ) s γ 2 B δ m y c α c γ B δ m z + c α δ γ ]
φ D = s α t γ g P δ a x + c α t γ g P δ a y s α B c γ δ m x + c α B c γ δ m y δ α
As (62) indicates, no normality and orthogonality errors are developed in QUEST’s DCM. This corroborates [67], which already had demonstrated that any quaternion parametrization of attitude, when converted to DCM, does not propagate normality and orthogonality errors (as long as the quaternion unit norm constraint is conserved). As previously mentioned, these errors are easily removed from the computed DCM, so, QUEST’s ability of not generating them is only significant from the computational efficiency standpoint. Equations (63) to (65), in turn, are more relevant, as they provide analytical proof to a behavior that, hitherto, had been only numerically demonstrated [32]. As (63) and (64) indicate (in comparison to (59) and (60)), QUEST’s north and east alignment errors are no longer corrupted by δ a z , δ g P and δ B error terms, but instead, by δ m x and δ m y . As already explained, this may be very detrimental to be accuracy of φ N and φ E , especially in the presence of hard-iron magnetism.
Another interesting evidence from (63) and (64) is: the detrimental impact of the magnetometer biases in φ N and φ E is basically dictated by w m , which, as already defined, is the weight QUEST attributes to the magnetometer vector observations. As a general rule, the larger w m , the worse (more biased) φ N and φ E will be. While this tells us that less biased estimates could be obtained by decreasing w m , at the limit, where w m 0 , the attitude solution would become indeterminate, as only one vector ( u g ) would remain being observed. These verifications are innovative and very enlightening, especially when compared to the results of other error analyses presented so far, whose results lack physical interpretation [29,53]. QUEST’s down alignment error, lastly, is expected to reach the same accuracy as that of TRIAD (see (61) and (65)), which corroborates the numerical results given in [32].

3.3. FQA/ATAN Methods

Closed-form formulae for the residual errors developed in FQA’s DCM can also be formulated. For this, it suffices applying (52) in (37), and substituting the result in (49) to (51). The outcomes are,
η N = η E = η D = o N = o E = o D = 0
φ N = 1 g P δ a y
φ E = 1 g P δ a x
φ D = s α t γ g P δ a x + c α t γ g P δ a y s α B c γ δ m x + c α B c γ δ m y δ α
As (66) indicates, no normality and orthogonality errors are developed in FQA’s DCM. Again, this corroborates theory [67], as FQA’s attitude solution is primarily given in terms of a quaternion. Equations (67) and (68), in turn, contrast to the conclusions of Yun, Bachmann, and McGuee [32], according to which FQA and TRIAD were said to have similar accuracies. As (67) to (69), in comparison to (59) and (61), clearly indicate, this is only true for φ D , as FQA’s φ N and φ E are not corrupted by magnetometer errors, neither by variations in the Earth magnetic field model. Another interesting verification is that FAQ’s φ N and φ E accuracies are similar to those of QUEST, for the particular scenario of w m = 0 . As this would result in an indeterminate solution for QUEST, is it straightforward to conclude therefore that FQA’s accuracy is globally superior to that of QUEST (and ergo, of TRIAD).
Finally, closed-form formulae for ATAN’s DCM residual errors can be also derived. In this case, (42), (43), (45), and (47) are substituted in (40) and the result, used for solving (52). After substitution in (49) and (51), the conclusions are: ATAN’s error equations are exactly the same as those derived for FQA (for brevity, therefore, they are not repeated here). This verification confirms the results numerically obtained in [42], according to which ATAN’s north and east alignment errors proved not to be corrupted by magnetometer errors, neither by variations in the Earth magnetic field model. Since ATAN provides the same accuracy as FQA, which is, by inspection, better than TRIAD and QUEST, also ATAN is superior to the latter. From the computational efficiency standpoint, however, FQA can still be considered superior to ATAN, since, as suggested in [32], it avoids the explicit computation of trigonometric functions.

4. Simulation Results

To evaluate the innovative error analysis presented in Section 3, as well as the outlined verifications, a simulated test was carried out. For the purpose of the test, accelerometer and magnetometer data were generated at 100 Hz, considering the ideal scenario of body and navigation frames perfectly aligned. The accelerometers and magnetometers were purposely corrupted by 5 mg and 5 mG of constant biases, as well as by white random noises with root Power Spectral Densities (PSDs) of 0.1 mg/ Hz and 0.2 mG/ Hz , respectively. These values were chosen as they correspond to typical error parameters of automotive-grade AHRSs found in manufacturer data-sheets (see Section 5) and textbooks [1]. The sensors were simulated at latitude −23.2131 deg, longitude −45.8606 deg, and altitude 629 m. The local gravity acceleration and Earth magnetic field were calculated according to the models described in [76,78], respectively. Corresponding errors (constant biases) of 0.005 mg, 0.1 mG, 0.1 deg, and 0.1 deg were purposely added in the values of gravity, Earth magnetic flux density magnitude, declination angle, and inclination angle, respectively.
For the purpose of the test, we compared TRIAD, QUEST, FQA, and ATAN, in terms of the achieved AHRS stationry alignment accuracies. For QUEST, particularly, values of w g = 0.75 and w m = 0.25 were chosen, following the methodology suggested in [79,80]. Based on the simulated values for the sensor, gravity, and Earth magnetic field errors, the closed-form formulae derived in Section 3 were used to generate predictions for the DCM residual normality, orthogonality, and alignment errors (Table 1). Figure 2 depicts the estimated errors as function of time, where a continuous averaging of the sensor outputs has been adopted, in order to smooth the noise. Table 2 summarizes the errors estimated at the completion of the simulated test, as well as the associated standard uncertainties (The standard uncertainties represent the coverage intervals within which the true values of the estimates are expected to lie (with a level of confidence of 95%, i.e., coverage factor of 2 [81]). In this paper, the standard uncertainties have been computed by dividing the standard deviations of the estimates (characterizing their dispersion about their mean values) by the square root of the number of observations. According to [81], this corresponds to the Type A evaluation of standard uncertainty, i.e., standard uncertainties obtained experimentally, by the statistical analysis of series of observations.).
As can be seen, the estimated errors nicely agree with the predicted ones (confidence intervals experimentally obtained in Table 2 encompass the predicted values in Table 1), which validates the proposed error analysis. Figure 2a–f, in particular, indicate that only TRIAD develops normality and orthogonality errors in the computed DCM (as expected). Figure 2g,h, in turn, demonstrate that, while FQA’s and ATAN’s north and east alignment errors are only corrupted by accelerometer errors, those from TRIAD and QUEST also depend on magnetometer biases, as well as on gravity and Earth magnetic field model errors. In the specific case of QUEST, the north and east alignment errors are found to be further dependent on w m . Lastly, Figure 2i evidences that, as predicted, no difference exists, in terms of accuracy, between the down alignment error developed in TRIAD’s, QUEST’s, FQA’s, and ATAN’s computed DCM.
Regarding the standard uncertainties of the estimated DCM errors, Table 2 clearly shows that larger (i.e., more uncertain) values are expected to exist for errors that depend on magnetometer readings (see φ N and φ E for TRIAD and QUEST, for instance). A statistical and more appropriate way of characterizing the dispersions (i.e., the standard uncertainties) of the estimated DCM errors around their predicted values is using a Monte Carlo simulation. To perform the latter, 10,000 statistically independent simulated runs (of ten seconds each) were repeated (This number of Monte Carlo runs has been chosen based on a trade-off between its ability of adequately recuperating the Probability Density Function (PDF) of the simulated noise and the computational effort. It is in agreement with previous works published in the area [19,43,50,82,83,84], as well as with [85].), whereas the main input parameters for the simulation were allowed to vary (randomly) according to the standard deviations summarized in Table 3. The predicted and estimated DCM errors obtained at the completion of each run were saved and subtracted from one another. The mean values and standard uncertainties of the formed differences (deviations) are summarized in Table 4.
As can be seen, the mean values of all DCM error deviations (estimated minus predicted values) are close zero, indicating that the closed-form formulae derived in Section 3 are statically reliable (unbiased) estimators of the current DCM residual errors. The obtained standard uncertainties, in turn, follow the same pattern evidenced for the standard uncertainties of Table 2, i.e., closed-form formulae that are independent on magnetometer errors are expected to be less uncertain.

5. Experimental Results

To verify the results achieved in the simulated tests, an experimental test was conducted. The employed AHRS, namely, an automotive-grade M2 unit from Innalabs®, was mounted aligned to the navigation frame on a semispherical three degrees of freedom (3-DOF) air bearing [86], as depicted in Figure 3. The test was conducted at the Brazilian National Institute for Space Research (INPE), in São José dos Campos, Brazil. The geographic coordinates of the site are: −23.2113 deg of latitude, −45.1408 of longitude, and 641 m of altitude.
To compensate the sensor data (magnetometers, in particular) for residual scale factor/cross-coupling errors and soft-iron magnetism, which are not accounted for in the error analysis presented in this paper, the latter were precalibrated using the algorithm proposed in [87]. In sequence, a stationary sample of the precalibrated data was continuously averaged over about ten seconds (producing a ¯ S F b and m ¯ m b ), and estimates for the g ^ P l local gravity and m ^ E l Earth magnetic flux density vectors were computed (using the models described in [78,88], respectively). Since, in the concerned test, the AHRS was mounted aligned to the navigation frame, the following relations held (The accuracy in these approximations is basically limited to the accuracy of the semispherical 3-DOF air bearing rotating mechanisms [86].): a ¯ S F b g ^ P l and m ¯ m b m ^ E l . Thus, by numerically subtracting g ^ P l and m ^ E l from the calibrated a ¯ S F b and m ¯ m b , respectively, coarse estimates for the residual constant biases corrupting the outputs of the accelerometers and magnetometers were obtained, namely,
δ a ^ S F b = 0.4736 1.5073 1.8667 T mg
δ m ^ m b = 10.5987 2.5724 4.1518 T mG
By substituting (70) and (71) into the closed-form formulae derived in Section 3 and also (purposely) considering the existence of errors (constant biases) of 0.005 mg, 0.1 mG, 0.1 deg, and 0.1 deg, in the values of gravity, and Earth magnetic flux density magnitude, declination angle, and inclination angle, respectively, predictions were obtained for the DCM residual errors in the experimental test (Table 5). Figure 4 presents the estimated errors as function of time, while Table 6 summarizes the errors at the completion of the experimental test alongside their standard uncertainties.
As can be noticed, the estimated errors corroborate the predicted ones, following the same pattern evidenced in the single-run simulated test. Differently from Section 4, we verify now that the confidence intervals fail to encompass all the predicted values (in general, by a very small amount). This, however, is consistent, as the predicted DCM errors were not computed based on the true (and in this case, unknown) values of the sensor biases (as done in Section 4) but instead only on the coarse estimates of (70) and (71). These results, hence, confirm the validity of the innovative error analysis proposed in this paper, as well as the outlined verifications about TRIAD’s, QUEST’s, FQA’s, and ATAN’s accuracies for AHRS stationary alignment purposes.

6. Conclusions

In this paper, four well established attitude determination algorithms for Attitude and Heading Reference Systems (AHRSs) stationary alignment have been reviewed, namely, the Three-Axis Attitude Determination (TRIAD)-based method, the QUaternion ESTimator (QUEST), the Factored Quaternion Algorithm (FQA), and the Arc-TANgent (ATAN) solution. A detailed and innovative error analysis has been proposed, considering the ideal assumption of body and navigation frames perfectly aligned. For the purpose of the latter, we considered errors in the accelerometer/magnetometer readings (cumulative effect of constant biases and hard-iron magnetism) and in the gravity/Earth magnetic field models (flux density magnitude, declination angle, and inclination angle). As the main contribution of this study, novel closed-form formulae for the Direction Cosine Matrix (DCM) residual errors (normality, orthogonality, and alignment errors) were analytically derived. These formulae brought analytical insight into the problem, allowing us to compare the performance of the investigated alignment formulations (in terms of ultimate accuracy) as well as to remove some misconceptions reported in previous works.
As main conclusions of this investigation, we may summarize: (a) TRIAD is the sole algorithm producing normality and orthogonality errors in the computed DCM; (b) FQA’s and ATAN’s north and east alignment errors are uniquely caused by y- and x-axis accelerometer biases, respectively; (c) larger north and east alignment errors are expected to exist when using TRIAD and QUEST, as the latter are also function of the magnetometer biases, the inclination angle error, and the error in the Earth magnetic flux density magnitude; (d) in the specific case of QUEST, the detrimental effect of magnetometer biases in the north and east alignment errors are weighted by w m ; (e) the DCM down alignment error is the same for all investigated approaches and is mainly caused by x- and y-axis magnetometer biases, as well as the declination angle error.
As suggestions for future work, the authors plan to expand their error analysis for the generic case of body and navigation frames arbitrarily oriented, which is more relevant for practical implementations. In this sense, it is found that a procedure similar to the one presented in [72,89] can be adopted. Moreover, the consideration of scale factor/cross-coupling errors (which would include misalignments and soft-iron effects for the magnetometers) also seems a topic worthy of future investigation.

Author Contributions

Conceptualization, F.O.S. and L.P.S.P.; methodology, F.O.S.; software, F.O.S.; validation, F.O.S., L.P.S.P. and G.S.C.; formal analysis, F.O.S. and L.P.S.P.; investigation, F.O.S. and L.P.S.P.; writing—original draft preparation, F.O.S.; writing—review and editing, L.P.S.P. and G.S.C.; supervision, F.O.S.; project administration, F.O.S.; funding acquisition, F.O.S. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Coordination for the Improvement of Higher Education Personnel (CAPES), under grant 88881.169927/2018-01, the Brazilian Agricultural Research Corporation (EMBRAPA), under grant 212-20/2018, the Minas Gerais Research Foundation (FAPEMIG), under grant CAG-APQ-01449-17, the Brazilian National Council for Scientific and Technological Development (CNPq), under grant 313160/2019-8, and the Federal University of Lavras (UFLA).

Acknowledgments

The authors thank Hélio K. Kuga, from the National Institute for Space Research (INPE), for providing the data employed in the experimental tests; Ettore A. de Barros, from University of São Paulo (USP), for contributing to the error analysis derivation; and Jay A. Farrell, from the University of California Riverside (UCR), for the valuable comments on the manuscript and suggestions of improvements.

Conflicts of Interest

The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, or in the decision to publish the results.

References

  1. Groves, P.D. Principles of GNSS, Inertial, and Multisensor Integrated Navigation Systems; Artech House Remote Sensing Library: London, UK, 2013. [Google Scholar]
  2. Chang, L.; Hu, B.; Li, Y. Backtracking Integration for Fast Attitude Determination-Based Initial Alignment. IEEE Trans. Instrum. Meas. 2015, 64, 795–803. [Google Scholar] [CrossRef]
  3. Chang, L.; Li, J.; Chen, S. Initial Alignment by Attitude Estimation for Strapdown Inertial Navigation Systems. IEEE Trans. Instrum. Meas. 2015, 64, 784–794. [Google Scholar] [CrossRef]
  4. Rogers, R.M. Applied Mathematics in Integrated Navigation Systems; American Institute of Aeronautics and Astronautics: Reston, VA, USA, 2007. [Google Scholar]
  5. Thompson, E.H.; Farrell, J.L.; Knight, J.W. Alignment Methods for Strapdown Inertial Systems. J. Spacecr. Rockets 1966, 3, 1432–1434. [Google Scholar] [CrossRef]
  6. Bar-Itzhack, I.Y.; Berman, N. Control theoretic approach to inertial navigation systems. J. Guid. Control Dynam. 1988, 11, 237–245. [Google Scholar] [CrossRef]
  7. Ali, A.; El-Sheimy, N. Low-Cost MEMS-Based Pedestrian Navigation Technique for GPS-Denied Areas. J. Sens. 2013, 2013, 197090. [Google Scholar] [CrossRef] [Green Version]
  8. Särkkä, O.; Nieminem, T.; Kettunen, L. A Multi-Position Calibration Method for Consumer-Grade Accelerometers, Gyroscopes, and Magnetometers to Field Conditions. IEEE Sens. J. 2017, 17, 3470–3481. [Google Scholar] [CrossRef]
  9. Li, W.; Wu, W.; Wang, J.; Wu, M. A novel backtracking navigation scheme for Autonomous Underwater Vehicles. Measurement 2014, 47, 496–504. [Google Scholar] [CrossRef]
  10. Zhang, Z.; Yang, G. Calibration of Miniature Inertial and Magnetic Sensor Units for Robust Attitude Estimation. IEEE Trans. Instrum. Meas. 2014, 63, 711–718. [Google Scholar] [CrossRef]
  11. Valenti, R.G.; Dryanovski, I.; Xiao, J. A Linear Kalman Filter for MARG Orientation Estimation Using the Algebraic Quaternion Algorithm. IEEE Trans. Instrum. Meas. 2016, 65, 467–481. [Google Scholar] [CrossRef]
  12. Wu, J.; Zhou, Z.; Chen, J.; Fourati, H.; Li, R. Fast Complementary Filter for Attitude Estimation Using Low-Cost MARG Sensors. IEEE Sens. J. 2016, 16, 6997–7007. [Google Scholar] [CrossRef]
  13. Koksal, N.; Jalalmaab, M.; Fidan, B. Adaptive Linear Quadratic Attitude Tracking Control of a Quadrotor UAV Based on IMU Sensor Data Fusion. Sensors 2019, 19, 46. [Google Scholar] [CrossRef] [Green Version]
  14. Ligorio, G.; Bergamini, E.; Pasciuto, I.; Vannozzi, G.; Cappozzo, A.; Sabatini, A.M. Assessing the Performance of Sensor Fusion Methods: Application to Magnetic-Inertial-Based Human Body Tracking. Sensors 2016, 16, 153. [Google Scholar] [CrossRef]
  15. Wittmann, F.; Lambercy, O.; Gassert, R. Magnetometer-Based Drift Correction During Rest in IMU Arm Motion Tracking. Sensors 2019, 19, 1312. [Google Scholar] [CrossRef] [Green Version]
  16. Lee, J.K.; Jeon, T.H. Magnetic Condition-Independent 3D Joint Angle Estimation Using Inertial Sensors and Kinematic Constraints. Sensors 2019, 19, 5522. [Google Scholar] [CrossRef] [Green Version]
  17. Patonis, P.; Patias, P.; Tziavos, I.N.; Rossikopoulos, D.; Margaritis, K.G. A Fusion Method for Combining Low-Cost IMU/Magnetometer Outputs for Use in Applications on Mobile Devices. Sensors 2018, 18, 2616. [Google Scholar] [CrossRef] [Green Version]
  18. Feng, G.; Wu, W.; Wang, J. Observability Analysis of a Matrix Kalman Filter-Based Navigation System Using Visual/Inertial/Magnetic Sensors. Sensors 2012, 12, 8877–8894. [Google Scholar] [CrossRef] [Green Version]
  19. Sabatini, A.M. Kalman-Filter-Based Orientation Determination Using Inertial/Magnetic Sensors: Observability Analysis and Performance Evaluation. Sensors 2011, 11, 9182–9206. [Google Scholar] [CrossRef]
  20. Valenti, R.G.; Dryanovski, I.; Xiao, J. Keeping a good attitude: A quaternion-based orientation filter for IMUs and MARGs. Sensors 2015, 15, 19303–19330. [Google Scholar] [CrossRef] [Green Version]
  21. Sabatini, A.M. Variable-State-Dimension Kalman-Based Filter for Orientation Determination Using Inertial and Magnetic Sensors. Sensors 2012, 12, 8491–8506. [Google Scholar] [CrossRef] [PubMed]
  22. Zhang, S.; Yu, S.; Liu, C.; Yaun, X.; Liu, S. A Dual-Linear Kalman Filter for Real-Time Orientation Determination System Using Low-Cost MEMS Sensors. Sensors 2016, 16, 264. [Google Scholar] [CrossRef]
  23. Bergamini, E.; Ligorio, G.; Summa, A.; Vannozzi, G.; Cappozzo, A.; Sabatini, A.M. Estimating Orientation Using Magnetic and Inertial Sensors and Different Sensor Fusion Approaches: Accuracy Assessment in Manual and Locomotion Tasks. Sensors 2014, 14, 18625–18649. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  24. Fan, B.; Li, Q.; Liu, T. How Magnetic Disturbance Influences the Attitude and Heading in Magnetic and Inertial Sensor-Based Orientation Estimation. Sensors 2018, 18, 76. [Google Scholar] [CrossRef] [Green Version]
  25. Black, H.D. A Passive System for Determining the Attitude of a Satellite. AIAA J. 1964, 2, 1350–1351. [Google Scholar] [CrossRef]
  26. Shuster, M.D.; Oh, S.D. Three-Axis Attitude Determination from Vector Observations. J. Guid. Control 1981, 4, 70–77. [Google Scholar] [CrossRef]
  27. Davenport, P.B. A Vector Approach to the Algebra of Rotations with Applications; D 4696; NASA: Greenbelt, MD, USA, 1968.
  28. Wahba, G. A Least Squares Estimate of Satellite Attitude. SIAM Rev. 1966, 8, 384–386. [Google Scholar] [CrossRef]
  29. Markley, F.L.; Crassidis, J.L. Fundamentals of Spacecraft Attitude Determination and Control; Springer: New York, NY, USA, 2014. [Google Scholar]
  30. Kuga, H.K.; Carrara, V. Attitude Determination with Magnetometers and Accelerometers to Use in Satellite Simulator. Math. Probl. Eng. 2013, 2013, 401282. [Google Scholar] [CrossRef] [Green Version]
  31. Wu, J.; Wang, T.; Zhou, Z.; Yin, H.; Li, R. Analytic accelerometer-magnetometer attitude determination without reference information. Int. J. Micro Air Veh. 2018, 10, 318–329. [Google Scholar] [CrossRef] [Green Version]
  32. Yun, X.; Bachmann, E.R.; McGhee, R.B. A Simplified Quaternion-Based Algorithm for Orientation Estimation From Earth Gravity and Magnetic Field Measurements. IEEE Trans. Instrum. Meas. 2008, 57, 638–650. [Google Scholar]
  33. Wu, J.; Zhou, Z.; Fourati, H.; Cheng, Y. A Super Fast Attitude Determination Algorithm for Consumer-Level Accelerometer and Magnetometer. IEEE Trans. Consum. Electr. 2018, 64, 375–381. [Google Scholar] [CrossRef]
  34. Suh, Y.S. Simple-structured quaternion estimator separating inertial and magnetic sensor effects. IEEE Trans. Aerosp. Electron. Syst. 2019, 55, 2698–2706. [Google Scholar] [CrossRef]
  35. Caruso, M. Applications of Magnetoresistive Sensors in Navigation Systems. Sens. Actuators SAE SP-1220 1997, 1, 15–21. [Google Scholar]
  36. Farrell, J.A. Aided Navigation: GPS with High Rate Sensors; McGraw-Hill Companies: New York, NY, USA, 2008. [Google Scholar]
  37. Gebre-Egziabher, D.; Hayward, R.C.; Powell, J.D. Design of Multi-Sensor Attitude Determination Systems. IEEE Trans. Aerosp. Electron. Syst. 2004, 40, 627–649. [Google Scholar] [CrossRef]
  38. Sotak, M. Testing the Coarse Alignment Algorithm Using Rotation Platform. Acta Polytech. Hung. 2010, 7, 87–107. [Google Scholar]
  39. Bistrov, V. Performance Analysis of Alignment Process of MEMS IMU. Int. J. Navig. Obs. 2012, 2012, 1–11. [Google Scholar] [CrossRef]
  40. Kluga, J.; Kluga, A.; Vecvagars, V. Magnetometer Error Models of Low-Cost Land Vehicle Navigation System. Elektron. Elektrotech. 2016, 22, 57–60. [Google Scholar] [CrossRef] [Green Version]
  41. Zhu, R.; Zhou, Z. A Small Low-Cost Hybrid Orientation System and Its Error Analysis. IEEE Sens. J. 2009, 9, 223–230. [Google Scholar] [CrossRef]
  42. Del Rosario, M.B.; Lovell, N.H.; Redmond, S.J. Quaternion-Based Complementary Filter for Attitude Determination of a Smartphone. IEEE Sens. J. 2016, 16, 6008–6017. [Google Scholar] [CrossRef]
  43. Sabatini, A.M. Quaternion-Based Extended Kalman Filter for Determining Orientation by Inertial and Magnetic Sensing. IEEE Trans. Bio-Med. Eng. 2006, 53, 1346–1356. [Google Scholar] [CrossRef]
  44. Kaniewski, P.; Kazubek, J. Integrated System for Heading Determination. Acta Phys. Pol. A 2009, 116, 325–330. [Google Scholar] [CrossRef]
  45. Li, W.; Wang, J. Effective Adaptive Kalman Filter for MEMS-IMU/Magnetometers Integrated Attitude and Heading Reference Systems. J. Navigation 2013, 66, 99–113. [Google Scholar] [CrossRef] [Green Version]
  46. Caruso, M.J. Applications of Magnetic Sensors for Low Cost Compass Systems. In Proceedings of the IEEE 2000, Position Location and Navigation Symposium (Cat. No.00CH37062), San Diego, CA, USA, 13–16 March 2000; pp. 177–184. [Google Scholar]
  47. Liu, S.W.; Zhang, Z.N. A high accuracy magnetic heading system composed of fluxgate magnetometers and a microcomputer. In Proceedings of the IEEE National Aerospace and Electronics Conference, Dayton, OH, USA, 22–26 May 1989; pp. 148–152. [Google Scholar]
  48. Liu, S.W.; Zhaung, J.D.; Hung, J.C.; Wang, H.N. Compass deviation analysis and compensation for a three-axis strapdown magnetic heading system. In IFAC 11th Triennial World Congress; IFAC: Tallinn, Estonia, 1990; pp. 471–474. [Google Scholar]
  49. Kayton, M.; Fried, W.R. Avionics Navigation Systems; John Wiley & Sons: New York, NY, USA, 1997. [Google Scholar]
  50. Gebre-Egziabher, D.; Elkaim, G.H.; Powell, J.D.; Parkinson, B.W. Calibration of Strapdown Magnetometers in the Magnetic Field Domain. J. Aerosp. Eng. 2006, 19, 1–45. [Google Scholar] [CrossRef]
  51. Chen, W.; Chen, R.; Chen, Y.; Kuusniemi, H.; Wang, J. An Effective Pedestrian Dead Reckoning Algorithm Using a Unified Heading Error Model. In Proceedings of the Position Location and Navigation Symposium, Indian Wells, CA, USA, 4–6 May 2010; pp. 340–347. [Google Scholar]
  52. Li, X.; Li, Z. Vector-Aided In-Field Calibration Method for Low-End MEMS Gyros in Attitude and Heading Reference Systems. IEEE Trans. Instrum. Meas. 2014, 63, 2675–2681. [Google Scholar] [CrossRef]
  53. Chang, G.; Xu, T.; Wang, Q. Error analysis of Davenport’s q method. Automatica 2017, 75, 217–220. [Google Scholar] [CrossRef]
  54. Kirkko-Jaakkola, M.; Collin, J.; Takala, J. Bias Prediction for MEMS Gyroscopes. IEEE Sens. J. 2012, 12, 2157–2163. [Google Scholar] [CrossRef]
  55. Wu, Y.; Luo, S. On Misalignment Between Magnetometer and Inertial Sensors. IEEE Sens. J. 2016, 16, 6288–6297. [Google Scholar] [CrossRef]
  56. Hu, X.; Liu, Y.; Wang, Y.; Yan, D. Errors Analysis and Compensation of Low Cost Attitude Measurement System. In Proceedings of the 51th World Congress on Intelligent Control and Automation, Hangzhou, China, 14–18 June 2004; pp. 3688–3691. [Google Scholar]
  57. Včelák, J.; Ripka, P.; Kubík, J.; Platil, A.; Kašpar, P. AMR navigation systems and methods of their calibration. Sens. Actuators A Phy. 2006, 123–124, 122–128. [Google Scholar] [CrossRef]
  58. Včelák, J.; Ripka, P.; Platil, A.; Kubík, J.; Kašpar, P. Errors of AMR compass and methods of their compensation. Sens. Actuators A Phy. 2006, 129, 53–57. [Google Scholar] [CrossRef]
  59. Bachmann, E.R.; Yun, X.; Peterson, C.W. An Investigation of the Effects of Magnetic Variations on Inertial/Magnetic Orientation Sensors. In Proceedings of the IEEE International Conference on Robotics and Automation, New Orleans, LA, USA, 26 April–1 May 2004; pp. 1115–1122. [Google Scholar]
  60. Bachmann, E.R.; Yun, X.; Brumfield, A. Limitations of Attitude Estimation Algorithms for Inertial/Magnetic Sensor Modules. IEEE Robot. Autom. Mag. 2007, 14, 76–87. [Google Scholar] [CrossRef]
  61. Yadav, N.; Bleakley, C. Accurate Orientation Estimation Using AHRS under Conditions of Magnetic Distortion. Sensors 2014, 14, 20008–20024. [Google Scholar] [CrossRef] [Green Version]
  62. Fan, B.; Li, Q.; Wang, C.; Liu, T. An Adaptive Orientation Estimation Method for Magnetic and Inertial Sensors in the Presence of Magnetic Disturbances. Sensors 2017, 17, 1161. [Google Scholar] [CrossRef]
  63. Markley, F.L. Attitude determination using two vector measurements. In Proceedings of the 1999 Flight Mechanics Symposium, NASA Goddard Space Flight Center: Greenbelt, MD, USA, 18–20 May 1999; pp. 39–52. [Google Scholar]
  64. Titterton, D.H.; Weston, J.L. Strapdown Inertial Navigation Technology; Institution of Electrical Engineers: Reston, VA, USA, 2004. [Google Scholar]
  65. Bekir, E. Introduction to Modern Navigation Systems; World Scientific: Toh Tuck Link, Singapore, 2007. [Google Scholar]
  66. Savage, P.G. Strapdown Analytics; Strapdown Analytics, Strapdown Associates: Maple Plain, MN, USA, 2007. [Google Scholar]
  67. Jiang, Y.F.; Lin, Y.P. Error estimation of quaternion transformations. IEEE Trans. Aerosp. Electron. Syst. 1991, 27, 634–639. [Google Scholar] [CrossRef]
  68. Lovren, N.; Pieper, J.K. Error Analysis of Direction Cosines and Quaternion Parameters Techniques for Aircraft Attitude Determination. IEEE Trans. Aerosp. Electron. Syst. 1998, 34, 983–989. [Google Scholar] [CrossRef]
  69. Choukroun, D.; Weiss, H.; Bar-Itzhack, I.Y.; Oshman, Y. Direction Cosine Matrix Estimation from Vector Observations using a Matrix Kalman Filter. IEEE Trans. Aerosp. Electron. Syst. 2010, 46, 61–79. [Google Scholar] [CrossRef]
  70. Bar-Itzhack, I.Y.; Meyer, J.; Fuhrmann, P.A. Strapdown Matrix Orthogonalization: The Dual Iterative Algorithm. IEEE Trans. Aerosp. Electron. Syst. 1976, 12, 32–38. [Google Scholar] [CrossRef]
  71. Savage, P.G. Strapdown Inertial Integration Algorithm Design Part I: Attitude Algorithms. J. Guid. Control Dynam. 1998, 21, 19–28. [Google Scholar] [CrossRef]
  72. Silva, F.O.; Hemerly, E.M.; Filho, W.C.L.; Kuga, H.K. A Fast In-Field Coarse Alignment and Bias Estimation Method for Stationary Intermediate-Grade IMUs. IEEE Trans. Instrum. Meas. 2018, 67, 831–838. [Google Scholar] [CrossRef]
  73. Silva, F.O.; Filho, R.M.; Vieira, L.A.; Kuga, H.K.; Barros, E.A. Three-axis Attitude Determination with Pseudo-Bias Estimation from Gravity/Magnetic Vector Observations. J. Guid. Control Dynam. 2020, 43, 2237–2257. [Google Scholar] [CrossRef]
  74. Silva, F.O.; Uwineza, J.B.; Rahman, F.S.; Jiang, Z.; Hu, W.; Carvalho, G.S.; Farrell, J.A. Dual-antenna GNSS-aided INS stationary alignment with sensor parameter estimation. IEEE Trans. Veh. Technol. 2021, submitted. [Google Scholar]
  75. Silva, F.O.; Hemerly, E.M.; Filho, W.C.L. On the error state selection for stationary SINS alignment and calibration Kalman filters—Part II: Observability/Estimability Analysis. Sensors 2017, 17, 439. [Google Scholar] [CrossRef] [Green Version]
  76. Chulliat, A.; Macmillan, S.; Alken, P.; Beggan, C.; Nair, M.; Hamilton, B.; Woods, A.; Ridley, V.; Maus, S.; Thompson, A. The US/UK World Magnetic Model for 2015–2020; Technical Report; NOAA: Boulder, CO, USA, 2015.
  77. Zhang, Z. Two-Step Calibration Methods for Miniature Inertial and Magnetic Sensor Units. IEEE Trans. Ind. Electron. 2015, 62, 3714–3723. [Google Scholar] [CrossRef]
  78. Britting, K.R. Inertial Navigation Systems Analysis; John Wiley & Sons Canada, Limited: New York, NY, USA, 1971. [Google Scholar]
  79. Bar-Itzhack, I.Y.; Harman, R.R. Optimized TRIAD algorithm for attitude determination. J. Guid. Control Dynam. 1996, 20, 208–211. [Google Scholar] [CrossRef] [Green Version]
  80. Shuster, M.D. The Optimization of TRIAD. J. Astronaut. Sci. 2007, 55, 245–257. [Google Scholar] [CrossRef]
  81. JCGM. Joint Committee for Guides in Metrology 100: Evaluation of Measurement Data—Guide to the Expression of Uncertainty in Measurement; Technical Report; JCGM: Sèvres, France, 2008. [Google Scholar]
  82. Gebre-Egziabher, D.; Elkaim, G.H. MAV Attitude Determination by Vector Matching. IEEE Trans. Aerosp. Electron. Syst. 2008, 44, 1012–1028. [Google Scholar] [CrossRef] [Green Version]
  83. Wu, J.; Zhou, Z.; Gao, B.; Li, R.; Cheng, Y.; Fourati, H. Fast Linear Quaternion Attitude Estimator Using Vector Observations. IEEE Trans. Autom. Sci. Eng. 2018, 15, 307–319. [Google Scholar] [CrossRef] [Green Version]
  84. Secer, G.; Barshan, B. Improvements in deterministic error modeling and calibration of inertial sensors and magnetometers. Sens. Actuators A Phy. 2016, 247, 522–538. [Google Scholar] [CrossRef]
  85. JCGM. Evaluation of Measurement Data—Supplement 1 to the “Guide to the Expression of Uncertainty in Measurement”—Propagation of Distributions Using a Monte Carlo Method; Technical Report; JCGM: Sèvres, France, 2008. [Google Scholar]
  86. Oliveira, A.M.; Kuga, H.K.; Carrarra, V. Air bearing platforms for simulation of spacecraft attitude control systems. In Proceedings of the 17th International Symposium on Dynamical Problems of Mechanics, Natal, RN, Brazil, 22–27 February 2015; pp. 22–27. [Google Scholar]
  87. Foster, C.C.; Elkaim, G.H. Extension of a Two-Step Calibration Methodology to Include Nonorthogonal Sensor Axes. IEEE Trans. Aerosp. Electron. Syst. 2008, 44, 1070–1078. [Google Scholar] [CrossRef]
  88. Finlay, C.C.; Maus, S.; Beggan, C.D.; Bondar, T.N.; Chambodut, A.; Chernova, T.A.; Chulliat, A.; Golovkov, V.P.; Hamilton, B.; Hamoudi, B.; et al. International Geomagnetic Reference Field: The eleventh generation. Geophys. J. Int. 2010, 183, 1216–1230. [Google Scholar]
  89. Silva, F.O. Generalized error analysis of analytical coarse alignment formulations for stationary SINS. Aerosp. Sci. Technol. 2018, 79, 500–505. [Google Scholar] [CrossRef]
Figure 1. Summary of the closed-form formulae derivation process.
Figure 1. Summary of the closed-form formulae derivation process.
Sensors 21 02040 g001
Figure 2. Estimated Direction Cosine Matrices (DCM) residual errors in simulated test.
Figure 2. Estimated Direction Cosine Matrices (DCM) residual errors in simulated test.
Sensors 21 02040 g002
Figure 3. Semispherical 3-DOF air bearing, available at INPE.
Figure 3. Semispherical 3-DOF air bearing, available at INPE.
Sensors 21 02040 g003
Figure 4. Estimated DCM residual errors in experimental test.
Figure 4. Estimated DCM residual errors in experimental test.
Sensors 21 02040 g004
Table 1. Predicted DCM normality, orthogonality, and alignment errors in simulated test.
Table 1. Predicted DCM normality, orthogonality, and alignment errors in simulated test.
ErrorsTRIADQUESTFQA/ATAN
η N [deg]0.616300
η E [deg]0.408400
η D [deg]−0.287400
o N [deg]−0.209100
o E [deg]0.522400
o D [deg]−0.099200
φ N [deg]0.07790.18020.2871
φ E [deg]−0.8095−0.5542−0.2871
φ D [deg]1.67541.67541.6754
Table 2. Estimated DCM normality, orthogonality, and alignment errors at the completion of the simulated test and associated standard uncertainties.
Table 2. Estimated DCM normality, orthogonality, and alignment errors at the completion of the simulated test and associated standard uncertainties.
ErrorsTRIADQUESTFQAATAN
η N [deg]0.64510.00000.00000.0000
±0.0405±0.0000±0.0000±0.0000
η E [deg]0.42350.00000.00000.0000
±0.0401±0.0000±0.0000±0.0000
η D [deg]−0.28730.00000.00000.0000
±0.0036±0.0000±0.0000±0.0000
o N [deg]−0.20700.00000.00000.0000
±0.0076±0.0000±0.0000±0.0000
o E [deg]0.51970.00000.00000.0000
±0.0190±0.0000±0.0000±0.0000
o D [deg]−0.10490.00000.00000.0000
±0.0013±0.0000±0.0000±0.0000
φ N [deg]0.07820.18240.28620.2862
±0.0084±0.0045±0.0036±0.0036
φ E [deg]−0.8140−0.5630−0.2911−0.2896
±0.0191±0.0079±0.0037±0.0036
φ D [deg]1.65951.64711.64811.6484
±0.0391±0.0387±0.0387±0.0387
Table 3. Standard deviations of Monte Carlo simulated test main input parameters.
Table 3. Standard deviations of Monte Carlo simulated test main input parameters.
ParameterStandard Deviation
Latitude ( δ L ) [deg]30
Longitude ( δ λ ) [deg]60
Altitude ( δ h ) [m]1000
Accelerometer biases ( δ a x , δ a y , δ a z ) [mg]1
Magnetometer biases ( δ m x , δ m y , δ m z ) [mG]5
Gravity magnitude ( δ g P ) [mg]0.005
Earth’s magnetic flux density magnitude ( δ B ) [mG]0.1
Earth’s magnetic flux density inclination/declination angles ( δ α , δ γ ) [deg]0.1
Table 4. Mean values and standard uncertainties of DCM normality, orthogonality, and alignment error deviations (estimated minus predicted values) in Monte Carlo simulated test.
Table 4. Mean values and standard uncertainties of DCM normality, orthogonality, and alignment error deviations (estimated minus predicted values) in Monte Carlo simulated test.
Error DeviationsTRIADQUESTFQAATAN
δ η N [deg]0.06070.00000.00000.0000
±0.0048±0.0000±0.0000±0.0000
δ η E [deg]0.04620.00000.00000.0000
±0.0048±0.0000±0.0000±0.0000
δ η D [deg]0.00010.00000.00000.0000
±0.0000±0.0000±0.0000±0.0000
δ o N [deg]−0.00010.00000.00000.0000
±0.0001±0.0000±0.0000±0.0000
δ o E [deg]−0.00010.00000.00000.0000
±0.0002±0.0000±0.0000±0.0000
δ o D [deg]−0.00380.00000.00000.0000
±0.0007±0.0000±0.0000±0.0000
δ φ N [deg]−0.0001−0.00040.00000.0000
±0.0001±0.0001±0.0000±0.0001
δ φ E [deg]0.0001−0.00060.00000.0000
±0.0002±0.0001±0.0000±0.0001
δ φ D [deg]0.0000−0.0010−0.00100.0018
±0.0004±0.0020±0.0020±0.0039
Table 5. Predicted DCM normality, orthogonality, and alignment errors in experimental test.
Table 5. Predicted DCM normality, orthogonality, and alignment errors in experimental test.
ErrorsTRIADQUESTFQA/ATAN
η N [deg]2.735300
η E [deg]2.812600
η D [deg]0.106900
o N [deg]0.246300
o E [deg]−0.615100
o D [deg]0.036900
φ N [deg]0.1597−0.1290−0.0865
φ E [deg]0.6423−0.07900.0272
φ D [deg]1.98751.98751.9875
Table 6. Estimated DCM normality, orthogonality, and alignment errors at the completion of the experimental test and associated standard uncertainties.
Table 6. Estimated DCM normality, orthogonality, and alignment errors at the completion of the experimental test and associated standard uncertainties.
ErrorsTRIADQUESTFQAATAN
η N [deg]2.83090.00000.00000.0000
±0.0064±0.0000±0.0000±0.0000
η E [deg]2.90830.00000.00000.0000
±0.0094±0.0000±0.0000±0.0000
η D [deg]0.10970.00000.00000.0000
±0.0072±0.0000±0.0000±0.0000
o N [deg]0.23870.00000.00000.0000
±0.0016±0.0000±0.0000±0.0000
o E [deg]−0.60950.00000.00000.0000
±0.0042±0.0000±0.0000±0.0000
o D [deg]0.03580.00000.00000.0000
±0.0027±0.0000±0.0000±0.0000
φ N [deg]0.1661−0.1065−0.0704−0.0704
±0.0065±0.0065±0.0068±0.0068
φ E [deg]0.6384−0.06790.02920.0293
±0.0049±0.0050±0.0063±0.0063
φ D [deg]2.06221.96721.96721.9672
±0.0061±0.0059±0.0059±0.0059
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Silva, F.O.; Paiva, L.P.S.; Carvalho, G.S. Error Analysis of Accelerometer- and Magnetometer-Based Stationary Alignment. Sensors 2021, 21, 2040. https://doi.org/10.3390/s21062040

AMA Style

Silva FO, Paiva LPS, Carvalho GS. Error Analysis of Accelerometer- and Magnetometer-Based Stationary Alignment. Sensors. 2021; 21(6):2040. https://doi.org/10.3390/s21062040

Chicago/Turabian Style

Silva, Felipe O., Lucas P. S. Paiva, and Gustavo S. Carvalho. 2021. "Error Analysis of Accelerometer- and Magnetometer-Based Stationary Alignment" Sensors 21, no. 6: 2040. https://doi.org/10.3390/s21062040

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop