This application claims priority to European Patent Application No. 20180573.6, filed on Jun. 17, 2020, the entire contents of which are incorporated herein by reference.
The invention relates to a navigation instrument, in particular an electronic compass, with tilt compensation, a wearable device comprising this instrument, in particular a wristwatch, an associated method allowing to determine orientation angles of the navigation instrument, a program for implementing the method in question and a computer-readable recording medium for this program.
Electronic compasses these days are primarily wound for tilt compensation. This methodology consists in measuring the terrestrial magnetic field along two or three axes, and firstly compensating for the attitude (roll and pitch) of the compass (acquired by an accelerometer and/or gyroscope) in order to estimate the equivalent heading, as if the compass had been held horizontally, as is advisable in practice. These techniques are generally called “tilt compensation” or 6-DOF. For example, patent application EP 1 669 718 A1 illustrates an electronic compass with a measurement of the magnetic field along two axes with a pitch and roll correction.
The objective of these techniques is to be able to estimate the pitch and roll angles of the watch (the yaw being defined by the measurement of the terrestrial magnetic field). Usually, the roll angle is calculated first, and the pitch angle second. The main problem with this method is that when the pitch approaches 90°, there is instability in the calculation of the roll since the projection of the gravity vector on the roll measurement plane has a norm close to zero. The measurement noise of the accelerometer thus generates aberrant results (gimbal lock).
In the particular context of an electronic compass mounted in a watch, in the event that the user does not use his watch horizontally to know the north direction or a heading, there is a good chance that he will apply a strong pitch (generally corresponding to a rotation of the wrist so that he can look at his dial while his corresponding arm is raised) rather than a strong roll (generally corresponding to the angle formed between the forearm and the horizontal) to the watch he wears on his wrist when he observes it. This causes intolerable instability from the point of view of the product.
Solutions exist, such as those described by patent document US 2004/0187328 and by ST (www.st.com) in the “Design Tip” DT5008, where some angles are forced at 90° when the norm on the axes of calculation is close to zero. The patent document US 2004/0187328 proposes to solve the gimbal locking problem to freeze a default angle value. This arbitrary choice can lead to erroneous heading values.
The purpose of the invention is to overcome at least one of the disadvantages of the aforementioned prior art. More particularly, the object of the invention is to reduce the sensitivity to noise of a navigation instrument.
To this end, the present invention relates to a navigation instrument comprising:—A first sensor configured to measure three components of a first vector, called first measured vector, of a first terrestrial force field in a reference frame linked to said navigation instrument, called on-board reference frame, and generate first output signals representative of said three components;—An orientation angle calculation unit of the navigation instrument, this calculation unit being connected to said first sensor to receive said first output signals and being configured to be able to calculate a first orientation angle and a second orientation angle of the on-board reference frame, and thus of the navigation instrument, with respect to a terrestrial reference frame, these first and second orientation angles being defined by two successive rotations that the first measured vector must undergo, around a first reference axis of rotation (also called first reference axis) for the first orientation angle and a second reference axis of rotation (also called second reference axis) for the second orientation angle, to align this first measured vector on a calculation vector having, in the on-board reference frame, three calculation components which are identical to three reference components, in the terrestrial reference frame, of a first reference vector which is predefined or predetermined in the terrestrial reference frame. This navigation instrument is remarkable in that the orientation angle calculation unit is configured to be able to determine the first and second orientation angles in a given order of said two successive rotations and also in reverse order; and in that the calculation unit is arranged to be able to choose between said given order and said reverse order, to calculate the first and second orientation angles, based on a comparison between an indicator of a risk of error, quantifying a risk of instability of the calculation unit during the determination of the first and second orientation angles, and a predetermined threshold, said indicator of the risk of error being determined by the navigation instrument according to at least one of said first output signals.
According to advantageous embodiments of the invention, the navigation instrument comprises one or more of the following technical features, in any possible combination:
The invention also relates to a wearable device provided with the navigation instrument. Advantageously, the wearable device according to the invention, in particular a wristwatch, is remarkable in that this device is wearable on the wrist of a user; and in that the first reference axis corresponds to the 6-12 o'clock axis and the second reference axis corresponds to the 9-3 o'clock axis (according to a conventional analogue time display in a watch, the 6-12 o'clock axis being aligned with the longitudinal axis of the watch bracelet).
According to advantageous embodiments of the invention, the method for determining orientation angles comprises one or more of the following features and/or steps, in any possible combination:
The invention also relates to a program comprising instructions which, when the program is executed by a computer, cause this computer to implement the steps of the method according to the invention.
The invention further relates to a computer-readable recording medium comprising instructions which, when executed by a computer, cause the latter to carry out the steps of the method according to the invention.
The measures of the invention are advantageous because, from a mathematical point of view, the approach remains the same regardless of the angle calculated as a priority. However, the result gives a heading which can be very different, depending on whether the two successive rotations are carried out in the given order or in the reverse order, in particular in the case where the two angles are large (typically if the roll and the pitch are equal to) 45°. However, it is known that for reasons of comfort, the user will generally use the watch with a roll close to 0° and a pitch which can vary greatly, in particular between −30° and 70°. Under these conditions, the heading measured by this proposition no longer suffers from the gimbal locking effect. Moreover, the method allows to determine the uncertainty associated with a measurement and guarantees digital stability. Finally, the measurements of the invention are more precise than those obtained by the devices or systems in the prior art, since even when the pitch is close to 90°, an estimate of this angle is made. In the prior art, in the same situation, at best a default value is assigned to the pitch.
The invention will be described in more detail below using the appended drawings, given by way of non-limiting examples, wherein:
The on-board reference frame allows to determine the orientation of the navigation instrument with respect to a predefined terrestrial reference frame as illustrated in
The orientation of the on-board reference frame with respect to the terrestrial reference frame can be defined by a succession of three rotations defined by three orientation angles characterising the movement that the terrestrial reference frame should undergo so that it coincides with the on-board reference frame, as illustrated in
In a known manner, the orientation of the on-board reference frame relative to the terrestrial reference frame is defined by three reference angles called yaw-pitch-roll. These angles are commonly used especially in aeronautics. The invention is not however limited to this choice of angles because there are other conventions such as Euler angles which are used in other technical fields wherein the present invention is also applicable.
The first rotation called yaw rotation takes place around the axis with an amplitude ψ. This first rotation allows to determine the amplitude of the yaw movement of the wristwatch 2 (and consequently of the navigation instrument, in particular of the electronic compass). This amplitude also corresponds to the heading of the wristwatch 2 and therefore of the electronic compass. In a particular case where the wristwatch 2 is positioned so that the display plane of the wristwatch 2 is perpendicular to the field and therefore to the axis , the yaw rotation directly indicates the heading of the navigation instrument. Indeed, the determination of the heading of the navigation instrument, and therefore of the wristwatch 2, takes place by comparing the orientation of the real wristwatch 2 with respect to a fictitious positioning wherein the 6 o'clock-12 o'clock axis of the wristwatch 2 would be aligned with the axis , implying that the 6 o'clock-12 o'clock axis is wedged with the vector of the terrestrial magnetic field . The yaw angle and therefore the heading is determined advantageously from trigonometric calculations on the coordinates of a vector of the measured terrestrial magnetic field . These coordinates are determined by means of a magnetic sensor 10 disposed in the electronic compass 4 (see
The second rotation, called pitch rotation, takes place around the axis of the reference frame obtained after the yaw rotation. The axis corresponds to the axis of the terrestrial reference frame having undergone the yaw rotation. The pitch amplitude is symbolised by the Greek letter θ. When using a wristwatch 2, the pitch is generally similar to the rotational movement of the forearm that a person makes to look at the time on the display of the wristwatch 2 he is wearing.
The third rotation, called roll rotation, takes place around the axis which corresponds to the axis in the on-board reference frame. The amplitude of the roll is symbolised by the Greek letter ϕ. When using a wristwatch 2, the roll is generally similar to the rotational movement of the forearm relative to the horizontal.
The determination of the two roll and pitch angles can be carried out by comparing the position of the wristwatch 2 worn by the user with a virtual position wherein the plane of the display of the wristwatch 2 would be flat (that is to say horizontal) and therefore perpendicular to the vertical axis . To determine these two angles, the electronic compass includes a sensor 6 (see
With the knowledge of the amplitudes of the three rotations described above it is possible, as illustrated in
The on-board reference frame relative to the terrestrial reference frame can therefore be defined by a transformation of reference frame to describe a “solid” movement, wherein the 3 orientation angles, namely yaw, pitch and roll, together define the angular displacements of the terrestrial reference frame axes (; ; ) so as to make them coincide with the corresponding axes of the on-board reference frame (; ; ). This reference frame transformation corresponds, for a point (x, y, z) in the terrestrial reference frame, to a change of coordinates which is expressed by the matrix product given in equation 1 below, this equation 1 providing the coordinates (x′, y′, z′) from this point in the on-board reference frame.
where RφT, RθT, R104 T are the transposed matrices of Rφ, Rθ and Rψ.
As the electronic compass is incorporated in the wristwatch and that, for this electronic compass, only the on-board reference frame is initially defined and known, and as the planned method consists in bringing the on-board reference frame virtually to coincide with the terrestrial reference frame to determine the orientation angles of the wearable device that is the wristwatch, in particular a heading of this wearable device, attention is then paid to the transformation of reference frame reverse to that described above. Starting from a vector or more vectors having coordinates (x′, y′, z′) in the on-board reference frame (the vectors having their origin at point (0, 0, 0) in the on-board reference frame and also in the terrestrial reference frame), it is sought to determine the coordinates (x, y, z) of this or these vector(s) in the terrestrial reference frame. On the basis of equation 1 given previously, the mathematical relationship, in matrix form, between a vector (x′, y′, z′) expressed in the on-board reference frame and this same vector (x, y, z) expressed in the terrestrial reference frame is given by equation 2 below. This property will be exploited in the remainder of the description of the invention for the calculation of the angles of orientation of the wearable device incorporating the electronic compass. The matrix relation of equation 2 defines a passage matrix allowing, for a point or a vector, to switch from the on-board reference frame to the terrestrial reference frame (that is to say for the expression of its coordinates).
Given that the coordinates of a point can define the end of a vector whose origin coincides with the common origin of the on-board and terrestrial reference frames, as indicated previously, equation 2 thus allows to establish a relation between the measured vector defined in the on-board reference frame and the same vector defined in the terrestrial reference frame. This relation is as follows:
Also, the relation between the measured vector defined in the on-board reference frame and the same vector defined in the terrestrial reference frame is as follows:
However, the calculation of the angles of orientation starts from the assumption that the measured vectors , in the on-board reference frame are collinear with reference vectors , which correspond to them and whose components in the terrestrial reference frame are predefined or predetermined. Thanks to equations 3 and 4, it is possible to determine the components of each of the measured vectors , in the terrestrial reference frame, as follows:
It is therefore possible to calculate the angles of orientation by solving equations 5a and 5b. However, this approach to finding the angles of orientation is far from being advantageous in all circumstances, as there may be singular solutions (for example gimbal lock). For this reason, according to the invention, a more sophisticated approach has been developed, as discussed below.
In the case of switching from the on-board reference frame (that of the measurement) to the terrestrial reference frame (that of the reference vectors whose expression is at least partially known in this terrestrial reference frame) for a point or a measured vector, it is observed in equation 2 that the succession of the reference rotations is: first the roll (angle φ), then the pitch (angle θ) and finally the yaw (angle ψ). Preferably, the roll and pitch angles are determined, in a first step, on the basis of the measurement of a vector of the gravitational field (having a norm g), this first step being followed by the determination of the yaw and therefore the heading during a second step, the calculation of the yaw being based on the measurement of a vector of the terrestrial magnetic field .
The first step therefore consists in determining the roll and pitch angles from equation 5a. The choice of an appropriate terrestrial reference frame with a vector of the gravitational field aligned with the vertical axis allows to simplify the calculations and better anticipate a risk of dial lock, as shown in the equations below.
=k·Rψ·Rθ·Rφ·
according to equation 5a with
Equation 5a can be rewritten and simplified as follows:
R
ψ
−1
·
=R
ψ
T
·
=
=k·R
θ
·R
ψ
And thus:
The roll angle resulting from equation 5a, in the case of a first measured vector which is collinear with a first vertical reference vector, is given by the following trigonometric relation:
φ=arctan(g′y/g′z) Equation 6
The pitch angle is then given by:
θ=−arctan(g′x/g*z) Equation 7
with
g*
z
=g′
y·sin ψ+g′z·cos φ
Advantageously, it follows from equation 6 that the roll angle φ corresponds to the angle between the projection of the terrestrial gravitational field vector in the reference plane Y′-Z′ (perpendicular to the axis ) and the axis , as illustrated in
Then, it follows from equation 7 that the pitch angle θ corresponds to the angle between a work vector, resulting from the rotation of the terrestrial gravitational field vector in the reference plane X′-Z′ (perpendicular to the axis ) and the axis , as illustrated in
The vector of the gravitational field measured in the on-board coordinate system can be determined by an accelerometer which provides output signals representative of the three components of this vector. However, it has been observed that the three signals corresponding to the three components each have noise, the amplitude of which is not negligible and can greatly disturb the measurement of the angles of orientation if no suitable measures are taken. Note that, for each of the three components of the measured vector, the noise is a random effect that does not depend on the amplitude of the measurement signal. Noise is therefore problematic when calculating the attitude of the wearable device. Indeed, the calculation of the roll angle is done on a projection, and therefore potentially on a low amplitude vector. As the noise is statistically invariant on each measurement axis, the measurement uncertainty increases when the amplitude of the measured and projected vector decreases. In the example shown in
Mathematically, the problems appear when one approaches a case of gimbal lock which occurs when the axis of rotation of the roll becomes substantially collinear with the axis of rotation of the pitch. Note that the roll value has a direct impact on the calculated yaw value. It is seen that if the calculated roll value is unstable, the yaw value and therefore the heading indicated by a hand or other display will also be unstable.
According to the invention, the order of the calculation of the orientation angles can be reversed in order to avoid this instability which appears when the projection of the vector measured in the plane Y′-Z′ is too small. Thanks to this measurement, the norm of the projection of the measured vector in the plane X′-Z′ (defined by the axes/vectors and of the on-board reference frame), used to calculate the pitch angle θ, then remains within an acceptable range. This phenomenon is explained because, as the acceleration is of constant norm, if its projection is of low norm in one plane, it is necessarily large in the other perpendicular planes.
The order of calculation of the roll and pitch angles is therefore either in a given order or in a reverse order. The given order involves first a roll rotation followed by a pitch rotation. For the reverse order, an inversion of the given order is provided with a pitch rotation which is calculated first and then a roll rotation. It will also be noted that these rotations applied to a vector measured in the on-board reference frame correspond to a correction of the roll and of the pitch involved in the wearable device incorporating or provided with the electronic compass according to the invention and therefore to rotations in the opposite direction (−φ; −θ) of the on-board reference frame, so that this on-board reference frame is virtually reoriented with its axis collinear with the vertical axis/vector of the terrestrial reference frame.
For the order given above, the roll and pitch angles are determined by equations 6 and 7 given above. For the reverse order, the simplified equation 5a is replaced by the following equation 5c:
R
ψ
−1
·
=R
ψ
T
·
=
=k·R
ψ
·R
θ·
The pitch angle resulting from the equation 5c, in the case of a first measured vector which is collinear with a first vertical reference vector, is given by the following trigonometric relation:
θ=−arctan(g′x/g′z) Equation 8
The roll angle is then given by:
Note that, in general, Rψ·Rθ is not equal to Rθ·Rψ, so that the inversion of the two successive considered rotations has an influence on the yaw value calculated subsequently to obtain a heading of the wristwatch 2. This will be discussed later.
The choice of the order in which the roll and pitch angles are calculated can be based on various criteria. For example, a first criterion exploits the norm (or the square of the norm) of the projection of the vector in the plane Y′-Z′. If this norm is less than a given value, the order of calculating the angles is reversed (calculating the pitch first, then the roll). Alternatively, a second proposed criterion concerns the value of the pitch angle when this value is determined according to the given order (calculating the roll first, then the pitch). If the pitch turns out to be greater than a given angle, the calculation of the two angles considered here is performed a second time with the pitch being calculated first.
The first criterion, known as the basic criterion, aims at ensuring that the limit of the norm projected on the plane Y′-Z′ (defined by the axes and of the on-board reference frame) is much larger than the maximum noise norm. In this way, a certain precision is ensured for the calculation of the roll angle. Advantageously, this condition can be carried out by comparing the projection of the measured vector in the plane Y′-Z′ and a predetermined threshold value (limit radius as illustrated in
Other ranges of values can be chosen for the threshold value depending on the field of application of the navigation instrument, for example a range centred around cos (45°), that is to say 0.707. This selection allows to optimise the reduction in the influence of the measurement noise for the calculated values, but it risks creating instability in the display of the heading for an electronic compass incorporated in an object wearable on the wrist, and possibly more repetitions of the sequence for calculating the roll and pitch angles due to this instability. Indeed, as the given order and the reverse order for the roll and pitch rotations applied to the measured vector leads to a different yaw/heading value, if the pitch angle varies around the threshold value during use of the electronic compass, the indicated heading will be, without other measurements, recalculated at each change in the result of the comparison defined by the criterion for the choice of the order of the two rotations in question. The second criterion, called alternative criterion, is substantially equivalent to the first criterion. It is based on the comparison between the pitch angle calculated according to the given order and a threshold value comprised between 65° and 80°, preferably between 70° and 75°.
The approach proposed by the invention is in particular based on the observation that, despite and regardless of the noise, it is always possible to bring the gravitational vector measured on the axis with relatively good precision in determining the roll and pitch angles. Indeed, despite the noise in the measurement of the gravitational vector, the calculation of the roll of a measured vector coplanar with the plane Y′-Z′ (defined by the vectors and ) is always relatively precise and the calculation of the pitch of a measured vector coplanar to the plane X′-Z′ (defined by the vectors and ) is always relatively precise. Then, after the roll is calculated first and the corresponding rotation applied to the measured vector, the measured vector thus reoriented is in the plane X′-Z′ so that the pitch can then be calculated with good precision. Likewise, once the pitch is calculated first and the corresponding rotation applied to the measured vector, the measured vector thus reoriented is in the plane Y′-Z′ so that the roll can then be calculated with good precision. It is therefore understood that it is the first calculation of an orientation angle of the electronic compass which is critical since it is based on a projection in a reference plane and that the norm of this projection can be relatively small, so that the noise occurring during the measurement can strongly distort the result of the first angle calculated subsequently by the calculation unit 8 of the electronic compass 4, as explained previously. Thanks to the invention, good precision or sufficient precision for this first calculation is ensured by selecting between ‘roll first’ and ‘pitch first’.
The second step consists in determining the yaw to obtain the heading. This step consists in solving the equation 5b given previously. The choice of a judicious terrestrial reference frame allows to simplify the calculation steps, in particular when the projection of the reference terrestrial magnetic field vector , corresponding to a second reference vector, in a plane perpendicular to the axis is collinear with the axis ; which is the case for the terrestrial reference frame NED defined at the start. In this case the following equation is obtained for the magnetic vector measured by the magnetic sensor:
Equation 10a corresponds to the ‘roll first’ alternative and for the ‘pitch first’ case there is an equation 10b similar to equation 10a but with an inversion of the rotation matrices Rψ and Rθ. The yaw angle ψ can be determined by first applying to the vector of the measured terrestrial magnetic field , in the on-board frame, two successive rotations corresponding to a roll rotation and a pitch rotation according to an order chosen between said given order and said reverse order, as explained previously, so as to obtain a measured and reoriented vector of the terrestrial magnetic field , then by calculating the angle between a projection, in the reference plane X′-Y′ defined by the axis , and the axis , of the vector of the reoriented terrestrial magnetic field and the axis . Starting from equations 10a and 10b, the following simplified equation is obtained:
with
in the given order:
in the reverse order:
From equation 10a or 10b, the yaw/heading angle is therefore given by the following equation:
ψ=−arctan(B′y,mes/B*x,mes)tm Equation 12
All the calculation steps described above can be carried out by the central processing unit 14 of the electronic compass 4. The determination of the heading is based on the yaw angle calculated with the equation 12 by a unit 12 for determining a heading, which can be formed by the same electronic circuit as the unit 8 for calculating the roll and pitch angles. In a variant, the electronic compass comprises a magnetic north or geographic north indicator 8 and a device 16 for controlling this indicator (see
The electronic compass 4 preferably comprises a device 20 for displaying data indicating the true heading (see
A comparative study was carried out to demonstrate that the choice of the order of rotation between the given order (roll then pitch) or the reverse order (pitch then roll) has relatively little importance on the result of the calculation of the yaw angle, and therefore of the heading, in the context of the application of a wristwatch 2. Indeed, the order of the roll and pitch rotations normally influences the calculation of the roll angle and the pitch angle because, as already indicated, the product of matrices is not commutative (Rθ·Rφ≠Rφ·Rθ).
However, it will be noted that, for a relatively low roll (see
The invention is not limited to the wearable device of the first embodiment described above. Indeed, the inversion of the order of the rotations not only allows to advantageously reduce the sensitivity to measurement noise during the prediction of two orientation angles but also to no longer suffer from the gimbal locking effect for many objects, such as a transport vehicle or a flying object. In general, the inversion of the order of the rotations according to the invention operates as a filter aiming at reducing the effect of the noise of the measurement of at least one vector of a terrestrial force field and at removing the gimbal lock when determining the orientation angles of an object relative to a terrestrial reference frame.
In a second embodiment, the navigation instrument allows to determine two angles of orientation of a system within the framework of spherical coordinates. The navigation instrument therefore allows to determine the two angles of orientation of the axis of the on-board reference frame on the basis of the measurement of a vector of the terrestrial magnetic field determined via a geolocation means.
The first embodiment proposes to first calculate the roll and pitch angles according to the measurement, in a reference frame linked to the navigation instrument, of a gravitational field vector , then the yaw angle from the measurement in the same on-board reference frame of a vector of the terrestrial magnetic field . This order can be reversed with a first step of calculating the yaw and roll angle from a measurement, still in a reference frame linked to the navigation instrument, of a vector of the terrestrial magnetic field , then the pitch angle from the measurement, in this on-board reference frame, of a terrestrial gravitational field vector . This example shows that the choice of the axes of the considered reference frames as well as the given order of the rotations is arbitrary.
Number | Date | Country | Kind |
---|---|---|---|
20180573.6 | Jun 2020 | EP | regional |