From 227fd1b1eed2e9c994041478a0974d5541b69250 Mon Sep 17 00:00:00 2001 From: Meryem Esa Date: Sat, 30 Jan 2016 15:40:21 -0800 Subject: [PATCH] change name of LowerDrawBridge to PassDrawBridge and add pre and post condition comments --- .../robot/commands/DefaultAutonStrategy.java | 2 +- .../robot/commands/LowerDrawBridge.java | 30 -------------- .../robot/commands/PassDrawBridge.java | 41 +++++++++++++++++++ 3 files changed, 42 insertions(+), 31 deletions(-) delete mode 100755 src/org/usfirst/frc/team3501/robot/commands/LowerDrawBridge.java create mode 100755 src/org/usfirst/frc/team3501/robot/commands/PassDrawBridge.java diff --git a/src/org/usfirst/frc/team3501/robot/commands/DefaultAutonStrategy.java b/src/org/usfirst/frc/team3501/robot/commands/DefaultAutonStrategy.java index 594e42fa..ce2b7fb7 100755 --- a/src/org/usfirst/frc/team3501/robot/commands/DefaultAutonStrategy.java +++ b/src/org/usfirst/frc/team3501/robot/commands/DefaultAutonStrategy.java @@ -46,7 +46,7 @@ public class DefaultAutonStrategy extends CommandGroup { case DRAWBRIDGE: - addSequential(new LowerDrawBridge()); + addSequential(new PassDrawBridge()); case MOAT: diff --git a/src/org/usfirst/frc/team3501/robot/commands/LowerDrawBridge.java b/src/org/usfirst/frc/team3501/robot/commands/LowerDrawBridge.java deleted file mode 100755 index af0670cf..00000000 --- a/src/org/usfirst/frc/team3501/robot/commands/LowerDrawBridge.java +++ /dev/null @@ -1,30 +0,0 @@ -package org.usfirst.frc.team3501.robot.commands; - -import edu.wpi.first.wpilibj.command.Command; - -public class LowerDrawBridge extends Command { - - public LowerDrawBridge() { - } - - @Override - protected void initialize() { - } - - @Override - protected void execute() { - } - - @Override - protected boolean isFinished() { - return false; - } - - @Override - protected void end() { - } - - @Override - protected void interrupted() { - } -} diff --git a/src/org/usfirst/frc/team3501/robot/commands/PassDrawBridge.java b/src/org/usfirst/frc/team3501/robot/commands/PassDrawBridge.java new file mode 100755 index 00000000..4b18f4a3 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/PassDrawBridge.java @@ -0,0 +1,41 @@ +package org.usfirst.frc.team3501.robot.commands; + +import edu.wpi.first.wpilibj.command.Command; + +/*** + * This command will lower the draw bridge and go through it + * + * pre-condition: robot is flush against the ramp of the outerworks in front of + * the portcullis + * + * post-condition: the robot has passed the draw bridge and is in the next zone + * + * @author Meryem and Avi + * + */ +public class PassDrawBridge extends Command { + + public PassDrawBridge() { + } + + @Override + protected void initialize() { + } + + @Override + protected void execute() { + } + + @Override + protected boolean isFinished() { + return false; + } + + @Override + protected void end() { + } + + @Override + protected void interrupted() { + } +} -- 2.30.2