登录
首页 » Others » PID

PID

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

  • matlab
    计算金融学及计算生物学等众多应用领域。在各行业和学术机构中,有一百多万工程师和科学家使用 MATLAB 这一技术计算语言(Calculate Finance and computational biology and many other applications. In various industries and academic institutions, there are more than one million engineers and scientists using MATLAB technical computing language)
    2013-05-12 18:51:32下载
    积分:1
  • SF
    说明:  This code for shift factor problems
    2014-01-14 05:02:44下载
    积分:1
  • EM_CD
    基于高斯混合模型和EM(Expectation Maximization)算法的SAR影像变化监测算法,并附带示例。总体思路是首先将两个时期的SAR影像做log和ratio运算,生成差分影像,然后通过EM算法估计高斯混合模型的参数,最后根据高斯混合模型最大概率,生成变化监测结果。(Unsupervised change detection method for SAR images using EM algorithms of Gaussian mixture model)
    2016-05-16 09:37:15下载
    积分:1
  • class_top88_PDE
    说明:  采用PDE法进行灵敏度过滤,实现悬臂梁的拓扑优化(Sensitivity filtering using PDE method to realize topology optimization of cantilever beam)
    2019-01-08 15:19:46下载
    积分:1
  • BP_networkpredict
    在matlab环境下的BP网络预测程序,主要是预测最优加工性能参数(Matlab environment in BP network prediction procedures, mainly predict the optimal processing performance parameters)
    2008-04-24 20:21:52下载
    积分:1
  • Neural-networks
    神经网络进行语音识别:/enframe.m,该函数将输入向量分为固定长度固定重叠量的帧。/SampleCreate.m,将取所有音频的mfcc系数处理成神经网络函数所需的输入格式(Neural networks for speech recognition)
    2013-12-30 09:57:45下载
    积分:1
  • MAHAFZA
    MATLAB Simulations for Radar Systems Design - 2004 一书对应的源代码,非常有用。(MATLAB Simulations for Radar Systems Design- 2004 a book that corresponds to the source code, very useful.)
    2009-01-05 20:19:01下载
    积分:1
  • C
    说明:  孤岛检测在光伏发电并网系统中的应用,一个比较好的参考论文资料(Island in the application of photovoltaic power grid system, a better reference material )
    2013-01-09 18:09:01下载
    积分:1
  • HD-DAD
    说明:  关于高层建筑强风条件下风压系数计算,整体风荷载评估(High-rise building on the strong wind conditions, wind pressure coefficients, the overall assessment of wind loads)
    2008-11-09 15:50:11下载
    积分:1
  • matlab-fprintf
    matlab的fopen函数用法matlab中fopen函数在指定文件打开的实例(The fopen function matlab matlab use in fopen function to open an instance of the specified file)
    2011-05-25 17:07:43下载
    积分:1
  • 696518资源总数
  • 106265会员总数
  • 10今日下载