to Distance
fun toDistance(ticks: Number, ticksPerRevolution: Number, wheelDiameter: Measure<Distance>, reduction: Double): Measure<Distance>
Convert encoder ticks to a distance.
Return
The distance.
Parameters
ticks
The number of encoder ticks.
ticks Per Revolution
The number of encoder ticks per revolution.
wheel Diameter
The diameter of the wheel.
reduction
The gear reduction (input speed / output speed).