setComputedLateralInPerTick

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

Set the inches per tick for lateral movement as a result of a precomputed ratio. Not required for a differential drive. By default, this is set to the same value as inches per tick.

Note: Calling this function multiple times will take the average between other calls that have set the lateral inches per tick. This allows for multiple tuning session results to average in on the most accurate value. Using an average for lateral inches per tick is only really recommended if using the LateralPushTest.

Do also note that empirically tuned values will have far greater accuracy and should not be used if making averages.

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