toInches

fun toInches(ticks: Number, wheelRadiusInches: Double, gearRatio: Double, ticksPerRevolution: Number): Double

Converts encoder ticks to inches for use in calculation with a Localizer.

Return

inches travelled as per circumference

Parameters

ticks

the encoder ticks

wheelRadiusInches

the wheel radius in inches

gearRatio

the gear ratio as a division ratio

ticksPerRevolution

the ticks per revolution of the encoder