Skip to content

Clamp follow(path:) cruise speed to safety.max_speed - #58

Merged
sujaydavalgi merged 1 commit into
mainfrom
fix/follow-path-speed-clamp
Jul 10, 2026
Merged

Clamp follow(path:) cruise speed to safety.max_speed#58
sujaydavalgi merged 1 commit into
mainfrom
fix/follow-path-speed-clamp

Conversation

@sujaydavalgi

Copy link
Copy Markdown
Collaborator

Summary

  • follow(path:) now carries a safety-clamped cruise speed (default 0.5 m/s, reduced by max_speed / zone caps) through Rust and TS interpreter/simulator paths.
  • Updates the authoritative safety guarantee docs and adds a runtime clamp test.

Test plan

  • cargo test -p spanda-interpreter --test safety_clamp_runtime
  • Spot-check wheels.follow(path: …) under safety { max_speed = 0.2 m/s; } shows linear ≤ 0.2

Made with Cursor

Pass a safety-clamped max_linear into Follow motion commands so trajectory tracking respects max_speed and zone caps, matching drive/execute on the interpreter path.
@sujaydavalgi
sujaydavalgi merged commit 0e8b64f into main Jul 10, 2026
26 checks passed
@sujaydavalgi
sujaydavalgi deleted the fix/follow-path-speed-clamp branch July 10, 2026 15:57
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