undo previous commit
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / auton / PassRockWall.java
index 364133f85ac13c1bfbc97efa7bc0a9957cab392e..2839df3c3156d21751c58446820707e9fb8ada85 100755 (executable)
@@ -1,10 +1,16 @@
 package org.usfirst.frc.team3501.robot.commands.auton;
 
+import org.usfirst.frc.team3501.robot.commands.driving.DriveForTime;
+
 import edu.wpi.first.wpilibj.command.CommandGroup;
 
 /***
  * This command will drive the robot through the rock wall.
  *
+ * dependency on subsystems: drivetrain
+ *
+ * dependency on other commands: DriveForTime
+ *
  * pre-condition: robot is flush against the ramp of the outerworks in front of
  * the rock wall
  *
@@ -14,23 +20,13 @@ import edu.wpi.first.wpilibj.command.CommandGroup;
  *
  */
 
-/**
- *
- */
 public class PassRockWall extends CommandGroup {
 
-  private final double BEG_TIME = 0;
-  private final double MID_TIME = 0;
-  private final double END_TIME = 0;
-  private final double BEG_SPEED = 0;
-  private final double MID_SPEED = 0;
-  private final double END_SPEED = 0;
+  private final double time = 0, speed =0;
 
   public PassRockWall() {
 
-    addSequential(new DriveForTime(BEG_TIME, BEG_SPEED));
-    addSequential(new DriveForTime(MID_TIME, MID_SPEED));
-    addSequential(new DriveForTime(END_TIME, END_SPEED));
+    addSequential(new DriveForTime(time, speed));
 
   }
 }