代码搜索结果
找到约 10,000 项符合
PID 的代码
pid.h
/****************************************************************************
* 文 件 名:PID.H
* 版 本: V1.0
* 连 接:
* 功 能:PID头文件
* 作者:黄振升
* 日期:2007/8/20
*---------------历史版本信息--------
pid.h
/*This file has been prepared for Doxygen automatic documentation generation.*/
/*! \file *********************************************************************
*
* \brief Header file for pid.c.
pid.c
/*This file has been prepared for Doxygen automatic documentation generation.*/
/*! \file *********************************************************************
*
* \brief General PID implementati
pid.txt
%升温
Close all;
ts=1;
sys=tf(2.5,[1,50,0]);
dsys=c2d(sys,ts,'z');
[num,den]=tfdata(dsys,'v');
x=[0,0,0];
e=0;e_1=0;e_2=0;
u_1=0.0;u_2=0.0;u_3=0.0;
y_1=20;y_2=0;y_3=0;
for k =1:1:1000;
pid.txt
;********增量式PID控制算法程序***********
;T、TD、TI、KP依次从30H,33H,36H,39H开始。
;A,B,C的值依次存在BLOCK1,BLOCK2,BLOCK3的地址里
; 这里R(k)给的是定值
;
ORG 0000H
BLOCK1 EQU 43H ;A,B ,C
BLOCK2 EQU 46H
BLOCK3 EQU 49H
UK EQU
pid.m
%creating function, asking for proportional, integral, and derivative gain
function project(KP,KI,KD)
%create uncontrolled transfer function model
sys = tf([516.198],[100 20*10^3 399741.90867])
pid.asv
%function [ output_args ] = Untitled1( input_args )
%UNTITLED1 Summary of this function goes here
% Detailed explanation goes here
clear;
%controltable;
%table = ans;
T1 = 1; T2 = 2;
Kp = 10;Ti = 1;
pid.m
%function [ output_args ] = Untitled1( input_args )
%UNTITLED1 Summary of this function goes here
% Detailed explanation goes here
clear;
controltable;
table = ans;
T1 = 2; T2 = 3;
Kp = 7;Ti = 0.8;