toAngle

fun toAngle(ticks: Number, ticksPerRevolution: Number, reduction: Double): Measure<Angle>

Convert encoder ticks to an angle.

Return

The angle.

Parameters

ticks

The number of encoder ticks.

ticksPerRevolution

The number of encoder ticks per revolution.

reduction

The gear reduction (input speed / output speed).