Let
be three unit vectors that represent F-frame axes directions (
Figure 1). When the sensor is placed in the first orientation of the calibration procedure, by using the Euler–Rodrigues formula [
24], we can express
in M-frame coordinates as follows:
where
and
are the axis and the angle that define the rotation needed to transform the M-frame into the F-frame, while
denote the Euclidean dot and cross products, respectively. In this first IMU orientation, we assume misalignments between the M-frame and the F-frame to be small (i.e.,
), so that Equation (
22) can be approximated as:
According to our calibration method, the IMU needs to be rotated
w.r.t. F-frame fixed axes; for each
j-
th rotation, with
, we can express in the M-frame the angular velocity
perceived by the gyroscope at time instant
t as follows:
where
is the angular velocity magnitude at time instant
t and
depending on whether the rotation is performed around
or
z axis, respectively. Please notice that
are fixed, namely they remain the same throughout the calibration procedure, but, in general, their expressions in the gyroscope triad (the M-frame) change between the different orientations of the procedure. We can relate the expression of
in the M-frame to
assumed in the initial configuration as follows:
where
is the rotation matrix that transforms a vector expressed in M,1-frame coordinates into a vector expressed in M,j-frame ones. Such a rotation matrix is coincident with the one introduced in Equation (
6) and its results are determined by the known sequence of rotations performed. By substituting Equations (
25) and (
21) in Equation (
24), we obtain:
Measurement noise can be removed by using proper filtering techniques: analogic or digital filters can be embedded directly in the IMU electronic board or implemented in the data acquisition system if the sampling time is sufficiently small. The
noiseless calibration model can then be written as follows:
By integrating the right-most term of Equation (
27) in the time interval
where the
j-
th rotation takes place, we obtain:
where
is the
j-
th expected rotation angle, whose numerical value depends on the geometry of IMU’s 3D-printed housing and the chosen rotation sequence. Since the estimation of
does not rely on accelerometer measurements (as was the case in [
10,
18]), the results of gyroscope calibration are independent of those of the accelerometer. Integrating in the same time interval the central term of Equation (
27) one obtains:
where
is the element in the
u-
th row and
w-
th column of matrix
and
the elements of vector
. As introduced in
Section 1,
are obtained through the integration of gyroscope raw measurements and not by using a mean value approach. Combining Equations (
27)–(
29) we obtain:
Please notice that Equation (
30) can assume a different form depending on weather the
j-
th rotation is performed around
or
z, namely:
A relevant contribution to gyroscope identification methodology introduced in this work can now be highlighted: the simplification introduced by Equation (
23) allows the inclusion of the expressions for the rotation axes in the M-frame at the beginning of the procedure (namely
) into the identification model without producing any non-linearity into the equations and without assuming that
or
(i.e., without assuming alignment of the rotation axes with the gyroscope’s sensitive axes). In this way, one of the shortcomings of previous gyroscope identification methods [
10,
18] is solved. One may argue that the simplification introduced in Equation (
23) is valid only if
(which is unknown and included, together with
, in the parameters to be determined) is sufficiently small: however, this assumption is justified for industrially manufactured sensors, and is further confirmed by the experimental results shown in
Section 3. By substituting the expressions of
with those given by Equation (
23) and re-organizing terms of Equation (
31) so as to highlight known quantities and unknown parameters to be identified, each
j-
th rotation can be associated with a linear system of equations of the form:
where
is the gyroscope-related counterpart of
, introduced in Equation (
12) to collect accelerometer-related parameters to be identified: analogously,
contains gyroscope model parameters, quantities related to
and a known term, i.e., its last element
.
can be expressed as composition of two different matrices
and
, namely:
where
is:
and has the same form independent of the axis around which the
j-
th rotation is performed, while
is different depending on weather the
j-
th rotation is performed around
or
z axis and can be defined as follows:
being
the
p-
th column of matrix
, whose sign depends on weather the
j-
th rotation is performed counter-clockwise or clockwise, respectively. The mathematical derivation of Equation (
32) can be found in
Appendix A. By stacking Equation (
32) for
, one obtains an homogeneous system of
linear equations in 13 unknowns, which is over-determined if
:
Equation (
37) can be solved for
using the linear TLS method, following the same approach taken in
Section 2.1 [
21,
22,
23]. Even in this case, employing the TLS solution for Equation (
37) ensures that potential errors in the elements of
, arising from data acquisition inaccuracies, are accounted for. This represents another significant improvement over the methods proposed in [
10,
18], especially since manual rotations are likely to introduce inaccuracies in the measurement process. We address the compatible system closest to Equation (
37) in terms of the Frobenius norm:
where
is the solution to Equation (
37), containing estimated parameters, and
is such that
and
is minimized. Exploiting the “
economy size” singular value decomposition,
can be written as follows:
being
and
orthonormal matrices, while
is a diagonal matrix containing singular values
of
, for
, sorted in decreasing order. We can obtain
as follows:
where
is the smallest singular value of
and
are the 13-
th column of
and
, respectively. A solution to Equation (
38) is
. The solution
to the proposed identification problem can be obtained by taking into account that its last element
must be equal to 1 according to Equation (
33), namely:
where
is the last element of
. We can then obtain
and
as follows:
being
, where
is the
q-
th element of
. Since
is known, it is the element of
having the maximum accuracy. Thus, we can approximate the covariance matrix of the TLS solution as follows:
where
contains the first 12 columns of
, while
contains the first 12 elements of
. The percentage relative standard deviation is then obtained as follows:
where
is the
q-
th diagonal term of
.