33 #ifndef INTEGRATOR_HPP 34 #define INTEGRATOR_HPP 88 double y = _dx -
comp_;
101 #endif // STATE_FEEDBACK_HPP void reset(const double &_x0)
resets the integrated value and compensation variable.
Integrator & operator=(const Integrator &)=default
double x_
Integrated value.
const double & intOutput() const
Returns the integrator value.
void integrate(const double &_dx)
Addds a new value to the integrated value.
double comp_
Summation compensation variable.
virtual ~Integrator()=default
Minimal class performing numerically stable integration (using the Kahan summation algorithm)...