Precision Navigation Equations
| This documentation was generated with the assistance of AI. Please report any inaccuracies. |
Classes: ECIInertialNavigator, ECEFInertialNavigator, NEDInertialNavigator, plus
InertialNavigatorException (see the Class Reference table at the end of this page for Javadoc and
source links).
Each navigator advances the previous solution by one IMU epoch of duration . This page lists, per frame, the equations in the order the code evaluates them. The equation numbers refer to P. D. Groves, Principles of GNSS, Inertial, and Multisensor Integrated Navigation Systems, 2nd ed. ([book-groves]); they are the numbers quoted in the source comments of the navigators. The wording is ours, not the book’s.
Notation
| Symbol | Meaning |
|---|---|
|
Time interval between epochs (s). |
|
Specific force of the body frame with respect to an inertial frame, resolved along body axes and averaged over the interval (m/s2). |
|
Angular rate of the body frame with respect to an inertial frame, resolved along body axes and averaged over the interval (rad/s). |
|
Attitude increment, ; . |
|
Skew-symmetric (cross-product) matrix of a vector . |
|
Skew matrix of the Earth rotation vector (rad/s, constant |
|
Skew matrix of the transport rate (angular rate of NED with respect to ECEF), resolved along NED axes. |
|
Body-to- coordinate transformation (rotation) matrix; and mark the values at the start and end of the interval. |
|
Average of |
Terms shared by the three navigators
Attitude increment and Rodrigues' formula
The increment is
When ALPHA_THRESHOLD, to avoid dividing by a vanishing norm) the code
falls back to
Average transformation over the interval
To integrate the specific force the attitude is not frozen at the start of the interval. Groves (5.84) gives the average body-to-frame matrix; its body-rotation part is the same for all three frames:
so that
Order of evaluation
ECI and ECEF update the attitude first, then the specific force, velocity and position. NED evaluates the specific force, velocity and position first and the attitude last, because the NED attitude update needs the transport rate at the new position and velocity.
ECIInertialNavigator
Resolving frame: Earth-centred inertial. No Earth-rotation or transport-rate terms appear, and the gravity
term is the pure gravitation vector ECIGravitationEstimator
(see Gravity and Gravitation Estimators) evaluated at the old Cartesian position.
Attitude update (Rodrigues, (5.73)):
Average matrix 5.84), no frame correction) and specific force ((5.81:
Velocity update 5.18), (5.20:
Position update (trapezoidal rule, (5.23)):
ECEFInertialNavigator
Resolving frame: Earth-centred Earth-fixed, which rotates with the Earth about its z axis at
CoordinateTransformation.eciToEcefMatrixFromAngle. Gravity ECEFGravityEstimator (it already includes the centrifugal term) at the old position.
Attitude update 5.73), (5.75. The Earth rotation is applied on the left and the body rotation on the right:
Average matrix 5.84), (5.85 and specific force:
with
Velocity update 5.36: gravity plus a Coriolis term
Position update 5.38:
NEDInertialNavigator
Resolving frame: local navigation (north, east, down). Besides the Earth rotation, the NED axes turn as the
body moves over the ellipsoid, so a transport rate is needed. Position is curvilinear: latitude RadiiOfCurvatureEstimator
(see Radii of Curvature, Position and Velocity Estimators) and gravity NEDGravityEstimator.
Step 1: angular rates at the old state. Earth rate resolved in NED 2.123 and transport rate 5.44:
Step 2: average matrix and specific force 5.84), (5.86:
|
As implemented, the frame-correction term of this step carries no |
Step 3: velocity update 5.54, with gravity and the combined Coriolis and transport terms at the old state:
Step 4: position update 5.56. Height first, then latitude, then the radii at the new latitude, then
longitude (
Step 5: attitude update 5.73), (5.77. The transport rate is re-evaluated with the new velocity,
latitude and height,
The resulting matrix is validated with the accuracyThreshold argument (default
NEDInertialNavigator.DEFAULT_ACCURACY_THRESHOLD) when it is wrapped in a CoordinateTransformation; a
matrix that is not a valid rotation raises InertialNavigatorException.
The class Javadoc notes that only the attitude update and the specific-force frame transformation are fully precise in this implementation. The Coriolis and transport-rate terms in the velocity update and the position update use first-order (trapezoidal) approximations, which Groves reports as sufficient for all but the most demanding high-dynamic applications.
Summary by frame
| ECI | ECEF | NED | |
|---|---|---|---|
Attitude update |
|
|
|
Average-matrix correction |
none |
|
|
Gravity term |
gravitation |
gravity (includes centrifugal) |
gravity (includes centrifugal) |
Velocity extra terms |
none |
|
|
Position |
Cartesian, trapezoidal |
Cartesian, trapezoidal |
Curvilinear, trapezoidal with radii of curvature |
Groves equations |
5.73, 5.81, 5.84, 5.18, 5.20, 5.23 |
2.145, 5.73, 5.75, 5.84, 5.85, 5.36, 5.38 |
2.123, 5.44, 5.73, 5.77, 5.84, 5.86, 5.54, 5.56 |
Usage example
double timeInterval = 0.02; // 50 Hz IMU
double oldLatitude = Math.toRadians(41.3851);
double oldLongitude = Math.toRadians(2.1734);
double oldHeight = 0.0;
CoordinateTransformation oldC = new CoordinateTransformation(
0.0, 0.0, 0.0, FrameType.LOCAL_NAVIGATION_FRAME, FrameType.BODY_FRAME);
double oldVn = 0.0, oldVe = 0.0, oldVd = 0.0;
// one IMU sample: measured specific force (m/s^2) and angular rate (rad/s)
double fx = 0.02, fy = -0.01, fz = -9.81;
double angularRateX = 0.0, angularRateY = 0.0, angularRateZ = 1e-3;
NEDFrame newFrame = NEDInertialNavigator.navigateNEDAndReturnNew(
timeInterval, oldLatitude, oldLongitude, oldHeight, oldC, oldVn, oldVe, oldVd,
fx, fy, fz, angularRateX, angularRateY, angularRateZ,
NEDInertialNavigator.DEFAULT_ACCURACY_THRESHOLD);
double newLatitude = newFrame.getLatitude();
double newVn = newFrame.getVn();
// newFrame becomes oldC/oldLatitude/... for the next IMU sample
ECEFInertialNavigator.navigateECEFAndReturnNew(…) and ECIInertialNavigator.navigateECIAndReturnNew(…)
follow the same pattern, with Cartesian position/velocity in place of curvilinear latitude/longitude and
NED velocity — and no accuracyThreshold parameter, since only the NED navigator’s coordinate
transformation needs that extra rotation-matrix validity check.
InertialNavigatorException
Thrown by all three navigate*** methods when the underlying matrix algebra fails (e.g., a computed
coordinate transformation matrix is not a valid rotation, typically indicating an unstable or
degenerate input rather than a normal operating condition).
Where to go next
-
Estimators — the estimators that supply gravity/gravitation and radii of curvature used here.
-
reference.adoc#bibliography — bibliography.