fromDistance

fun fromDistance(distance: Measure<Distance>, ticksPerRevolution: Int, wheelDiameter: Measure<Distance>, reduction: Double): Int

Convert a distance to encoder ticks.

Return

The number of encoder ticks.

Parameters

distance

The distance.

ticksPerRevolution

The number of encoder ticks per revolution.

wheelDiameter

The diameter of the wheel.

reduction

The gear reduction (input speed / output speed).