PID控制C源程序,可以参考一下struct _pid { int pv; /*integer that contains the process value*/ int sp; /*integer that contains the set point*/ float integral; float pgain; float igain; float dgain; int deadband; int last_error; }; struct _pid warm, *pid; int process_point, set_point, dead_band; fl ..
[查看全文]