登录
首页 » Others » PID

PID

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

  • dsk02
    matlab在电子信息中的应用和实例中的源代码,很完整,对学习MATLAB的人会有很大帮助.(matlab in the application of electronic information and examples of source code, it is full of learning MATLAB person would be of considerable help.)
    2008-04-08 09:02:13下载
    积分:1
  • TD
    说明:  TD信令流程 TDGSM切换测量控制 路由信令更新流程(TD signaling processes TDGSM switch routing signaling update process measurement and control)
    2011-11-26 17:51:26下载
    积分:1
  • BCH_Sim_Main
    BCH编译码程序,对误码性能仿真,获得实际的误码曲线。(BCH Codec error performance simulation, the actual error curve.)
    2012-11-22 22:57:02下载
    积分:1
  • imageprocessing-(1)
    filtering window kaiser
    2011-05-08 05:06:41下载
    积分:1
  • 3--digital-shearlet-transform-
    3A rational design of a digital shearlet transform 2010-Donoho-Kutyniok-Shahram-Zhuang-SampTA
    2014-10-22 20:39:50下载
    积分:1
  • LPFG
    LPFG长周期光纤光栅的模拟仿真,值得参考下载啊(the analog simulation of LPFG is worthy of reference.)
    2012-11-22 08:53:13下载
    积分:1
  • SAR_Change_Detection_GarborPCANet-master
    说明:  “基于PCANet的合成孔径雷达图像自动变化检测”的Matlab实现(Automatic Change Detection in Synthetic Aperture Radar Images Based on PCANet")
    2020-03-18 10:29:05下载
    积分:1
  • matlabimagenegative
    Matlab program for image negative and thresholding without using inbuilt functions in matlab...
    2010-09-26 19:16:07下载
    积分:1
  • complex_signal
    shows how signals work in plots complex signal A*(sin(w)+cos(w))
    2010-05-07 22:02:19下载
    积分:1
  • switch--circuit
    最近交互式电源技术,软交换、同步整流、频率固定(Alternating expressions Power technology recently、Softswitch, synchronous rectification, fixed frequency)
    2013-11-25 15:56:17下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载