Skip to content

Commit

Permalink
Constants migration
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgrammingSR committed Mar 12, 2024
1 parent 83e7786 commit 2b10531
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ public static final class ShooterConstants {
public static final int kBottomShooterMotorPort = 35;
public static final double kShooterSpeedTop = 0.8;
public static final double kShooterSpeedBottom = 0.9;
public static final double kPreShooterSpeed = 0.4;
public static final double kShooterOff = 0;

public static final double kShooterOffTime = 0.04;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/subsystems/ShooterSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public void setShootingSpeed(ShootSpeed speed) {
m_bottomSpeed = ShooterConstants.kShooterSpeedBottom;
break;
case Halfway:
m_topSpeed = ShooterConstants.kShooterSpeedTop/3;
m_bottomSpeed = ShooterConstants.kShooterSpeedBottom/3;
m_topSpeed = ShooterConstants.kPreShooterSpeed;
m_bottomSpeed = ShooterConstants.kPreShooterSpeed;
break;
case Off:
m_topSpeed = 0.0;
Expand Down

0 comments on commit 2b10531

Please sign in to comment.