navi.776 techniques (Motooka 2026, GSDC 2023-24 winner)¶
Introduction of three techniques from "Optimized GNSS/INS Integration with
Time Synchronization for High-Accuracy Smartphone Positioning" (NAVIGATION
Vol. 73, navi.776) into the KF/RTK path. Branch:
feature/navi776-gnss-ins-techniques. All knobs default-OFF and
bit-identical when off (verified: tokyo run1 first 1200 epochs, md5-equal
.pos against the pre-change binary).
Cycle-slip detection and NIS gating from the paper were not ported — this library's existing implementations are already a superset.
A. Innovation-based adaptive measurement variance¶
RTKConfig::enable_adaptive_measurement_noise (+ --rtk-adaptive-noise
on gnss_solve / gnss_fuse / ppc-demo).
Paper recursion R <- a*R + (1-a)*(vv' - HPH'), diagonal only, applied at
the single-difference level: the per-satellite EWMA of
v^2 - HPH_ii - ref_var replaces the model satellite variance fed into
buildDoubleDifferenceCovariance, clamped to
[min_scale, max_scale] * model_variance (model = varerr x SNR x NLOS, so
elevation trends stay the backbone). Reference-side variance stays at the
model value, keeping the DD block's correlated part known and the block PD
by construction. Keying is per satellite/frequency/kind, so the memory
survives reference switches. alpha: phase 0.9, code 0.5 (paper values).
Slip resets the phase entry; reacquisition clears the tracker; gate-rejected
epochs never adapt.
Gate A result (2026-07-27, same binary, full runs, canonical flags*)¶
| run | variant | fix% | 50cm-matched% | official% | p95_h m |
|---|---|---|---|---|---|
| tokyo1 | OFF | 86.71 | 82.63 | 68.97 | 1.381 |
| tokyo1 | ON (paper defaults) | 84.78 | 84.38 | 69.33 | 1.891 |
| tokyo1 | ON2 (max-scale 4) | 84.37 | 82.89 | 68.90 | 1.857 |
| tokyo3 | OFF | 81.82 | 87.09 | 77.54 | 0.883 |
| tokyo3 | ON | 86.12 | 90.37 | 77.36 | 0.998 |
| tokyo3 | ON2 | 85.45 | 89.45 | 77.23 | 1.147 |
| nagoya1 | OFF | 86.42 | 80.34 | 54.12 | 0.755 |
| nagoya1 | ON | 76.15 | 79.95 | 51.44 | 1.869 |
| nagoya1 | ON2 | 75.91 | 79.81 | 51.17 | 1.848 |
* ppc-demo --solver rtk --preset low-cost --ratio 2.4
--max-subset-ar-drop-steps 18 --rtk-snr-weighting --no-arfilter
--max-epochs -1
Verdict: mixed-negative as a blanket default — flag stays OFF. tokyo3 is a clear win (fix +4.30 pp, 50cm +3.28 pp), tokyo1 trades fix for 50cm score, nagoya1 collapses (fix −10.3 pp, p95_h +147%). The one permitted retune (max_variance_scale 25 → 4) did not rescue nagoya and slightly hurt tokyo, so the ceiling is not the driver: on the 9.4 km MEIJOBASE baseline the innovation stream contains real DD model error (ionosphere), which the tracker faithfully absorbs into R, loosening the filter exactly where the model needs to stay strict. The mechanism matches the paper's context — short smartphone baselines with device-quality noise as the dominant innovation source. Usable as an opt-in for short-baseline urban runs; do not enable on long baselines.
A3 follow-up: baseline-length gate (adaptive_noise_max_baseline_m)¶
--rtk-adaptive-noise-max-baseline <m> (0 = no gate): adaptation is
active only while the float baseline is at or below the threshold,
evaluated on the prior state each epoch. With the gate at 1000 m
(same binary, full runs, vs the same OFF baselines as gate A):
| run | variant | fix% | 50cm-matched% | official% | p95_h m | wall s |
|---|---|---|---|---|---|---|
| tokyo1 | OFF | 86.71 | 82.63 | 68.97 | 1.381 | 73.5 |
| tokyo1 | gated ON | 87.16 | 82.26 | 68.38 | 1.381 | 83.6 |
| tokyo3 | OFF | 81.82 | 87.09 | 77.54 | 0.883 | 218.1 |
| tokyo3 | gated ON | 83.09 | 88.57 | 77.56 | 0.880 | 234.1 |
| nagoya1 | gated ON | bit-identical to OFF (md5-equal .pos) |
Verdict: PASSES the gate bar on all three runs — fix +0.45 pp
(tokyo1) / +1.27 pp (tokyo3) / unchanged (nagoya1), p95_h flat
everywhere, nagoya1 exactly neutralized. The gate also fires on tokyo
SPP-reseed excursions (transient float baselines > 1 km), which
incidentally stops the tracker from learning during resets — that is why
gated tokyo1 beats ungated ON on fix by 2.4 pp. Cost: the ungated 50cm
gains shrink (tokyo1 +1.75 -> -0.37 pp; tokyo3 +3.28 -> +1.48 pp), and
wall +7-14%% from the extra bookkeeping. Recommended opt-in:
--rtk-adaptive-noise --rtk-adaptive-noise-max-baseline 1000.
The feature remains default-OFF pending a user decision on making this
combination a preset.
Other follow-up candidates (not pursued): phase-only adaptation, per-system alpha.
B. SD Doppler observation rows (velocity observability)¶
RTKConfig::enable_doppler_measurement_rows (+ gnss_fuse
--tc-doppler-rows, --tc-doppler-sigma; requires --tc-velocity-states).
Rover-only between-satellite SD Doppler rows in the RTK measurement update,
same observation model as FGO's opt-in SingleDifferenceDopplerFactor
(sigma 0.2 m/s). Receiver clock drift cancels in the between-satellite
difference; rows touch only the M4 velocity tail states (force-active mask
already in place), never ambiguities/AR/slip/locks. Doppler rows carry a
per-row outlier threshold (m/s domain) instead of the metre-domain scalar.
Rows are skipped until the first INS position/velocity time update
initializes the velocity covariance.
Gate B result (2026-07-27, same binary, full runs)¶
Both arms --tc-closed-loop --tc-velocity-states + canonical RTK knobs +
per-city lever arm; scored on the --rtk-pos-out stream. OFF numbers
reproduce docs/tight_coupling.md's M4 table exactly (77.36/75.75/7.53 on
tokyo1), confirming measurement consistency.
| run | variant | fix% | 50cm-matched% | official% | p95_h m |
|---|---|---|---|---|---|
| tokyo1 | OFF (M4) | 77.36 | 75.75 | 70.07 | 7.53 |
| tokyo1 | ON (sigma 0.2) | 78.24 | 74.17 | 71.36 | 10.05 |
| tokyo1 | ON2 (sigma 0.5) | 78.39 | 76.20 | 72.66 | 8.23 |
| tokyo3 | OFF | 78.52 | 79.23 | 74.69 | 4.69 |
| tokyo3 | ON | 76.11 | 72.80 | 69.96 | 11.01 |
| tokyo3 | ON2 | 79.50 | 77.53 | 73.85 | 6.97 |
| nagoya1 | OFF | 78.27 | 74.39 | 55.46 | 9.66 |
| nagoya1 | ON | 78.14 | 69.26 | 53.30 | 10.37 |
| nagoya1 | ON2 | 73.27 | 63.81 | 45.91 | 9.92 |
Verdict: mixed-negative as a blanket default — flag stays OFF. The paper sigma (0.2 m/s) over-constrains automotive urban Doppler: 50cm/p95 regress everywhere. The retune (sigma 0.5) turns tokyo1 into a near-clean win (fix +1.03 pp, 50cm +0.46 pp, official +2.59 pp; only p95_h +9% fails the bar) and improves tokyo3 fix (+0.98 pp) at small accuracy cost, but nagoya1 regresses badly under both sigmas. Pattern mirrors gate A: on the 9.4 km baseline the extra velocity coupling propagates model-error-driven velocity into the position/ambiguity block through the INS reanchor loop. Usable as an opt-in on short-baseline runs (sigma 0.5 recommended over the paper's 0.2); do not enable on long baselines.
C. Offline GNSS-IMU time-offset search¶
Machinery: ImuSeries::shiftTime (week-rollover-safe), gnss_fuse
--imu-time-offset <s> (applied at load, 0.0 = guarded exact no-op, OFF
bit-identity verified), per-run imu_time_offset_score: stdout line
(J(dt) = mean squared Kalman position correction accumulated ONLY on
INS-time-update epochs), and scripts/search_imu_time_offset.py
(coarse 100 ms -> fine 20 ms, coverage guard, boundary warning;
--coarse-fine off gives the paper-faithful 101-candidate sweep).
Gate C result (2026-07-27, 3000-epoch prefixes, closed-loop coupling)¶
| window | argmin dt | J spread across candidates | shape |
|---|---|---|---|
| tokyo run1 | -0.32 s | 0.063 vs 0.16 m^2 | bimodal noise (two solution branches, no convexity) |
| tokyo run3 | -0.30 s | 0.0143-0.0166 m^2 (1.16x) | flat |
| nagoya run1 | -0.90 s | 0.504-0.665 m^2 (1.32x) | flat, argmin near boundary |
Verdict: null result — no reliable time offset detectable; the applied offset stays 0.0. The pre-registered acceptance criteria (locally convex J around the argmin, two-window agreement) fail on every window: the tokyo1 curve is a bimodal fix-branch lottery, tokyo3/nagoya1 are flat to within run-to-run noise. Two causes, both expected in hindsight: (1) the PPC-Dataset's Septentrio mosaic-X5 + tactical IMU logging is hardware-synchronized, so the true offset is ~0 and there is no signal to find; (2) the M3 closed loop re-anchors the INS at RTK's own posterior every epoch, so a mistimed IMU only perturbs one ~0.2 s mechanization interval per update — J barely responds even to a +/-1 s shift. The paper's method needs an unanchored GNSS/INS EKF over device-quality data (its smartphone context) to make J sharply dt-sensitive.
ESKF / precomputed-solution extension (2026-07-27)¶
The adapter and non-RTK scoring path are now implemented:
gnss_fuse --gnss-pos <solution.pos>feeds a precomputed LibGNSS++ or RTKLIB position/velocity stream directly toLooseCouplingProcessor; raw rover/base observations and navigation data are not required.Solution::loadFromFile()accepts RTKLIB calendar-time LLH rows and converts their full NEU position/velocity covariance to ECEF.--imu-format rtklibexplorer-sfloads the upstream GPST-referenced Unix timestamps, converts acceleration g to m/s2, and preserves gyro rad/s.--imu-misalignment-rpy-degapplies upstreamEuler_to_CTMfollowed by FRD-to-FLU conversion.- In this path, J uses only the accepted GNSS position-update injection,
captured before the same-epoch velocity update. This avoids contaminating
the position-correction objective with velocity-update cross-covariance.
--imu-time-offset-score-start-epochpermits a warm-up prefix followed by a disjoint scoring window. search_imu_time_offset.pyaccepts--gnss-pos,--imu, the format and mounting arguments while retaining its original RTK-data-dir interface.
Validation used upstream rtklibexplorer/GNSS_IMU at commit
a6d74e83f35636859c2cb9a3a397df39bd044a07. These logs are on a common
GPST axis, but upstream documents a fixed logging-delay correction of
-0.125 s for drive_0708 and 0 s for walk_0827, providing known targets.
| run / scoring window | expected dt | grid | argmin dt | result |
|---|---|---|---|---|
| drive epochs 0-999 | -0.125 s | 50 ms | -0.100 s | pass, 25 ms error |
| drive epochs 1000-1999 | -0.125 s | 50 ms | -0.250 s | fail, route-dependent minimum |
| walk epochs 0-267 | 0.000 s | 50 ms | 0.000 s | pass |
| walk epochs 268-535 | 0.000 s | 50 ms | 0.000 s | pass |
| walk full run | 0.000 s | 50 ms | 0.000 s | pass |
The walk two-window acceptance criterion passes exactly, and the drive first window recovers the documented nonzero delay within 25 ms. The drive second window does not reproduce it: J instead bottoms near -0.25 s. Therefore the extension is a partial positive demonstrating that the machinery can recover both zero and nonzero known offsets, but the original safeguards remain mandatory: never accept an offset without local shape and independent window agreement. The drive failure also shows that an ESKF correction-norm objective can remain motion/model dependent even without RTK re-anchoring.
Example (drive first window):
python scripts/search_imu_time_offset.py \
--gnss-pos ../data/rtklibexplorer_gnss_imu/drive_0708/gnss_1934_sf.pos \
--imu ../data/rtklibexplorer_gnss_imu/drive_0708/imu_1934_sf.csv \
--imu-format rtklibexplorer-sf \
--imu-misalignment-rpy-deg=179.71,-6.60,185.35 \
--lever-arm 0,0.05,0 --coupling-flags= \
--offset-min -0.2 --offset-max 0 --offset-step 0.05 \
--coarse-fine off --max-epochs 1000 \
--out-dir output/navi776_eskf_offset_drive_w1
Final combined configuration and five-run sign-off¶
The public opt-in is gnss_fuse --navi776-tc. It enables the M4 closed
loop, velocity states, Doppler rows at sigma 0.5, and adaptive noise; both
Doppler and adaptive-noise paths are gated at a 1000 m baseline. With --base
it also writes --out from the
independent output filter, which
passed a frozen holdout and leaves
the RTK stream unchanged. It also enables two measured-update optimizations:
This preset is the only navi.776 control shown in the default
gnss_fuse --help. The component controls remain accepted for reproducible
experiments and are documented by gnss_fuse --help-advanced.
- the Kalman update returns the already-solved weighted innovation and
diag(H P H^T), avoiding a second innovation-matrix factorization while preserving the adaptive tracker's row statistics; - carrier/code rows and Doppler rows are applied as two sequential, mathematically equivalent measurement blocks. This reduces the cubic solve size without discarding Doppler information.
The individual optimization flags are
--tc-reuse-update-factorization and
--tc-sequential-doppler-update. Both default off outside the preset.
The reuse path automatically stays off when the immediate NIS gate needs
its legacy pre-update calculation.
The table below is the authoritative accuracy sign-off. Every OFF/ON pair
is scored on its raw --rtk-pos-out stream:
| run | variant | fix% | 50cm-matched% | official% | p95_h m | prior wall s |
|---|---|---|---|---|---|---|
| tokyo1 | OFF | 77.36 | 75.75 | 70.07 | 7.53 | 375.0 |
| tokyo1 | --navi776-tc |
79.77 | 77.87 | 76.30 | 7.24 | 408.3 |
| tokyo2 | OFF | 77.58 | 82.39 | 84.03 | 2.95 | 403.5 |
| tokyo2 | --navi776-tc |
85.09 | 84.85 | 84.57 | 2.81 | 490.0 |
| tokyo3 | OFF | 78.52 | 79.23 | 74.69 | 4.69 | 896.4 |
| tokyo3 | --navi776-tc |
80.31 | 78.08 | 75.71 | 4.59 | 921.3 |
| nagoya1 | OFF | 78.27 | 74.39 | 55.46 | 9.66 | 260.5 |
| nagoya1 | --navi776-tc |
78.27 | 74.39 | 55.46 | 9.66 | 259.2 |
| nagoya2 | OFF | 54.18 | 53.85 | 39.59 | 27.81 | 364.5 |
| nagoya2 | --navi776-tc |
54.18 | 53.85 | 39.59 | 27.81 | 362.4 |
The final preset improves fix rate on every short-baseline run by +2.41/+7.50/+1.79 pp and improves official score on all three by +6.23/+0.55/+1.02 pp. Raw p95 now improves on all three runs, including tokyo2 from 2.95 m OFF to 2.81 m ON. The preset remains opt-in because it still has active-path compute cost and is validated specifically for this short-baseline tight-coupling profile.
The wall column retains the immediately preceding, identical-estimator trajectory measurements so the historical compute comparison remains reproducible. The FLOAT stabilizer described below runs after estimation, does not change solve iterations, and fits at most the preceding 20 s of FIX anchors only on eligible FLOAT epochs. A cool serial precursor replay completed in 416 s; the exact-final isolated replay took 750 s after sustained parallel validation load. The exact-final parallel and isolated RTK files were byte-identical, so the wall spread is treated as host thermal/power-state variance rather than an algorithm timing result.
The long-baseline guard is stronger than score equality: the OFF and ON
RTK files are bit-identical. Nagoya1 MD5 is
ac8f1f079296a4f10ed3603b4e672f54; Nagoya2 MD5 is
30d61358688fd1a34f5f71b14c3e2803. The ON wall times are also slightly
lower, so the disabled path is harmless in both 9.4 km validation runs.
Earlier tokyo1/tokyo3 “combined” numbers in the experiment log were
generated with explicit component flags before the Doppler baseline gate
became part of --navi776-tc. They remain useful ablations but are not
current-preset results; the table above supersedes them.
Nine-run re-check (2026-10-30)¶
The sign-off above compares one run per arm. On these runs a 2–4 cm
lever-arm change moves a Tokyo run by up to 5 pp
(run-to-run spread). The
preset and its components were therefore rerun nine times each with
scripts/analysis/ppc_fuse_spread.py (FLU lever arms, current tree).
Each cell is correct FIX (3D < 0.5 m, % of epochs) / wrong FIX (% of FIX),
mean ± SD over the nine runs. "M4" is --tc-closed-loop --tc-velocity-states,
the OFF arm above.
| Run | M4 | M4 + adaptive noise | M4 + Doppler rows | --navi776-tc |
|---|---|---|---|---|
| tokyo/run1 | 72.67 ± 1.47 / 6.38 ± 1.52 | 72.13 ± 0.93 / 7.54 ± 1.56 | 72.49 ± 3.26 / 7.33 ± 2.41 | 72.18 ± 2.52 / 7.39 ± 2.97 |
| tokyo/run2 | 74.68 ± 2.29 / 3.28 ± 0.79 | 77.76 ± 1.05 / 3.26 ± 0.85 | 81.49 ± 1.13 / 3.48 ± 1.20 | 81.39 ± 1.24 / 2.89 ± 1.14 |
| tokyo/run3 | 80.13 ± 2.04 / 3.02 ± 1.26 | 80.85 ± 2.08 / 3.18 ± 1.21 | 78.47 ± 1.64 / 5.01 ± 1.34 | 76.99 ± 1.60 / 5.11 ± 2.04 |
| Six-run mean ± SE | 67.58 ± 0.20 / 6.63 ± 0.14 | 68.12 ± 0.15 / 6.85 ± 0.14 | 68.40 ± 0.22 / 7.16 ± 0.18 | 68.09 ± 0.19 / 7.08 ± 0.22 |
The Nagoya runs are identical in all four arms. Their 9.4 km baseline turns the Doppler rows and the adaptive noise off at the 1000 m gate. The six-run mean includes them.
- The tokyo/run2 gain is real. It is +6.7 pp of correct FIX over M4, about eight standard errors. Most of it comes from the Doppler rows (+6.8 pp alone; adaptive noise alone +3.1 pp).
- tokyo/run3 loses 3.1 pp of correct FIX against M4 (about 3.6 standard errors), and its wrong-FIX rate rises from 3.02% to 5.11%.
- The Doppler rows alone lose 1.7 pp; adaptive noise on top loses 1.5 pp more.
- The single-run sign-off also showed this run's 50 cm share falling, while its fix rate rose.
- Why: while the car stands still the float drifts, and the hold-fix fallback then rounds pairs into a fix about 0.9 m off. The validated-only KF hold recovers the run (tokyo/run3 against M4).
- tokyo/run1 shows no difference.
- Over six runs the preset adds 0.51 pp of correct FIX (about 1.8 standard errors) and 0.45 pp of wrong-FIX rate. Its benefit is concentrated on tokyo/run2.
python3 scripts/analysis/ppc_fuse_spread.py --without-navi776-tc \
--dataset-root data/PPC-Dataset --out-dir output/ppc_fuse_spread/m4 \
-- --tc-closed-loop --tc-velocity-states
Known issue: the velocity state (2026-10-31)¶
Under --tc-velocity-states, and so under --navi776-tc, the RTK velocity
state is not a usable velocity, and the main loose ESKF's --out stream is not
reliable. Since 2026-11-01 --navi776-tc writes --out from the
independent output filter instead,
which leaves the RTK stream byte-identical. The fused columns below are the
main filter's (now --no-independent-output-filter).
Measured with the unperturbed lever arm, one run per PPC run. The velocity error is against the reference trajectory; the fused error is 3D.
| Run | Velocity error p50 / p90 (m/s) | Its σ, p50 (m/s) | Epochs with Doppler rows | Fused --out p50 / p90 (m) |
--tc-closed-loop only: fused p50 / p90 (m) |
|---|---|---|---|---|---|
| tokyo/run1 | 22.70 / 77.5 | 0.033 | 20% | 6,101 / 81,479 | 2.11 / 37.62 |
| tokyo/run2 | 8.42 / 27.9 | 0.018 | 65% | 150 / 3,439 | 0.14 / 3.03 |
| tokyo/run3 | 20.05 / 65.4 | 0.032 | 16% | 7,814 / 103,958 | 0.08 / 1.40 |
| nagoya/run1 | 0.65 / 9.2 | 0.708 | 0% | 1.54 / 84.24 | 14.24 / 967 |
| nagoya/run2 | 0.25 / 9.3 | 0.626 | 0% | 33.98 / 330 | 0.48 / 28.77 |
| nagoya/run3 | 1.51 / 8.6 | 0.700 | 0% | 5.86 / 107 | 0.78 / 12.16 |
- Why the velocity state is wrong.
TightCouplingProcessor::reanchor()resets the closed-loop INS to the RTK position and velocity at every epoch. However, its attitude and IMU biases are copied from the loose ESKF only when the loop starts, and are never corrected after that.- The RTK time update then sets the velocity state to the INS velocity but keeps the RTK velocity covariance. While Doppler rows are present, that covariance shrinks to a few cm/s.
- On tokyo/run3, the rows switch on at TOW 179497.8 with the velocity 0.08 m/s off and a row RMS of 0.06 m/s. The error then grows steadily, to 0.83 m/s within 10 s. Beyond the 1 m/s row outlier threshold the rows are rejected. 40 s after the switch-on the velocity is 16 m/s off, while the car moves at about 1 m/s.
- The rows exist only within 1 km of the base. On the Tokyo runs that is 16–65% of the epochs, and on Nagoya (9.4 km) none.
- Why
--outdiverges. The loose ESKF behind--outtakes the RTK velocity, with its few-cm/s σ, as a velocity measurement. On Tokyo this puts the fused stream kilometres off. Even with--tc-closed-loopalone, the fused stream has long tails on tokyo/run1 and Nagoya. With--independent-output-filter, a second loose ESKF that takes the SPP Doppler velocity writes--out; on the PPC Tokyo runs its p50 is 0.09–0.12 m. - The loose ESKF also fails on its own. Without any tight-coupling flag
(the same RTK flags, one run per PPC run), nagoya/run1 is kilometres off as
well: fused p50 2,044 m, p90 13,274 m. Its gyro bias estimate grows to
0.229 rad/s within about 300 s and stays there, and the heading is not
converged at the end of the run. On tokyo/run1 and tokyo/run3 the estimate also reaches
0.16 rad/s, though there the fused p50 stays at 2.43 m and 0.09 m. The
other three runs are below 0.09 rad/s (fused p50 0.12–1.86 m). The cause
and the opt-in
--consider-before-heading-latchare in the loose ESKF before the heading latch; that flag is not for--navi776-tc, where it changes the RTK stream. - Fixing the velocity makes the RTK stream worse. Three experiment builds were measured:
| Change | Velocity error p50 | Correct FIX, six runs | Wrong FIX, six runs |
|---|---|---|---|
None (--navi776-tc) |
see above | 68.09% | 7.08% |
| A: loose ESKF and closed-loop INS take the SPP Doppler velocity | 0.42–0.47 m/s | 65.43% | 10.43% |
| B: A, and the closed-loop INS takes the loose ESKF's attitude and biases at every epoch | 0.13–0.19 m/s | 65.42% | 10.38% |
- Correct FIX are at 0.5 m, nine runs per PPC run (six-run means). The velocity errors are from single tokyo/run2 and tokyo/run3 runs.
- With A or B, the fused stream on those two runs is 0.08–0.10 m off (median).
- With A or B, the nine runs of each PPC run give the same correct FIX within 0.1 pp, and their positions agree within 4 mm in 99% of epochs. Without them, a 2–4 cm lever-arm change moves a Tokyo run by up to 5 pp (run-to-run spread), so that spread is a symptom of this loop.
- C, changing only the loose ESKF's input, still changes the RTK stream: the closed loop restarts from the loose ESKF after a failed re-anchor. On one run per PPC run, correct FIX fall from 68.21% to 66.99%.
- With the validated-only KF hold the gap remains. B with
--hold-kalman-update --hold-kalman-update-validated-onlyscores 68.14% / 6.51%, against 70.57% / 5.68% for the preset with the same hold. It is lower on every run, by 0.6 (nagoya/run3) to 7.0 pp (nagoya/run1). - Most of the difference is a few stops.
- On nagoya/run1 and tokyo/run1, B loses 95 s and 110 s while the car stands still. It re-acquires a fix 0.7–1.9 m off and holds it, while the preset happens to be correct there.
- With B the nine runs move together, so one such event counts nine times. The ± of its means then reflects only the lever arm, not these events.
- A zero-velocity update for the RTK does not help either.
- The closed-loop INS has a ZUPT, but its velocity is reset to the RTK velocity state at every epoch, so it has no effect.
- Its IMU-only detector is also unreliable. Of the epochs it flags as stationary on the six runs, 67% are (reference speed below 0.1 m/s), and 7,488 are at more than 1 m/s.
- The previous epoch's SPP Doppler speed below 0.1 m/s is a far better detector: 99.7% of its flags are stationary, one epoch is above 1 m/s, and it finds 74% of the stationary epochs (90% below 0.2 m/s).
-
With that detector, an experiment build sets the closed-loop time update to zero displacement and zero velocity. Over nine runs per PPC run:
Correct FIX at 0.5 m 0.25 m Wrong FIX --navi776-tc68.09% 62.93% 7.08% --navi776-tc, RTK ZUPT67.44% 62.58% 7.88% --navi776-tc, validated-only KF hold70.57% 68.35% 5.68% --navi776-tc, validated-only KF hold, RTK ZUPT69.29% 67.23% 7.76% -
The ZUPT gains 3.2 pp on tokyo/run3, where the stop was lost. However, it loses 6.6 pp on nagoya/run1. There every carrier pair is lost for 0.4 s just as the car stops, the code-only float is pulled 6 m off, and a fix about 2 m off is then held for the rest of the stop.
- Nothing is changed. The preset's RTK results depend on this loop, and every fix tried scores worse on the six runs it was tuned on. A fix needs an attitude and bias correction for the closed-loop INS and an honest velocity covariance, and then a new sign-off. The rework below tried that.
Closed-loop INS rework (2026-10-31, not adopted)¶
An experiment build (not merged) reworked the closed-loop INS as the previous section asks. Every change is switched by an environment variable; with all of them unset, the output is byte-identical to the preset.
- The INS keeps and corrects its own velocity.
reanchor()keeps the INS velocity instead of overwriting it with the RTK velocity state.- At every RTK epoch the INS takes an ESKF update with the epoch SPP Doppler velocity, so attitude and IMU biases are corrected through the covariance. The SPP velocity covariance is too large on these runs (nagoya/run1: error p50 0.07 m/s, against a σ of 1.27 m/s over the three axes), so it is scaled by 0.01 and floored at (0.1 m/s)².
- After five rejected updates in a row, the velocity restarts from the SPP velocity and the yaw variance is reopened to (30°)².
- A non-holonomic constraint (no lateral or vertical body velocity) is applied at every epoch. The IMU-only ZUPT is off: with a kept velocity, a false ZUPT no longer disappears at the next re-anchor.
- The RTK gets the INS covariance. The INS position block is zero at the anchor, so its propagated covariance is the covariance of the displacement. That covariance, and the INS velocity covariance, are the RTK time-update noise. The RTK velocity block is replaced, not accumulated.
- The INS is now right. On one run per PPC run, against the reference (25 m² floor):
- roll and pitch medians within 0.5° and 1.3°, with a p90 deviation from the median below 0.8° (a constant mounting offset would also show here);
- heading median within 0.7°, p90 deviation 2.6–15.6°;
- velocity error p50 0.07–0.20 m/s.
Before, on nagoya/run1, the closed-loop INS heading error while moving
(above 3 m/s) was 59° (median, p90 152°), and its velocity error p50 was
0.91 m/s. It inherits the heading from the loose ESKF at the start, and
nothing corrected it. The Doppler updates alone leave 51°. Reopening the
yaw brings it to 5.6°, and the non-holonomic constraint to 2.1° (p90
12.7°).
- A float far from SPP can lock in. This is a separate RTK issue that the
rework exposed.
- The RTK gate that rejects a FLOAT more than 150 m from SPP restores the
remembered state and emits SPP. Unlike the ins_prior_min_code_rows
gate, it does not make the next epoch re-seed from SPP.
- Under the INS time update, the filter then keeps propagating the
far-off float. On nagoya/run3, with the rework, that lasted 632 epochs
(about 130 s), 150–280 m from SPP.
- The preset hits this gate too. On one run per PPC run it fires in 196
epochs on tokyo/run1, 27 on nagoya/run2 and 7 on nagoya/run1.
- Making the gate re-seed from SPP is needed for the rework (nagoya/run3:
40.44% → 53.94% correct FIX). On the preset it changes nothing beyond the
lever-arm spread: 67.97% / 7.34% against 68.09% / 7.08%, nine runs per
PPC run.
- The position floor hides the broken velocity. The RTK time update adds
ins_time_update_position_q_floor_m2 = 25 (σ 5 m) at every epoch, so the
INS displacement carries almost no information. Lowering the floor on the
preset makes it worse (one run per PPC run, correct / wrong FIX):
| Floor (m²) | 25 | 1 | 0.1 |
|---|---|---|---|
--navi776-tc |
68.21% / 6.41% | 64.73% / 12.46% | 66.73% / 8.90% |
A lower floor needs an INS covariance that matches its errors. With the
default (tactical) IMU noise, the rework's velocity error is 1.8–3.9 times
its σ (median over the epochs of a run). On nagoya/run1 and tokyo/run2,
--imu-grade consumer lowers that from 2.6 and 3.4 to 1.5 and 2.4, but the
p90 stays near 9.
Results, nine runs per run, correct FIX (% of epochs) / wrong FIX (% of FIX) at 0.5 m, and correct FIX at 0.25 m in parentheses. Both rework columns include the 150 m re-seed.
| Set | --navi776-tc |
Rework, floor 25 m² | Rework, final |
|---|---|---|---|
| PPC, six runs | 68.09 / 7.08 (62.93) | 66.25 / 7.51 (60.74) | 68.02 / 6.60 (61.47) |
| UrbanNav Odaiba | 64.67 / 3.60 (62.46) | 65.10 / 3.47 (62.81) | 65.76 / 2.61 (63.57) |
| UrbanNav Shinjuku | 64.87 / 17.63 (53.93) | 62.20 / 18.92 (48.12) | 66.96 / 15.00 (53.70) |
| UrbanNav HK Deep-Urban-1 | 17.07 / 32.22 (12.65) | 19.36 / 29.25 (14.03) | 19.00 / 34.99 (13.79) |
- How the final variant was chosen. It adds
--imu-grade consumer, a NIS gate of 5 per row on the Doppler update (20 in the other column) and--tc-ins-position-q-floor 0.1. It was chosen after about 10 variants on one run per PPC run, and more on nagoya/run1 alone, so its PPC numbers are in-sample. UrbanNav (Tokyo and Hong Kong) was not used to choose among the variants, but the 25 m² column had been measured on it first. - It does not pass the rule. By the rule of the UrbanNav out-of-sample check (wrong-FIX rate lower, and correct FIX at 0.25 m not more than 1 pp lower):
- it passes on Odaiba and Shinjuku;
- it fails on PPC, where the 0.25 m correct FIX is 1.46 pp lower;
- it fails on HK Deep-Urban-1, where the wrong-FIX rate is higher.
HK Medium-Urban-1 fixes under 5% of its epochs in every arm, so it is not counted. - The lever arm no longer matters. With the rework, the nine runs of a PPC run agree: SD 0.00 pp with the 25 m² floor, against up to 2.5 pp on Tokyo for the preset. For the final variant the largest SD is 0.61 pp (Shinjuku). - Most per-run differences are single events. Against the preset, the 25 m² column loses 5.7 pp on tokyo/run2 and 6.6 pp on nagoya/run1. - tokyo/run2: after a hold, at TOW 177084 the preset re-fixes with ratio 10–21 and the rework stays FLOAT for 76 s. - nagoya/run1: at TOW 550943.8 both arms reset every ambiguity (prefit RMS 69 m). The rework's float then falls 15 m off and holds a wrong fix for 100 s while the car stands still. - On nagoya/run3 the rework has 4 pp fewer wrong FIX. - Nothing is changed. Merging the rework would need a frozen holdout, and no unused data with a base station is at hand.
Tokyo2 tail and runtime diagnosis¶
Full-run ablations identified the Doppler rows as the main source of both fix gain and tail/compute cost. Adaptive noise alone is not a clean score win, but in combination it recovers much of the Doppler-only official and 50 cm loss and lowers p95. Primary-frequency-only Doppler and sigma 0.35/0.75/1.0 all lost more accuracy, so sigma 0.5 and all accepted Doppler rows were retained.
The raw Tokyo2 tail is specifically a non-fixed-solution problem: FIX p95 improves from 0.196 m OFF to 0.164 m ON, while the original combined configuration's FLOAT p95 was about 12 m. This rules out fixed-solution degradation as the cause.
The estimator-side follow-up uses a causal fixed-anchor motion model for high-uncertainty FLOAT output. It is armed only after the validated short-baseline region has been entered, fits constant ECEF velocity over the preceding 20 s of accepted FIX positions, and may replace a FLOAT position only when all of these truth-free checks pass:
- the latest FIX anchor is no more than 15 s old;
- float position covariance trace exceeds 10 m²;
- the FIX trajectory's linear-fit RMS is at most 2 m; and
- the prediction disagrees with the raw FLOAT position by at least 2 m.
The prediction is output-only: it is never fed into the float Kalman
state, covariance, ambiguity state, or fix decision. Compared epoch by
epoch with the preceding sign-off, it changes only 46/82/65 FLOAT rows on
tokyo1/2/3; every FIX row and every status is unchanged. Final results are
7.238/2.806/4.590 m p95_h. The 50 cm scores are maintained or improved
and the official scores are maintained or improved. Nagoya1 and Nagoya2
remain byte-identical to the preceding sign-off (MD5
ac8f1f079296a4f10ed3603b4e672f54 and
30d61358688fd1a34f5f71b14c3e2803) because a trajectory that never
enters the short-baseline region cannot arm the stabilizer.
The first factorization prototypes either changed downstream NIS consumers
or changed the RTK trajectory and were rejected. The final implementation
instead preserves the legacy H P H^T evaluation used by adaptive
statistics, reuses the Kalman LU result only for the weighted innovation,
and splits independent observation blocks sequentially. Unit tests verify
the reused row statistics and joint-versus-sequential update equivalence;
the final five-run table verifies the end-to-end behavior.
For offline tail recovery, the existing reference-free Hermite-horizontal fixed-anchor bridge can be applied with the same configuration to OFF and ON:
python scripts/experiments/ppc/bridge_pos_fixed_anchors.py \
--max-anchor-gap-s 30 --anchor-max-post-rms-m 0 \
--anchor-max-nis-per-observation 0 --replace-nonfixed \
--no-fill-missing --interpolation hermite-horizontal ...
| run | variant after bridge | fix% | 50cm-matched% | official% | p95_h m |
|---|---|---|---|---|---|
| tokyo1 | OFF | 77.36 | 76.83 | 71.67 | 7.91 |
| tokyo1 | ON | 79.77 | 79.30 | 78.63 | 7.14 |
| tokyo2 | OFF | 77.58 | 78.80 | 77.53 | 4.56 |
| tokyo2 | ON | 85.09 | 86.79 | 85.76 | 2.29 |
| tokyo3 | OFF | 78.52 | 81.58 | 78.82 | 3.66 |
| tokyo3 | ON | 80.31 | 79.64 | 78.37 | 4.00 |
The bridge resolves the Tokyo2 ON tail and preserves fix statuses, but it
is not a universal preset: bridged OFF is better on tokyo3 and the bridge
hurts the tokyo2 OFF p95. Keep it as an explicit offline recovery option,
not an automatic part of --navi776-tc.