登录
首页 » Others » PID

PID

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

  • Lecture-1
    全英文,讲述matlab功能,使用,开发等等(Wholly in English, on the matlab function, use and development and so on)
    2009-03-12 22:30:11下载
    积分:1
  • Digitalwatermarking
    DIGITAL water marking
    2009-05-24 03:22:43下载
    积分:1
  • R.C.D.Matlab
    Robust control design with matlab
    2010-05-08 07:59:49下载
    积分:1
  • S4-matlab
    Infonet一篇经典论文,一种基于虚拟坐标的紧凑路由协议S4的Matlab仿真代码( a classic paper at Infonet, based on the virtual coordinates of compact routing protocol S4, Matlab simulation code)
    2012-06-28 22:59:30下载
    积分:1
  • mypq
    基于Matlab的pq分解法的潮流计算,对在给定的节点中电力系统进行潮流分析(Calculated based on the trend of Matlab pq decomposition method for a given node in the power system load flow analysis)
    2014-11-19 20:35:49下载
    积分:1
  • BlindSourceSeparation
    利用自然梯度算法来对于5 类信号进行盲信号分离,采用自然梯度法对混合的信号进行 分离并分析其性能,并比较不同步长对于信号分离的影响(Use of the natural gradient algorithm for the five types of signals blind signal separation, using the natural gradient method for mixed signal Separation and analysis of its performance and compare sync signal separation for the impact of long)
    2012-01-10 15:46:18下载
    积分:1
  • saomen_v74
    ldpc码的编解码实现,包括调制,解调,信噪比计算,汽车课设货车Matlab驱动力图程序。( Codec ldpc code implementation Includes the modulation, demodulation, signal to noise ratio calculation, Car class-based truck driver trying to Matlab program.)
    2016-12-06 17:48:16下载
    积分:1
  • precision
    dct transform 2d 변 환 과 정 을 나 타 내 는 소 스 코 드
    2010-06-06 21:30:02下载
    积分:1
  • MMVDAyuMVDRboshuxingchengbijiao
    MVDR与改进的MVDR方法数字波束形成比较(the comparisom of the method of MVDR and its improved method MMVDR to realeze beamforming)
    2020-11-20 16:49:37下载
    积分:1
  • matlabshiyucaiyang
    MATLAB实现连续信号采样、频谱分析和采样信号恢复的方法。计算在临界采样、过采样、欠采样三种不同条件下恢复信号的误差,并由此总结采样频率对信号恢复产生误差的影响,从而验证时域采样定理。(MATLAB continuous signal sampling, spectral analysis and sampling signal recovery method. Calculated in a critical sampling, the oversampling signal error recovery due to the sampling of the three different conditions, and thereby generate error summarizes the sampling frequency for signal recovery, in order to verify the time domain sampling theorem.)
    2013-05-17 22:24:41下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载