A one-pole DSP filter. More...
#include <math/gzmath.hh>


| Public Member Functions | |
| OnePole () | |
| Constructor.  More... | |
| OnePole (double _fc, double _fs) | |
| Constructor.  More... | |
| const T & | Process (const T &_x) | 
| Update the filter's output.  More... | |
| virtual void | SetFc (double _fc, double _fs) | 
| Set the cutoff frequency and sample rate.  More... | |
|  Public Member Functions inherited from gazebo::math::Filter< T > | |
| virtual | ~Filter () | 
| Destructor.  More... | |
| virtual const T & | GetValue () | 
| Get the output of the filter.  More... | |
| virtual void | SetValue (const T &_val) | 
| Set the output of the filter.  More... | |
| Protected Attributes | |
| double | a0 | 
| Input gain control.  More... | |
| double | b1 | 
| Gain of the feedback.  More... | |
|  Protected Attributes inherited from gazebo::math::Filter< T > | |
| T | y0 | 
| Output.  More... | |
A one-pole DSP filter.
| 
 | inline | 
Constructor.
| 
 | inline | 
Constructor.
| [in] | _fc | Cutoff frequency. | 
| [in] | _fs | Sample rate. | 
| 
 | inline | 
Update the filter's output.
[in] _x Input value.
| 
 | inlinevirtual | 
Set the cutoff frequency and sample rate.
| [in] | _fc | Cutoff frequency. | 
| [in] | _fs | Sample rate. | 
Implements gazebo::math::Filter< T >.
| 
 | protected | 
Input gain control.
| 
 | protected | 
Gain of the feedback.