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).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"motor": "<motor>",
"velocity": "<velocity>",
"duration": "<duration>"
},
"name": "move_with_velocity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| motor | Yes | ||
| duration | Yes | ||
| velocity | Yes |