From 0d9f19b8448314d3b86956f90cc58d8d4c0f710b Mon Sep 17 00:00:00 2001 From: Antoine PerreaultE Date: Mon, 20 Feb 2023 19:12:24 -0500 Subject: [PATCH] k --- src/main/java/frc/robot/RobotContainer.java | 1 - src/main/java/frc/robot/commands/GratteMonte.java | 1 + src/main/java/frc/robot/subsystems/Gratte.java | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 16048c8..5635da0 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -70,7 +70,6 @@ public RobotContainer() { manette1.y().whileTrue(gyro); manette1.b().toggleOnTrue(Commands.startEnd(gratte::baiser, gratte::Lever,gratte)); manette1.start().toggleOnTrue(Commands.startEnd(basePilotable::resetGyro, basePilotable::resetGyro, basePilotable)); - } diff --git a/src/main/java/frc/robot/commands/GratteMonte.java b/src/main/java/frc/robot/commands/GratteMonte.java index 950dcd2..522deff 100644 --- a/src/main/java/frc/robot/commands/GratteMonte.java +++ b/src/main/java/frc/robot/commands/GratteMonte.java @@ -44,6 +44,7 @@ public class GratteMonte extends CommandBase { // Returns true when the command should end. @Override public boolean isFinished() { + return false; } } diff --git a/src/main/java/frc/robot/subsystems/Gratte.java b/src/main/java/frc/robot/subsystems/Gratte.java index 3aa09ac..4cefbae 100644 --- a/src/main/java/frc/robot/subsystems/Gratte.java +++ b/src/main/java/frc/robot/subsystems/Gratte.java @@ -17,6 +17,7 @@ public class Gratte extends SubsystemBase { private DigitalInput limithg = new DigitalInput(Constants.limithg); private DigitalInput limitbd = new DigitalInput(Constants.limitbd); private DigitalInput limitbg = new DigitalInput(Constants.limitbg); + public boolean hautd(){ return limithd.get(); }