代码搜索结果
找到约 12,494 项符合
PID 的代码
chap7_15m.m
function [u]=pid_aw1f1(u1,u2,u3,u4)
e=u2;
un=u3;
us=u4;
M=2;
switch M
case 1 %PID
u=e;
case 2 %Anti-windup PID
umin=0;
umax=10;
ua=(umin+umax)/2;
if
chap2_8.m
%PID Controler (2001/9/6)
close all;
ts=0.25;
sys=tf(1,[10,2,0]);
dsys=c2d(sys,ts,'z');
[num,den]=tfdata(dsys,'v');
u_1=0;u_2=0;
y_1=0;y_2=0;
x=[0,0,0]';
error_1=0;
for k=1:1:1000
chap1_20.m
%PID Controler with Partial differential
clear all;
close all;
ts=20;
sys=tf([1],[60,1],'inputdelay',80);
dsys=c2d(sys,ts,'zoh');
[num,den]=tfdata(dsys,'v');
u_1=0;u_2=0;u_3=0;u_4=0;u_5=0;
/*====================================================================================================
这是从网上找来的一个比较典型的PID处理程序,在使用单片机作为控制cpu时,请稍作简化,具体的PID
参数必须由具体对象通过实验确定。由于单片机的处理速度和ram资源的限制,一般不采
motor_5_1.m
%PID arithmetic
s=tf('s');
G=0.01/(0.005*s^2+0.06*s+0.1001); %Model unchanged
t=[0:0.01:3];
Kc=100; %Standard PID
Ti=0.5;
Td=0.1;
Gc=Kc*(1+1/(Ti*s))*(Td*
motor_5_3.m
%PID arithmetic
s=tf('s');
G=0.1/(0.1*s^2+1.2*s+1); %Model changed
t=[0:0.01:30];
Kc=100; %Standard PID
Ti=0.5;
Td=0.1;
Gc=Kc*(1+1/(Ti*s))*(Td*s+1
motor_5_2.m
%PID arithmetic
s=tf('s');
G=0.1/(1.405*s^2+2.37*s+1); %Model changed
t=[0:0.01:30];
Kc=100; %Standard PID
Ti=0.5;
Td=0.1;
Gc=Kc*(1+1/(Ti
pipe_rw.c
#include
#include
#include
#include
#include
int main()
{
int pipe_fd[2];
pid_t pid;
char buf_r[100];
char* p_wbuf;
int r_num;
kill.c
#include
#include
#include
#include
#include
int main()
{
pid_t pid;
int ret;
if((pid=fork())
2466252_re.cc
#include
#include
using namespace std;
typedef struct student{
string useid;
int pid;
};
string pname[100];
student stu[10000];
string temp="";
int counts[100