Skip to content

Optimization: Share your things and play nice - #127

Open
dirwin31 wants to merge 1 commit into
firestar5683:Domfrom
dirwin31:OneNavPerLoop
Open

Optimization: Share your things and play nice#127
dirwin31 wants to merge 1 commit into
firestar5683:Domfrom
dirwin31:OneNavPerLoop

Conversation

@dirwin31

@dirwin31 dirwin31 commented Sep 7, 2026

Copy link
Copy Markdown

Description

Build navigation instruction data once per valid loop and share it between the navInstruction
and NavInstructionState publishers. Previously, each publisher independently built the same
payload.

Preserves publication cadence, route updates, invalid-message handling, and stale-state
cleanup.

Verification:

  • All six navigation tests passed.

  • Twelve supplemental before/after comparisons confirmed identical messages and state updates
    across valid navigation, invalid location, missing route/progress, route replacement, and
    route clearing, using both Vienna and MUTCD signs.

  • Confirmed shared payloads remain unchanged and valid loops perform one build instead of two.

@dirwin31 dirwin31 changed the title Share your things and play nice Optimization: Share your things and play nice Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant