From 307be8c9a0a5a8f356e70182f880529a329206c5 Mon Sep 17 00:00:00 2001 From: Rohan Rodrigues Date: Thu, 2 Mar 2017 16:41:01 -0800 Subject: [PATCH] Finalize piston code in Shooter subsystem --- src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java b/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java index cce6a7d..dac23fd 100644 --- a/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java +++ b/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java @@ -22,12 +22,17 @@ public class Shooter extends Subsystem { private double currentShootingSpeed = DEFAULT_SHOOTING_SPEED; + private DoubleSolenoid piston; + private Shooter() { flyWheel1 = new CANTalon(Constants.Shooter.FLY_WHEEL1); flyWheel2 = new CANTalon(Constants.Shooter.FLY_WHEEL2); indexWheel = new CANTalon(Constants.Shooter.INDEX_WHEEL); hallEffect = new HallEffectSensor(Constants.Shooter.HALL_EFFECT_PORT, 1); + + piston = new DoubleSolenoid(Constants.Shooter.PISTON_MODULE, + Constants.Shooter.PISTON_FORWARD, Constants.Shooter.PISTON_REVERSE); } /** -- 2.30.2