Inertial Error Integration#
This demo makes the inertial error-integration chain concrete. An error process is injected at one end of the chain (acceleration or velocity) and integrated forward to see how it shows up as a navigation error. The error process is selectable from the four canonical models:
Constant bias: a deterministic offset, e.g. an uncalibrated accelerometer null.
White noise: uncorrelated samples each step, the model for sensor measurement noise.
Random walk: the error itself wanders; its variance grows linearly with time. The natural model for many gyro biases.
Gauss-Markov: mean-reverting noise with a finite memory τ. It bridges white noise (τ → 0) and, at the other extreme (τ → ∞), a random walk for fixed driving noise or a random constant for fixed steady-state σ, and it is the standard model for accelerometer biases that have no preferred value but do have a finite correlation time.
The teaching point is that the further “upstream” the sensor error sits in the integration chain, the higher the time-order of the resulting position error. A constant velocity bias gives linear position growth; a constant acceleration bias gives quadratic position growth. White noise integrates into a random walk (\(\sigma \propto \sqrt{t}\)); random walk integrates into something faster yet (\(\sigma \propto t^{3/2}\)). Gauss-Markov, with its steady-state σ held fixed as in this demo, bridges white noise and a random constant, depending on τ.
Interactive demo#
Walkthrough#
The demo opens on white noise injected at the acceleration level, with \(\sigma = 0.01\) m/s² per sample, \(\Delta t = 1\) s and \(T = 600\) s. In each panel:
the solid trace is one realization;
the shaded band is the empirical \(\pm k\sigma\) envelope from a 200-run ensemble;
the dashed lines are the theoretical \(\pm k\sigma(t)\).
The small log-log panel below the plots shows how fast each \(\sigma(t)\) grows. Try the following:
Switch to “Constant bias” and stay at acceleration injection. Drag the bias slider: the velocity panel grows linearly and the position panel quadratically. With \(b = 0.02\) m/s² and \(T = 600\) s, the position error reaches \(\tfrac{1}{2} b T^2 = 3600\) m. The Block 2 reading’s worked example uses the same bias for 60 s and gets 36 m: ten times the time gives a hundred times the error. (The demo integrates open loop. In a real horizontal channel, Schuler feedback would hold this 10-minute run to about 3440 m, 4.5% lower; see the note after the walkthrough.) The ensemble, α and Reseed controls gray out, because a constant bias has no randomness.
Switch the injection point to “velocity” (still constant bias). The acceleration panel now reads “not used”, and position grows linearly at rate \(b\), reaching \(bT = 60\) m with the default \(b = 0.10\) m/s. That is one integration fewer than the acceleration case, so one power of \(t\) fewer: slope 1 instead of 2 on the log-log panel.
Switch to “White noise” at acceleration. Toggle “show ensemble” on to see 30 of the 200 runs. At \(T = 600\) s, position \(\sigma = 84.8\) m. On the log-log panel, velocity follows the slope-1/2 guide and position the slope-3/2 guide: doubling the run would multiply position \(\sigma\) by \(2^{3/2} = 2.83\).
α. Move the α slider and the band and dashed lines scale by \(k = \sqrt{2}\,\text{erfinv}(1-\alpha)\). Click “95%” and they widen to \(\pm 1.96\sigma\).
Δt. Now slide Δt from 1 s to 0.1 s: position \(\sigma\) drops to 26.8 m, a factor \(\sqrt{10}\). Because \(\sigma\) is specified per sample, the first integral sums \(t/\Delta t\) independent samples weighted by \(\Delta t\), so \(\sigma_v = \sigma\sqrt{\Delta t\,t}\), and integrating again gives \(\sigma_p \approx \sigma\sqrt{\Delta t\,t^3/3}\). That gain is real only at a fixed per-sample σ. A real accelerometer fixes its noise density instead (velocity random walk, \(\text{VRW} = \sigma\sqrt{\Delta t}\)), so its per-sample σ rises as \(1/\sqrt{\Delta t}\) and the drift does not depend on Δt: sampling faster does not reduce INS drift.
Switch to “Random walk” at acceleration. The acceleration trace itself now wanders (variance \(q^2 t\)), and every level climbs one step faster: slopes 1/2, 3/2 and 5/2. Position \(\sigma\) reaches 986 m at 600 s, and doubling the run would multiply it by \(2^{5/2} = 5.66\).
Switch to “Gauss-Markov” and slide \(\tau\).
Short τ (\(\tau \approx \Delta t\)): the process looks like white noise, its variance bounded by \(\sigma_{ss}^2\), and position follows the slope-3/2 guide.
Long τ: over the run, the process acts like a random constant, a bias drawn once from \(N(0, \sigma_{ss}^2)\), not like a random walk. The log-log curves bend from slope 1 (velocity) and slope 2 (position) at \(t \ll \tau\) toward 1/2 and 3/2 at \(t \gg \tau\); the dotted “τ” marker shows where the bend sits (try τ = 100 s). As τ grows, the cue’s position exponent climbs from 1.50 (τ = 1 s) through 1.60 (τ = 100 s) to 1.85 (τ = 600 s). At \(\tau = T = 600\) s the marker reaches the right edge and position \(\sigma\) is 1590 m. The long-time formula \(\sigma_{ss}\sqrt{2\tau t^3/3}\) would claim 2939 m, because it is only valid for \(t \gg \tau\).
Open the cheat sheet at the bottom of the demo for the continuous-time growth law of each model and integration depth: the slopes on the log-log panel. The theory row in the metrics table does not come from those formulas. It propagates the covariance of the simulated chain, \(\mathbf{P} \leftarrow \mathbf{F}\mathbf{P}\mathbf{F}^\top + \mathbf{Q}\), the same recursion as in the Block 2 reading. Theory and the 200-run Monte Carlo therefore agree for every model and every Δt, up to sampling scatter of about ±5% (1σ). After “Reset to defaults” the MC/theory ratios read 1.02, 1.07 and 1.06; click Reseed a few times to watch them scatter around 1.
Open loop vs. a real horizontal channel: Schuler feedback
The demo integrates the chain open loop, so a constant acceleration bias gives \(\tfrac{1}{2} b t^2\) forever. A real horizontal channel does not. Once the INS thinks it has moved \(\delta x\) along the Earth, it tilts its idea of “down” by \(\delta x / R\), mis-resolves gravity, and feeds back a restoring acceleration \(-(g/R)\,\delta x\). The channel becomes an oscillator, \(\delta\ddot{x} = b - \omega^2 \delta x\) with \(\omega = \sqrt{g/R} = 1.24\times10^{-3}\) rad/s (the 84.4-minute Schuler period), and from zero initial error
So the open-loop answer runs high by about \((\omega t)^2/12\). For the walkthrough’s \(b = 0.02\) m/s²:
Time |
Open loop \(\tfrac{1}{2} b t^2\) |
With Schuler feedback |
Open loop too high by |
|---|---|---|---|
1 min |
36 m |
36 m |
0.0% |
5 min |
900 m |
890 m |
1.1% |
10 min (the demo’s run) |
3600 m |
3437 m |
4.5% |
21 min (¼ period) |
16.0 km |
13.0 km |
19% |
42 min (½ period) |
64 km |
26 km, the peak \(2b/\omega^2\) |
— |
84 min (one period) |
256 km |
0 |
— |
Open loop is the right picture for minutes, which is why the demo can ignore Schuler. By a quarter period it is badly wrong.
An accelerometer bias is bounded. It sloshes back and forth with amplitude \(b/\omega^2\) and returns to zero every 84 minutes: it is one of the turn-on Schuler terms of the drift model. It also looks exactly like a tilt (\(b = g\,\delta\theta\)), which is why leveling at alignment cancels most of it. A navigation-grade 50 µg bias gives only about 320 m of amplitude; the demo’s 0.02 m/s² (about 2 mg) is a deliberately coarse sensor.
A gyro bias is what grows without bound: \(R\varepsilon\,(t - \sin\omega t/\omega)\), a ramp plus a Schuler oscillation locked to it. That is why inertial drift is quoted in NM/hr and traced to the gyros (Inertial Drift demo).
The vertical channel has the opposite sign. Gravity weakens with height, so the feedback is destabilizing and the error grows exponentially, with a time constant \(\sqrt{R/2g} \approx 9.5\) min. That is why the vertical channel is always aided, usually by a barometric altimeter.
A hook for class: \(2\pi\sqrt{R/g}\) is also the period of a circular orbit skimming the Earth’s surface.
Key observations#
Integration order matters more than amplitude. A 0.02 m/s² accel bias is sneakier than a 0.1 m/s velocity bias even though the latter sounds bigger, because the former hits position with two integrations instead of one.
Confidence interval ≠ accuracy. A tight band around a single realization tells you about ensemble spread, not whether the realization is biased. Reseed a few times: the realization jumps around, the shaded empirical band shifts by a few percent (Monte Carlo scatter), and only the dashed theory curve stays put.
Random walk is qualitatively different from white noise integrated. White-noise velocity integrates into a position random walk (\(\sigma \propto \sqrt{t}\)). A random-walk velocity, on the other hand, has variance that itself grows linearly, and its integral grows like \(t^{3/2}\). That extra factor of \(t\) is what makes random walk so painful for inertial systems running open-loop.
Gauss-Markov saturates. Unlike random walk, the Gauss-Markov error stays bounded around its steady-state \(\sigma_{ss}\). Its integrated descendants still grow with time, but the source of growth is the integral of a bounded process, not an unbounded one. That’s why most accelerometer specs use Gauss-Markov for bias modeling instead of pure random walk.