Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
Controller Class Reference

regulate IIR gain for rapid but smooth tracking of a function. More...

Public Member Functions

 Controller (double initialValue)
 
int ComputeBias (double smoothedValue, double value)
 

Private Member Functions

bool WasOnSameSide (double value) const
 
bool WasSpike () const
 

Static Private Member Functions

static double Change (double from, double to)
 

Private Attributes

double m_history [m_historySize]
 
int m_timesOnSameSide
 

Static Private Attributes

static const size_t m_historySize = 3
 

Detailed Description

regulate IIR gain for rapid but smooth tracking of a function.

this is similar in principle to a PID controller but is tuned for the special case of FPS values to simplify stabilizing the filter.

Definition at line 111 of file frequency_filter.cpp.

Constructor & Destructor Documentation

Controller::Controller ( double  initialValue)
inline

Definition at line 114 of file frequency_filter.cpp.

Member Function Documentation

static double Controller::Change ( double  from,
double  to 
)
inlinestaticprivate

Definition at line 165 of file frequency_filter.cpp.

int Controller::ComputeBias ( double  smoothedValue,
double  value 
)
inline

Definition at line 121 of file frequency_filter.cpp.

bool Controller::WasOnSameSide ( double  value) const
inlineprivate

Definition at line 154 of file frequency_filter.cpp.

bool Controller::WasSpike ( ) const
inlineprivate

Definition at line 171 of file frequency_filter.cpp.

Member Data Documentation

double Controller::m_history[m_historySize]
private

Definition at line 185 of file frequency_filter.cpp.

const size_t Controller::m_historySize = 3
staticprivate

Definition at line 184 of file frequency_filter.cpp.

int Controller::m_timesOnSameSide
private

Definition at line 186 of file frequency_filter.cpp.


The documentation for this class was generated from the following file: