From: Lauren Meier Date: Fri, 12 Feb 2016 04:15:00 +0000 (-0800) Subject: fix logic in ToggleBall commands to stop constant on and off switching X-Git-Url: http://challenge-bot.com/repos/?a=commitdiff_plain;h=4692be1b2f64e816335d7e8f0827977a1d802069;p=3501%2Fstronghold-2016 fix logic in ToggleBall commands to stop constant on and off switching --- diff --git a/src/org/usfirst/frc/team3501/robot/commands/ToggleBallRollerExpel.java b/src/org/usfirst/frc/team3501/robot/commands/ToggleBallRollerExpel.java index eb034ee5..06049821 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/ToggleBallRollerExpel.java +++ b/src/org/usfirst/frc/team3501/robot/commands/ToggleBallRollerExpel.java @@ -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 diff --git a/src/org/usfirst/frc/team3501/robot/commands/ToggleBallRollerIntake.java b/src/org/usfirst/frc/team3501/robot/commands/ToggleBallRollerIntake.java index 14e98508..8a2caada 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/ToggleBallRollerIntake.java +++ b/src/org/usfirst/frc/team3501/robot/commands/ToggleBallRollerIntake.java @@ -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