toAngle

fun toAngle(ticks: Int, ticksPerRevolution: Int, 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).