Skip to content

Commit

Permalink
Added stubbed motor IDs that don't crash the program
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold872 committed Jan 29, 2024
1 parent c141f11 commit 674c22b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
15 changes: 8 additions & 7 deletions src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ public static final class LimelightConstants {
}

public static final class ArmConstants {
public static final int mainMotorID = 10;
public static final int followerID = 11;
public static final int mainMotorID = 9;
public static final int followerID = 10;

public static final boolean mainMotorInverted = true;
public static final boolean absoluteEncoderInverted = true;
Expand Down Expand Up @@ -272,25 +272,26 @@ public static final class ArmConstants {
}

public static class IntakeConstants {
public static final int intakeMotorOneID = 5;
public static final int intakeMotorID = 13;
public static final double intakeMotorSpeed = 0.80;

public static final int beamBreakID = 0;
}

public static class ShooterConstants {
public static final int shooterMainID = 11;
public static final int shooterFollowerId = 12;

public static final double shooterVelocity = 0;
public static final double shooterKs = 0.353;
public static final double shooterKv = 0.353;
public static final double shooterKa = 0.353;
public static final double shooterP = 0.353;
public static final int shooterMainId = 0;
public static final int shooterFollowerId = 0;
}

public static final class ClimberConstants {
public static final int mainMotorID = 15;
public static final int followerMotorID = 16;
public static final int mainMotorID = 14;
public static final int followerMotorID = 15;

public static final double climberMotorSpeed = 0.75;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/Intake.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
public class Intake extends VirtualSubsystem implements Logged {
/** Creates a new Intake. */
private CANSparkMax intakeMotor =
new CANSparkMax(IntakeConstants.intakeMotorOneID, MotorType.kBrushless);
new CANSparkMax(IntakeConstants.intakeMotorID, MotorType.kBrushless);

private RelativeEncoder intakeEncoder = intakeMotor.getEncoder();

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/Shooter.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

public class Shooter extends VirtualSubsystem implements Logged {
private CANSparkMax shooterMain =
new CANSparkMax(ShooterConstants.shooterMainId, MotorType.kBrushless);
new CANSparkMax(ShooterConstants.shooterMainID, MotorType.kBrushless);
private CANSparkMax shooterFollower =
new CANSparkMax(ShooterConstants.shooterFollowerId, MotorType.kBrushless);

Expand Down

0 comments on commit 674c22b

Please sign in to comment.