mirror of
https://github.com/vincentvdwal/crust-craft.git
synced 2026-08-18 17:26:39 +02:00
adjust pi
This commit is contained in:
+2
-2
@@ -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
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user