oss-slu/MORPH

Fix speed clamp in diff-drive backend

Open

#61 创建于 2026年3月16日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)Python (1 fork)auto 404
good first issue

仓库指标

Star
 (2 star)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南