*/
public class DriveDistance extends Command {
private DriveTrain driveTrain = Robot.getDriveTrain();
- private double maxTimeOut;
+ private double maxTimeOut = 10;
private double target;
private double zeroAngle;
private Preferences prefs;
public DriveDistance(double distance, double maxTimeOut) {
requires(driveTrain);
- this.maxTimeOut = maxTimeOut;
this.target = distance;
this.driveController = driveTrain.getDriveController();
this.driveController.setDoneRange(0.5);
- this.driveController.setMaxOutput(1.0);
+ this.driveController.setMaxOutput(motorVal);
this.driveController.setMinDoneCycles(5);
}