DcMotor

constructor(motor: DcMotor)

Create a new Ramping DcMotor object, wrapping a DcMotor object and returning a new object that can be used in place of the original. By default, the ramping function time is set to 0.1 seconds, with a maximum delta of 1.0 power units per second.

Parameters

motor

the DcMotor object to wrap. By default, the ramping function is enabled.


constructor(motor: DcMotor, smoothTime: Measure<Time>, maxDelta: Double)

Create a new Ramping DcMotor object, wrapping a DcMotor object and returning a new object that can be used in place of the original.

Parameters

motor

the DcMotor object to wrap. By default, the ramping function is enabled.

smoothTime

the time it takes for the motor to reach the target power level

maxDelta

the maximum change in power level per second