package org.robockets.stronghold.robot.highgoalshooter;

import org.robockets.stronghold.robot.Robot;

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

/**
 * Set the robot into being a position that is able to go beneath the low bar and interact with other bits of the robot.
 */
public class Limbo extends Command {

    public Limbo() {
    	requires(Robot.shooter);
    	requires(Robot.intakeFront);
    }

    protected void initialize() {
    	setTimeout(5);
    	Robot.shooter.setHoodAngle(-90);
    	Robot.intakeFront.setIntakeAngle(0);
    }

    protected void execute() {
    	Robot.shooter.spinHoodAssisted(); //???
    	Robot.intakeFront.moveAssisted(); //???
    }

    protected boolean isFinished() {
        return Robot.shooter.hoodPidController.onTarget() 
        		&& Robot.intakeFront.encoderPID.onTarget()
        		|| isTimedOut();
    }

    protected void end() {
    }

    protected void interrupted() {
    }
}

@@ -578,98 +578,8 @@
 ) %7B%0A
-    %09Robot.shooter.spinHoodAssisted(); //???%0A    %09Robot.intakeFront.moveAssisted(); //???%0A
     

Fix Limbo class