From 6a7118635f4c6fcf1a318123123f49ae6bc771cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Ha=C3=9Fel?= Date: Thu, 11 Apr 2024 21:28:00 +0200 Subject: [PATCH] first throw of PID parameters 2 (IMPORTANT) --- src/Fermenter.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Fermenter.cpp b/src/Fermenter.cpp index ea480fd..e0d441e 100644 --- a/src/Fermenter.cpp +++ b/src/Fermenter.cpp @@ -24,9 +24,9 @@ double temperatureMaxOvershoot = 5; double heaterPWM = 0; -double proportional = 10; +double proportional = 1; -double integral = 2; +double integral = 0; double derivative = 0; @@ -119,6 +119,8 @@ bool patrix_command(char *first) { void configLoad() { proportional = configGetDouble("p", 1); integral = configGetDouble("i", 0); + proportional = configGetDouble("p", 5); + integral = configGetDouble("i", 2); derivative = configGetDouble("d", 0); temperatureTarget = configGetDouble("target", 31); temperatureMaxOvershoot = configGetDouble("over", 5);