getVelocity

open fun getVelocity(): Double

Return

the current velocity of this motor as specified by your settings, while performing acceleration estimation. Return ticks per second.


open fun getVelocity(@NonNull unit: AngleUnit): Double

Returns the current velocity of the motor, in angular units per second

Return

the current velocity of the motor

Parameters

unit

the units in which the angular rate is desired

See also