package org.robockets.stronghold.robot.commands;

import org.robockets.stronghold.robot.Robot;

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

/**
 *
 */
public class Kill extends Command {

    public Kill() {
        requires(Robot.driveTrain);
        requires(Robot.intakeFront);
        requires(Robot.intakeBack);
    }

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

    // Called repeatedly when this Command is scheduled to run
    protected void execute() {
    	Robot.driveTrain.stop();
    	Robot.intakeFront.stopIntake();
    	Robot.intakeFront.stopVertical();
    	Robot.intakeBack.stopIntake();
    	Robot.intakeBack.stopVertical();
    }

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

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

@@ -313,22 +313,55 @@
 eBack);%0A
+        requires(Robot.shooter);%0A
     %7D%0A
-
 %0A    // 
@@ -573,24 +573,30 @@
 ain.stop();%0A
+    %09%0A
     %09Robot.i
@@ -687,32 +687,32 @@
 k.stopIntake();%0A
-
     %09Robot.intak
@@ -729,24 +729,395 @@
 Vertical();%0A
+    %09Robot.intakeBack.setIntakeAngle(Robot.intakeBack.getIntakeAngle());%0A    %09Robot.intakeFront.setIntakeAngle(Robot.intakeFront.getIntakeAngle());%0A    %09%0A    %09Robot.shooter.setHoodAngle(Robot.shooter.getHoodAngle());%0A    %09Robot.shooter.setShootingWheelSpeed(Robot.shooter.getShootingWheelSpeed());%0A    %09Robot.shooter.setTurnTableAngle(Robot.shooter.getTurnTableAngle());%0A
     %7D%0A%0A    /

Update the setpoints after killing each subsystem