From bd4103944cb2100a677a288da940675022ba426a Mon Sep 17 00:00:00 2001 From: samuel desharnais Date: Mon, 14 Nov 2022 18:52:36 -0500 Subject: [PATCH] qwerty --- src/main/java/frc/robot/Constants.java | 5 ++++- src/main/java/frc/robot/subsystems/Pistonshaker.java | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/frc/robot/Constants.java b/src/main/java/frc/robot/Constants.java index 033c72d..23ef642 100644 --- a/src/main/java/frc/robot/Constants.java +++ b/src/main/java/frc/robot/Constants.java @@ -12,4 +12,7 @@ package frc.robot; *

It is advised to statically import this class (or one of its inner classes) wherever the * constants are needed, to reduce verbosity. */ -public final class Constants {} +public final class Constants { + public static final int pistonQuiShakef = 0; + public static final int pistonQuiShakeb = 1; +} diff --git a/src/main/java/frc/robot/subsystems/Pistonshaker.java b/src/main/java/frc/robot/subsystems/Pistonshaker.java index eadd140..d9eb538 100644 --- a/src/main/java/frc/robot/subsystems/Pistonshaker.java +++ b/src/main/java/frc/robot/subsystems/Pistonshaker.java @@ -7,9 +7,10 @@ package frc.robot.subsystems; import edu.wpi.first.wpilibj.DoubleSolenoid; import edu.wpi.first.wpilibj.PneumaticsModuleType; import edu.wpi.first.wpilibj2.command.SubsystemBase; +import frc.robot.Constants; public class Pistonshaker extends SubsystemBase { - private DoubleSolenoid shaker = new DoubleSolenoid(PneumaticsModuleType.CTREPCM,0,1); + private DoubleSolenoid shaker = new DoubleSolenoid(PneumaticsModuleType.CTREPCM,Constants.pistonQuiShakeb,Constants.pistonQuiShakef); /** Creates a new pistonshaker. */ public Pistonshaker() {