93     void add_value(
float val, 
float update_rate);
   125         ret = 
static_cast<uint8_t
>(avg);
   134         ret = 
static_cast<int8_t
>(avg);
 
SimpleAnalyzer(Mode mode, float window=60.0f)
Constructor. 
 
void get_scaled(int8_t &ret, float scalingfactor) const
 
void convert_limit_safe(float in, uint16_t &out)
 
void reset()
Reset the analyzer to the initial state. 
 
void get_scaled(uint8_t &ret, float scalingfactor) const
Get the rounded scaled value casted to the input template type. 
 
float get_scaled(float scalingfactor) const
Get the scaled value of the current result of the analyzer. 
 
Vector< float, 6 > f(float t, const Matrix< float, 6, 1 > &, const Matrix< float, 3, 1 > &)
 
void check_limits(float &x, float min, float max) const
 
constexpr _Tp min(_Tp a, _Tp b)
 
bool valid() const
Returns true if at least one value has been added to the analyzer. 
 
constexpr _Tp max(_Tp a, _Tp b)
 
unsigned int _n
The number of added samples. 
 
void int_round(float &x) const
 
float _result
The result of the analyzed data. 
 
void add_value(float val, float update_rate)
Add a new value to the analyzer and update the result according to the mode. 
 
Mode _mode
The mode of the simple analyzer. 
 
float _window
The window size for the moving average filter [s].