Skip to content

Commit

Permalink
Changed SparkMax CAN IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
Modular-Holmes authored Mar 28, 2024
1 parent da467d8 commit 330d688
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/frc/robot/subsystems/drive/ModuleIOSparkMax.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,20 +64,20 @@ public ModuleIOSparkMax(int index) {
absoluteEncoderOffset = new Rotation2d(0.0); // MUST BE CALIBRATED
break;
case 1:
driveSparkMax = new CANSparkMax(3, MotorType.kBrushless);
turnSparkMax = new CANSparkMax(4, MotorType.kBrushless);
driveSparkMax = new CANSparkMax(11, MotorType.kBrushless);
turnSparkMax = new CANSparkMax(12, MotorType.kBrushless);
turnAbsoluteEncoder = turnSparkMax.getAbsoluteEncoder();
absoluteEncoderOffset = new Rotation2d(0.0); // MUST BE CALIBRATED
break;
case 2:
driveSparkMax = new CANSparkMax(5, MotorType.kBrushless);
turnSparkMax = new CANSparkMax(6, MotorType.kBrushless);
driveSparkMax = new CANSparkMax(21, MotorType.kBrushless);
turnSparkMax = new CANSparkMax(22, MotorType.kBrushless);
turnAbsoluteEncoder = turnSparkMax.getAbsoluteEncoder();
absoluteEncoderOffset = new Rotation2d(0.0); // MUST BE CALIBRATED
break;
case 3:
driveSparkMax = new CANSparkMax(7, MotorType.kBrushless);
turnSparkMax = new CANSparkMax(8, MotorType.kBrushless);
driveSparkMax = new CANSparkMax(31, MotorType.kBrushless);
turnSparkMax = new CANSparkMax(32, MotorType.kBrushless);
turnAbsoluteEncoder = turnSparkMax.getAbsoluteEncoder();
absoluteEncoderOffset = new Rotation2d(0.0); // MUST BE CALIBRATED
break;
Expand Down

0 comments on commit 330d688

Please sign in to comment.