use constants in PassLowBar
authorMeryem Esa <meresa14@gmail.com>
Wed, 16 Mar 2016 02:10:20 +0000 (19:10 -0700)
committerHarel Dor <hareldor@gmail.com>
Tue, 22 Mar 2016 23:10:27 +0000 (16:10 -0700)
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));
   }
 }