SwerveDriveBuilder

class SwerveDriveBuilder(gyroId: Int, canBus: CANBus)

Builder class for creating a SwerveDrive with DSL syntax.

Constructors

Link copied to clipboard
constructor(gyroId: Int, canBus: CANBus)

Functions

Link copied to clipboard

Builds the SwerveDrive instance.

Link copied to clipboard
fun config(block: SwerveDrive.Config.() -> Unit)

Configures the swerve drive parameters.

Link copied to clipboard
fun modules(frontLeft: SwerveModule, frontRight: SwerveModule, backLeft: SwerveModule, backRight: SwerveModule)

Sets the four swerve modules for the drive.