Class SN_SwerveConstants
java.lang.Object
com.frcteam3255.components.swerve.SN_SwerveConstants
A wrapper for a swerve module's physical constants. Contains preset constants as well as a constructor for custom constants.
Values are taken directly from their website. (https://www.swervedrivespecialties.com/products/mk4i-swerve-module)
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptiondoubledoubledoubledouble -
Constructor Summary
ConstructorsConstructorDescriptionSN_SwerveConstants(double steerGearRatio, double wheelCircumference, double driveGearRatio, double maxSpeedMeters) A wrapper for Swerve Module constants. -
Method Summary
-
Field Details
-
steerGearRatio
public double steerGearRatio -
wheelCircumference
public double wheelCircumference -
driveGearRatio
public double driveGearRatio -
maxSpeedMeters
public double maxSpeedMeters
-
-
Constructor Details
-
SN_SwerveConstants
public SN_SwerveConstants(double steerGearRatio, double wheelCircumference, double driveGearRatio, double maxSpeedMeters) A wrapper for Swerve Module constants. You can create your own custom constants using this constructor.- Parameters:
steerGearRatio- The gear ratio between the wheel and the steer motorwheelCircumference- The circumference of the wheel, in metersdriveGearRatio- The gear ratio between the wheel and the drive motormaxSpeedMeters- The maximum speed of the module, in meters per second
-