From: Meryem Esa Date: Sat, 30 Jan 2016 19:09:02 +0000 (-0800) Subject: make Deploy Intake Arm command X-Git-Url: http://challenge-bot.com/repos/?p=3501%2Fstronghold-2016;a=commitdiff_plain;h=05e6dab3c3463ba7fa4dcd8fc18e052dcbd59e95 make Deploy Intake Arm command --- 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 index 00000000..d54fcb22 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/DeployIntakeArm.java @@ -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() { + } +}