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; + // }