From: shainachen Date: Sat, 14 Jan 2017 23:41:36 +0000 (-0800) Subject: Implement some methods of RunFlyWheelContinuous class X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=commitdiff_plain;h=210ebccbd7371afb041817be032f2d0be0bbc269 Implement some methods of RunFlyWheelContinuous class --- 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 6f306f8..aa2dbb2 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheelContinuous.java +++ b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheelContinuous.java @@ -1,5 +1,7 @@ package org.usfirst.frc.team3501.robot.commands.shooter; +import org.usfirst.frc.team3501.robot.Robot; + import edu.wpi.first.wpilibj.command.Command; /** @@ -27,6 +29,7 @@ public class RunIndexWheelContinuous extends Command { // Called just before this Command runs the first time @Override protected void initialize() { + Robot.getShooter().setIndexWheelMotorVal(motorVal); } // Called repeatedly when this Command is scheduled to run @@ -37,12 +40,14 @@ public class RunIndexWheelContinuous extends Command { // Called once after isFinished returns true @Override protected void end() { + Robot.getShooter().stopIndexWheel(); } // Called when another command which requires one or more of the same // subsystems is scheduled to run @Override protected void interrupted() { + end(); } @Override