Skip to content

Avoid false shallow-water barriers from depth roundoff - #10

Merged
woensug-choi merged 1 commit into
mainfrom
codex/voyage-depth-roundoff
Oct 15, 2026
Merged

woensug-choi merged 1 commit into
mainfrom
codex/voyage-depth-roundoff

Conversation

@woensug-choi

Copy link
Copy Markdown
Contributor

Interpolating an exactly 2 m seabed can produce values such as -1.9999999999999998, causing valid water to become disconnected and yielding short recovery routes or failed onward planning. Apply a 1e-9 m arithmetic tolerance consistently to swept depth checks and shallow/coastal masks while retaining the configured minimum depth, exclusion buffer, and rejection of unknown terrain.

Validation: all 98 routing tests pass, including regressions that accept boundary roundoff and reject a measurable shallow violation or unknown depth. The same resident terrain produces a checked 2.4 km forward route with the correction.

@woensug-choi
woensug-choi merged commit b552cb7 into main Oct 15, 2026
2 checks passed
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