From eb19dede903c947b4bc23c61db04d9327a51e6b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zeng=20wei=20=28=E6=9B=BE=E5=A8=81=29?= Date: Wed, 24 Apr 2024 09:53:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=99=E7=BB=84=E5=8F=82=E6=95=B0=EF=BC=8C?= =?UTF-8?q?=E5=9C=A8=E4=BD=8E=E6=B8=A9=E6=A8=A1=E5=BC=8F=E4=B8=8B=EF=BC=8C?= =?UTF-8?q?=E6=AF=8F=E6=AC=A1=E5=88=87=E6=8D=A2=E4=B8=A4=E5=BA=A6=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E8=A1=A8=E7=8E=B0=E8=89=AF=E5=A5=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HARDWARE/PID.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/HARDWARE/PID.c b/HARDWARE/PID.c index abceeb4..cfaa427 100644 --- a/HARDWARE/PID.c +++ b/HARDWARE/PID.c @@ -60,10 +60,10 @@ void PID_Init() pid.hd_h = 0; pid.h_base_h = 0; - pid.hp_l = 3; + pid.hp_l = 4.5; pid.hi_l = 0.01; pid.hd_l = 0; - pid.h_base_l = 53; + pid.h_base_l = 10; pid.hp = 0; pid.hi = 0; @@ -226,10 +226,10 @@ void PID_Calc() // pid calc DelEk = pid.Ek - pid.Ek_prev; // The difference between the last two deviations - // no integral when the deviation is too large - if (pid.now_tem < pid.set_tem - 3) { - pid.SEk = 0; - } + // // no integral when the deviation is too large + // if (pid.now_tem < pid.set_tem - 5) { + // pid.SEk = 0; + // }