From: Rohan Rodrigues Date: Fri, 3 Mar 2017 00:41:01 +0000 (-0800) Subject: Finalize piston code in Shooter subsystem X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=commitdiff_plain;h=307be8c9a0a5a8f356e70182f880529a329206c5 Finalize piston code in Shooter subsystem --- 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); } /**