登录
首页 » SCM » 这是一个比较典型的PID处理程序,在使用单片机作为控制cpu时,请稍作简化,具体的PID 参数必须由具体对象通过实验确定。由于单片机的处理速度和ram资源的限制...

这是一个比较典型的PID处理程序,在使用单片机作为控制cpu时,请稍作简化,具体的PID 参数必须由具体对象通过实验确定。由于单片机的处理速度和ram资源的限制...

于 2022-03-19 发布 文件大小:10.63 kB
0 208
下载积分: 2 下载次数: 1

代码说明:

这是一个比较典型的PID处理程序,在使用单片机作为控制cpu时,请稍作简化,具体的PID 参数必须由具体对象通过实验确定。由于单片机的处理速度和ram资源的限制,一般不采用浮点数运算,而将所有参数全部用整数,运算 到最后再除以一个2的N次方数据(相当于移位),作类似定点数运算,可大大提高运算速度,根据控制精度的不同要求,当精度要求很 高时,注意保留移位引起的“余数”,做好余数补偿。这个程序只是一般常用pid算法的基本架构,没有包含输入输出处理部分。-This is a typical PID process, as in the use of SCM control cpu, please slightly simplified, specific PID parameters to be specific targets identified by experiments. As SCM processing speed and ram resource constraints, generally do not use floating-point operations, and will use all the parameters of all integers, and the final calculations to divide one of the Nth 2 data (the equivalent displacement), will count for a similar operation, it will greatly increase the computing speed, control Accuracy of different requirements and high precision, displacement caused reservations to the attention of the "I", which I do several compensation. This procedure is commonly used algorithm pid the basic structure does not include input and output processing.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 非常实用的msp430液晶显示模块(12864)代码,重要,简洁,适用初学者。...
    非常实用的msp430液晶显示模块(12864)代码,重要,简洁,适用初学者。-Msp430 useful liquid crystal display module (12864) code, it is important, simple, applicable to beginners.
    2022-08-05 18:17:47下载
    积分:1
  • It works together with counterpart header file ,lcd.h
    It works together with counterpart header file ,lcd.h
    2023-03-14 05:55:03下载
    积分:1
  • FM12864 process
    FM12864液晶显示程序驱动,可以实现简单的数字,图像的显示-FM12864 process-driven liquid crystal display, you can realize simple figures, images are displayed
    2022-05-23 18:37:32下载
    积分:1
  • ok!The program is very good!
    ok!The program is very good!
    2022-03-02 09:35:54下载
    积分:1
  • Content:* IR test program, launched with the microcontroller through the launch...
    内容: *红外测试程序,用单片机通过发射管发射38K的调制频率码,由一体化接收并解码由发光管显示。 *正常情况下,由于反射和高灵敏度接收,LED4(P1.3)一直闪烁,可以用黑色纸片完全遮挡接收头使 *之不能接收到发射管的信号,这是LED4熄灭。说明功能性正常 -Content:* IR test program, launched with the microcontroller through the launch tube of the modulation frequency of 38K code, by the integration to receive and decode from the LED display.* Under normal circumstances, due to reflection and high-sensitivity receiver, LED4 (P1.3) has been flickering, you can completely block the black pieces of paper to make* that they are not receiving the first emission control signal is received, it is LED4 out. Note the normal functional
    2022-03-20 16:16:04下载
    积分:1
  • In this experiment to learn how to use the CC2420 will be the address decoding f...
    在本实验中将学习如何利用 CC2420 的地址译码功能来接收基于IEEE802.15.4 的标准 帧。CC2420 在硬件上支持地址译码,可以在MDMCTRL0 寄存器中进行设置,-In this experiment to learn how to use the CC2420 will be the address decoding function to receive a standard based on IEEE802.15.4 frame. CC2420 hardware support for address decoding, you can MDMCTRL0 register set,
    2023-04-26 03:35:03下载
    积分:1
  • 51系列单片机实验课程:时钟程序 (显示时刻时、分、秒)
    51系列单片机实验课程:时钟程序 (显示时刻时、分、秒)-51 Series single-chip experimental curriculum: the clock program (shows time of hour, minute, second)
    2022-12-11 22:20:04下载
    积分:1
  • 51单片机C语言多种点阵屏驱动程序(开发软件为keil C
    51单片机C语言多种点阵屏驱动程序(开发软件为keil C ---8字点阵屏左移程序,64_16点阵屏驱动程序,上移显示程序,左移显示程序)51 monolithic integrated circuit C language many kinds of lattice screen driver (develops the software is keil C ---8 character lattice screen left shift procedure, the 64_16 lattice screen driver, uppers shift the display sequence, the left shift display sequence -51 Singlechip C language a variety of dot-matrix screen driver (development of software for keil C--- 8 character dot matrix screen left procedures 64_16 dot-matrix screen driver, on the shift display program, the left display program) 51 monolithic integrated circuit C language many kinds of lattice screen driver (develops the software is keil C--- 8 character lattice screen left shift procedure, the 64_16 lattice screen driver, uppers shift the display sequence, the left shift display sequence
    2022-05-23 16:35:37下载
    积分:1
  • ATmega16 generate sine wave using pwm oscilloscope observation ok
    atmega16 用pwm 产生正弦波 示波器观察ok-ATmega16 generate sine wave using pwm oscilloscope observation ok
    2022-07-17 08:09:27下载
    积分:1
  • c8051f021单片机资料
    c8051f021单片机资料-c8051f021
    2022-01-25 15:25:10下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载