Skip to content

Validate stepper motion requests and speed bounds - #2

Open
xia-chao wants to merge 1 commit into
mainfrom
fix/motion-request-validation
Open

xia-chao wants to merge 1 commit into
mainfrom
fix/motion-request-validation

Conversation

@xia-chao

Copy link
Copy Markdown
Contributor

Changes

  • Reject reverse requests without a direction pin and out-of-range negative acceleration.
  • Preserve configured enable delay and speed when the replacement cannot be represented.
  • Accept the slowest representable period and frequency, and preserve millihertz precision for configured, current, and maximum speeds.
  • Add host regressions for return codes, queued motion, delay ticks, and reported speed.

Verification

  • Server host regressions reproduced the incorrect returns, pulse outcomes, and speed values before the fixes.
  • Host CTest passed 33/33. The motion-request regression also passed after initializing its simulated engine explicitly.
  • ESP-IDF 5.3.2 cross-compiled the classic ESP32 firmware example.

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