Repository navigation
Demonstrator: lose bearings during ownship turns and 120 s after - #63
Merged
Merged
Conversation
…er 2026-11-22) DemoScenario.turn_loss_s (default 120 s; null keeps every bearing) and TmaProblem.bearing_valid (schema 0.39.0). Lost rows keep their place so solver and splitter grids stay regular; least squares, the physics layer, C, the arctan splitters and the learned model's inputs skip them; the plot, bearings chart and residuals hide them; a checkbox turns the loss off. Spec 035 golden problems and spec 036 readings pin turn_loss_s null. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019erPaifx4M4ukjZYeFJ21Y
Contributor
|
Preview: https://debrief.github.io/gitma2/pr/63/ Posts added or changed in this PR: Built from Rebuilt on every push to this PR and kept after it closes. GitHub Pages can take a minute or two to update. |
Main's demo follow-up took schema 0.39.0; this branch's turn_loss_s and bearing_valid are now 0.40.0. AGENTS.md and the kickoff post keep both entries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019erPaifx4M4ukjZYeFJ21Y
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Owner 2026-11-22: bearings are lost during a turn and for two minutes after it ends. The demonstrator now masks them by default.
What changed
DemoScenario.turn_loss_ssets the tail after each ownship course turn (default 120 s;nullkeeps every bearing). Scenarios saved earlier take the default. A checkbox and a seconds box sit beside the interval control.TmaProblem.bearing_valid(schema 0.40.0; main's demo follow-up took 0.39.0): lost bearings keep their rows and are flagged 0. That keeps the time grids regular, which the learned model and C need. Least squares, the physics layer, C, the arctan splitters and the learned model's inputs (bearing features zeroed, frame from the first valid bearing, smoothed bearing interpolated over gaps, as in Python'sframe.featuresandsmoothed_bearing) all skip the lost rows. The bound and the residuals skip them too. The plot and bearings chart hide them, and the chart shades the lost intervals.Choices (owner may overrule)
demo_problems.mjs) and spec 036's readings and figures scripts pinturn_loss_s: null, so their digests and records still reproduce.Observed (one draw, not a result)
On the good-geometry preset, 120 of 1,429 bearings are lost. With the loss on, joined legs on the two-turn preset seed 1 places the first target turn at 50 min instead of 46.5, outside the 120 s match. Seeds 2, 3 and 5 still find both turns. Spec 036's test for that case runs with the loss off.
Checks (after merging main)
node --test demo_node.mjs: 28/28, including three new tests: the masking intervals, least squares with the flag equals least squares on the received rows only, and the learned model's inputs for a lost row.demo_page.mjsin Chromium: 30/30, including a new one for the control.gen_types --check,demo_schema --check,ruff,mypyand the schema-version tests are clean; CI green.Record: a dated paragraph on
site/blog/2026-11-21-leg-splitters-kickoff.mdand a line in AGENTS.md.