项目作者: Renegade-Gaming-Collective

项目描述 :
A PID(proportional integral derivative) library to help create PID code reliably.
高级语言:
项目地址: git://github.com/Renegade-Gaming-Collective/nolol-PID-Macros.git
创建时间: 2021-09-01T00:22:37Z
项目社区:https://github.com/Renegade-Gaming-Collective/nolol-PID-Macros

开源协议:MIT License

下载


nolol-PID-Macros

A PID(proportional integral derivative) library to help create PID code reliably.

Example

Control a Generator with a PID

Library file needed

pid_macros.nolol

How to implement this PID library

First include pid_macros.nolol in your nolol file.

include "pid_macros"

Then use the PidDefines(SetPoint,Kp,Ki,Kd) macro to setup your inital variables and tunings.

Then use the CalcPID(:Input,:Output) macro in a loop to run the PID.

You can define and run more than one PID in the same yolol chip. Just note that it will run slower as it requires more lines to run more PID’s.