Moderately streamline imports of constants
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / intakearm / RunIntake.java
index c69b350631e777c30fa65a792f8d1a2928092f18..7d2e490a00eda1b196cfdc8fdf871285e7556c00 100644 (file)
@@ -1,6 +1,6 @@
 package org.usfirst.frc.team3501.robot.commands.intakearm;
 
-import org.usfirst.frc.team3501.robot.Constants;
+import org.usfirst.frc.team3501.robot.Constants.IntakeArm;
 import org.usfirst.frc.team3501.robot.Robot;
 
 import edu.wpi.first.wpilibj.command.Command;
@@ -15,9 +15,9 @@ public class RunIntake extends Command {
 
   @Override
   protected void initialize() {
-    if (direction == Constants.IntakeArm.IN)
+    if (direction == IntakeArm.IN)
       Robot.intakeArm.intakeBall();
-    else if (direction == Constants.IntakeArm.OUT)
+    else if (direction == IntakeArm.OUT)
       Robot.intakeArm.outputBall();
     else
       Robot.intakeArm.stopRollers();