adjust pi

This commit is contained in:
Vincent van der Wal
2026-01-19 07:52:35 +01:00
parent 5c7cd26fcb
commit 2f3780dad3
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -39,8 +39,8 @@ float pwmSwitchDelayOff = 4000; // 4s
float power = 0; float power = 0;
float kp = 0.540721828; float kp = 0.6;
float ki = 0.004960751; float ki = 0.1;
float kd = 0.0; float kd = 0.0;
String mode = "manual"; String mode = "manual";
+1 -1
View File
@@ -60,7 +60,7 @@ double PIDController::compute(double current_temp)
// first_run = false; // first_run = false;
// Output // Output
double output = p_term + integral; // d_term; double output = p_term + integral; // + d_term;
output = clamp(output, min_output, max_output); output = clamp(output, min_output, max_output);
prev_error = error; prev_error = error;