Unit tests: snapping on out-and-back routes, off-route hysteresis #39

Open
opened 2026-08-31 17:14:50 +02:00 by robert · 0 comments
robert commented 2026-08-31 17:14:50 +02:00 (Migrated from git.butzei.de)

Goal

The navigation logic most likely to fail in a way that is confusing on the road.

Acceptance criteria

  • Snapping tested on an out-and-back route: must not jump to the return leg
  • Snapping tested on a lollipop route and on a route that crosses itself
  • Re-acquisition after a GPS gap tested
  • Off-route enter and exit hysteresis tested at the thresholds
  • Rejoining further along the route tested
  • Distance-to-turn and ETA tested against hand-computed values

Files

  • companion/src/test/
## Goal The navigation logic most likely to fail in a way that is confusing on the road. ## Acceptance criteria - [ ] Snapping tested on an out-and-back route: must not jump to the return leg - [ ] Snapping tested on a lollipop route and on a route that crosses itself - [ ] Re-acquisition after a GPS gap tested - [ ] Off-route enter and exit hysteresis tested at the thresholds - [ ] Rejoining further along the route tested - [ ] Distance-to-turn and ETA tested against hand-computed values ## Files - `companion/src/test/`
Sign in to join this conversation.
No description provided.