X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fsubsystems%2FShooter.java;h=dac23fd6a8214aee7ff03faf4a95798cbb6e2b55;hb=307be8c9a0a5a8f356e70182f880529a329206c5;hp=cce6a7d62d01d8cb18ba35a6c7316671f5600a80;hpb=5ab65eabce1f0342014319b287e7faeeb9d4df9a;p=3501%2F2017steamworks 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); } /**