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 class
Front Left Module - Module 0static final class
Front Right Module - Module 1static final class
Back Left Module - Module 2static final class
Back Right Module - Module 3static class
Swerve Module constants shared across all modules. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.ctre.phoenix6.signals.InvertedValue
static final com.ctre.phoenix6.signals.NeutralModeValue
static final double
static final double
static final double
static final double
static final Distance
static final Distance
static final com.ctre.phoenix6.signals.SensorDirectionValue
static final double
static final com.ctre.phoenix6.signals.InvertedValue
static final com.ctre.phoenix6.signals.NeutralModeValue
static final boolean
static final boolean
static final boolean
static final double
static final double
Radians per Secondstatic final double
Meters per Secondstatic final Translation2d[]
static final com.studica.frc.AHRS.NavXComType
static final double
These values are used by the drive falcon to ramp in open loop and closed loop driving.static final Mass
static final SwerveDriveKinematics
Swerve Kinematics No need to ever change this unless you are not doing a traditional rectangular/square 4 module swervestatic final Distance
static final Distance
static final Distance
static final Distance
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.ironmaple.simulation.drivesims.configs.DriveTrainSimulationConfig
Get 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.
-