matlab中truetime toolbox

源代码在线查看: pidcalc.m

软件大小: 2318 K
上传用户: liyusheng1983
关键词: truetime toolbox matlab
下载地址: 免注册下载 普通下载 VIP

相关代码

				function data = pidcalc(data, r, y)								P = data.K*(data.beta*r-y);				I = data.Iold;				D = data.Td/(data.N*data.h+data.Td)*data.Dold+data.N*data.K*data.Td/(data.N*data.h+data.Td)*(data.yold-y); 								data.u = P + I + D;				data.Iold = data.Iold + data.K*data.h/data.Ti*(r-y);				data.Dold = D;				data.yold = y;							

相关资源