private int handleBraking() { if (drivetrain.getSpeed() < bestKrill.getHighSpeed()) { return(1); } else if (drivetrain.getSpeed() >= bestKrill.getLowSpeed() && drivetrain.getSpeed() <= bestKrill.getHighSpeed()) { return(0); } return(-1); }
private int handleBraking() { if (drivetrain.getSpeed() < bestKrill.getHighSpeed()) { return(1); } else if (drivetrain.getSpeed() >= bestKrill.getLowSpeed() && drivetrain.getSpeed() <= bestKrill.getHighSpeed()) { return(0); } return(-1); }