fix logic in ToggleBall commands to stop constant on and off switching
authorLauren Meier <meier.lauren@gmail.com>
Fri, 12 Feb 2016 04:15:00 +0000 (20:15 -0800)
committerLauren Meier <meier.lauren@gmail.com>
Sat, 13 Feb 2016 22:43:23 +0000 (14:43 -0800)
src/org/usfirst/frc/team3501/robot/commands/ToggleBallRollerExpel.java
src/org/usfirst/frc/team3501/robot/commands/ToggleBallRollerIntake.java

index eb034ee5cba5d098edfa3ef2740f02155cd988ea..060498212ffb0b6269497822afc92c0f2a3b6790 100644 (file)
@@ -13,10 +13,7 @@ public class ToggleBallRollerExpel extends Command {
 
   @Override
   protected void initialize() {
-    if (Robot.intakeArm.areRollersRolling())
-      Robot.intakeArm.stopRollers();
-    else
-      Robot.intakeArm.outputBall();
+    Robot.intakeArm.outputBall();
   }
 
   @Override
index 14e98508767eea1ddbaae8994c960cf2660a5698..8a2caada692c3b5b787cd6f2cd7f280bf157f0aa 100644 (file)
@@ -13,10 +13,7 @@ public class ToggleBallRollerIntake extends Command {
 
   @Override
   protected void initialize() {
-    if (Robot.intakeArm.areRollersRolling()) {
-      Robot.intakeArm.stopRollers();
-    } else
-      Robot.intakeArm.intakeBall();
+    Robot.intakeArm.intakeBall();
   }
 
   @Override