Edit JavaDoc comments in two methods
authorshainachen <shaina.sierra@gmail.com>
Tue, 17 Jan 2017 03:33:01 +0000 (19:33 -0800)
committershainachen <shaina.sierra@gmail.com>
Sat, 21 Jan 2017 19:16:40 +0000 (11:16 -0800)
src/org/usfirst/frc/team3501/robot/commands/shooter/RunFlyWheelContinuous.java
src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheelContinuous.java

index edb926e9517ecf118771b48a550bfa7192798aae..646dc56d41be28562bffee314fdc4c0da8ab1535 100644 (file)
@@ -3,9 +3,10 @@ package org.usfirst.frc.team3501.robot.commands.shooter;
 import edu.wpi.first.wpilibj.command.Command;
 
 /**
- * Runs fly wheel continuously when corresponding button pressed
+ * This command will run the fly wheel motor continuously until the button
+ * triggering it is released.
  *
- * Run stopFlyWheel command to stop
+ * pre-condition: This command must be run by a button in OI.
  *
  * @param motorVal
  *          [-1,1]
@@ -37,6 +38,7 @@ public class RunFlyWheelContinuous extends Command {
   // subsystems is scheduled to run
   @Override
   protected void interrupted() {
+    end();
   }
 
   @Override
index 161f7b6b68a344f60cb69b7fa67a36e57671fcb2..f4b06930b6e13a755b489df95c0f9f99d053ac30 100644 (file)
@@ -3,10 +3,11 @@ package org.usfirst.frc.team3501.robot.commands.shooter;
 import edu.wpi.first.wpilibj.command.Command;
 
 /**
- * Runs index wheel continuously when corresponding button is pressed
- *
- * Run stopIndexWheel to stop
+ * This command will run the index wheel motor continuously until the button
+ * triggering it is released.
  *
+ * pre-condition: This command must be run by a button in OI.
+ * 
  * @param motorVal
  *          [-1,1]
  * @author shaina