//主程序======================================================#include "Main.h"#include "PID_f1.h"/* ............................................................... *//* ..............................
void PID(void){ //調(diào)差量 VW88 , 電壓反饋量VW50,pid運(yùn)算反饋量:VW10,pid給定:VW700int VW700,VW50; //0-32768~+32768int VW500,VW502,VW504,VW506;long VW530,VW538;int VW526,VW522,VW524;uchar Kp=7; //P 取值0