文件名称:mcu_pid_c_program
介绍说明--下载内容均来自于网络,请自行研究使用
在使用单片机作为控制cpu时,请稍作简化,具体的PID参数必须由具体对象通过实验确定。由于单片机的处理速度和ram资源的限制,一般不采用浮点数运算,而将所有参数全部用整数,运算到最后再除以一个2的N次方数据(相当于移位),作类似定点数运算,可大大提高运算速度,根据控制精度的不同要求,当精度要求很高时,注意保留移位引起的“余数”,做好余数补偿。这个程序只是一般常用pid算法的基本架构,没有包含输入输出处理部分。-using SCM as the 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. they will all use integer parameters, calculation of a final divided by two of the Nth data (the equivalent displacement) A similar set points in computation, it will greatly increase the computing speed, precision control of different requirements and high precision, reservations to the attention of displacement caused by the "I", which I do several compensation. This procedure is commonly used algorithm pid the basic structure does not include input and output processing.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
mcu_pid_c_program.c