X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fshooter%2FRunIndexWheelContinuous.java;h=1bf1c6f0c4941cba314eeff63030e066f345e557;hp=b4eed57abe0862ae574c3ad83a3279998f183745;hb=ad7e6b1e386d82e35d6049e211b7c1ae3efe705d;hpb=ca372ce8e1ede3b2967ae6f42c539db4eeb812fc diff --git a/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheelContinuous.java b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheelContinuous.java index b4eed57..1bf1c6f 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheelContinuous.java +++ b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheelContinuous.java @@ -1,6 +1,7 @@ package org.usfirst.frc.team3501.robot.commands.shooter; import org.usfirst.frc.team3501.robot.Robot; +import org.usfirst.frc.team3501.robot.subsystems.Shooter; import edu.wpi.first.wpilibj.command.Command; @@ -17,7 +18,7 @@ import edu.wpi.first.wpilibj.command.Command; * @author Shaina */ public class RunIndexWheelContinuous extends Command { - private double motorVal; + private Shooter shooter = Robot.getShooter(); /** * See JavaDoc comment in class for details @@ -25,14 +26,14 @@ public class RunIndexWheelContinuous extends Command { * @param motorVal * value range from -1 to 1 */ - public RunIndexWheelContinuous(double motorVal) { - this.motorVal = motorVal; + public RunIndexWheelContinuous() { + } // Called just before this Command runs the first time @Override protected void initialize() { - Robot.getShooter().setIndexWheelMotorVal(motorVal); + shooter.setIndexWheelMotorVal(shooter.CURRENT_SHOOTING_SPEED); } // Called repeatedly when this Command is scheduled to run