From 280d7856f75cc9a9461c917b84129708e8cea682 Mon Sep 17 00:00:00 2001 From: nanobot567 <567.nanobot@gmail.com> Date: Sat, 7 Dec 2024 09:46:48 -0600 Subject: [PATCH] Demo changes --- src/main/java/frc/robot/Constants.java | 2 +- src/main/java/frc/robot/subsystems/manager/Manager.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/frc/robot/Constants.java b/src/main/java/frc/robot/Constants.java index 2d9bca1..fc4d532 100644 --- a/src/main/java/frc/robot/Constants.java +++ b/src/main/java/frc/robot/Constants.java @@ -108,7 +108,7 @@ public static final class Intake { public static final double IN = 0; // In RPS (Spinner Setpoints) - public static final double REVERSE = -3; + public static final double REVERSE = -10; public static final double ON = 3; // Erros of Margin diff --git a/src/main/java/frc/robot/subsystems/manager/Manager.java b/src/main/java/frc/robot/subsystems/manager/Manager.java index ac2e845..0a7be08 100644 --- a/src/main/java/frc/robot/subsystems/manager/Manager.java +++ b/src/main/java/frc/robot/subsystems/manager/Manager.java @@ -209,7 +209,7 @@ public Manager() { addTrigger( ManagerStates.SPINNING_UP, ManagerStates.SHOOTING, - () -> driverShooterAfterSpinningVal || Constants.controller.getAButtonPressed() + () -> (driverShooterAfterSpinningVal && shooterSubsystem.nearSpeedPoint()) || Constants.controller.getAButtonPressed() ); addTrigger(ManagerStates.SPINNING_UP, ManagerStates.IDLE, () -> Constants.controller.getXButtonPressed()