Ramp Up/Ramp Down

The user can specify the amount of time the motor should take to ramp up to full power and to ramp down to idle. The maximum amount of time is 10 seconds.

Examples

To set the motor to ramp up to 100% from idle over a period of 2s, use the following method.

motor.setRampUp(2);

To set the motor to ramp up to idle from 100% output over a period of 3.75s, use the following method.

motor.setRampDown(3.75);

API Details

Set Ramp Up

Sets the time to ramp up in seconds from 0 to 10. For example, an input of 0.5 will ramp the motor from idle to 100% over the course of 0.5 seconds.

setRampUp(double rampUp)

Parameters:

  • rampUp The ramp up time.

Set Ramp Down

Sets the time to ramp down in seconds from 0 to 10. For example, an input of 0.5 will ramp the motor from 100% to idle over the course of 0.5 seconds.

setRampDown(double rampDown)

Parameters:

  • rampDown The ramp up time.

Last updated