package edu.stuy.commands;

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

/**
 *
 */
public class AutonDriveForwardInches extends Command {

    private double inches;
    private double time;
    
    public AutonDriveForwardInches(double dist) {
        // Use requires() here to declare subsystem dependencies
        // eg. requires(chassis);
        inches = dist;
        requires(Robot.drivetrain);
    }

    // Called just before this Command runs the first time
    protected void initialize() {
        Robot.drivetrain.resetEncoders();
    }

    // Called repeatedly when this Command is scheduled to run
    protected void execute() {
        Robot.drivetrain.tankDrive(1.0, 1.0);
    }

    // Make this return true when this Command no longer needs to run execute()
    protected boolean isFinished() {
        return Robot.drivetrain.getDistance() >= inches;
    }

    // Called once after isFinished returns true
    protected void end() {
        Robot.drivetrain.stopDriveStraight();
    }

    // Called when another command which requires one or more of the same
    // subsystems is scheduled to run
    protected void interrupted() {
    }
    
    protected void getSpeed(double time) {
        
    }
}

@@ -189,33 +189,8 @@
 es;%0A
-    private double time;%0A
     
@@ -1166,64 +1166,6 @@
    %0A
-    protected void getSpeed(double time) %7B%0A        %0A    %7D%0A
 %7D%0A

Remove accidentally added code.