setComputedInPerTick

open fun setComputedInPerTick(ticksPerRevolution: Double, gearRatio: Double, @NonNull wheelDiameter: Measure<Distance>): DriveModel.Builder

Set the inches per tick for the drive as a result of a precomputed ratio.

Note: Calling this function multiple times will take the average between other calls that have set the inches per tick. This allows for multiple tuning session results to average in on the most accurate value. Do also note precomputed ratios are not recommended for determining the averages, empirical values are far more accurate.

Return

the builder

Parameters

ticksPerRevolution

the ticks per revolution of the encoder

gearRatio

the gear ratio of the drive

wheelDiameter

the diameter of the wheel