oss-slu/MORPH

Fix speed clamp in diff-drive backend

Open

#61 opened on Mar 16, 2026

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Python (1 fork)auto 404
good first issue

Repository metrics

Stars
 (2 stars)
PR merge metrics
 (PR metrics pending)

Description

Description

Fix the speed normalization logic so robot drive speed is correctly clamped from 0-100 and mapped to 0.0-1.0

Acceptance criteria

  • Speed clamp formula is corrected in server/main.py.
  • Inputs below 0 become 0, above 100 become 100.
  • Normalized speed sent to motion command is between 0.0 and 1.0.
  • Basic tests cover boundary and invalid values.

Developer note

  • Current logic always returns 100

Contributor guide