Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
Better PID
   
Award
Favorite
Favorited
Unfavorite
Vehicles: Air, Sea, Land, Mechanical
Tags: v1.13.3
File Size
Posted
Updated
26.885 KB
Jan 5 @ 4:08pm
Jan 6 @ 5:00pm
2 Change Notes ( view )

Subscribe to download
Better PID

Description
Stormworks PID controller has many problems and often is unusable because of them. This controller tries to deal with it's issues.

1. It includes support for clumping PID control with backcalculating integral component - preventing any integral windup
2. It supports temporary disabling of integral calculation, without also stopping proportional (and derivative) control
3. It uses no lua, so it is fully multiplayer-friendly
4. It is very simple and includes no additional bloat (KISS)

Usage:
1. Connect it where it is needed
2. As any PID, it requires manual tuning. First - proportional coefficient. Please note, this controller uses PID coefficients in standard form[en.wikipedia.org], so "integral time" is proportional gain / integral gain, "derivative time" is derivative gain / proportional gain.
3. Set control output boundaries. Controller will use this boundaries also for integral backcalculation.
4. Enjoy.

Also you might be interested in jet engine tuned version of this controller.

You are allowed to use this controller in your own creations, disassemble, study, reverse-engineer and modify it freely. Attribution is welcome (but not required).