package storm2013.commands;

import edu.wpi.first.wpilibj.Timer;
import edu.wpi.first.wpilibj.command.Command;
import storm2013.Robot;

/**
 * Spins up the firing wheel.
 * @author evan1026
 */
public class SpinUp extends Command {
    private Timer _onTargetTimer = new Timer();

    /**
     * Creates a new instance blahdy blahdy blah.
     */
    public SpinUp(){
        requires(Robot.shooter);
    }
    
    /**
     * {@inheritDoc}
     */
    protected void initialize() {
        Robot.shooter.getPIDController().setSetpoint(3400);
        Robot.shooter.getPIDController().enable();
        _onTargetTimer.start();
        _onTargetTimer.reset();
    }

    /**
     * {@inheritDoc}
     */
    protected void execute() {
    }

    /**
     * {@inheritDoc}
     */
    protected boolean isFinished() {
        return Robot.shooter.getPIDController().onTarget();
    }

    /**
     * {@inheritDoc}
     */
    protected void end() {
    }

    /**
     * {@inheritDoc}
     */
    protected void interrupted() {
        end();
    }
}

@@ -722,30 +722,116 @@
 execute() %7B%0A
+        if(!Robot.shooter.onTarget()) %7B%0A            _onTargetTimer.reset();%0A        %7D%0A
     %7D%0A
-
 %0A    /**%0A   
@@ -912,51 +912,34 @@
 urn 
-Robot.shooter.getPIDController().onTarget()
+_onTargetTimer.get() %3E 0.3
 ;%0A  

Add timer for spin up finish