From 2b105311bf63e1d8baf4196a27be751c98913c38 Mon Sep 17 00:00:00 2001 From: ProgrammingSR Date: Mon, 11 Mar 2024 17:11:33 -0700 Subject: [PATCH] Constants migration --- src/main/java/frc/robot/Constants.java | 1 + src/main/java/frc/robot/subsystems/ShooterSubsystem.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/frc/robot/Constants.java b/src/main/java/frc/robot/Constants.java index 0ef90eb..17cf494 100644 --- a/src/main/java/frc/robot/Constants.java +++ b/src/main/java/frc/robot/Constants.java @@ -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; diff --git a/src/main/java/frc/robot/subsystems/ShooterSubsystem.java b/src/main/java/frc/robot/subsystems/ShooterSubsystem.java index 10cd23e..3e0ccb9 100644 --- a/src/main/java/frc/robot/subsystems/ShooterSubsystem.java +++ b/src/main/java/frc/robot/subsystems/ShooterSubsystem.java @@ -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;