set_duty_cycle_sp


Description:

public void set_duty_cycle_sp (int duty_cycle) throws Error

Set the duty cycle setpoint for the motor.

If ramping setpoints are > 0, then the motor will ramp from the current duty cycle to the new duty cycle setpoint value.

Parameters:

duty_cycle

The new duty cycle setpoint. Valid values are -100 to 100.

Exceptions:

Error

if duty_cycle is out of range or there was an I/O error.