From e348a7d2356fa6259685934eec67dcc52712f387 Mon Sep 17 00:00:00 2001 From: Cindy Zhang Date: Sun, 14 Feb 2016 17:08:07 -0800 Subject: [PATCH 1/1] add commands driveDistance and liftPortcullis to commandGroup --- .../team3501/robot/commands/auton/PassPortcullis.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 } } -- 2.30.2