Barotrauma

Barotrauma

Not enough ratings
PID Component
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
27.901 KB
25 May, 2022 @ 12:57am
1 Change Note ( view )

Subscribe to download
PID Component

Description
lua-driven PID controller
connections are pretty self-explanatory, whe no input is given on kP/kI/kD, stored values are used.
adjust parameters in 1st "memory component" value, format:
kP`kI`kD`control min`control max`absolute integral max`

example of 3-component reactor control (params are subject to tuning):
PID1 params: 0.07`0.001`0.0001`0`100`100` temperature setpoint (4000) -> SP of PID1 reactor temperature out -> PV of PID1 CV of PID1 -> reactor fission rate in PID2 params: 0.14`0.01`0.01`0`100`100` reactor load out -> SP of PID2 reactor output out -> PV of PID2 CV of PID2 -> reactor turbine rate in

update rate seems depend on "Performance Fix" configuration, ymmv
values provided for 15 updates/second

requires "Lua for Barotrauma" mod