edit continuous commands
authorCindy Zhang <cindyzyx9@gmail.com>
Sat, 4 Feb 2017 20:01:59 +0000 (12:01 -0800)
committerCindy Zhang <cindyzyx9@gmail.com>
Sat, 4 Feb 2017 20:01:59 +0000 (12:01 -0800)
src/org/usfirst/frc/team3501/robot/commands/climber/RunWinchContinuous.java
src/org/usfirst/frc/team3501/robot/commands/intake/ReverseIntakeContinuous.java
src/org/usfirst/frc/team3501/robot/commands/shooter/RunFlyWheelContinuous.java
src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheelContinuous.java

index 6b8db75cc2c8eee9ccc09bb0572eeec1257c75f9..e20121024a0528b7d3a8c0637f96bc154f4a39a2 100644 (file)
@@ -8,8 +8,8 @@ import edu.wpi.first.wpilibj.command.Command;
  * This command runs the drive train motors (which runs the winch) continuously
  * at a specified speed until the button triggering it is released
  *
- * pre-condition: This command must be run by a button in OI. The robot must be
- * attached to the rope.
+ * pre-condition: This command must be run by a button in OI with
+ * button.whileHeld(...). The robot must be attached to the rope.
  *
  * post-condition: Drive train motors set to a specified speed.
  *
index a75a4bb28b4b665596441e1da874f895876ef67c..f44631661476e7d309e58abdf663b0d5b75c1fdd 100644 (file)
@@ -7,7 +7,8 @@ import edu.wpi.first.wpilibj.command.Command;
 /**
  * Reverses the intake until the button triggering this command is released
  *
- * pre-condition: button is pressed
+ * pre-condition: This command must be run by a button in OI with
+ * button.whileHeld(...).
  */
 public class ReverseIntakeContinuous extends Command {
 
index af77483c85939ffa7205610078a4ee2630275805..1f1d5cd9d1f25a28dcd34e3be33684a583e16ec8 100644 (file)
@@ -55,7 +55,7 @@ public class RunFlyWheelContinuous extends Command {
 
   @Override
   protected boolean isFinished() {
-    return !Robot.getOI().toggleFlyWheel.get();
+    return false;
   }
 
 }
index bf9af68ad85b3c0617672edba540c37aeb7d2989..adcd1a618df4b8f614824574952871d7c75f455b 100644 (file)
@@ -55,7 +55,7 @@ public class RunIndexWheelContinuous extends Command {
 
   @Override
   protected boolean isFinished() {
-    return Robot.getOI().toggleIndexWheel.get();
+    return false;
 
   }