Koduino
Public Member Functions | List of all members
DLPF Class Reference

Digital autoregressive low pass filter. More...

#include <WMath.h>

Detailed Description

Digital autoregressive low pass filter.

Use by calling DLPF

Public Member Functions

virtual void init (float smooth, float freq, DLPFType type)
 Initialize filter. More...
 
virtual float update (float val)
 Call this at the rate given in freq in init() More...
 

Inherited by PD.

Member Function Documentation

virtual void DLPF::init ( float  smooth,
float  freq,
DLPFType  type 
)
inlinevirtual

Initialize filter.

Parameters
smoothSmoothing factor (0 = no smoothing, 1 = never updates)
freqUpdate frequency in Hz
typeOne of DLPF_ANGRATE, DLPF_RATE, DLPF_SMOOTH, DLPF_INTEGRATE
float DLPF::update ( float  val)
virtual

Call this at the rate given in freq in init()

Parameters
valNew measurement

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