change name of LowerDrawBridge to PassDrawBridge and add pre and post condition comments
authorMeryem Esa <meresa14@gmail.com>
Sat, 30 Jan 2016 23:40:21 +0000 (15:40 -0800)
committerKevin Zhang <icestormf1@gmail.com>
Sun, 31 Jan 2016 00:04:37 +0000 (16:04 -0800)
src/org/usfirst/frc/team3501/robot/commands/DefaultAutonStrategy.java
src/org/usfirst/frc/team3501/robot/commands/LowerDrawBridge.java [deleted file]
src/org/usfirst/frc/team3501/robot/commands/PassDrawBridge.java [new file with mode: 0755]

index 594e42faac2a93a80759ce23c8a35ca61aacfde9..ce2b7fb72c41a7da3558ebcea815e8d313c24df9 100755 (executable)
@@ -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 (executable)
index af0670c..0000000
+++ /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 (executable)
index 0000000..4b18f4a
--- /dev/null
@@ -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() {
+  }
+}