Package frc.robot
Class Constants.Swerve
java.lang.Object
frc.robot.Constants.Swerve
- Enclosing class:
- Constants
Swerve Constants
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final doublestatic final booleanstatic final doubleSwerve Angle Motor Gear Ratiostatic final com.ctre.phoenix6.signals.InvertedValuestatic final PIDConstantsstatic final com.ctre.phoenix6.signals.NeutralModeValueAngle Motor Neutral Modestatic final doubleMax Speed for Auto in Meters per Secondstatic final doublestatic final DistanceBumper to bumper length of the robotstatic final DistanceBumper to bumper back of the robotstatic final com.ctre.phoenix6.signals.SensorDirectionValuestatic final doublestatic final intstatic final intstatic final doublestatic final booleanstatic final doubleSwerve Drive Motor Gear Ratiostatic final com.ctre.phoenix6.signals.InvertedValuestatic final PIDConstantsstatic final com.ctre.phoenix6.signals.NeutralModeValueDrive Motor Neutral Modestatic final doublestatic final doublestatic final booleanstatic final booleanIf true, motors and absolute encoders are on canivore loop.static final doublestatic final doubleMax Angular Velocity in Radians per Secondstatic final doubleMax Speed in Meters per Secondstatic final ModuleConstants[]static final com.studica.frc.AHRS.NavXComTypestatic final doublestatic final doublestatic final doublestatic final doublestatic final SwerveDriveKinematicsSwerve Drive Kinematics Object for Rectangular/square 4 Module Swervestatic final Translation2d[]static final doubleDistance between right and left wheels on robotstatic final doubleDistance between front and back wheels on robotstatic final DistanceCircumference of the wheelsstatic final DistanceDiameter of the wheels, twice the radiusstatic final DistanceDistance from the center of the wheel to the ground -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
isCanviore
public static final boolean isCanvioreIf true, motors and absolute encoders are on canivore loop. Otherwise on rio.- See Also:
-
invertGyro
public static final boolean invertGyro- See Also:
-
trackWidth
public static final double trackWidthDistance between right and left wheels on robot -
wheelBase
public static final double wheelBaseDistance between front and back wheels on robot -
wheelRadius
Distance from the center of the wheel to the ground -
wheelDiameter
Diameter of the wheels, twice the radius -
wheelCircumference
Circumference of the wheels -
bumperFront
Bumper to bumper length of the robot -
bumperRight
Bumper to bumper back of the robot -
swerveTranslations
-
swerveKinematics
Swerve Drive Kinematics Object for Rectangular/square 4 Module SwerveNo need to ever change this unless you are not doing a traditional rectangular/square 4 module swerve.
-
driveGearRatio
public static final double driveGearRatioSwerve Drive Motor Gear Ratio- See Also:
-
angleGearRatio
public static final double angleGearRatioSwerve Angle Motor Gear Ratio- See Also:
-
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 -
angleCurrentLimit
public static final int angleCurrentLimit- See Also:
-
angleCurrentLowerLimit
public static final int angleCurrentLowerLimit- See Also:
-
angleCurrentLowerTimeThreshold
public static final double angleCurrentLowerTimeThreshold- See Also:
-
angleEnableCurrentLimit
public static final boolean angleEnableCurrentLimit- See Also:
-
driveCurrentLimit
public static final int driveCurrentLimit- See Also:
-
driveCurrentLowerLimit
public static final int driveCurrentLowerLimit- See Also:
-
driveCurrentLowerTimeThreshold
public static final double driveCurrentLowerTimeThreshold- See Also:
-
driveEnableCurrentLimit
public static final boolean driveEnableCurrentLimit- See Also:
-
openLoopRamp
public static final double openLoopRamp- See Also:
-
closedLoopRamp
public static final double closedLoopRamp- See Also:
-
angleMotorPID
-
driveMotorPID
-
maxSpeed
public static final double maxSpeedMax Speed in Meters per Second- See Also:
-
autoMaxSpeed
public static final double autoMaxSpeedMax Speed for Auto in Meters per Second- See Also:
-
maxAngularVelocity
public static final double maxAngularVelocityMax Angular Velocity in Radians per Second- See Also:
-
angleNeutralMode
public static final com.ctre.phoenix6.signals.NeutralModeValue angleNeutralModeAngle Motor Neutral Mode -
driveNeutralMode
public static final com.ctre.phoenix6.signals.NeutralModeValue driveNeutralModeDrive Motor Neutral Mode -
odometryFrequency
public static final double odometryFrequency- See Also:
-
forwardLimit
public static final double forwardLimit- See Also:
-
forwardTiltLimit
public static final double forwardTiltLimit- See Also:
-
leftTiltLimit
public static final double leftTiltLimit- See Also:
-
rightTiltLimit
public static final double rightTiltLimit- See Also:
-
backTiltLimit
public static final double backTiltLimit- See Also:
-
skidLimit
public static final double skidLimit- See Also:
-
modulesConstants
-
-
Constructor Details
-
Swerve
public Swerve()
-