From 7cd839ffe09c39a8fda9aad15277ff5000b12c4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zeng=20wei=20=28=E6=9B=BE=E5=A8=81=29?= Date: Mon, 15 Apr 2024 10:29:56 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC=E4=B8=80=E6=AC=A1cp=E8=B0=83=E8=8A=82?= =?UTF-8?q?=E7=BB=93=E6=9D=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HARDWARE/PID.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HARDWARE/PID.c b/HARDWARE/PID.c index cc11033..b621730 100644 --- a/HARDWARE/PID.c +++ b/HARDWARE/PID.c @@ -261,7 +261,7 @@ void PID_Calc() // pid calc } else { // if outer temp is got, we calc pid by outer temp if (abs(pid.out_tem) > 1e-5) { - pid.cp = (pid.out_tem - pid.set_tem) / 4.3 + 0.7; + pid.cp = (pid.out_tem - pid.set_tem) * 0.26 + 0.3; } // use nagetive error and error diff when calc compressor power int p_c = calc_cp(delta_t, - Error_calc, - DelEk, pid.c_base, pid.cp, pid.ci, pid.cd);