From 852aef392e120d5283de0d0d8582c34657e3a55a Mon Sep 17 00:00:00 2001 From: OlivierDubois Date: Sat, 17 Feb 2024 14:33:52 -0500 Subject: [PATCH] d --- src/main/java/frc/robot/RobotContainer.java | 2 +- src/main/java/frc/robot/subsystem/Accumulateur.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index ce00e60..7944f95 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -82,7 +82,7 @@ public class RobotContainer { manette.b().whileTrue(new GuiderHaut(guideur)); manette.x().whileTrue(new PistonFerme(grimpeur)); manette.y().whileTrue(new PistonOuvre(grimpeur)); - joystick.button(3).whileTrue(balayer); + joystick.button(3).whileTrue(new Balayer(balayeuse, accumulateur)); joystick.button(1).whileTrue(new LancerNote(lanceur, accumulateur)); joystick.button(5).whileTrue(new LancerAmp(lanceur, accumulateur)); joystick.button(4).whileTrue(new ParallelCommandGroup(new Lancer(lanceur,limelight),new Limelight_tracker(limelight,drive))); diff --git a/src/main/java/frc/robot/subsystem/Accumulateur.java b/src/main/java/frc/robot/subsystem/Accumulateur.java index 00d56b7..88df883 100644 --- a/src/main/java/frc/robot/subsystem/Accumulateur.java +++ b/src/main/java/frc/robot/subsystem/Accumulateur.java @@ -28,7 +28,7 @@ public class Accumulateur extends SubsystemBase { public boolean limitswitch(){ - return photocellacc.get(); + return !photocellacc.get(); } public Accumulateur() {