add commands driveDistance and liftPortcullis to commandGroup
authorCindy Zhang <cindyzyx9@gmail.com>
Mon, 15 Feb 2016 01:08:07 +0000 (17:08 -0800)
committerKevin Zhang <icestormf1@gmail.com>
Mon, 15 Feb 2016 18:55:21 +0000 (10:55 -0800)
src/org/usfirst/frc/team3501/robot/commands/auton/PassPortcullis.java

index 0d48264a770c679878a7ed4c1a62b39690a3c142..4371c61d36b6c87b1eaa58479d01614f2618cc6f 100644 (file)
@@ -1,5 +1,7 @@
 package org.usfirst.frc.team3501.robot.commands.auton;
 
+import org.usfirst.frc.team3501.robot.commands.driving.DriveDistance;
+
 import edu.wpi.first.wpilibj.command.CommandGroup;
 
 /**
@@ -8,7 +10,10 @@ import edu.wpi.first.wpilibj.command.CommandGroup;
 public class PassPortcullis extends CommandGroup {
 
   public PassPortcullis() {
-    // Use requires() here to declare subsystem dependencies
-    // eg. requires(chassis);
+    // TODO: in theory, these two commands should not be running in parallel all
+    // the time, because of specifics of the series of actions needed to
+    // successfully pass the portcullis, so edit these to reflect that
+    addParallel(new LiftPortcullis());
+    addParallel(new DriveDistance(0, 0)); // TODO: figure out distance to travel
   }
 }