use constants in PassLowBar
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / auton / PassLowBar.java
index 83d934f3be7ce696a54b4c48f7f6b89f973cc468..8311a59baffe0cff0c3290d880bd82c1e3bef292 100644 (file)
@@ -1,5 +1,6 @@
 package org.usfirst.frc.team3501.robot.commands.auton;
 
+import org.usfirst.frc.team3501.robot.Constants.Auton;
 import org.usfirst.frc.team3501.robot.Constants.IntakeArm;
 import org.usfirst.frc.team3501.robot.commands.driving.TimeDrive;
 import org.usfirst.frc.team3501.robot.commands.intakearm.MoveIntakeArm;
@@ -12,8 +13,7 @@ import edu.wpi.first.wpilibj.command.CommandGroup;
 public class PassLowBar extends CommandGroup {
 
   public PassLowBar() {
-    addSequential(new TimeDrive(.3, 1));
     addSequential(new MoveIntakeArm(IntakeArm.EXTEND));
-    addSequential(new TimeDrive(.5, 3));
+    addSequential(new TimeDrive(Auton.LOW_BAR_TIME, Auton.LOW_BAR_SPEED));
   }
 }