setVelocity

open fun setVelocity(vel: Double)

Switches the motor to velocity control and tries to set the ticks/sec target.

Parameters

vel

the desired ticks per second


open fun setVelocity(angVel: Double, unit: AngleUnit)

Switches the motor to velocity control and tries to set the angular velocity of the motor based on the intrinsic MotorConfigurationType configuration.

Parameters

angVel

the desired angular rate, in units per second

unit

the units in which angVel is expressed