IndustrialPid

This commit is contained in:
rusefillc 2024-01-21 08:24:04 -05:00
parent 54aa404f65
commit 8262f9e1e7
1 changed files with 19 additions and 0 deletions

View File

@ -239,6 +239,25 @@ TODO: document parameters, response
TODO: document parameters, response
### PID
```
-- p, i, d, min, max
pid = Pid.new(2, 0, 0, -100, 100)
pid:setOffset(0.3)
pid:get(target, input)
pid:reset()
-- p, i, d, min, max
industrialPid = IndustrialPid.new(2, 0, 0, -100, 100)
industrialPid:setOffset(0.3)
industrialPid:setDerivativeFilterLoss(0.3)
industrialPid:setAntiwindupFreq(0.3)
industrialPid:get(target, input)
industrialPid:reset()
```
### Utility
#### `print(msg)`