代码搜索结果
找到约 12,494 项符合
PID 的代码
philosopher.c
#include"apue.h"
#include"lock.h"
#include
int main(int argc,char *argv[])
{
int t,i;
pid_t pid[6];
if(argc>3||argc
tracklsq.m
function F = tracklsq(pid)
% Track the output of optsim to a signal of 1
% Variables a1 and a2 are shared with RUNTRACKLSQ
Kp = pid(1);
Ki = 0;
mod10answer.bas
Attribute VB_Name = "Mod10Answer"
Option Explicit
Sub Alarm()
On Error Resume Next
Dim pid As Long, hProcess As Long
If Main.CheOther(1).Value = 1 Then
mciExecute "play alarm.w
sigchldwaitpid.c
#include "unpipc.h"
void
sig_chld(int signo)
{
pid_t pid;
int stat;
while ( (pid = waitpid(-1, &stat, WNOHANG)) > 0)
;
return;
}
mainclient.c
#include "fifo.h"
int
main(int argc, char **argv)
{
int readfifo, writefifo;
size_t len;
ssize_t n;
char *ptr, fifoname[MAXLINE], buff[MAXLINE];
pid_t pid;
/* 4create FIFO with our PID as pa
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;
readme.txt
Brushless DC Motor Control Application
This application is designed to drive a Pittman N2341S001 brushless DC motor.
The commutation sequence and PID controller tuning may need to be modified when
us