Builder
Builder class to assist in creating a DriveModel.
Functions
Link copied to clipboard
Finalise the configuration and build the DriveModel.
Link copied to clipboard
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.
Link copied to clipboard
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.
Link copied to clipboard
open fun setDistPerTick(@NonNull measuredDistance: Measure<Distance>, reportedTicks: Double): DriveModel.Builder
Set the inches per tick for the drive as a result of movement and encoder ticks.
Link copied to clipboard
Set the inches per tick for the drive as a result of a tuned measurement ratio.
Link copied to clipboard
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.
Link copied to clipboard
Set the inches per tick for lateral movement as a result of a tuned measurement ratio.
Link copied to clipboard
Set the track width in encoder ticks.