From e062fd0698aa9583dd007f3a3759dd2adc9d2010 Mon Sep 17 00:00:00 2001 From: Meryem Esa Date: Tue, 15 Mar 2016 15:11:27 -0700 Subject: [PATCH] add pre/post conditions and pseudo code --- .../commands/shooter/ShootAtHighGoal.java | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 src/org/usfirst/frc/team3501/robot/commands/shooter/ShootAtHighGoal.java 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 index 00000000..5ecc8091 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/shooter/ShootAtHighGoal.java @@ -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 + + } +} -- 2.30.2