SimpleFOClibrary  2.1
LowPassFilter Class Reference

#include <lowpass_filter.h>

Public Member Functions

 LowPassFilter (float Tf)
 ~LowPassFilter ()=default
float operator() (float x)

Public Attributes

float Tf
 Low pass filter time constant. More...

Protected Attributes

unsigned long timestamp_prev
 Last execution timestamp. More...
float y_prev
 filtered value in previous execution step More...

Detailed Description

Low pass filter class

Definition at line 11 of file lowpass_filter.h.

Constructor & Destructor Documentation

◆ LowPassFilter()

LowPassFilter::LowPassFilter ( float  Tf)
Tf- Low pass filter time constant

Definition at line 3 of file lowpass_filter.cpp.

◆ ~LowPassFilter()

LowPassFilter::~LowPassFilter ( )

Member Function Documentation

◆ operator()()

float LowPassFilter::operator() ( float  x)

Definition at line 11 of file lowpass_filter.cpp.

Member Data Documentation

◆ Tf

float LowPassFilter::Tf

Low pass filter time constant.

Definition at line 21 of file lowpass_filter.h.

◆ timestamp_prev

unsigned long LowPassFilter::timestamp_prev

Last execution timestamp.

Definition at line 24 of file lowpass_filter.h.

◆ y_prev

float LowPassFilter::y_prev

filtered value in previous execution step

Definition at line 25 of file lowpass_filter.h.

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