Implement some methods of RunIndexWheelContinuous class
authorshainachen <shaina.sierra@gmail.com>
Sat, 14 Jan 2017 23:38:15 +0000 (15:38 -0800)
committerCindy Zhang <cindyzyx9@gmail.com>
Wed, 25 Jan 2017 03:40:38 +0000 (19:40 -0800)
src/org/usfirst/frc/team3501/robot/commands/shooter/RunFlyWheelContinuous.java

index 65a69f232dd8d6fd5f7699b261a093235434edea..a5e8501f1a5b50b137221d1b8fd4d44827e52ee2 100644 (file)
@@ -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;
+
   }
 
 }