From dbec800dc8d5a7131e729e7f1c07023798813cbf Mon Sep 17 00:00:00 2001 From: shainachen Date: Sat, 14 Jan 2017 15:38:15 -0800 Subject: [PATCH] Implement some methods of RunIndexWheelContinuous class --- .../robot/commands/shooter/RunFlyWheelContinuous.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/org/usfirst/frc/team3501/robot/commands/shooter/RunFlyWheelContinuous.java b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunFlyWheelContinuous.java index 65a69f2..a5e8501 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/shooter/RunFlyWheelContinuous.java +++ b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunFlyWheelContinuous.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 RunFlyWheelContinuous extends Command { // Called just before this Command runs the first time @Override protected void initialize() { + Robot.getShooter().setFlyWheelMotorVal(motorVal); } // Called repeatedly when this Command is scheduled to run @@ -37,6 +40,7 @@ public class RunFlyWheelContinuous extends Command { // Called once after isFinished returns true @Override protected void end() { + Robot.getShooter().stopFlyWheel(); } // Called when another command which requires one or more of the same @@ -49,6 +53,7 @@ public class RunFlyWheelContinuous extends Command { @Override protected boolean isFinished() { return false; + } } -- 2.30.2