Package frc.robot.constants
Class TunerConstants
java.lang.Object
frc.robot.constants.TunerConstants
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Swerve 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> static final com.ctre.phoenix6.CANBus
static final double
static final com.ctre.phoenix6.swerve.SwerveDrivetrainConstants
static 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> static final edu.wpi.first.units.measure.LinearVelocity
static final edu.wpi.first.units.measure.Distance
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CommandSwerveDrivetrain
Creates a CommandSwerveDrivetrain instance.
-
Field Details
-
CAN_BUS
public static final com.ctre.phoenix6.CANBus CAN_BUS -
SPEED_AT_12_VOLTS
public static final edu.wpi.first.units.measure.LinearVelocity SPEED_AT_12_VOLTS -
DRIVE_RATIO
public static final double DRIVE_RATIO- See Also:
-
WHEEL_RADIUS
public static final edu.wpi.first.units.measure.Distance WHEEL_RADIUS -
DRIVETRAIN_CONSTANTS
public static final com.ctre.phoenix6.swerve.SwerveDrivetrainConstants DRIVETRAIN_CONSTANTS -
FRONT_LEFT
public static final com.ctre.phoenix6.swerve.SwerveModuleConstants<com.ctre.phoenix6.configs.TalonFXConfiguration,com.ctre.phoenix6.configs.TalonFXConfiguration, FRONT_LEFTcom.ctre.phoenix6.configs.CANcoderConfiguration> -
FRONT_RIGHT
public static final com.ctre.phoenix6.swerve.SwerveModuleConstants<com.ctre.phoenix6.configs.TalonFXConfiguration,com.ctre.phoenix6.configs.TalonFXConfiguration, FRONT_RIGHTcom.ctre.phoenix6.configs.CANcoderConfiguration> -
BACK_LEFT
public static final com.ctre.phoenix6.swerve.SwerveModuleConstants<com.ctre.phoenix6.configs.TalonFXConfiguration,com.ctre.phoenix6.configs.TalonFXConfiguration, BACK_LEFTcom.ctre.phoenix6.configs.CANcoderConfiguration> -
BACK_RIGHT
public static final com.ctre.phoenix6.swerve.SwerveModuleConstants<com.ctre.phoenix6.configs.TalonFXConfiguration,com.ctre.phoenix6.configs.TalonFXConfiguration, BACK_RIGHTcom.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,.- Returns:
- A CommandSwerveDrivetrain instance
-