undo previous commit
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / auton / PassRockWall.java
index 7498138e26a60b1bc04d2dfcb45adb58682dd8dd..2839df3c3156d21751c58446820707e9fb8ada85 100755 (executable)
@@ -1,10 +1,16 @@
 package org.usfirst.frc.team3501.robot.commands.auton;
 
-import edu.wpi.first.wpilibj.command.Command;
+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
  *
@@ -13,29 +19,14 @@ import edu.wpi.first.wpilibj.command.Command;
  * @author Meryem and Avi
  *
  */
-public class PassRockWall extends Command {
 
-  public PassRockWall() {
-  }
+public class PassRockWall extends CommandGroup {
 
-  @Override
-  protected void initialize() {
-  }
+  private final double time = 0, speed =0;
 
-  @Override
-  protected void execute() {
-  }
-
-  @Override
-  protected boolean isFinished() {
-    return false;
-  }
+  public PassRockWall() {
 
-  @Override
-  protected void end() {
-  }
+    addSequential(new DriveForTime(time, speed));
 
-  @Override
-  protected void interrupted() {
   }
 }