登录
首页 » Others » PID

PID

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

  • myIIR
    matlb编写的IIR滤波器程序,按照给定指标采用模拟低通滤波器(巴特沃思低通或者切比雪夫低通)去逼近理想模拟低通滤波器 ,然后通过双线性变换法对模拟滤波器进行数字化,得到数字滤波器 。(IIR filter matlb prepared by the procedure, according to set targets and analog low-pass filter (Butterworth low-pass or low-pass Chebyshev) approximation to the ideal analog low-pass filter, and then through the bilinear transformation method for analog filtering device to digitize, the digital filter.)
    2008-01-22 15:27:53下载
    积分:1
  • hundunpso
    针对二维熵图像分割方法在求取最佳阈值时存在计算量大及微粒群算法容易陷 入局部最优且速度较慢等等问题, 提出了基于混沌粒子群优化算法的二维熵图像分割方法。 该方法考虑了图像中像素点灰度􀀂 􀀂 􀀂 邻域灰度均值对作为阈值对图像进行分割 利用混沌运 动随机性、遍历性和初值敏感性, 将混沌粒子群优化算法与阈值法相结合在二维空间作全局搜 索。实验结果表明了基于混沌粒子群优化算法的二维熵图像分割法用于阈值寻优减少了搜索 时间, 提高了收敛率。(Calculation of its large capacity and particle swarm algorithm is easy to fall to strike the best threshold for the two-dimensional entropy image segmentation method Into the local optimum and slower, the proposed two-dimensional entropy image segmentation method based on chaotic particle swarm optimization algorithm. The method takes into account the image pixel the gray 􀀂 􀀂 􀀂 neighborhood average gray value as a threshold for image segmentation chaotic transport Dynamic randomness, ergodicity and initial value sensitivity of chaotic particle swarm optimization algorithm with the threshold method in two-dimensional space for the global search On request. Experimental results show that the entropy method of image segmentation method based on chaotic particle swarm optimization algorithm for threshold optimization to reduce the search Time and improve the convergence rate.)
    2012-04-10 22:00:27下载
    积分:1
  • coc
    OFDM Moddel in matlab
    2009-07-02 04:53:04下载
    积分:1
  • compeletion
    将三维图像分割为由3*3*3体素组成的立方体实现更细化的分析(The three-dimensional image is divided by 3* 3* 3 cube of voxels composition to achieve a more detailed analysis)
    2014-12-29 18:19:39下载
    积分:1
  • rbmhidlinear
    Restricted Boltzmann Machine with binary visible and linear/Gaussian hidden units.
    2013-12-25 16:30:08下载
    积分:1
  • MATLAB_programming
    matlab编程简易帮助文档,对于初学者十分有用(help Matlab programming simple document, very useful for beginners)
    2006-05-25 22:04:12下载
    积分:1
  • completely-matlab7.1-tutorial
    matlab7.1完全教程,可以很系统的了解和学习matlab用法(completely matlab7.1 tutorial, system understanding and learning matlab usage)
    2012-11-13 11:30:44下载
    积分:1
  • ofdmmm
    OFDM,QPSK调制下仿真程序,包括信道编解码,调制解调,上下采样(OFDM, QPSK modulation simulation program, including channel coding and decoding, modulation and demodulation, and down sampling)
    2013-12-11 17:20:01下载
    积分:1
  • CA_TrafficFlowModel
    交通流元胞自动机Matlab源代码 *跟驰功能 *换道功能*元胞空间定义功能*车辆定义功能*驾驶员特性定义功能*发车密度定义功能*信号配时定义功能*换道比例定义功能(Traffic flow cellular automata Matlab source code* follow the function * lane changing function* unit cell space definition function* vehicle definition function* driver characteristics definition function* departure density definition function* signal timing definition function* changing channel proportion definition function)
    2016-12-08 18:01:23下载
    积分:1
  • zhengxianpinpufenxi
    对正弦信号进行简单的频谱分析,变换采样频率和信号持续时间(A simple sinusoidal signal spectrum analysis, changing the sampling frequency and signal duration)
    2012-05-16 21:12:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载