OnePoleQuaternion Class Reference

One-pole quaternion filter. More...

#include <math/gzmath.hh>

Inherits OnePole< math::Quaternion >.

Public Member Functions

 OnePoleQuaternion ()
 Constructor. More...
 
 OnePoleQuaternion (double _fc, double _fs)
 Constructor. More...
 
virtual const math::QuaternionGetValue ()
 Get the output of the filter. More...
 
const math::QuaternionProcess (const math::Quaternion &_x)
 Update the filter's output. More...
 
virtual void SetFc (double _fc, double _fs)
 Set the cutoff frequency and sample rate. More...
 
virtual void SetValue (const math::Quaternion &_val)
 Set the output of the filter. More...
 

Protected Attributes

double a0
 Input gain control. More...
 
double b1
 Gain of the feedback. More...
 
math::Quaternion y0
 Output. More...
 

Detailed Description

One-pole quaternion filter.

Constructor & Destructor Documentation

§ OnePoleQuaternion() [1/2]

OnePoleQuaternion ( )
inline

Constructor.

References Filter< T >::SetValue().

§ OnePoleQuaternion() [2/2]

OnePoleQuaternion ( double  _fc,
double  _fs 
)
inline

Constructor.

Parameters
[in]_fcCutoff frequency.
[in]_fsSample rate.

References Filter< T >::SetValue().

Member Function Documentation

§ GetValue()

virtual const math::Quaternion & GetValue ( )
inlinevirtualinherited

Get the output of the filter.

Returns
Filter's output.

§ Process()

const math::Quaternion& Process ( const math::Quaternion _x)
inline

Update the filter's output.

[in] _x Input value.

Returns
The filter's current output.

References Quaternion::Slerp(), and Filter< T >::y0.

§ SetFc()

virtual void SetFc ( double  _fc,
double  _fs 
)
inlinevirtualinherited

Set the cutoff frequency and sample rate.

Parameters
[in]_fcCutoff frequency.
[in]_fsSample rate.

Implements Filter< math::Quaternion >.

§ SetValue()

virtual void SetValue ( const math::Quaternion _val)
inlinevirtualinherited

Set the output of the filter.

Parameters
[in]_valNew value.

Member Data Documentation

§ a0

double a0
protectedinherited

Input gain control.

§ b1

double b1
protectedinherited

Gain of the feedback.

§ y0

math::Quaternion y0
protectedinherited

Output.


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