toDistance

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.

ticksPerRevolution

The number of encoder ticks per revolution.

wheelDiameter

The diameter of the wheel.

reduction

The gear reduction (input speed / output speed).