X-Git-Url: http://challenge-bot.com/repos/?p=3501%2Fstronghold-2016;a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fsubsystems%2FShooter.java;fp=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fsubsystems%2FShooter.java;h=c0eb39bc2c4b96338dc5c793423a378a9ebc8e1f;hp=7b6ef174bd3cc046ade23a65c00695c7a99862cd;hb=8a5f4fa4ec8b53d8d9db1c429cf8190fb06672a0;hpb=cc64f0189c06a995e740d978a837612d15a7bbcc diff --git a/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java b/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java index 7b6ef174..c0eb39bc 100755 --- a/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java +++ b/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java @@ -15,9 +15,9 @@ import edu.wpi.first.wpilibj.command.Subsystem; * motors. The piston controlling the platform pushes the ball onto the wheel. * The wheel is controlled by a motor, which is running before the ball is * pushed onto the wheel. The spinning wheel propels the ball. - * + * * @author superuser - * + * */ public class Shooter extends Subsystem { @@ -30,12 +30,14 @@ public class Shooter extends Subsystem { public Shooter() { shooter = new CANTalon(Constants.Shooter.PORT); - hood1 = new DoubleSolenoid(10, Constants.Shooter.RIGHT_HOOD_FORWARD, + hood1 = new DoubleSolenoid(Constants.DriveTrain.MODULE_B_ID, + Constants.Shooter.RIGHT_HOOD_FORWARD, Constants.Shooter.RIGHT_HOOD_REVERSE); // right - hood2 = new DoubleSolenoid(9, Constants.Shooter.LEFT_HOOD_FORWARD, + hood2 = new DoubleSolenoid(Constants.DriveTrain.MODULE_A_ID, + Constants.Shooter.LEFT_HOOD_FORWARD, Constants.Shooter.LEFT_HOOD_REVERSE);// left - punch = new DoubleSolenoid(9, Constants.Shooter.PUNCH_FORWARD, - Constants.Shooter.PUNCH_REVERSE); + punch = new DoubleSolenoid(Constants.DriveTrain.MODULE_A_ID, + Constants.Shooter.PUNCH_FORWARD, Constants.Shooter.PUNCH_REVERSE); encoder = new Encoder(Constants.Shooter.ENCODER_PORT_A, Constants.Shooter.ENCODER_PORT_B, false, EncodingType.k4X); @@ -45,7 +47,7 @@ public class Shooter extends Subsystem { /*** * This method checks to see if the ball has successfully passed through the * intake rollers and is inside. - * + * * @return whether the presence of the ball is true or false and returns the * state of the condition (true or false). */