27 #ifndef _SR_DEADBAND_HPP_ 28 #define _SR_DEADBAND_HPP_ 48 return (fabs(value) > deadband);
85 double deadband_multiplicator = 5.0,
86 unsigned int nb_errors_for_avg = 50)
91 double avg_error = 0.0;
92 for (
unsigned int i = 0; i <
last_errors.size(); ++i)
115 is_in_deadband =
false;
119 if (fabs(avg_error) > deadband_multiplicator * deadband)
122 is_in_deadband =
false;
129 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