@@ -0,0 +1,1161 @@
+/*%0A * To change this template, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0Apackage edu.stuy.commands;%0A%0A/**%0A *%0A * @author Kevin Wang%0A */%0Apublic class ConveyAutomatic extends CommandBase %7B%0A    %0A    public ConveyAutomatic() %7B%0A        // Use requires() here to declare subsystem dependencies%0A        // eg. requires(chassis);%0A        requires(conveyor);%0A        requires(shooter);%0A    %7D%0A%0A    // Called just before this Command runs the first time%0A    protected void initialize() %7B%0A    %7D%0A%0A    // Called repeatedly when this Command is scheduled to run%0A    protected void execute() %7B%0A        if (shooter.isSpeedGood() %7C%7C conveyor.getUpperSensor()) %7B%0A            conveyor.roll(1, 1);%0A        %7D%0A        else %7B%0A            conveyor.roll(0, 0);%0A        %7D%0A    %7D%0A%0A    // Make this return true when this Command no longer needs to run execute()%0A    protected boolean isFinished() %7B%0A        return false;%0A    %7D%0A%0A    // Called once after isFinished returns true%0A    protected void end() %7B%0A    %7D%0A%0A    // Called when another command which requires one or more of the same%0A    // subsystems is scheduled to run%0A    protected void interrupted() %7B%0A    %7D%0A%7D%0A

Add ConveyorAutomatic command.