set_maximum_motor_current
Set the maximum motor current and regeneration current for a motor or all motors, applying immediately without saving to memory. Adjusts torque with caution for overheating.
Instructions
Set the maximum motor current and maximum regeneration current. The values take effect immediately but are not saved to non-volatile memory, so they revert to the firmware default after a reset. [Firmware command "Set maximum motor current", group: Configuration.] NOTE: Higher current = more torque AND more heat; excessive settings can overheat the motor. Parameters:
motorCurrent (in milliamps): The motor current. The units are some arbitrary units and not amps. A value of 150 or 200 is suitable.
regenerationCurrent (in milliamps): The motor regeneration current (while it is braking). This parameter is currently not used for anything. 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 | ||
| motorCurrent | Yes | ||
| regenerationCurrent | Yes |