登录
首页 » Others » PID

PID

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

  • MeanShift
    Mean Shift 这个概念最早是由Fukunaga等人[1]于1975年在一篇关于概率密度梯度函数的估计中提出来的,其最初含义正如其名,就是偏移的均值向量,在这里Mean Shift是一个名词,它指代的是一个向量,但随着Mean Shift理论的发展,Mean Shift的含义也发生了变化,如果我们说Mean Shift算法,一般是指一个迭代的步骤,即先算出当前点的偏移均值,移动该点到其偏移均值,然后以此为新的起始点,继续移动,直到满足一定的条件结束. 用matlab实现mean shift算法仿真(Mean Shift the concept was first used by Fukunaga et al [1] in 1975 in an article on the probability density function estimation of gradient raised its original meaning, as its name implies, is the offset of the mean vector, where is the Mean Shift a noun, it refers to a vector, but with the Mean Shift the development of the theory, Mean Shift the meaning has changed, if we say that Mean Shift algorithm, generally refers to an iterative steps, namely, first calculate the current point Mean offset, move the shift points to its average, and then as a new starting point and continue to move until the end to meet certain conditions. realize using mean shift algorithm matlab simulation)
    2009-02-11 20:58:57下载
    积分:1
  • all kind of pn coded generator
    包含了m序列 gold序列 kasami序列和ovsf码的所有伪码产生器(Contains a sequence of m sequences gold Kasami sequences and OVSF code of all pseudo-code generator)
    2008-07-25 11:42:54下载
    积分:1
  • NPearson
    奈曼皮尔逊准则仿真,在P(H1|H0)=a的约束条件下,使P(H1|H1)最大的准则。(Neyman-pearson criterion)
    2018-04-22 11:40:54下载
    积分:1
  • New-Text-Document-(2)
    he form of the Burgers equation considered here is: du du d^2 u -- + u * -- = nu * ----- dt dx dx^2 for -1.0 < x < +1.0, and 0.0 < t. Initial conditions are u(x,0) = - sin(pi*x). Boundary conditions are u(-1,t) = u(+1,t) = 0. The viscosity parameter nu is taken to be 0.01 / pi, although this is not essential. The authors note an integral representation for the solution u(x,t), and present a better version of the formula that is amenable to approximation using Hermite quadrature. This program library does little more than evaluate the exact solution at a user-specified set of points, using the quadrature rule. Internally, the order of this quadrature rule is set to 8, but the user can easily modify this value if greater accuracy is desired.
    2012-04-13 12:06:48下载
    积分:1
  • Math
    说明:  内含8个数学建模的实验报告:线性规划、插值、拟合、非线性规划、蒙特卡洛方法、微分方程、无约束优化、回归分析(Mathematical modeling includes 8 Experiment Report: linear programming, interpolation, fitting, linear programming, Monte Carlo method, differential equations, unconstrained optimization, regression analysis)
    2010-04-25 16:11:21下载
    积分:1
  • 05_UsingAccelWare
    This lab exercise will introduce you to the AccelWare IP generators. AccelWare is a library of over fifty IP generators, available in the form of three toolkits that produce synthesizable MATLAB for common MATLAB built in and toolbox functions. Each generator offers macro and micro-architecture selections that allow full customization of the generated model to the target application requirements.(This lab exercise will introduce you to the AccelWare IP generators. AccelWare is a librar y of over fifty IP generators, available in the form of three toolkits that pro duce synthesizable MATLAB for common MATLAB negation ilt in and toolbox functions. Each generator of fers macro and micro-architecture selections that allow full customization of the generated model to the target application requirements.)
    2007-04-18 12:57:05下载
    积分:1
  • KF_main
    卡尔曼滤波模型的模拟范例 注释相当明确 适合初学者(KALLMAN FILTER)
    2013-09-18 16:55:26下载
    积分:1
  • TVP_VAR
    tvp-var model 可以用来做TVP-VAR模型(tvp-var model for good use)
    2021-04-14 21:18:55下载
    积分:1
  • plot5daiqianyuan
    根据潜在震源区数据,利用matlab画第五代潜在震源区图,并在鼠标点击位置编号(According to the potential source area data, using matlab draw fifth-generation potential source area map and click on the mouse position number)
    2014-01-09 09:56:11下载
    积分:1
  • e
    说明:  PARATUCK-NCRLS的中继转法式室内可见光通信系统信道估计(Channel Estimation of PARATUCK-NCRLS Relay-to-Relay French Indoor Visible Communication System)
    2019-09-22 11:35:03下载
    积分:1
  • 696518资源总数
  • 104269会员总数
  • 42今日下载