add pre/post conditions and pseudo code
authorMeryem Esa <meresa14@gmail.com>
Tue, 15 Mar 2016 22:11:27 +0000 (15:11 -0700)
committerHarel Dor <hareldor@gmail.com>
Tue, 22 Mar 2016 23:02:00 +0000 (16:02 -0700)
src/org/usfirst/frc/team3501/robot/commands/shooter/ShootAtHighGoal.java [new file with mode: 0755]

diff --git a/src/org/usfirst/frc/team3501/robot/commands/shooter/ShootAtHighGoal.java b/src/org/usfirst/frc/team3501/robot/commands/shooter/ShootAtHighGoal.java
new file mode 100755 (executable)
index 0000000..5ecc809
--- /dev/null
@@ -0,0 +1,29 @@
+package org.usfirst.frc.team3501.robot.commands.shooter;
+
+import edu.wpi.first.wpilibj.command.CommandGroup;
+
+/**
+ * This command group performs the sequence of steps to shoot at the high goal
+ *
+ * pre-conditions: the catapult is down, a ball is in the intake, and the intake
+ * is in the up position
+ *
+ * post-conditions: catapult is retracted, intake is extended
+ */
+public class ShootAtHighGoal extends CommandGroup {
+
+  public ShootAtHighGoal() {
+    // check that the catapult is down and change accordingly
+
+    // (if photogate) check if ball is in intake
+
+    // make sure intake is in up position and change accordingly
+
+    // shoot catapult pistons
+
+    // extend intake (ball actually shoots here)
+
+    // retract catapult pistons
+
+  }
+}