登录
首页 » Others » PID

PID

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

  • WatchDogTimer
    Application to reset watchdog timer on TI Omap Arm processor. It is written in freepascal.
    2014-09-21 04:26:31下载
    积分:1
  • nonliner-ayasis
    非线性分析 包括、典型非线性特性和描述函数方法的各种matlab程序 非常实用的非线性分析(Nonlinear analysis includes typical nonlinear characteristics and description of the various matlab function method is very useful program)
    2020-11-26 21:29:32下载
    积分:1
  • jpeg
    This is the JPEG compression
    2011-11-14 22:45:30下载
    积分:1
  • S-Transform
    This is matlab code for stockwell transform as a time frequency distribution for feature extraction that was developed by Doctor stockwell
    2015-04-15 14:32:26下载
    积分:1
  • BP_XZX
    采用matlab语言,但不是采用其神经网络工具箱开发的BP人工神经网络程序,原始底层代码,对于想利用其它语言开发商业软件的网友可先学习本代码,然后可方便转写。(Using matlab language, but not using its neural network toolbox developed by BP artificial neural network program, the original low-level code, use of other languages who want to develop commercial software, users can first learn the code, and then can be easily transferred to write.)
    2010-06-24 11:48:56下载
    积分:1
  • Lagrangechazhifa
    说明:  拉格朗日插值法,是学习插值的基本内容,这里是一个该插值法的matlab程序文件,可以帮助大家进一步学习(Lagrange interpolation method, interpolation is to learn the basic content, here is a program of the interpolation matlab file, you can help us to further study)
    2011-03-31 11:01:53下载
    积分:1
  • t-tide
    潮汐调和分析,用于海洋专业,分析各分潮潮汐调和常数。(Tidal harmonic analysis for marine professionals to analyze the sub-tidal tidal harmonic constants.)
    2013-12-19 13:58:32下载
    积分:1
  • TV_inpainting
    说明:  采用总变分法(TV)进行图像修复的matlab源代码。包括热扩散修复和多尺度方法。(using variational (TV) for image restoration of Matlab source code. Thermal diffusivity including repair and multi-scale approach.)
    2006-02-21 14:20:57下载
    积分:1
  • prog2
    说明:  此代码展示了Euler计算方法与差分方法(This code demonstrates Euler difference method and calculation method)
    2008-11-11 15:39:01下载
    积分:1
  • pso-4
    经典粒子群算法的matlab实现。用函数进行测试实验,并给出算法寻优迭代的效果图(Classical PSO algorithm matlab. Experiments with test functions, and gives an iterative optimization algorithm renderings)
    2014-02-18 16:21:20下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载