Skip to content

Class NotchFilter

ClassList > NotchFilter

Public Functions

Type Name
NotchFilter ()
NotchFilter (float32_t Ts, float32_t f0, float32_t bandwidth)
its a band stop filter
float32_t calculateWithReturn (float32_t signal)
uint8_t init (float32_t Ts, float32_t f0, float32_t bandwidth)
initialize the band stop filter parameters
void reset ()

Public Functions Documentation

function NotchFilter [1/2]

inline NotchFilter::NotchFilter () 

function NotchFilter [2/2]

its a band stop filter

NotchFilter::NotchFilter (
    float32_t Ts,
    float32_t f0,
    float32_t bandwidth
) 

Parameters:

  • Ts sample time [s]
  • f0 central frequency to stop [Hz]
  • bandwidth frequency band [Hz] around f0 where gain < -3dB

function calculateWithReturn

float32_t NotchFilter::calculateWithReturn (
    float32_t signal
) 

function init

initialize the band stop filter parameters

uint8_t NotchFilter::init (
    float32_t Ts,
    float32_t f0,
    float32_t bandwidth
) 

Parameters:

  • Ts sample time [s]
  • f0 central frequency to stop in [Hz]
  • bandwidth frequency band [Hz] around f0 where gain < -3dB

function reset

void NotchFilter::reset () 


The documentation for this class was generated from the following file docs/controlLibrary/src/filters.h