26 #ifndef _SR_DEADBAND_HPP_ 27 #define _SR_DEADBAND_HPP_ 47 return (fabs(value) > deadband);
84 double deadband_multiplicator = 5.0,
85 unsigned int nb_errors_for_avg = 50)
90 double avg_error = 0.0;
91 for (
unsigned int i = 0; i <
last_errors.size(); ++i)
114 is_in_deadband =
false;
118 if (fabs(avg_error) > deadband_multiplicator * deadband)
121 is_in_deadband =
false;
128 is_in_deadband =
true;
static bool simple_deadband(T value, T deadband)
bool is_in_deadband(T demand, T error, T deadband, double deadband_multiplicator=5.0, unsigned int nb_errors_for_avg=50)
bool entered_small_deadband
This is a header library used to implement some useful math functions. It is used in our different pa...
std::deque< T > last_errors