oss-slu/MORPH

Fix speed clamp in diff-drive backend

Open

#61 aperta il 16 mar 2026

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)Python (1 fork)auto 404
good first issue

Metriche repository

Star
 (2 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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

Guida contributor