From 87139697c973432e5701dbb8a087ad0dc306a959 Mon Sep 17 00:00:00 2001 From: Meryem Esa Date: Sat, 30 Jan 2016 12:16:26 -0800 Subject: [PATCH] add pre and post conditions for the LiftPortcullis command --- .../robot/commands/LiftPortcullis.java | 51 ++++++++++++------- 1 file changed, 33 insertions(+), 18 deletions(-) diff --git a/src/org/usfirst/frc/team3501/robot/commands/LiftPortcullis.java b/src/org/usfirst/frc/team3501/robot/commands/LiftPortcullis.java index d2405883..992f9e1a 100755 --- a/src/org/usfirst/frc/team3501/robot/commands/LiftPortcullis.java +++ b/src/org/usfirst/frc/team3501/robot/commands/LiftPortcullis.java @@ -2,29 +2,44 @@ package org.usfirst.frc.team3501.robot.commands; import edu.wpi.first.wpilibj.command.Command; +/*** + * This command will move the robot forward while lifting the defense arm up. + * + * pre-condition: robot is flush against the ramp of the outerworks in front of + * the portcullis + * + * This command has to drive forward at the same time because that's how the + * robot opens the portcullis + * + * post-condition: the robot has passed the portcullis and is in the next zone + * + * @author Meryem and Avi + * + */ + public class LiftPortcullis extends Command { - public LiftPortcullis() { - } + public LiftPortcullis() { + } - @Override - protected void initialize() { - } + @Override + protected void initialize() { + } - @Override - protected void execute() { - } + @Override + protected void execute() { + } - @Override - protected boolean isFinished() { - return false; - } + @Override + protected boolean isFinished() { + return false; + } - @Override - protected void end() { - } + @Override + protected void end() { + } - @Override - protected void interrupted() { - } + @Override + protected void interrupted() { + } } -- 2.30.2