Package frc.robot
Class Constants.Swerve
java.lang.Object
frc.robot.Constants.Swerve
- Enclosing class:
- Constants
Swerve Constants
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classFront Left Module - Module 0static final classFront Right Module - Module 1static final classBack Left Module - Module 2static final classBack Right Module - Module 3static classSwerve Module constants shared across all modules. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.ctre.phoenix6.signals.InvertedValuestatic final com.ctre.phoenix6.signals.NeutralModeValuestatic final doublestatic final doublestatic final doublestatic final doublestatic final Distancestatic final Distancestatic final com.ctre.phoenix6.signals.SensorDirectionValuestatic final doublestatic final com.ctre.phoenix6.signals.InvertedValuestatic final com.ctre.phoenix6.signals.NeutralModeValuestatic final booleanstatic final booleanstatic final booleanstatic final doublestatic final doubleRadians per Secondstatic final doubleMeters per Secondstatic final Translation2d[]static final com.studica.frc.AHRS.NavXComTypestatic final doubleThese values are used by the drive falcon to ramp in open loop and closed loop driving.static final Massstatic final SwerveDriveKinematicsSwerve Kinematics No need to ever change this unless you are not doing a traditional rectangular/square 4 module swervestatic final Distancestatic final Distancestatic final Distancestatic final Distance -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.ironmaple.simulation.drivesims.configs.DriveTrainSimulationConfigGet config for Maple-Sim.
-
Field Details
-
AUTO_ROTATION_KP
public static final double AUTO_ROTATION_KP- See Also:
-
AUTO_ROTATION_KI
public static final double AUTO_ROTATION_KI- See Also:
-
AUTO_ROTATION_KD
public static final double AUTO_ROTATION_KD- See Also:
-
invertGyro
public static final boolean invertGyro- See Also:
-
isFieldRelative
public static final boolean isFieldRelative- See Also:
-
isOpenLoop
public static final boolean isOpenLoop- See Also:
-
trackWidth
-
wheelBase
-
wheelDiameter
-
wheelCircumference
-
moduleTranslations
-
swerveKinematics
Swerve Kinematics No need to ever change this unless you are not doing a traditional rectangular/square 4 module swerve -
angleMotorInvert
public static final com.ctre.phoenix6.signals.InvertedValue angleMotorInvert -
driveMotorInvert
public static final com.ctre.phoenix6.signals.InvertedValue driveMotorInvert -
cancoderInvert
public static final com.ctre.phoenix6.signals.SensorDirectionValue cancoderInvert -
openLoopRamp
public static final double openLoopRampThese values are used by the drive falcon to ramp in open loop and closed loop driving. We found a small open loop ramp (0.25) helps with wear, tipping, etc- See Also:
-
closedLoopRamp
public static final double closedLoopRamp- See Also:
-
maxSpeed
public static final double maxSpeedMeters per Second- See Also:
-
AUTO_MAX_SPEED
public static final double AUTO_MAX_SPEED- See Also:
-
MAX_ELEVATOR_SPEED
public static final double MAX_ELEVATOR_SPEED- See Also:
-
maxAngularVelocity
public static final double maxAngularVelocityRadians per Second- See Also:
-
angleNeutralMode
public static final com.ctre.phoenix6.signals.NeutralModeValue angleNeutralMode -
driveNeutralMode
public static final com.ctre.phoenix6.signals.NeutralModeValue driveNeutralMode -
robotMass
-
bumperFront
-
bumperRight
-
-
Constructor Details
-
Swerve
public Swerve()
-
-
Method Details
-
getMapleConfig
public static org.ironmaple.simulation.drivesims.configs.DriveTrainSimulationConfig getMapleConfig()Get config for Maple-Sim.
-