Inertial Drift and Schuler Cycle#
Real inertial drift is not a clean linear ramp. One horizontal component of the position error of an unaided inertial system (north, east, or along-track) is the sum of
with
a true drift \(b\) (m/s), the long-term slope you actually care about, which a gyro bias delivers together with a gyro-locked Schuler term \(-(b/\omega)\sin\omega t\) of amplitude \(b/\omega \approx 415\) m per NM/hr;
a turn-on Schuler term \(A\cos(\omega t + \phi_0)\), set by alignment and independent of the drift;
both at \(\omega = 2\pi / T_{\text{Schuler}}\), where \(T_{\text{Schuler}} = 2\pi\sqrt{R_e/g} \approx 84.4\) min;
and white measurement noise \(v(t)\).
If you fit a plain straight line to \(e(t)\) to estimate \(b\), the Schuler terms tilt it, and the tilt depends on the test window length. The gyro-locked term has a fixed phase, so its bias is deterministic and, from half a period on, almost always high: +30% at exactly one period. It does not average out at whole periods. The turn-on term’s bias depends on its phase and shrinks roughly as \(1/W^2\). The demo fits the slope two ways: the plain line \(a + b\,t\) and the Schuler-aware fit \(a + b\,t + c\cos\omega t + d\sin\omega t\), which contains both Schuler terms and is the course’s Requirement 3 method. Sweep the window length while watching the time series and a drift-vs-window curve that lays out both estimates, with their 95% CIs, across every possible window on the same data.
Interactive demo#
Walkthrough#
The demo opens at the default scenario: 1.0 NM/hr true drift with its gyro-locked term on, a turn-on term with \(A = 100\) m and \(\phi_0 = 30^\circ\), 10 m noise, and an 85-minute test window over a 200-minute run. Try:
Read the headline metrics. The plain fit reads 1.334 NM/hr, 95% CI [1.326, 1.342], +0.334 NM/hr (+33.4%) from truth; the tile underneath splits out the gyro-locked part, +0.297 (+29.7%). The Schuler-aware fit reads 1.000 NM/hr, 95% CI [0.999, 1.000]. The plain fit’s CI misses truth by a wide margin: the Schuler residual biases the estimate even though the noise-driven CI is tight. Confidence interval \(\ne\) accuracy. The line under the tiles splits the plain slope’s error into gyro-locked, turn-on, and noise parts (+0.297, +0.037, and +0.000 NM/hr here).
Look at the bottom plot, estimated drift vs. test-window length. The rust curve is the plain fit, the gold curve the Schuler-aware fit, and the teal dashed line the truth; the blue-gray and gold bands are their 95% CIs. With the gyro-locked term on, the rust curve reads low on short windows, climbs above truth before one period, and then stays mostly above it, swinging with a period of about \(T_S\) in window length. Vertical dashed lines mark \(T_S\) and \(2T_S\).
Isolate the gyro-locked term. Uncheck the turn-on term and set the noise to 0. Now the plain fit reads 1.402 NM/hr (+40.2%) at 69 min, 1.303 (+30.3%) at 84.5 min, 1.000 at 126.5 min, and 1.076 (+7.6%) at 169 min. One whole period does not put the plain fit on truth: at \(N\) whole periods it reads \(1 + 3/(\pi^2 N^2)\) times the truth. The Schuler-aware fit reads 1.000 NM/hr at every window.
Click Reset, then slide the window below one period. The Schuler-aware fit stays centered on truth, but the last tile shows the price: its slope standard error is ×1.57 the plain fit’s at 85 min, ×3.27 at 63 min, and ×8.39 at 42 min (×1.01 at 126.5 min). Raise the noise to 50 m to see the gold band open up on short windows; at 42 min the fit reads 0.968 NM/hr. This is why drift runs last at least 85 minutes: not to average the oscillation out, but so the fit can separate drift from oscillation with a CI tight enough to show compliance.
Uncheck the gyro-locked term (Reset first). This is the turn-on term alone, the older textbook picture. At 85 min the plain fit reads 1.037 NM/hr (+3.7%), 0.947 NM/hr (−5.3%) at 60 min, and 1.009 NM/hr at 168.5 min. Now raise the turn-on amplitude to 1000 m (a poor alignment): at 85 min the plain fit jumps to 1.372 NM/hr (+37.2%), and with the gyro-locked term back on, to 1.669 NM/hr. The Schuler-aware fit stays at 1.000 NM/hr throughout.
Slide the turn-on phase from 0° to 360°. The plain curve reshapes: for a fixed window some phases help and others hurt. You can’t pick the phase you start on, so for this term design for the worst case, \(|\Delta\hat{b}|_{\max} \approx 6A/(\pi N^2 T_s)\) for a run of \(N\) Schuler periods (the line under the tiles prints it). The gyro-locked term’s phase never changes, so its bias stays put.
Uncheck both Schuler terms. Both curves flatten onto truth. The CI bands remain, narrowing with longer windows because more samples reduce noise variance. This is what a slope fit “should” look like when only noise is present.
Re-enable both terms and tick “show components.” The drift ramp (rust dashed), the gyro-locked term (purple), and the turn-on term (green dotted) overlay the total error (blue). The gyro-locked oscillation is what flattens the total into a staircase near each \(T_S\), and it is why a straight line through one period is fooled.
Reseed. The noise realization changes, but the Schuler components and the deterministic drift-vs-window structure stay essentially the same. The plain fit’s bias from truth is dominated by Schuler residual, not by noise.
Key observations#
The Schuler period is universal. \(T_S = 2\pi\sqrt{R_e/g} \approx 84.4\) min depends only on Earth’s radius and gravity. Every unaided inertial system on Earth’s surface has it. The mechanism (attitude error → mis-projected gravity → false horizontal acceleration → velocity → position → attitude correction) is closed-loop and self-resonating; the period is the small-signal natural frequency of that loop.
A gyro bias brings its own Schuler term. The drift and the gyro-locked oscillation come from the same bias, so the oscillation is always there and always in the same phase. From half a period on, a plain line fit reads high (never more than 0.2% low): +30.4% at one period, +7.6% at two, +3.4% at three.
Whole periods are not special. Neither term averages out at a whole number of periods. The turn-on term’s worst-case bias decays as \(1/N^2\): with \(A = 100\) m it is about 0.073, 0.018, and 0.008 NM/hr at one, two, and three periods. The cancellation-at-whole-cycles idea belongs to an end-point-difference slope, not to a least-squares fit.
Fit the Schuler term. Because \(\omega\) is known, the Schuler-aware fit is still linear least squares. Both Schuler terms lie in its model, so its slope is unbiased at any window. Below about one period it pays in precision: the CI widens fast.
Run at least one Schuler period. The course rule of thumb is 85 minutes minimum, so the Schuler-aware fit can separate the drift from the oscillation with a usable CI. The drift-vs-window curve makes it visible: the gold band is wide below \(T_S\) and hugs the truth beyond it.
Noise widens the CI; Schuler biases the plain slope. Increasing \(\sigma_{noise}\) widens the CI bands but does not move the plain curve’s central swing. The plain fit’s band also widens with Schuler content, because the fit treats the leftover oscillation as if it were noise, yet the band still misses truth.
A tight CI is not an accurate estimate. This is the operationally critical takeaway. The plain fit’s 95% CI captures noise-driven variability around the OLS slope; it has no idea about the deterministic Schuler terms. A flight-test report that shows a tight CI on a plain line fit is reporting precision, not accuracy.
The demo’s noise is white, so both CIs here use the raw sample count. Flight data are autocorrelated, and that is the bridge to Block 9: the correlation-time and effective-sample-size (\(N_\text{eff}\)) framework, applied to the Schuler-aware fit’s residual, gives a defensible drift-slope confidence interval.