在高温模式,当温度接近目标温度时,将pid.hp_h设置为0.6倍

check
Zeng wei (曾威) 2 years ago
parent 2e1fab80a6
commit 56f7acb7bd

@ -166,6 +166,11 @@ void PID_Calc() // pid calc
float hd = pid.hd_h;
int h_base = pid.h_base_h;
// if now temp is close to set temp, the heater will be less power
if (pid.set_tem - pid.now_tem < 3) {
hp = pid.hp_h * 0.6;
}
// l mode
if (pid.set_tem <= pid.max_compressor_tem) {
hp = pid.hp_l;

Loading…
Cancel
Save