登录
首页 » Others » PID

PID

于 2011-07-17 发布 文件大小:1KB
0 246
下载积分: 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 个回复

  • simulationforofdm(802.16d)
    在vc上做的802.16d ofdm phy的仿真,定点运算,实现的一部分功能,供参考(In the vc on the 802.16d ofdm phy to do the simulation, fixed-point computation, the realization of part of functions, for reference)
    2007-10-23 22:14:31下载
    积分:1
  • generateMatrix.m
    Hamming filter in 2D Low pass filter
    2011-06-16 06:10:11下载
    积分:1
  • PF---copia
    particle filter example, images and code as well
    2013-04-23 00:33:35下载
    积分:1
  • LRA
    Lattice reduction mimo detection
    2012-02-14 17:58:08下载
    积分:1
  • N-R MATLAB
    说明:  牛顿拉夫逊法用MATLAB如何实现其功能,在迭代过程中如何使用循环算法(Newton-Raphson Power Flow)
    2020-11-21 07:00:29下载
    积分:1
  • MATLABlvbo
    利用matlab的图像滤波说明,有源代码,很管用的(Note the use of matlab for image filtering, active code, it is useful to)
    2009-12-15 22:01:00下载
    积分:1
  • imascii
    this program convert image to ascii code image
    2013-03-13 15:14:47下载
    积分:1
  • zad2
    add2.Model of the control system modeled in Simulink
    2010-12-04 03:57:05下载
    积分:1
  • mmc
    This is an MMC model for matlab
    2014-10-24 08:28:14下载
    积分:1
  • IllustrationMod
    mode shapes of a shaft supported by fluid film bearing(this codes gives a good method to calculate the mode shapes of a shaft supported by fluid film bearing)
    2009-05-29 13:58:32下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载