Skip to content
This repository has been archived by the owner on May 19, 2024. It is now read-only.

Commit

Permalink
fix: Working swerve.
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenheroux committed Mar 15, 2024
1 parent 4e728ae commit d04ec44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/RobotConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ public enum Subsystem {
Subsystem.SHOOTER,
Subsystem.SWERVE);

public static final Set<Subsystem> REAL_SUBSYSTEMS = ALL_SUBSYSTEMS;
public static final Set<Subsystem> REAL_SUBSYSTEMS = EnumSet.of(Subsystem.ODOMETRY, Subsystem.SWERVE);
}
8 changes: 4 additions & 4 deletions src/main/java/frc/robot/swerve/SwerveConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,28 +67,28 @@ public static class MK4iConstants {
new SwerveModuleConfig(
new SwerveModuleCAN(11, 10, 12, SWERVE_BUS),
new Translation2d(X_OFFSET, Y_OFFSET),
Rotation2d.fromRotations(-0.027100));
Rotation2d.fromRotations(.117188));

/** Module configuration for the north east swerve module. */
public static final SwerveModuleConfig NORTH_EAST_MODULE_CONFIG =
new SwerveModuleConfig(
new SwerveModuleCAN(2, 1, 3, SWERVE_BUS),
new Translation2d(X_OFFSET, -Y_OFFSET),
Rotation2d.fromRotations(-0.429688));
Rotation2d.fromRotations(-0.206787));

/** Module configuration for the south east swerve module. */
public static final SwerveModuleConfig SOUTH_EAST_MODULE_CONFIG =
new SwerveModuleConfig(
new SwerveModuleCAN(5, 4, 6, SWERVE_BUS),
new Translation2d(-X_OFFSET, -Y_OFFSET),
Rotation2d.fromRotations(-0.097168));
Rotation2d.fromRotations(-0.084717));

/** Module configuration for the south west swerve module. */
public static final SwerveModuleConfig SOUTH_WEST_MODULE_CONFIG =
new SwerveModuleConfig(
new SwerveModuleCAN(8, 7, 9, SWERVE_BUS),
new Translation2d(-X_OFFSET, Y_OFFSET),
Rotation2d.fromRotations(-0.309814));
Rotation2d.fromRotations(-0.442383));

/**
* Calculates the maximum attainable open loop speed in meters per second.
Expand Down

0 comments on commit d04ec44

Please sign in to comment.