pi测试,19.2,0.02

pid
Zeng wei (曾威) 2 years ago
parent 2cd372ef83
commit 9f3ff5d12f

@ -105,8 +105,8 @@ int calc_p(float t_t, float t_c, float error, int p_b, float pid_p, float pid_i)
void PID_Calc() // pid calc void PID_Calc() // pid calc
{ {
pid.set_tem = 37; pid.set_tem = 37;
pid.Kp = 9.6; pid.Kp = 19.2;
pid.Ki = 0.01; pid.Ki = 0.02;
int p_base = 52; int p_base = 52;
float DelEk; // The difference between the last two deviations float DelEk; // The difference between the last two deviations
// float td; // float td;

Loading…
Cancel
Save