From: Meryem Esa Date: Tue, 15 Mar 2016 22:11:27 +0000 (-0700) Subject: add pre/post conditions and pseudo code X-Git-Url: http://challenge-bot.com/repos/?p=3501%2Fstronghold-2016;a=commitdiff_plain;h=e062fd0698aa9583dd007f3a3759dd2adc9d2010 add pre/post conditions and pseudo code --- 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 + + } +}