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 EARTH_ROTATION_RATE) resolved in frame .

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 over the interval.

Terms shared by the three navigators

Attitude increment and Rodrigues' formula

The increment is . The rotation from the new body attitude to the old one is built with the exact closed form of the rotation (no first-order truncation of the matrix exponential), Groves (5.73):

When (constant 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 . If , is taken as the identity. The frame correction is zero for ECI and is given by Groves (5.85) and (5.86) for ECEF and NED respectively (see below).

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.

flowchart TD IN["Inputs: old attitude, velocity, position,\nf_ib^b, omega_ib^b, tau_i"] --> ALPHA["alpha = omega_ib^b * tau_i\nRodrigues: C_new_to_old, eq 5.73"] ALPHA --> FRAME{"Frame"} FRAME -->|"ECI, ECEF"| ATT["Attitude update\neq 5.73, 5.75 for ECEF"] ATT --> AVG["Average matrix\neq 5.84, 5.85 for ECEF"] FRAME -->|"NED"| RATES["Earth rate (2.123) and\ntransport rate at old state (5.44)"] RATES --> AVG AVG --> SF["Specific force in frame axes\nf = avgC * f_ib^b"] SF --> VEL["Velocity update\neq 5.18/5.20 ECI, 5.36 ECEF, 5.54 NED"] VEL --> POS["Position update\neq 5.23 ECI, 5.38 ECEF, 5.56 NED"] POS --> NEDATT["NED only: transport rate at new state,\nattitude update eq 5.77"] POS --> OUT["New attitude, velocity, position"] NEDATT --> OUT

ECIInertialNavigator

Resolving frame: Earth-centred inertial. No Earth-rotation or transport-rate terms appear, and the gravity term is the pure gravitation vector from 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 . The Earth rotation over the interval is the single angle and is the rotation about z by that angle (Groves (2.145)); the code builds it with CoordinateTransformation.eciToEcefMatrixFromAngle. Gravity comes from 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 , both evaluated at the start of the interval:

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 , longitude and height . The meridian and transverse radii of curvature and come from RadiiOfCurvatureEstimator (see Radii of Curvature, Position and Velocity Estimators) and gravity from 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 factor (the ECEF counterpart above does). Its magnitude is of the order of the Earth rate, so its effect on the specific force is tiny; the page documents what the code does, and the discrepancy is flagged for review.

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 ( is positive downwards, hence the minus sign):

Step 5: attitude update 5.73), (5.77. The transport rate is re-evaluated with the new velocity, latitude and height, (same expression as in step 1), and the Earth rate keeps its old-latitude value. The NED rotation over the interval is the average of the old and new transport rates plus the Earth rate:

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

, evaluated last

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).

Class Reference

Javadoc and source links for the classes used in the examples above:

Class Javadoc Source

ECIInertialNavigator

Javadoc

Source

ECEFInertialNavigator

Javadoc

Source

NEDInertialNavigator

Javadoc

Source

InertialNavigatorException

Javadoc

Source

Where to go next