APM:Libraries
|
#include <LowPassFilter.h>
Public Member Functions | |
DigitalLPF () | |
T | apply (const T &sample, float cutoff_freq, float dt) |
T | apply (const T &sample) |
void | compute_alpha (float sample_freq, float cutoff_freq) |
const T & | get () const |
void | reset (T value) |
Private Attributes | |
T | _output |
float | alpha = 1.0f |
Definition at line 52 of file LowPassFilter.h.
DigitalLPF< T >::DigitalLPF | ( | ) |
Definition at line 15 of file LowPassFilter.cpp.
T DigitalLPF< T >::apply | ( | const T & | sample, |
float | cutoff_freq, | ||
float | dt | ||
) |
Definition at line 22 of file LowPassFilter.cpp.
T DigitalLPF< T >::apply | ( | const T & | sample | ) |
Definition at line 34 of file LowPassFilter.cpp.
void DigitalLPF< T >::compute_alpha | ( | float | sample_freq, |
float | cutoff_freq | ||
) |
Definition at line 40 of file LowPassFilter.cpp.
const T & DigitalLPF< T >::get | ( | void | ) | const |
Definition at line 52 of file LowPassFilter.cpp.
void DigitalLPF< T >::reset | ( | T | value | ) |
Definition at line 57 of file LowPassFilter.cpp.
|
private |
Definition at line 66 of file LowPassFilter.h.
|
private |
Definition at line 67 of file LowPassFilter.h.