diff --git a/src/main.cpp b/src/main.cpp index be30b2a..aafb97c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -39,8 +39,8 @@ float pwmSwitchDelayOff = 4000; // 4s float power = 0; -float kp = 0.540721828; -float ki = 0.004960751; +float kp = 0.6; +float ki = 0.1; float kd = 0.0; String mode = "manual"; diff --git a/src/pid.cpp b/src/pid.cpp index 3410b1d..817f2d6 100644 --- a/src/pid.cpp +++ b/src/pid.cpp @@ -60,7 +60,7 @@ double PIDController::compute(double current_temp) // first_run = false; // Output - double output = p_term + integral; // d_term; + double output = p_term + integral; // + d_term; output = clamp(output, min_output, max_output); prev_error = error;