PID算法程序源文件struct_pid{intpv;//integerthatcontainstheprocessvalue过程量intsp;//*integerthatcontainsthesetpoint设定值floatintegral;//积分值--偏差累计值floatpgain;floatigain;floatdgain;intdeadband;//死区intlast_error;};