52 m_getProcessVariable = getProcessVariable;
53 m_setManipulatedVariable = setManipulatedVariable;
67 std::function<void(
agx::Real)> m_setManipulatedVariable;
#define AGX_DECLARE_POINTER_TYPES(type)
A simple base class for a controller with a set point and an out signal.
The Plant (aka the Physical System) is added to the ControllHandler in the Control System.
virtual agx::Real getProcessVariable(const agx::TimeStamp &time)
virtual void setManipulatedVariable(agx::Real manipulatedVariable)
Set the Manipulated Variable(MV) controlling the Plant, also known as Control Variable.
Plant(std::function< agx::Real(const agx::TimeStamp &)> getProcessVariable, std::function< void(agx::Real)>setManipulatedVariable)
Create a plant.
This is a PID handler that collects the Plant measured Process Variable (PV) and execute PID update()...
virtual void post(const agx::TimeStamp &time) override
Read Plant measured Process Variable (PV) and execute PID update to get an updated Manipulated Variab...
ControllerHandler(Controller1D *controller, Plant *plant)
PlantRef getPlant() const
Controller1DRef getController() const
Derive from this class to implement a listener for simulation step events.
Base class providing referencing counted objects.
Contain classes for higher level modeling primitives, such as Tree, Terrain etc.