package org.robockets.stronghold.robot.intake;

import org.robockets.stronghold.robot.Robot;

import edu.wpi.first.wpilibj.command.Command;

/**
 * A Command to spin the intake motor forward or backward
 * 
 * @author Jake Backer
 * @version v.1.sleepy.0.0.phantom.1454028607.7
 * 
 */
public class ManualSpinIntake extends Command {
	
	/**
	 * Object for the Direction enum
	 * */
	public Direction direction;
	
	/**
	 * Used to set timeout
	 * */
	int time;
	
	
	/**
	 * Initalizes some variables
	 * 
	 * @param direction  Used to initalize Direction enum
	 * @param time  Takes input for time
	 * */
    public ManualSpinIntake(Direction direction, int time) {
        // Use requires() here to declare subsystem dependencies
        // eg. requires(chassis);
    	requires(Robot.intake);
    	this.direction = direction;
    	this.time = time;
    }

    // Called just before this Command runs the first time
    protected void initialize() {
    	setTimeout(time);
    }

    // Called repeatedly when this Command is scheduled to run
    protected void execute() {
    	if(direction == Direction.FORWARD) {
    		Robot.intake.spinIn();
    	} else if(direction == Direction.BACKWARD){
    		Robot.intake.spinOut();
    	} else {
    		Robot.intake.stop();
    	}
    }

    // Make this return true when this Command no longer needs to run execute()
    protected boolean isFinished() {
        return false;
    }

    // Called once after isFinished returns true
    protected void end() {
    	Robot.intake.stop();
    }

    // Called when another command which requires one or more of the same
    // subsystems is scheduled to run
    protected void interrupted() {
    }
}

@@ -200,87 +200,8 @@
 ard%0A
- * %0A * @author Jake Backer%0A * @version v.1.sleepy.0.0.phantom.1454028607.7%0A * %0A
  */%0A
@@ -1166,32 +1166,38 @@
 obot.intake.stop
+Intake
 ();%0A    %09%7D%0A    %7D
@@ -1442,16 +1442,22 @@
 ake.stop
+Intake
 ();%0A    

Remove unnecessary javadocs