trapezoid_move
Move a servomotor by a relative displacement over a specified duration at the current speed. Queues the motion and returns immediately; poll queued items to confirm completion.
Instructions
Move immediately to the given position using the currently set speed (the speed is set by a separate command) [Firmware command "Trapezoid move", group: Motion Control.] NOTE: The displacement is RELATIVE to the current position. 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:
displacement (in degrees): The displacement to travel. Can be positive or negative.
duration (in seconds): The time over which to do the move. 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 | ||
| displacement | Yes |