Builder

open class Builder

Builder class to assist in making DriveConstants.

Constructors

Link copied to clipboard
constructor()
Begin building a new DriveConstants object.

Functions

Link copied to clipboard
open fun build(): DriveConstants
Finalise your configuration.
Link copied to clipboard
open fun setAdmissibleError(admissibleError: Pose2d, admissibleTimeout: Double): DriveConstants.Builder
Set the admissible error for the PIDVA controller for trajectory following.
Link copied to clipboard
Set the gear ratio of the drive motors
Link copied to clipboard
Set the kA feedforward gain for the velocity PID.
Link copied to clipboard
Set the kStatic feedforward gain for the velocity PID.
Link copied to clipboard
Set the kV feedforward gain for the velocity PID.
Link copied to clipboard
Set the maximum acceleration of the robot.
Link copied to clipboard
Set the maximum angular acceleration of the robot.
Link copied to clipboard
Set the maximum angular velocity of the robot.
Link copied to clipboard
Set the maximum RPM of the motor.
Link copied to clipboard
Set the maximum velocity of the robot.
Link copied to clipboard
open fun setMotorVeloPID(motorVeloPID: PIDFCoefficients): DriveConstants.Builder
Set the motor velocity PID coefficients.
Link copied to clipboard
Set whether to run using the encoder.
Link copied to clipboard
Set the number of ticks per revolution of the motor's output shaft.
Link copied to clipboard
Set the track width of the robot.
Link copied to clipboard
Set the wheel radius of the drive motors.