package org.robockets.stronghold.robot.intake;

import org.robockets.stronghold.robot.Robot;

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

/**
 *
 */
public class ManualSpinIntake extends Command {
	
	boolean spinForward = true; //TEMP
	public Direction direction;
	int 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() {
    }

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

@@ -144,140 +144,464 @@
 *%0A *
-%0A */%0Apublic class ManualSpinIntake extends Command %7B%0A%09%0A%09boolean spinForward = true; //TEMP%0A%09public Direction direction;%0A%09int time;%0A%09
+ A Command to spin the intake motor forward or backward%0A * %0A * @author Jake Backer%0A * @version v.1.sleepy.0.0.phantom.1454028607.7%0A * %0A */%0Apublic class ManualSpinIntake extends Command %7B%0A%09%0A%09/**%0A%09 * Object for the Direction enum%0A%09 * */%0A%09public Direction direction;%0A%09%0A%09/**%0A%09 * Used to set timeout%0A%09 * */%0A%09int time;%0A%09%0A%09%0A%09/**%0A%09 * Initalizes some variables%0A%09 * %0A%09 * @param direction  Used to initalize Direction enum%0A%09 * @param time  Takes input for time%0A%09 * */
 %0A   
@@ -1489,24 +1489,50 @@
 oid end() %7B%0A
+    %09Robot.intake.stop();%0A
     %7D%0A%0A    /

Add javadocs, stop motors when command ends