From: Cindy Zhang Date: Mon, 15 Feb 2016 01:08:07 +0000 (-0800) Subject: add commands driveDistance and liftPortcullis to commandGroup X-Git-Url: http://challenge-bot.com/repos/?p=3501%2Fstronghold-2016;a=commitdiff_plain;h=e348a7d2356fa6259685934eec67dcc52712f387 add commands driveDistance and liftPortcullis to commandGroup --- diff --git a/src/org/usfirst/frc/team3501/robot/commands/auton/PassPortcullis.java b/src/org/usfirst/frc/team3501/robot/commands/auton/PassPortcullis.java index 0d48264a..4371c61d 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/auton/PassPortcullis.java +++ b/src/org/usfirst/frc/team3501/robot/commands/auton/PassPortcullis.java @@ -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 } }