登录
首页 » Others » PID

PID

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

  • music_attenna
    利用music算法进行仿真模拟,使其得出正确结果(Simulation algorithm using music to make it reach the right result)
    2010-11-02 16:36:36下载
    积分:1
  • model
    lecture for enginner induction motor
    2011-01-25 06:24:03下载
    积分:1
  • MATLABindex-fit
    matlab中指数拟合的源程序 很好 很有用(the matlab in exponential fitting good source useful)
    2012-09-03 15:01:47下载
    积分:1
  • LDA
    matlab实现的LDA分类模型,可以直接调用(matlab lda for classifiy)
    2015-03-23 15:30:17下载
    积分:1
  • ANFIS-Fuzzy-Inference-System-Using-Commands-in-M-
    Anfis-Fuzzy Logis-Adaptive Neuro-Fuzzy Inference System
    2012-01-10 18:44:09下载
    积分:1
  • rainflow
    雨流计数法 的各种程序 用matlab编制 有需要的请尽情下载,不用谢(Rain flow counting method)
    2014-03-21 11:49:33下载
    积分:1
  • RcrIJADE
    说明:  利用RcrIJADE差分进化算法提取光伏电池模型的未知参数(extract the unknown parameters of solar cell model using RcrIJADE)
    2021-03-03 11:49:59下载
    积分:1
  • SC_sunny_RI
    本模型可用于计算晴天下北半球任意地区任意角度下集热器太阳日辐射强度(Any angle collector solar radiation calculation model)
    2012-04-07 01:46:33下载
    积分:1
  • capacity_with_sir
    OFDM系统下,系统容量和系统信干比的关系曲线(OFDM system, the system capacity and system signal to interference ratio curve)
    2010-07-07 15:02:19下载
    积分:1
  • Seg2FileReader
    Seismic SEG-2 file format reader to matlab
    2015-11-23 19:20:15下载
    积分:1
  • 696516资源总数
  • 106913会员总数
  • 8今日下载