set_pid_constants
Adjust PID gains (kP, kI, kD) for a motor to tune its control loop and maintain motion trajectory. Correct gains prevent violent oscillation.
Instructions
Set PID constants for the control loop that will try to maintain the motion trajectory. [Firmware command "Set PID constants", group: Configuration.] NOTE: Bad gains can make the motor oscillate violently. Parameters:
kP: The proportional term constant (P)
kI: The integral term constant (I)
kD: The differential term constant (D) 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 |
|---|---|---|---|
| kD | Yes | ||
| kI | Yes | ||
| kP | Yes | ||
| motor | Yes |