@@ -0,0 +1,660 @@
+/*%0A * Waits for a certain distance to be driven.%0A */%0Apackage com.team254.frc2013.commands;%0A%0A/**%0A *%0A * @author Tom Bottiglieri (tom@team254.com)%0A */%0Apublic class WaitForDistanceCommand extends CommandBase %7B%0A  private double distance;%0A  public WaitForDistanceCommand(double distance, double timeout) %7B%0A    this.distance = distance;%0A    setTimeout(timeout);%0A  %7D%0A  protected void initialize() %7B%0A    %0A  %7D%0A%0A  protected void execute() %7B%0A  %7D%0A%0A  protected boolean isFinished() %7B%0A    return ((drive.getLeftEncoderDistance() + drive.getRightEncoderDistance()) / 2) %3E distance  %7C%7C isTimedOut();%0A  %7D%0A%0A  protected void end() %7B%0A  %7D%0A%0A  protected void interrupted() %7B%0A  %7D%0A  %0A%7D%0A

Add WaitForDistanceCommand