RT-Thread-packages / rt-robot

a platform in creating new exciting robots
Apache License 2.0
112 stars 62 forks source link

pid算法输出问题 #20

Closed adeansHFUT closed 2 years ago

adeansHFUT commented 5 years ago

` pid->p_error = pid->kp pid->error; pid->i_error = pid->ki pid->integral; pid->d_error = pid->kd (pid->error - 2 pid->error_l + pid->error_ll);

pid->out = pid->p_error + pid->i_error + pid->d_error; ` 这段代码是增量式pid还是位置式pid,p_error 和i_error是位置式的表示,d_error又是增量式的表示了

sogwms commented 5 years ago

控制算法正在更新中