Tune PID
This commit is contained in:
parent
0b8e4d3a5c
commit
d846c930d4
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ DallasTemperature sensors(&oneWire); // declare sensors
|
||||||
double pidset, watertemp, output;
|
double pidset, watertemp, output;
|
||||||
|
|
||||||
// PID adjustment
|
// PID adjustment
|
||||||
double Kp=2, Ki=5, Kd=1;
|
double Kp=500, Ki=10, Kd=0;
|
||||||
PID myPID(&watertemp, &output, &pidset, Kp, Ki, Kd, DIRECT);
|
PID myPID(&watertemp, &output, &pidset, Kp, Ki, Kd, DIRECT);
|
||||||
int WindowSize = 5000;
|
int WindowSize = 5000;
|
||||||
unsigned long windowStartTime;
|
unsigned long windowStartTime;
|
||||||
|
|
Loading…
Reference in a new issue