Package frc.team4373.swerve
Class SwerveConfig.WheelsConfig
- java.lang.Object
-
- frc.team4373.swerve.SwerveConfig.WheelsConfig
-
- Enclosing class:
- SwerveConfig
public static final class SwerveConfig.WheelsConfig extends java.lang.Object
A configuration object for all four wheels of a swerve bot.
-
-
Field Summary
Fields Modifier and Type Field Description SwerveConfig.CurrentLimitConfig
currentLimitConfig
TheSwerveConfig.CurrentLimitConfig
configuration for current limiting.SwerveConfig.MotorConfig
left1Drive
TheSwerveConfig.MotorConfig
configuration for the front left drive motor.SwerveConfig.MotorConfig
left1Rotate
TheSwerveConfig.MotorConfig
configuration for the front left rotator motor.SwerveConfig.MotorConfig
left2Drive
TheSwerveConfig.MotorConfig
configuration for the rear left drive motor.SwerveConfig.MotorConfig
left2Rotate
TheSwerveConfig.MotorConfig
configuration for the rear left rotator motor.double
maxWheelSpeed
The maximum speed, in native encoder units, allowed for the drive motors.SwerveConfig.MotorConfig
right1Drive
TheSwerveConfig.MotorConfig
configuration for the front right drive motor.SwerveConfig.MotorConfig
right1Rotate
TheSwerveConfig.MotorConfig
configuration for the front right rotator motor.SwerveConfig.MotorConfig
right2Drive
TheSwerveConfig.MotorConfig
configuration for the rear right drive motor.SwerveConfig.MotorConfig
right2Rotate
TheSwerveConfig.MotorConfig
configuration for the rear right rotator motor.
-
Constructor Summary
Constructors Constructor Description WheelsConfig(SwerveConfig.MotorConfig right1Drive, SwerveConfig.MotorConfig right1Rotate, SwerveConfig.MotorConfig right2Drive, SwerveConfig.MotorConfig right2Rotate, SwerveConfig.MotorConfig left1Drive, SwerveConfig.MotorConfig left1Rotate, SwerveConfig.MotorConfig left2Drive, SwerveConfig.MotorConfig left2Rotate, double maxWheelSpeed)
Constructs a new configuration object for all wheels on a swerve bot (no current limit).WheelsConfig(SwerveConfig.MotorConfig right1Drive, SwerveConfig.MotorConfig right1Rotate, SwerveConfig.MotorConfig right2Drive, SwerveConfig.MotorConfig right2Rotate, SwerveConfig.MotorConfig left1Drive, SwerveConfig.MotorConfig left1Rotate, SwerveConfig.MotorConfig left2Drive, SwerveConfig.MotorConfig left2Rotate, double maxWheelSpeed, SwerveConfig.CurrentLimitConfig currentLimitConfig)
Constructs a new configuration object for all wheels on a swerve bot.
-
-
-
Field Detail
-
right1Drive
public final SwerveConfig.MotorConfig right1Drive
TheSwerveConfig.MotorConfig
configuration for the front right drive motor.
-
right1Rotate
public final SwerveConfig.MotorConfig right1Rotate
TheSwerveConfig.MotorConfig
configuration for the front right rotator motor.
-
right2Drive
public final SwerveConfig.MotorConfig right2Drive
TheSwerveConfig.MotorConfig
configuration for the rear right drive motor.
-
right2Rotate
public final SwerveConfig.MotorConfig right2Rotate
TheSwerveConfig.MotorConfig
configuration for the rear right rotator motor.
-
left1Drive
public final SwerveConfig.MotorConfig left1Drive
TheSwerveConfig.MotorConfig
configuration for the front left drive motor.
-
left1Rotate
public final SwerveConfig.MotorConfig left1Rotate
TheSwerveConfig.MotorConfig
configuration for the front left rotator motor.
-
left2Drive
public final SwerveConfig.MotorConfig left2Drive
TheSwerveConfig.MotorConfig
configuration for the rear left drive motor.
-
left2Rotate
public final SwerveConfig.MotorConfig left2Rotate
TheSwerveConfig.MotorConfig
configuration for the rear left rotator motor.
-
maxWheelSpeed
public final double maxWheelSpeed
The maximum speed, in native encoder units, allowed for the drive motors.
-
currentLimitConfig
public final SwerveConfig.CurrentLimitConfig currentLimitConfig
TheSwerveConfig.CurrentLimitConfig
configuration for current limiting.
-
-
Constructor Detail
-
WheelsConfig
public WheelsConfig(SwerveConfig.MotorConfig right1Drive, SwerveConfig.MotorConfig right1Rotate, SwerveConfig.MotorConfig right2Drive, SwerveConfig.MotorConfig right2Rotate, SwerveConfig.MotorConfig left1Drive, SwerveConfig.MotorConfig left1Rotate, SwerveConfig.MotorConfig left2Drive, SwerveConfig.MotorConfig left2Rotate, double maxWheelSpeed, SwerveConfig.CurrentLimitConfig currentLimitConfig)
Constructs a new configuration object for all wheels on a swerve bot.- Parameters:
right1Drive
- theSwerveConfig.MotorConfig
for the right 1 drive motor.right1Rotate
- theSwerveConfig.MotorConfig
for the right 1 rotator motor.right2Drive
- theSwerveConfig.MotorConfig
for the right 2 drive motor.right2Rotate
- theSwerveConfig.MotorConfig
for the right 2 rotator motor.left1Drive
- theSwerveConfig.MotorConfig
for the left 1 drive motor.left1Rotate
- theSwerveConfig.MotorConfig
for the left 1 rotator motor.left2Drive
- theSwerveConfig.MotorConfig
for the left 2 drive motor.left2Rotate
- theSwerveConfig.MotorConfig
for the left 2 rotator motor.maxWheelSpeed
- the max speed, in encoder units, attainable by the drive motors.currentLimitConfig
- theSwerveConfig.CurrentLimitConfig
for current limiting.
-
WheelsConfig
public WheelsConfig(SwerveConfig.MotorConfig right1Drive, SwerveConfig.MotorConfig right1Rotate, SwerveConfig.MotorConfig right2Drive, SwerveConfig.MotorConfig right2Rotate, SwerveConfig.MotorConfig left1Drive, SwerveConfig.MotorConfig left1Rotate, SwerveConfig.MotorConfig left2Drive, SwerveConfig.MotorConfig left2Rotate, double maxWheelSpeed)
Constructs a new configuration object for all wheels on a swerve bot (no current limit).- Parameters:
right1Drive
- theSwerveConfig.MotorConfig
for the right 1 drive motor.right1Rotate
- theSwerveConfig.MotorConfig
for the right 1 rotator motor.right2Drive
- theSwerveConfig.MotorConfig
for the right 2 drive motor.right2Rotate
- theSwerveConfig.MotorConfig
for the right 2 rotator motor.left1Drive
- theSwerveConfig.MotorConfig
for the left 1 drive motor.left1Rotate
- theSwerveConfig.MotorConfig
for the left 1 rotator motor.left2Drive
- theSwerveConfig.MotorConfig
for the left 2 drive motor.left2Rotate
- theSwerveConfig.MotorConfig
for the left 2 rotator motor.maxWheelSpeed
- the max speed, in encoder units, attainable by the drive motors.
-
-