move_with_acceleration
Initiate a motor rotation with a specified acceleration and duration. Queue the move and return immediately for non-blocking control, while monitoring progress via queued items. Use after enabling MOSFETs.
Instructions
Rotates the motor with the specified acceleration [Firmware command "Move with acceleration", 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:
acceleration (in degrees_per_second_squared): The acceleration (the unit is microsteps per time step per time step * 2^24).
timeSteps (in seconds): The number of time steps to apply this acceleration. Use command 18 to get the frequency of the time steps. After this many time steps, the acceleration will go to zero and velocity will be maintained. 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 | ||
| timeSteps | Yes | ||
| acceleration | Yes |