48 FIVEPOINTSTENCIL = 1 << 1,
49 THREEPOINTSKEWEDSTENCIL = 1 << 2,
87 std::vector<agx::Real> m_fivePoints;
104 std::vector<agx::Real> m_threePoints;
119 virtual agx::Real getManipulatedVariable()
const override;
122 virtual void setSetPoint(
agx::Real setPoint)
override;
125 virtual agx::Real getSetPoint()
const override;
130 virtual void reset()
override;
133 agx::Real getMeasuredProcessVariable()
const;
140 const agx::Vec2& getManipulatedVariableLimit()
const;
143 void setManipulatedVariableAccelerationLimit(
agx::Real lowerLimit,
agx::Real upperLimit);
147 const agx::Vec2& getManipulatedVariableAccelerationLimit()
const;
154 void setIntegralWindupProtection(
bool doIntegralWindupProtection);
156 bool hasEnabledIntegralWindupProtection()
const;
159 void setIntegralWindupClamping(
agx::Real lowerLimitIntegralTerm,
agx::Real upperLimitIntegralTerm);
163 const agx::Vec2& getIntegralWindupClamping()
const;
166 void enablePidController();
169 void disablePidController();
184 void setProportionalGain(
agx::Real proportionalGain);
190 void setIntegralGain(
agx::Real integralGain);
198 void setIntegralTime(
agx::Real integralTime);
204 void setDerivativeGain(
agx::Real derivativeGain);
212 void setDerivativeTime(
agx::Real derivativeTime);
241 void setDerivationMethod(
Derivative *derivationMethod);
263 agx::Vec2 m_manipulatedVariableAccelerationLimit;
270 std::deque<agx::Real> m_cost;
271 std::deque<agx::TimeStamp> m_costTime;
280 bool m_doIntegralWindupProtection;
283 static const int MAX_COST_HISTORY;
Differentiate a PID controller signal with a two point estimation.
Differentiate a PID controller signal with the "five-point stencil" method.
agx::TimeStamp m_lastTime
#define AGX_DECLARE_POINTER_TYPES(type)
DerivativeThreePointSkewedStencil()
Base class providing referencing counted objects.
Differentiate a PID controller signal with the "three-point stencil" method.
Contain classes for higher level modeling primitives, such as Tree, Terrain etc.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
A simple base class for a controller with a set point and an out signal.
A PID controller with the classic gain coefficients for proportional, integral, and derivative gain...
DerivativeFivePointStencil()