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.ObjectA configuration object for all four wheels of a swerve bot.
-
-
Field Summary
Fields Modifier and Type Field Description SwerveConfig.CurrentLimitConfigcurrentLimitConfigTheSwerveConfig.CurrentLimitConfigconfiguration for current limiting.SwerveConfig.MotorConfigleft1DriveTheSwerveConfig.MotorConfigconfiguration for the front left drive motor.SwerveConfig.MotorConfigleft1RotateTheSwerveConfig.MotorConfigconfiguration for the front left rotator motor.SwerveConfig.MotorConfigleft2DriveTheSwerveConfig.MotorConfigconfiguration for the rear left drive motor.SwerveConfig.MotorConfigleft2RotateTheSwerveConfig.MotorConfigconfiguration for the rear left rotator motor.doublemaxWheelSpeedThe maximum speed, in native encoder units, allowed for the drive motors.SwerveConfig.MotorConfigright1DriveTheSwerveConfig.MotorConfigconfiguration for the front right drive motor.SwerveConfig.MotorConfigright1RotateTheSwerveConfig.MotorConfigconfiguration for the front right rotator motor.SwerveConfig.MotorConfigright2DriveTheSwerveConfig.MotorConfigconfiguration for the rear right drive motor.SwerveConfig.MotorConfigright2RotateTheSwerveConfig.MotorConfigconfiguration 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.MotorConfigconfiguration for the front right drive motor.
-
right1Rotate
public final SwerveConfig.MotorConfig right1Rotate
TheSwerveConfig.MotorConfigconfiguration for the front right rotator motor.
-
right2Drive
public final SwerveConfig.MotorConfig right2Drive
TheSwerveConfig.MotorConfigconfiguration for the rear right drive motor.
-
right2Rotate
public final SwerveConfig.MotorConfig right2Rotate
TheSwerveConfig.MotorConfigconfiguration for the rear right rotator motor.
-
left1Drive
public final SwerveConfig.MotorConfig left1Drive
TheSwerveConfig.MotorConfigconfiguration for the front left drive motor.
-
left1Rotate
public final SwerveConfig.MotorConfig left1Rotate
TheSwerveConfig.MotorConfigconfiguration for the front left rotator motor.
-
left2Drive
public final SwerveConfig.MotorConfig left2Drive
TheSwerveConfig.MotorConfigconfiguration for the rear left drive motor.
-
left2Rotate
public final SwerveConfig.MotorConfig left2Rotate
TheSwerveConfig.MotorConfigconfiguration 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.CurrentLimitConfigconfiguration 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.MotorConfigfor the right 1 drive motor.right1Rotate- theSwerveConfig.MotorConfigfor the right 1 rotator motor.right2Drive- theSwerveConfig.MotorConfigfor the right 2 drive motor.right2Rotate- theSwerveConfig.MotorConfigfor the right 2 rotator motor.left1Drive- theSwerveConfig.MotorConfigfor the left 1 drive motor.left1Rotate- theSwerveConfig.MotorConfigfor the left 1 rotator motor.left2Drive- theSwerveConfig.MotorConfigfor the left 2 drive motor.left2Rotate- theSwerveConfig.MotorConfigfor the left 2 rotator motor.maxWheelSpeed- the max speed, in encoder units, attainable by the drive motors.currentLimitConfig- theSwerveConfig.CurrentLimitConfigfor 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.MotorConfigfor the right 1 drive motor.right1Rotate- theSwerveConfig.MotorConfigfor the right 1 rotator motor.right2Drive- theSwerveConfig.MotorConfigfor the right 2 drive motor.right2Rotate- theSwerveConfig.MotorConfigfor the right 2 rotator motor.left1Drive- theSwerveConfig.MotorConfigfor the left 1 drive motor.left1Rotate- theSwerveConfig.MotorConfigfor the left 1 rotator motor.left2Drive- theSwerveConfig.MotorConfigfor the left 2 drive motor.left2Rotate- theSwerveConfig.MotorConfigfor the left 2 rotator motor.maxWheelSpeed- the max speed, in encoder units, attainable by the drive motors.
-
-