package storm2013.commands;

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

/**
 * Spins up the firing wheel.
 * @author evan1026
 */
public class SpinUp extends Command {

    /**
     * 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();
    }

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

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

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

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

@@ -22,16 +22,52 @@
 mands;%0A%0A
+import edu.wpi.first.wpilibj.Timer;%0A
 import e
@@ -224,16 +224,64 @@
 ommand %7B
+%0A    private Timer _onTargetTimer = new Timer();
 %0A%0A    /*
@@ -583,24 +583,88 @@
 ).enable();%0A
+        _onTargetTimer.start();%0A        _onTargetTimer.reset();%0A
     %7D%0A%0A    /

Make SpinUp wait until it's actually been spun up for a bit