commands


Description:

public string[]? commands { owned get; }

Get a list of supported commands.

Possible commands are:

run-forever - Causes the motor to run until another command is sent.

run-to-abs-pos - Runs to an absolute position specified by position_sp and then stop using the command specified by stop_command.

run-to-rel-pos - Runs to a position relative to the current position value. The new position will be the current position + position_sp. When the new position is reached, the motor will stop using the command specified by stop_command.

run-timed - Runs the motor for the amount of time specified by time_sp and then stop the motor using the command specified by stop_command.

run-direct - Runs the motor at the duty cycle specified by duty_cycle_sp. Unlike other run commands, changing duty_cycle_sp while running will take effect immediately. speed_regulation is ignored.

stop - Stops any of the run-* commands before they are completed using the command specified by stop_command.

reset - Resets all of the motor parameter attributes to their default values. This also has the effect of stopping the motor.