This commit is contained in:
samuel desharnais 2022-11-14 18:52:36 -05:00
parent bfdca95893
commit bd4103944c
2 changed files with 6 additions and 2 deletions

View File

@ -12,4 +12,7 @@ package frc.robot;
* <p>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;
}

View File

@ -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() {