登录
首页 » Others » PID

PID

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

  • chap9
    matlab的经典教学案例,初学者的最好资料,来看看吧。(matlab classic teaching case, the best information for beginners, have a look.)
    2011-04-22 16:29:04下载
    积分:1
  • Extended_KF
    这个zip文件中包含的原则和双方的扩展卡尔曼滤波(EKF)和全球定位系统(GPS)算法简要说明。它的主要目的是提供一个相对容易实现的扩展卡尔曼滤波,在我们使用的输入函数的形式,而不是禁止函数处理符号表达式。它也可作为一个简要介绍了卡尔曼滤波算法GPS和学习它的意思。在为EKF的例子,我们提供的原始资料,同时使用的定位扩展卡尔曼滤波和最小二乘法的任务和解决方案。 有四个M文件和两个数据文件。 Extended_KF.m包含EKF的函数体。另一些功能和GPS的示例数据文件。(This zip file contains a brief illustration of principles and algorithms of both the Extended Kalman Filtering (EKF) and the Global Position System (GPS). It is designed primarily to provide a relatively easy-to-implement EKF, in which we use symbol expressions as the form of input functions rather than the forbidding function handles. It also serves as a brief introduction to the Kalman Filtering algorithms for GPS and a mean of learning it. In the example for the EKF, we provide the raw data and solution for the positioning task using both EKF and the Least Square method. There are four m files and two data files. Extended_KF.m contains the function body of the EKF. Others are functions and data files for the GPS example.)
    2011-05-23 10:35:27下载
    积分:1
  • ParticleFilter
    A simple Particle Filter implementation
    2012-05-18 02:47:54下载
    积分:1
  • generateGmatrix
    这是国标数字电视地面传输中生成矩阵的生成程序,只要按照MATLAB的格式输入国标附录1中的数据,就可以生成完整的G矩阵(This is the national standard of digital TV terrestrial transmission matrix generated in the generation process, as long as the input in accordance with the format of MATLAB Appendix 1 GB of data, we can generate the complete G matrix)
    2008-05-15 09:52:57下载
    积分:1
  • MATLAB-algorithm
    基于MATLAB的各种优化算法,里面含多种利用MATLAB进行的算法,简单实用(MATLAB various optimization algorithms, which contain a variety of algorithms using MATLAB, simple and practical)
    2013-04-16 08:19:28下载
    积分:1
  • A-complete-PSO-program
    一个完整的PSO程序,可以实现优化,并且由很好的可视化见面,且可用来调节PID参数(A complete PSO program, you can optimize, and met by a good visualization, and can be used to adjust the PID parameters)
    2013-12-15 15:19:51下载
    积分:1
  • TS-for-TSP
    现代优化算法中的禁忌搜索算法,50城市TSP测试数据,经测试结果与最优解接近。(Tabu search algorithm, 50 cities TSP test data.)
    2012-04-18 11:49:45下载
    积分:1
  • MATLAB-Code-Generation
    在MATLAB环境下生成C2000代码,以一个电力电子控制实例为说明。(Code Generation in MATLAB)
    2013-05-23 16:04:12下载
    积分:1
  • IIR
    IIR滤波器的设计及其使用,可产生幅度相同的单频信号,其中进行了傅里叶变换等。(IIR filter design and its use, may have the same single-frequency signal amplitude, which carried out the Fourier transform.)
    2011-04-24 13:51:51下载
    积分:1
  • RayleighaRice
    包含有Rayleigh信道、Rice信道和Lognormal分布的生成函数,以及依次产生具体信道并与理论概率密度分布曲线对比的程序(Contains Rayleigh channels, Rice channels and Lognormal distribution generating function, and in turn produce specific channel and theoretical probability density distribution curve comparison program)
    2013-01-28 09:43:00下载
    积分:1
  • 696518资源总数
  • 105282会员总数
  • 11今日下载