Recode everything for new robot
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / intakearm / StopIntake.java
diff --git a/src/org/usfirst/frc/team3501/robot/commands/intakearm/StopIntake.java b/src/org/usfirst/frc/team3501/robot/commands/intakearm/StopIntake.java
new file mode 100644 (file)
index 0000000..aef6ab8
--- /dev/null
@@ -0,0 +1,49 @@
+package org.usfirst.frc.team3501.robot.commands.intakearm;
+
+import org.usfirst.frc.team3501.robot.Robot;
+
+import edu.wpi.first.wpilibj.command.Command;
+
+/***
+ * This command will take a boulder into the robot if there is not a boulder
+ * present inside already.
+ * 
+ * pre-condition: Intake arm must be at correct height and a boulder is not
+ * present inside the robot.
+ * 
+ * post-condition: A boulder is taken in from the field outside of the robot
+ * into the robot.
+ * 
+ * @author Lauren and Niyati
+ * 
+ */
+
+public class StopIntake extends Command {
+
+  public StopIntake() {
+    requires(Robot.intakeArm);
+  }
+
+  @Override
+  protected void initialize() {
+    Robot.intakeArm.stopRollers();
+  }
+
+  @Override
+  protected void execute() {
+  }
+
+  @Override
+  protected boolean isFinished() {
+    return true;
+  }
+
+  @Override
+  protected void end() {
+  }
+
+  @Override
+  protected void interrupted() {
+  }
+
+}