MecanumDriveBuilder

Builder class for constructing a MecanumDrive instance with custom parameters.

This builder provides a fluent API for configuring drive parameters before constructing the final MecanumDrive object.

See also

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun build(hardwareMap: HardwareMap, pose: Pose2d = Pose2d.zero): MecanumDrive

Builds and returns a new MecanumDrive instance with the configured parameters.

Link copied to clipboard
fun withAxialGains(posGain: Double, velGain: Double): <Error class: unknown class>

Sets the axial (forward/backward) PID gains.

Link copied to clipboard
fun withHeadingGains(posGain: Double, velGain: Double): <Error class: unknown class>

Sets the heading (rotational) PID gains.

Link copied to clipboard
fun withLateralGains(posGain: Double, velGain: Double): <Error class: unknown class>

Sets the lateral (left/right strafe) PID gains.

Link copied to clipboard
fun withMaxAngAccel(maxAngAccel: Double): <Error class: unknown class>

Sets the maximum angular acceleration.

Link copied to clipboard
fun withMaxAngVel(maxAngVel: Double): <Error class: unknown class>

Sets the maximum angular velocity.

Link copied to clipboard
fun withMaxWheelVel(maxWheelVel: Double): <Error class: unknown class>

Sets the maximum wheel velocity.

Link copied to clipboard
fun withTransAccelLimits(minTransAccel: Double, maxTransAccel: Double): <Error class: unknown class>

Sets the translational acceleration limits.