Class TunerConstants
java.lang.Object
com.stuypulse.robot.subsystems.swerve.TunerConstants
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSwerve Drive class utilizing CTR Electronics' Phoenix 6 API with the selected device types. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.ctre.phoenix6.swerve.SwerveModuleConstants<com.ctre.phoenix6.configs.TalonFXConfiguration,com.ctre.phoenix6.configs.TalonFXConfiguration, com.ctre.phoenix6.configs.CANcoderConfiguration> static final com.ctre.phoenix6.swerve.SwerveModuleConstants<com.ctre.phoenix6.configs.TalonFXConfiguration,com.ctre.phoenix6.configs.TalonFXConfiguration, com.ctre.phoenix6.configs.CANcoderConfiguration> private static final com.ctre.phoenix6.swerve.SwerveModuleConstantsFactory<com.ctre.phoenix6.configs.TalonFXConfiguration,com.ctre.phoenix6.configs.TalonFXConfiguration, com.ctre.phoenix6.configs.CANcoderConfiguration> private static final com.ctre.phoenix6.configs.Slot0Configsprivate static final com.ctre.phoenix6.configs.TalonFXConfigurationstatic final com.ctre.phoenix6.swerve.SwerveDrivetrainConstantsprivate static final com.ctre.phoenix6.configs.CANcoderConfigurationstatic final com.ctre.phoenix6.swerve.SwerveModuleConstants<com.ctre.phoenix6.configs.TalonFXConfiguration,com.ctre.phoenix6.configs.TalonFXConfiguration, com.ctre.phoenix6.configs.CANcoderConfiguration> static final com.ctre.phoenix6.swerve.SwerveModuleConstants<com.ctre.phoenix6.configs.TalonFXConfiguration,com.ctre.phoenix6.configs.TalonFXConfiguration, com.ctre.phoenix6.configs.CANcoderConfiguration> private static final intprivate static final intprivate static final booleanprivate static final edu.wpi.first.units.measure.Angleprivate static final intprivate static final booleanprivate static final edu.wpi.first.units.measure.Distanceprivate static final edu.wpi.first.units.measure.Distanceprivate static final intprivate static final intprivate static final booleanprivate static final edu.wpi.first.units.measure.Angleprivate static final intprivate static final booleanprivate static final edu.wpi.first.units.measure.Distanceprivate static final edu.wpi.first.units.measure.Distancestatic final com.ctre.phoenix6.CANBusprivate static final doubleprivate static final com.ctre.phoenix6.swerve.SwerveModuleConstants.ClosedLoopOutputTypeprivate static final edu.wpi.first.units.measure.Voltageprivate static final doubleprivate static final edu.wpi.first.units.measure.MomentOfInertiaprivate static final com.ctre.phoenix6.swerve.SwerveModuleConstants.DriveMotorArrangementprivate static final intprivate static final intprivate static final booleanprivate static final edu.wpi.first.units.measure.Angleprivate static final intprivate static final booleanprivate static final edu.wpi.first.units.measure.Distanceprivate static final edu.wpi.first.units.measure.Distanceprivate static final intprivate static final intprivate static final booleanprivate static final edu.wpi.first.units.measure.Angleprivate static final intprivate static final booleanprivate static final edu.wpi.first.units.measure.Distanceprivate static final edu.wpi.first.units.measure.Distanceprivate static final booleanprivate static final booleanprivate static final intprivate static final edu.wpi.first.units.measure.Currentstatic final edu.wpi.first.units.measure.LinearVelocityprivate static final com.ctre.phoenix6.swerve.SwerveModuleConstants.ClosedLoopOutputTypeprivate static final com.ctre.phoenix6.swerve.SwerveModuleConstants.SteerFeedbackTypeprivate static final edu.wpi.first.units.measure.Voltageprivate static final doubleprivate static final edu.wpi.first.units.measure.MomentOfInertiaprivate static final com.ctre.phoenix6.swerve.SwerveModuleConstants.SteerMotorArrangementprivate static final edu.wpi.first.units.measure.Distanceprivate static final com.ctre.phoenix6.configs.Pigeon2Configurationprivate static final com.ctre.phoenix6.configs.Slot0Configsprivate static final com.ctre.phoenix6.configs.TalonFXConfiguration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CommandSwerveDrivetrainCreates a CommandSwerveDrivetrain instance.
-
Field Details
-
steerGains
-
driveGains
-
kSteerClosedLoopOutput
private static final com.ctre.phoenix6.swerve.SwerveModuleConstants.ClosedLoopOutputType kSteerClosedLoopOutput -
kDriveClosedLoopOutput
private static final com.ctre.phoenix6.swerve.SwerveModuleConstants.ClosedLoopOutputType kDriveClosedLoopOutput -
kDriveMotorType
private static final com.ctre.phoenix6.swerve.SwerveModuleConstants.DriveMotorArrangement kDriveMotorType -
kSteerMotorType
private static final com.ctre.phoenix6.swerve.SwerveModuleConstants.SteerMotorArrangement kSteerMotorType -
kSteerFeedbackType
private static final com.ctre.phoenix6.swerve.SwerveModuleConstants.SteerFeedbackType kSteerFeedbackType -
kSlipCurrent
-
driveInitialConfigs
-
steerInitialConfigs
-
encoderInitialConfigs
-
pigeonConfigs
-
kCANBus
-
kSpeedAt12Volts
-
kCoupleRatio
- See Also:
-
kDriveGearRatio
- See Also:
-
kSteerGearRatio
- See Also:
-
kWheelRadius
-
kInvertLeftSide
- See Also:
-
kInvertRightSide
- See Also:
-
kPigeonId
- See Also:
-
kSteerInertia
-
kDriveInertia
-
kSteerFrictionVoltage
-
kDriveFrictionVoltage
-
DrivetrainConstants
-
ConstantCreator
private static final com.ctre.phoenix6.swerve.SwerveModuleConstantsFactory<com.ctre.phoenix6.configs.TalonFXConfiguration,com.ctre.phoenix6.configs.TalonFXConfiguration, ConstantCreatorcom.ctre.phoenix6.configs.CANcoderConfiguration> -
kFrontLeftDriveMotorId
- See Also:
-
kFrontLeftSteerMotorId
- See Also:
-
kFrontLeftEncoderId
- See Also:
-
kFrontLeftEncoderOffset
-
kFrontLeftSteerMotorInverted
- See Also:
-
kFrontLeftEncoderInverted
- See Also:
-
kFrontLeftXPos
-
kFrontLeftYPos
-
kFrontRightDriveMotorId
- See Also:
-
kFrontRightSteerMotorId
- See Also:
-
kFrontRightEncoderId
- See Also:
-
kFrontRightEncoderOffset
-
kFrontRightSteerMotorInverted
- See Also:
-
kFrontRightEncoderInverted
- See Also:
-
kFrontRightXPos
-
kFrontRightYPos
-
kBackLeftDriveMotorId
- See Also:
-
kBackLeftSteerMotorId
- See Also:
-
kBackLeftEncoderId
- See Also:
-
kBackLeftEncoderOffset
-
kBackLeftSteerMotorInverted
- See Also:
-
kBackLeftEncoderInverted
- See Also:
-
kBackLeftXPos
-
kBackLeftYPos
-
kBackRightDriveMotorId
- See Also:
-
kBackRightSteerMotorId
- See Also:
-
kBackRightEncoderId
- See Also:
-
kBackRightEncoderOffset
-
kBackRightSteerMotorInverted
- See Also:
-
kBackRightEncoderInverted
- See Also:
-
kBackRightXPos
-
kBackRightYPos
-
FrontLeft
public static final com.ctre.phoenix6.swerve.SwerveModuleConstants<com.ctre.phoenix6.configs.TalonFXConfiguration,com.ctre.phoenix6.configs.TalonFXConfiguration, FrontLeftcom.ctre.phoenix6.configs.CANcoderConfiguration> -
FrontRight
public static final com.ctre.phoenix6.swerve.SwerveModuleConstants<com.ctre.phoenix6.configs.TalonFXConfiguration,com.ctre.phoenix6.configs.TalonFXConfiguration, FrontRightcom.ctre.phoenix6.configs.CANcoderConfiguration> -
BackLeft
public static final com.ctre.phoenix6.swerve.SwerveModuleConstants<com.ctre.phoenix6.configs.TalonFXConfiguration,com.ctre.phoenix6.configs.TalonFXConfiguration, BackLeftcom.ctre.phoenix6.configs.CANcoderConfiguration> -
BackRight
public static final com.ctre.phoenix6.swerve.SwerveModuleConstants<com.ctre.phoenix6.configs.TalonFXConfiguration,com.ctre.phoenix6.configs.TalonFXConfiguration, BackRightcom.ctre.phoenix6.configs.CANcoderConfiguration>
-
-
Constructor Details
-
TunerConstants
public TunerConstants()
-
-
Method Details
-
createDrivetrain
Creates a CommandSwerveDrivetrain instance. This should only be called once in your robot program,.
-