From ea2d2aa2affbdcfb2de95961e61b288036573422 Mon Sep 17 00:00:00 2001 From: EdwardFaucher Date: Wed, 16 Nov 2022 18:00:19 -0500 Subject: [PATCH] ajout du piston bloqueur --- src/main/java/frc/robot/Constants.java | 2 ++ src/main/java/frc/robot/subsystems/Poussoir.java | 1 + 2 files changed, 3 insertions(+) diff --git a/src/main/java/frc/robot/Constants.java b/src/main/java/frc/robot/Constants.java index 0b24b86..8b348ff 100644 --- a/src/main/java/frc/robot/Constants.java +++ b/src/main/java/frc/robot/Constants.java @@ -19,4 +19,6 @@ public final class Constants { public static final int PistonPousserF = 1; public static final int pistonQuiShakef = 0; public static final int pistonQuiShakeb = 1; + public static final int pistonBloqueurR = 2; + public static final int pistonBloqueurF = 3; } diff --git a/src/main/java/frc/robot/subsystems/Poussoir.java b/src/main/java/frc/robot/subsystems/Poussoir.java index 7774e23..f0b0056 100644 --- a/src/main/java/frc/robot/subsystems/Poussoir.java +++ b/src/main/java/frc/robot/subsystems/Poussoir.java @@ -11,6 +11,7 @@ import frc.robot.Constants; public class Poussoir extends SubsystemBase { private DoubleSolenoid pousser = new DoubleSolenoid(PneumaticsModuleType.CTREPCM,Constants.PistonPousserR,Constants.PistonPousserF ); + private DoubleSolenoid bloqueur = new DoubleSolenoid(PneumaticsModuleType.CTREPCM,Constants.pistonBloqueurR,Constants.pistonBloqueurF); /** Creates a new Poussoir. */ public Poussoir() {