setLateralDistPerTick

open fun setLateralDistPerTick(@NonNull measuredDistance: Measure<Distance>, reportedTicks: Double): DriveModel.Builder

Set the inches per tick for lateral movement as a result of movement and encoder ticks. 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.

Return

the builder

Parameters

measuredDistance

the measured distance of the movement

reportedTicks

the reported ticks from the encoder when the distance was measured