add comments for PassRoughTerrain
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / PassRoughTerrain.java
index b1f0fb763ead1b3c0d7846d4111955a3218fe317..1f21dfd35789894f223b823d3e320263d10744b5 100755 (executable)
@@ -1,10 +1,14 @@
 package org.usfirst.frc.team3501.robot.commands;
 
-import edu.wpi.first.wpilibj.command.Command;
+import edu.wpi.first.wpilibj.command.CommandGroup;
 
 /***
  * This command will drive the robot through the rough terrain.
  *
+ * dependency on subsytems: drivetrain
+ *
+ * dependency on other commands: DriveForTime
+ *
  * pre-condition: robot is flush against the ramp of the outerworks in front of
  * the rough terrain
  *
@@ -14,30 +18,22 @@ import edu.wpi.first.wpilibj.command.Command;
  * @author Meryem and Avi
  *
  */
-public class PassRoughTerrain extends Command {
-
-  public PassRoughTerrain() {
+public class PassRoughTerrain extends CommandGroup {
 
-  }
+  // TODO: test for the time
+  private final double BEG_TIME = 0;
+  private final double MID_TIME = 0;
+  private final double END_TIME = 0;
 
-  @Override
-  protected void initialize() {
-  }
+  private final double BEG_SPEED = 0;
+  private final double MID_SPEED = 0;
+  private final double END_SPEED = 0;
 
-  @Override
-  protected void execute() {
-  }
-
-  @Override
-  protected boolean isFinished() {
-    return false;
-  }
+  public PassRoughTerrain() {
 
-  @Override
-  protected void end() {
-  }
+    addSequential(new DriveForTime(BEG_TIME, BEG_SPEED));
+    addSequential(new DriveForTime(MID_TIME, MID_SPEED));
+    addSequential(new DriveForTime(END_TIME, BEG_SPEED));
 
-  @Override
-  protected void interrupted() {
   }
 }