登录
首页 » Others » PID

PID

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

  • RFC_1622_CRC16_m
    RFC1662 CRC-16 table generation and CRC checking. Implemented in embedded matlab with script to test and enable c/c++ code generation. Useful fo check against VHDL/Verilog and other embedded systems to help generate test vectors.
    2009-09-18 18:44:44下载
    积分:1
  • compute_equalizer
    program in matlab code to do a equalization of a signal DSP Applications
    2009-05-23 05:41:27下载
    积分:1
  • Volterra-PSR
    Volterra_混沌序列的相空间重构程序,利用matlab编程,可以将一维时间序列重构到高维空间,挖掘出隐含的信息,提高预测精度,以Volterra混沌序列为例,展示混沌的美妙(Phase space reconstruction program, Volterra_ chaotic sequence using matlab programming, refactoring can be one-dimensional time series into a high dimensional space, dig out the hidden information, improve forecast accuracy, Volterra chaotic sequence, for example, showing the chaotic wonderful)
    2012-06-14 09:06:13下载
    积分:1
  • Autocorrelation-Gold
    Spread spectrum merupakan sistem dimana sinyal yang dikirimkan memiliki bandwidth yang jauh lebih lebar daripada bandwidth sinyal informasinya sendiri. Proses pelebaran bandwidth sinyal informasi ini dilakukan pada sisi pengirim dan disebut spreading. Sebaliknya, proses penyempitan kembali bandwidth sinyal informasi dilakukan di sisi penerima, dan disebut despreading. Pada gambar 1 berikut menunjukkan proses yang terjadi pada sistem spread spectrum.
    2013-09-03 15:40:08下载
    积分:1
  • Untitled
    uwb A Framework for UWB-Based Communication and Location Tracking Systems for Wireless Sensor
    2011-11-30 19:37:05下载
    积分:1
  • qpsk
    obtain the constellation diagrams and BER vs SNR curve of Quadrature Phase Shift Keying
    2015-04-07 14:17:27下载
    积分:1
  • interpretationfinale
    interpration of events
    2011-01-14 06:00:48下载
    积分:1
  • Impedance_Spectroscopy
    Impedance Spectroscopy
    2009-04-20 12:04:29下载
    积分:1
  • mchap8
    MATLAB插值与数据拟合、样条插值与数值微积分、由已知数据拟合数学模型、信号分析与数字信号处理基础(MATLAB interpolation and data fitting, spline interpolation and numerical calculus, from the known data fitting mathematical model, signal analysis and digital signal processing-based)
    2009-11-16 09:56:38下载
    积分:1
  • matlab
    说明:  算差分盒维数的matlab程序。 让窗口中的每个像素都对分数维作出贡献。首先,计算某一尺度窗口的平均灰度值 ,然后判断每一个像素的灰度 ,若大于灰度平均值 ,则累加其灰度值为 max ,若小于灰度平均值 ,则累加其灰度值为min ,用max 和min代替 在 Sarkar 和 Chaudhuri 算法中的最大值和最小值 ,再通过拟合求出分数维。 (Differential count box dimension matlab program. Let window on the fractal dimension of each pixel to contribute. First, the calculation of an average gray scale of the window, and then determine the gray scale of each pixel, if the intensity is greater than the average, the cumulative value of its gray max, if less than the average gray level, the accumulation of its gray value of min, max and min to use instead of the algorithm in Sarkar and Chaudhuri maximum and minimum, and then by fitting the calculated fractal dimension.)
    2010-04-13 00:46:08下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载