change name of LowerChevalDeFrise to PassChevalDeFrise and add pre and post condition...
authorMeryem Esa <meresa14@gmail.com>
Sat, 30 Jan 2016 23:21:17 +0000 (15:21 -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/LowerChevalDeFrise.java [deleted file]
src/org/usfirst/frc/team3501/robot/commands/PassChevalDeFrise.java [new file with mode: 0755]

index 97070637f1bc5901fa8e2510a858b17354d72ac7..594e42faac2a93a80759ce23c8a35ca61aacfde9 100755 (executable)
@@ -42,7 +42,7 @@ public class DefaultAutonStrategy extends CommandGroup {
 
     case CHEVAL_DE_FRISE:
 
-      addSequential(new LowerChevalDeFrise());
+      addSequential(new PassChevalDeFrise());
 
     case DRAWBRIDGE:
 
diff --git a/src/org/usfirst/frc/team3501/robot/commands/LowerChevalDeFrise.java b/src/org/usfirst/frc/team3501/robot/commands/LowerChevalDeFrise.java
deleted file mode 100755 (executable)
index 790700b..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-package org.usfirst.frc.team3501.robot.commands;
-
-import edu.wpi.first.wpilibj.command.Command;
-
-public class LowerChevalDeFrise extends Command {
-
-       public LowerChevalDeFrise() {
-       }
-
-       @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/PassChevalDeFrise.java b/src/org/usfirst/frc/team3501/robot/commands/PassChevalDeFrise.java
new file mode 100755 (executable)
index 0000000..2f80dc2
--- /dev/null
@@ -0,0 +1,43 @@
+package org.usfirst.frc.team3501.robot.commands;
+
+import edu.wpi.first.wpilibj.command.Command;
+
+/***
+ * This command will move the intake arm downwards using a motor to lower the
+ * cheval de frise and drive over it.
+ *
+ * pre-condition: robot is flush against the ramp of the outerworks in front of
+ * the cheval de frise
+ *
+ * post-condition: the robot has passed the cheval de frise and is in the next
+ * zone
+ *
+ * @author Meryem and Avi
+ *
+ */
+public class PassChevalDeFrise extends Command {
+
+  public PassChevalDeFrise() {
+  }
+
+  @Override
+  protected void initialize() {
+  }
+
+  @Override
+  protected void execute() {
+  }
+
+  @Override
+  protected boolean isFinished() {
+    return false;
+  }
+
+  @Override
+  protected void end() {
+  }
+
+  @Override
+  protected void interrupted() {
+  }
+}