mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-12 11:14:28 +05:00
fix: PID interval correction #23
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
#include <PIDtuner.h>
|
#include <PIDtuner.h>
|
||||||
|
|
||||||
Equitherm etRegulator;
|
Equitherm etRegulator;
|
||||||
GyverPID pidRegulator(0, 0, 0);
|
GyverPID<int, unsigned long> pidRegulator(0, 0, 0);
|
||||||
PIDtuner pidTuner;
|
PIDtuner pidTuner;
|
||||||
|
|
||||||
|
|
||||||
@@ -308,10 +308,11 @@ protected:
|
|||||||
pidRegulator.Kd = settings.pid.d_factor;
|
pidRegulator.Kd = settings.pid.d_factor;
|
||||||
|
|
||||||
pidRegulator.setLimits(minTemp, maxTemp);
|
pidRegulator.setLimits(minTemp, maxTemp);
|
||||||
|
pidRegulator.setDt(180000);
|
||||||
pidRegulator.input = vars.temperatures.indoor;
|
pidRegulator.input = vars.temperatures.indoor;
|
||||||
pidRegulator.setpoint = settings.heating.target;
|
pidRegulator.setpoint = settings.heating.target;
|
||||||
|
|
||||||
return pidRegulator.getResultNow();
|
return pidRegulator.getResultTimer();
|
||||||
}
|
}
|
||||||
|
|
||||||
float tuneEquithermN(float ratio, float currentTemp, float setTemp, unsigned int dirtyInterval = 60, unsigned int accurateInterval = 1800, float accurateStep = 0.01, float accurateStepAfter = 1) {
|
float tuneEquithermN(float ratio, float currentTemp, float setTemp, unsigned int dirtyInterval = 60, unsigned int accurateInterval = 1800, float accurateStep = 0.01, float accurateStepAfter = 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user