登录
首页 » Others » PID

PID

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

  • fdtd2D
    2-D FDTD code with simple radiation boundary conditions
    2013-02-25 12:37:00下载
    积分:1
  • Warshell
    matlabWARSHELL算法,用来解决图论问题(WARSHELL ckckckkckkckckkckkck)
    2013-03-17 19:29:18下载
    积分:1
  • Wavelet-Analysis-Advanced
    MATLAB小波分析高级技术2006电子书,书中内容较为实用(MATLAB Wavelet Analysis Advanced Technology 2006 books, the book is more practical content)
    2013-12-21 16:23:58下载
    积分:1
  • MSRCRbyZhang
    带色彩恢复的多尺度视网膜增强算法(MSRCR)的原理、实现及应用。 (Multi-scale recovery of the retina with color enhancement algorithms (MSRCR) principle, implementation and applications.)
    2013-12-07 21:26:37下载
    积分:1
  • Gauss_Elimination
    Gauss Elimination (normal way, or using vector storage). Data in file TP2 (or TP02), which is the file to be run
    2011-06-03 04:13:52下载
    积分:1
  • waveletlssvm_longchuan
    小波分解下的最小二乘支持向量机,可以用于预测(wavelet lssvm for predict)
    2015-03-31 16:41:34下载
    积分:1
  • 海浪模拟
    用matlab 实现海浪的二维和三维模拟(Two and three dimensional simulation of sea waves by MATLAB)
    2018-02-10 09:23:15下载
    积分:1
  • split_step_fourier_method
    二维分布傅里叶算法求解非线性薛定谔方程,时间光孤子(Two-dimensional distribution of the Fourier algorithm for solving nonlinear Schrodinger equation)
    2012-05-13 22:33:46下载
    积分:1
  • datapro0303
    matlab对随机振动状态分析,及功率谱的生成与分析等(matlab for random vibration analysis of state)
    2014-10-23 15:20:28下载
    积分:1
  • 2D-Multi-Parameter-Pie-Control
    2D Multi-Parameter Pie Control
    2013-12-31 18:04:05下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载