// RobotBuilder Version: 1.0
//
// 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.frc692.AerialAssist2014.commands;
import edu.wpi.first.wpilibj.command.Command;
import org.usfirst.frc692.AerialAssist2014.Robot;
/**
 *
 */
public class  AutonMoveForward extends Command {
    public AutonMoveForward() {
        // Use requires() here to declare subsystem dependencies
        // eg. requires(chassis);
	
        // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=REQUIRES
        requires(Robot.driveTrain);
    // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=REQUIRES
    }
    
    // Called just before this Command runs the first time
    protected void initialize() {
    }
    
    // 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 false;
    }
    
    // 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() {
    }
    /*
     * this command will make the robot move about 216 inches(? maybe) forward
     * from the starting white line to the blue or red alliance zone
     * AC 1/20/14
     */
}

@@ -1128,364 +1128,1229 @@
     
-%7D%0D%0A    %0D%0A    // Called repeatedly when this Command is scheduled to run%0D%0A    protected void execute() %7B%0D%0A    %7D%0D%0A    %0D%0A    // Make this return true when this Command no longer needs to run execute()%0D%0A    protected boolean isFinished() %7B%0D%0A        return false;%0D%0A    %7D%0D%0A    %0D%0A    // Called once after isFinished returns true%0D%0A    protected void end() %7B%0D%0A    %7D
+   Robot.driveTrain.encoderStartCounting();%0D%0A       Robot.driveTrain.motorsForward();%0D%0A    %7D%0D%0A    /*%0D%0A     * the system begins to intialize, the robot drive train encoder starts counting%0D%0A     * and the drive train motors move foreword%0D%0A     * AO 1/23/14%0D%0A     */%0D%0A    %0D%0A    // Called repeatedly when this Command is scheduled to run%0D%0A    protected void execute() %7B%0D%0A    %7D%0D%0A    %0D%0A    // Make this return true when this Command no longer needs to run execute()%0D%0A    protected boolean isFinished() %7B%0D%0A        if (Robot.driveTrain.bothLeftAndRightDistance() == 6.0)%0D%0A        %7B%0D%0A            return true;%0D%0A        %7D%0D%0A        /*%0D%0A         * if the robotdrive train' lefta and right distance equal 6.0 then the%0D%0A         * statement is true%0D%0A         * AO 1/23/14%0D%0A         */%0D%0A        else%0D%0A        %7B%0D%0A            return false;%0D%0A        %7D%0D%0A        /*%0D%0A         * if else then the statement is false%0D%0A         * AO 1/23/14%0D%0A         */%0D%0A    %7D%0D%0A    %0D%0A    // Called once after isFinished returns true%0D%0A    protected void end() %7B%0D%0A        Robot.driveTrain.encoderStopCounting();%0D%0A        Robot.driveTrain.stop();%0D%0A    %7D%0D%0A    /*%0D%0A     * the robot drive train stops counting down and the drive train stops%0D%0A     * AO 1/23/14%0D%0A     */
 %0D%0A  

Move command forward for auton