Skip to content

Commit 8400252

Browse files
Saiawe2024saiawe2021
authored andcommitted
Added Swerve Drive parameters for the practice base.
1 parent bf6a39f commit 8400252

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

src/main/java/frc/robot/parameters/SwerveDriveParameters.java

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import static frc.robot.parameters.MotorParameters.Falcon500;
88
import static frc.robot.parameters.MotorParameters.NeoV1_1;
9+
import static frc.robot.parameters.SwerveModuleParameters.MK4IFast;
910
import static frc.robot.parameters.SwerveModuleParameters.MK4Standard;
1011

1112
import edu.wpi.first.math.controller.ProfiledPIDController;
@@ -38,7 +39,19 @@ public enum SwerveDriveParameters {
3839
new int[] { 12, 14, 16, 18 }, // CANCoder CAN IDs
3940
new double[] {144.23, 26.02, 201.18, 202.59},
4041
0.15,
41-
0.15);
42+
0.15),
43+
PracticeBase2024(
44+
67.6853,
45+
Units.inchesToMeters(22.55),
46+
Units.inchesToMeters(22.55),
47+
MK4IFast,
48+
Falcon500,
49+
NeoV1_1,
50+
new int[] { 2, 3, 4, 5, 6, 7, 8, 9 }, // drive, steer motor controller CAN IDs
51+
new int[] { 12, 14, 16, 18 }, // CANCoder CAN IDs
52+
new double[] {144.23, 26.02, 201.18, 202.59},
53+
0.15,
54+
0.15);
4255

4356
public static class Constants {
4457
/**

src/main/java/frc/robot/parameters/SwerveModuleParameters.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,16 @@ public enum SwerveModuleParameters {
3333
MK4VeryFast(Units.inchesToMeters(Constants.RobotConstants.WHEEL_DIAMETER_INCHES), 6.12, 12.8),
3434

3535
/** An MK4 Swerve Module in the L4 - Too Fast configuration. */
36-
MK4TooFast(Units.inchesToMeters(Constants.RobotConstants.WHEEL_DIAMETER_INCHES), 5.14, 12.8);
36+
MK4TooFast(Units.inchesToMeters(Constants.RobotConstants.WHEEL_DIAMETER_INCHES), 5.14, 12.8),
37+
38+
/** An MK4I Swerve Module in the L1 - Standard configuration. */
39+
MK4IStandard(Units.inchesToMeters(Constants.RobotConstants.WHEEL_DIAMETER_INCHES), 8.14, 150.0/7.0),
40+
41+
/** An MK4I Swerve Module in the L2 - Fast configuration. */
42+
MK4IFast(Units.inchesToMeters(Constants.RobotConstants.WHEEL_DIAMETER_INCHES), 6.75, 150.0/7.0),
43+
44+
/** An MK4I Swerve Module in the L3 - Very Fast configuration. */
45+
MK4IVeryFast(Units.inchesToMeters(Constants.RobotConstants.WHEEL_DIAMETER_INCHES), 6.12, 150.0/7.0);
3746

3847
/**
3948
*

0 commit comments

Comments
 (0)