#include <sr_math_utils.hpp>
Definition at line 158 of file sr_math_utils.hpp.
sr_math_utils::filters::LowPassFilter::LowPassFilter |
( |
double |
tau = 0.05 | ) |
|
|
inlineexplicit |
std::pair<double, double> sr_math_utils::filters::LowPassFilter::compute |
( |
double |
q, |
|
|
double |
timestamp |
|
) |
| |
|
inline |
Computes the filtered value and its derivative.
- Parameters
-
q | the newly received value. |
timestamp | the time at which the last measurement was made (in sec). |
- Returns
- a pair containing the filtered value first, then the derivative.
Definition at line 178 of file sr_math_utils.hpp.
double sr_math_utils::filters::LowPassFilter::dt |
|
private |
bool sr_math_utils::filters::LowPassFilter::is_first |
|
private |
double sr_math_utils::filters::LowPassFilter::q_prev |
|
private |
double sr_math_utils::filters::LowPassFilter::tau |
|
private |
double sr_math_utils::filters::LowPassFilter::timestamp_1 |
|
private |
std::pair<double, double> sr_math_utils::filters::LowPassFilter::value_derivative |
|
private |
The documentation for this class was generated from the following file: