From e7bfb9eb1ae9fef4e9f932707ef0d34de2b953f2 Mon Sep 17 00:00:00 2001 From: Griffin Date: Tue, 26 Mar 2024 19:10:54 -0400 Subject: [PATCH] updates from drive practice --- src/main/java/frc/robot/commands/ShootPasserCommand.java | 8 +++----- .../frc/robot/constants/ScoringElevatorConstants.java | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main/java/frc/robot/commands/ShootPasserCommand.java b/src/main/java/frc/robot/commands/ShootPasserCommand.java index a864e03c..4137f47d 100644 --- a/src/main/java/frc/robot/commands/ShootPasserCommand.java +++ b/src/main/java/frc/robot/commands/ShootPasserCommand.java @@ -25,15 +25,13 @@ public ShootPasserCommand() { @Override public void initialize() { timer.start(); + passer.shoot(); } @Override public void execute() { - scoring.feedForPasser(); - passer.shoot(); - if (!storage.noteExitingStorage()) { - storage.stopStorage(); - } else { + if (timer.get() > 0.75) { + scoring.feedForPasser(); storage.runStorage(); } } diff --git a/src/main/java/frc/robot/constants/ScoringElevatorConstants.java b/src/main/java/frc/robot/constants/ScoringElevatorConstants.java index c6fbe02b..740a50b5 100644 --- a/src/main/java/frc/robot/constants/ScoringElevatorConstants.java +++ b/src/main/java/frc/robot/constants/ScoringElevatorConstants.java @@ -9,7 +9,7 @@ public class ScoringElevatorConstants { public static final double elevatorEncoderConversionFactor = 1 / (maxElevatorEncoderCounts / maxElevatorInches); public static final double groundSetpoint = 0; - public static final double ampSetpoint = 4.0; + public static final double ampSetpoint = 4.5; public static final double passerSetpoint = 6.0; public static final double trapSetpoint = 15.0;