// RobotBuilder Version: 1.5
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the blocks indicating autogenerated code or it will be lost on an
// update. Deleting the comments indicating the section will prevent
// it from being updated in the future.


package org.usfirst.frc1073.robot15.commands;

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

import org.usfirst.frc1073.robot15.Robot;
import org.usfirst.frc1073.robot15.subsystems.Elevator;

/**
 *
 */
public class  CollectorPrep extends Command {

    public CollectorPrep() {
        // Use requires() here to declare subsystem dependencies
        // eg. requires(chassis);

        // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=REQUIRES

    // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=REQUIRES
    }

    // Called just before this Command runs the first time
    protected void initialize() {
    	Robot.collectorWrists.open();
    	Robot.elevator.move(Elevator.elevState.FLOOR_0);
    	Robot.elevator.stackHold();
    }

    // Called repeatedly when this Command is scheduled to run
    protected void execute() {
    }

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

@@ -1167,63 +1167,8 @@
 );%0D%0A
-    %09Robot.elevator.move(Elevator.elevState.FLOOR_0);%0D%0A
     
@@ -1193,24 +1193,24 @@
 ackHold();%0D%0A
+
     %7D%0D%0A%0D%0A   
@@ -1298,24 +1298,79 @@
 xecute() %7B%0D%0A
+    %09Robot.elevator.move(Elevator.elevState.FLOOR_0);%0D%0A
     %7D%0D%0A%0D%0A   
@@ -1500,20 +1500,38 @@
  return 
-true
+Robot.elevator.getElev
 ;%0D%0A    %7D

move from initialize to execute