Correct ToggleBallRollerIntake command and remove unnecessary lines
authorniyatisriram <niyatisriram@gmail.com>
Wed, 10 Feb 2016 03:07:50 +0000 (19:07 -0800)
committerLauren Meier <meier.lauren@gmail.com>
Sat, 13 Feb 2016 22:38:59 +0000 (14:38 -0800)
src/org/usfirst/frc/team3501/robot/commands/ToggleBallRollerIntake.java

index 4ae8f5f55ed88ba76720b52b1ce915423ea03509..5741c1c0710becd3cffd8303f225692fcd3e8369 100644 (file)
@@ -5,14 +5,13 @@ import org.usfirst.frc.team3501.robot.Robot;
 import edu.wpi.first.wpilibj.command.Command;
 
 public class ToggleBallRollerIntake extends Command {
-  final double BALL_EXPEL_SPEED = -0.3;
 
   public ToggleBallRollerIntake() {
   }
 
   @Override
   protected void initialize() {
-    if (areRollersRolling()) {
+    if (Robot.intakeArm.areRollersRolling()) {
       Robot.intakeArm.stopRollers();
     } else
       Robot.intakeArm.intakeBall();