make Deploy Intake Arm command
authorMeryem Esa <meresa14@gmail.com>
Sat, 30 Jan 2016 19:09:02 +0000 (11:09 -0800)
committerKevin Zhang <icestormf1@gmail.com>
Sun, 31 Jan 2016 00:04:37 +0000 (16:04 -0800)
src/org/usfirst/frc/team3501/robot/commands/DeployIntakeArm.java [new file with mode: 0755]

diff --git a/src/org/usfirst/frc/team3501/robot/commands/DeployIntakeArm.java b/src/org/usfirst/frc/team3501/robot/commands/DeployIntakeArm.java
new file mode 100755 (executable)
index 0000000..d54fcb2
--- /dev/null
@@ -0,0 +1,42 @@
+package org.usfirst.frc.team3501.robot.commands;
+
+import edu.wpi.first.wpilibj.command.Command;
+
+/**
+ * This command should run at the beginning of autonomous and never again
+ * because the arm will rachet into place
+ */
+public class DeployIntakeArm extends Command {
+
+  public DeployIntakeArm() {
+    // Use requires() here to declare subsystem dependencies
+    // eg. requires(chassis);
+  }
+
+  // Called just before this Command runs the first time
+  @Override
+  protected void initialize() {
+  }
+
+  // Called repeatedly when this Command is scheduled to run
+  @Override
+  protected void execute() {
+  }
+
+  // Make this return true when this Command no longer needs to run execute()
+  @Override
+  protected boolean isFinished() {
+    return false;
+  }
+
+  // Called once after isFinished returns true
+  @Override
+  protected void end() {
+  }
+
+  // Called when another command which requires one or more of the same
+  // subsystems is scheduled to run
+  @Override
+  protected void interrupted() {
+  }
+}