Package swervelib.parser
Class SwerveControllerConfiguration
java.lang.Object
swervelib.parser.SwerveControllerConfiguration
Swerve Controller configuration class which is used to configure
SwerveController.-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal doublehypotenuse deadband for the robot angle control joystick.final PIDFConfigPIDF for the heading of the robot.final doubleMaximum angular velocity in rad/sfinal doubleMaximum robot speed in meters per second. -
Constructor Summary
ConstructorsConstructorDescriptionSwerveControllerConfiguration(SwerveDriveConfiguration driveCfg, PIDFConfig headingPIDF) Construct the swerve controller configuration.SwerveControllerConfiguration(SwerveDriveConfiguration driveCfg, PIDFConfig headingPIDF, double angleJoyStickRadiusDeadband) Construct the swerve controller configuration. -
Method Summary
-
Field Details
-
maxSpeed
public final double maxSpeedMaximum robot speed in meters per second. -
maxAngularVelocity
public final double maxAngularVelocityMaximum angular velocity in rad/s -
headingPIDF
PIDF for the heading of the robot. -
angleJoyStickRadiusDeadband
public final double angleJoyStickRadiusDeadbandhypotenuse deadband for the robot angle control joystick.
-
-
Constructor Details
-
SwerveControllerConfiguration
public SwerveControllerConfiguration(SwerveDriveConfiguration driveCfg, PIDFConfig headingPIDF, double angleJoyStickRadiusDeadband) Construct the swerve controller configuration.- Parameters:
driveCfg- Drive configuration.headingPIDF- Heading PIDF configuration.angleJoyStickRadiusDeadband- Deadband on radius of angle joystick.
-
SwerveControllerConfiguration
Construct the swerve controller configuration. Assumes hypotenuse deadband of 0.5 (minimum radius for angle to be set on angle joystick is .5 of the controller).- Parameters:
driveCfg- Drive configuration.headingPIDF- Heading PIDF configuration.
-