feat(viz): reset correlation-curtain baseline on Shift+T entry#99
Open
MikePehel wants to merge 1 commit into
Open
feat(viz): reset correlation-curtain baseline on Shift+T entry#99MikePehel wants to merge 1 commit into
MikePehel wants to merge 1 commit into
Conversation
… entry Correlation curtain clips to samples added since the baseline taken when curtain mode is entered, so toggling mid-flight starts the ruled surface from now instead of dragging the full accumulated trail through it. Trails/ribbons unaffected. Pass 0/0 for legacy full-trail behavior.
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.
What
When entering correlation curtain mode (Shift+T), each vehicle's
trail_countis snapshotted as a baseline; the ruled surface only spans samples added since that baseline.Why
Previously, toggling curtain mid-flight dragged the entire accumulated trail through the surface. Now it starts empty from "now" and grows forward — what you want when inspecting correlation from a point in time.
Changes
src/main.c— per-vehiclecurtain_baseline[]snapshot on transition into curtain modesrc/vehicle.c/.h—vehicle_draw_correlation_curtaintakesbaseline_a/baseline_b, clips to the post-baseline window (ring-buffer aware); pass 0/0 for legacy full-trailsrc/ortho_panel.c/.h— thread baseline through to the render callTrails / ribbons unaffected. Falls back to full trail once the live trail rolls past the baseline by more than the ring length.
Test