#include <sr_math_utils.hpp>
Public Member Functions | |
std::pair< double, double > | compute (double q, double timestamp) |
LowPassFilter (double tau=0.05) | |
Private Attributes | |
double | dt |
bool | is_first |
double | q_prev |
double | tau |
double | timestamp_1 |
std::pair< double, double > | value_derivative |
Definition at line 156 of file sr_math_utils.hpp.
sr_math_utils::filters::LowPassFilter::LowPassFilter | ( | double | tau = 0.05 | ) | [inline] |
Definition at line 159 of file sr_math_utils.hpp.
std::pair<double, double> sr_math_utils::filters::LowPassFilter::compute | ( | double | q, |
double | timestamp | ||
) | [inline] |
Computes the filtered value and its derivative.
q | the newly received value. |
timestamp | the time at which the last measurement was made (in sec). |
Definition at line 175 of file sr_math_utils.hpp.
double sr_math_utils::filters::LowPassFilter::dt [private] |
Definition at line 203 of file sr_math_utils.hpp.
bool sr_math_utils::filters::LowPassFilter::is_first [private] |
Definition at line 199 of file sr_math_utils.hpp.
double sr_math_utils::filters::LowPassFilter::q_prev [private] |
Definition at line 203 of file sr_math_utils.hpp.
double sr_math_utils::filters::LowPassFilter::tau [private] |
Definition at line 203 of file sr_math_utils.hpp.
double sr_math_utils::filters::LowPassFilter::timestamp_1 [private] |
Definition at line 203 of file sr_math_utils.hpp.
std::pair<double, double> sr_math_utils::filters::LowPassFilter::value_derivative [private] |
Definition at line 205 of file sr_math_utils.hpp.