move_with_velocity
Rotate a motor at a specified velocity for a set duration to control motion precisely. Queues the move and returns immediately for non-blocking operation.
Instructions
Rotates the motor with the specified velocity. [Firmware command "Move with velocity", group: Motion Control.] This QUEUES the move and returns immediately; poll get_n_queued_items for completion, or use move_to/move_relative which wait. Requires enable_mosfets first. Parameters:
velocity (in degrees_per_second): The velocity (the unit is microsteps per time step * 2^20).
duration (in seconds): The time to maintain this velocity. Returns: success confirmation. motor: an alias number (e.g. 88), a 16-hex-digit unique ID (e.g. "0123456789ABCDEF"), or "all" to broadcast to every motor on the bus (broadcasts get no responses back).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| motor | Yes | ||
| duration | Yes | ||
| velocity | Yes |