|
FhSim
3.1.0
Marine systems simulation
|
PID controller for use inside a SimObject, whose integral is a state that FhSim integrates. More...
#include <PidWithExternalState.h>
Out = bound(-(P e + I integral(e) + D de/dt), MinOut, MaxOut). The owner adds one state for the integral, sets its derivative to IntegralRate(), and calls Accept() from AcceptedStep() so that the derivative part differences against the last accepted error.