write pre/post conditions comments and pseudo code
authorMeryem Esa <meresa14@gmail.com>
Tue, 16 Feb 2016 19:59:35 +0000 (11:59 -0800)
committerMeryem Esa <meresa14@gmail.com>
Tue, 16 Feb 2016 22:41:59 +0000 (14:41 -0800)
src/org/usfirst/frc/team3501/robot/commands/intakearm/PushDownChevalDeFrise.java [new file with mode: 0755]

diff --git a/src/org/usfirst/frc/team3501/robot/commands/intakearm/PushDownChevalDeFrise.java b/src/org/usfirst/frc/team3501/robot/commands/intakearm/PushDownChevalDeFrise.java
new file mode 100755 (executable)
index 0000000..bccdc7d
--- /dev/null
@@ -0,0 +1,39 @@
+package org.usfirst.frc.team3501.robot.commands.intakearm;
+
+import org.usfirst.frc.team3501.robot.Robot;
+
+import edu.wpi.first.wpilibj.command.CommandGroup;
+
+/**
+ * This command group uses the intake arm to push down the moving parts of the
+ * cheval de frise so that the robot can drive over it
+ *
+ * pre-condition: the robot is flush against the border of the outerworks (flush
+ * against the ramp)
+ *
+ * post condition: intake arm has pushed the cheval de frise down
+ *
+ */
+public class PushDownChevalDeFrise extends CommandGroup {
+
+  public PushDownChevalDeFrise() {
+    requires(Robot.intakeArm);
+    /**
+     * if the arm is high enough - above cheval de frise height (find this from
+     * the potangle)
+     *
+     * go forward until arm is over cheval de frise
+     *
+     * move arm down to floor level -- or as much as possible
+     * -------------------------------------------------------------------------
+     *
+     * if the arm is beneath the cheval de frise
+     *
+     * move the arm up so it's high enough
+     *
+     * move forward a little
+     *
+     */
+
+  }
+}