登录
首页 » Others » PID

PID

于 2011-07-17 发布 文件大小:1KB
0 241
下载积分: 1 下载次数: 13

代码说明:

  一个比较典型的PID处理程序,在使用单片机作为控制cpu时,请稍作简化,具体的PID 参数必须由具体对象通过实验确定。由于单片机的处理速度和ram资源的限制,一般不采用浮点数运算, 而将所有参数全部用整数,运算到最后再除以一个2的N次方数据(相当于移位),作类似定点数运算,可 大大提高运算速度,根据控制精度的不同要求,当精度要求很高时,注意保留移位引起的“余数”,做好余 数补偿。这个程序只是一般常用pid算法的基本架构,没有包含输入输出处理部分。 (A typical PID process, using the microcontroller as a control cpu, make some simplification, the specific PID parameters must be determined experimentally by a specific object. As the chip processing speed and ram resource constraints, generally do not use floating-point operations, and all parameters of all integers, and divided by an operator to the last N-th power of 2 data (the equivalent of the shift) for a similar fixed-point operations, can greatly improve the speed of operation, according to the different requirements of precision control, when high precision, attention to retain the shift caused by the " remainder" and on the remainder of compensation. This procedure is commonly used basic structure pid algorithm, does not include input and output processing section.)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • yulenielsenmodified
    this is a matlab file for modified yule nielsen model for predicting the printed area color
    2011-09-18 22:15:20下载
    积分:1
  • stero
    将采集的土图片载入MATLAB并计算其熵、灰度值等(The images collected soil load and calculate the entropy MATLAB, the gray values, etc.)
    2015-03-10 16:33:17下载
    积分:1
  • strech
    去斜率(strech)参考信号与回波信号混频后得到中频输出信号S(t)=Aexp(j*2*pi*f0*t+phase) 其中f0与回波延时的关系为: f0=k*delay_t K为线性调频斜率,delay_t为回波延时 将s(t)采样,FFT变换即可得到目标距离与频谱的关系。 Strech 信号测距 输入混频后的中频信号(图一),经采样及FFT变换得到频谱(图二) 再根据频谱与距离的关系式R=Tcf/2B显示出距离(图三) (Go slope (strech) obtained after the reference signal and the echo signal mixer IF output signal S (t) = Aexp (j* 2* pi* f0* t+phase) f0 and echo delay relationship: f0 = k* delay_t K chirp slope, delay_t the echo delay sampling s (t), the FFT transform to the target distance spectrum of relations. Strech signal ranging input mixer IF signal (Figure 1), sampling and FFT transform spectrum (Figure 2) according the the spectrum distance relationship R = Tcf/2B shows the distance (Figure 3))
    2012-11-27 20:36:34下载
    积分:1
  • ELM-with-Markov-chains
    Generalization ability of extreme learning machine with uniformly ergodic Markov chains
    2020-07-16 16:58:49下载
    积分:1
  • MIMO雷达波束形成
    说明:  MIMO雷达波束形成的基本原理和部分资源代码,希望对大家有用(The basic principle and some resource codes of MIMO radar beamforming are hoped to be useful to you)
    2021-05-16 14:30:02下载
    积分:1
  • bdf_reader_matlab_lorig
    matlab code for emg signal not full
    2009-05-01 02:36:43下载
    积分:1
  • PDP_allsubchannel
    利用该代码,可以计算各子信道的功率谱。看出哪些信道是最强的 (caiculating the PDP of the subchannel)
    2013-05-16 23:20:42下载
    积分:1
  • som
    a som application, for those who are new in neural network and matlab!
    2013-12-29 20:27:41下载
    积分:1
  • jpeglsv2.2
    JPEG连续色调静止图像无损压缩的最新标准JPEG LS的C语言实现,还带有一个很友好的图形用户界面,那些学习图像编码的工程师可以参考一下这个实现的源代码。(JPEG continuous tone still images of the latest standard lossless compression JPEG LS realize the C language, but also with a very friendly graphical user interface, those who study and image coding engineers can refer to this realization of the source code.)
    2008-03-30 17:36:46下载
    积分:1
  • shudu
    数独程序,,很好用的,大家可以参考一下,呵呵呵~~~~~(Sudoku program, well used, we can refer to, Ha ha ha ~~~~~)
    2011-01-24 13:18:48下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载