private boolean onTarget() { if (leftPID.getError() < 5.0 / 12 && rightPID.getError() < 5.0 / 12) { doneCount++; return true; } else { doneCount = 0; return false; } }
public static double getError() { return controller.getError(); }