Actin®  Version 5.2.0
Software for Robotics Simulation and Control
EcLowPassFilter Class Reference

Low pass filter for online and offline applications. More...

#include <ecLowPassFilter.h>

Public Member Functions

 EcLowPassFilter ()
 constructor
 
 EcLowPassFilter (EcReal timeConstant, EcReal samplingTime)
 
 EcLowPassFilter (EcReal timeConstant, EcReal samplingTime, EcReal oldData)
 
virtual EcReal timeConstant ()
 Get the time constant.
 
virtual void setTimeConstant (EcReal timeConstant)
 Set time constant. More...
 
virtual EcReal samplingTime ()
 Get the sampling time.
 
virtual void setSamplingTime (EcReal samplingTime)
 Set the sampling time. More...
 
virtual void setOldData (EcReal oldData)
 Set old data.
 
virtual EcReal updateOutput (EcReal newData)
 Use this when dealing with on-line signal, one datum at a time.
 
virtual void reset ()
 reset the current and old values
 

Static Public Member Functions

static EcReal output (EcReal newData, EcReal oldData, EcReal samplingTime, EcReal timeConstant)
 static implementation
 

Protected Attributes

EcReal m_TimeConstant
 Filter time constant.
 
EcReal m_SamplingTime
 Filter sampling time.
 
EcReal m_OldData
 Data from previous cycle.
 

Detailed Description

Low pass filter for online and offline applications.

This class implements low pass filters.

Definition at line 18 of file ecLowPassFilter.h.

Member Function Documentation

virtual void EcLowPassFilter::setSamplingTime ( EcReal  samplingTime)
virtual

Set the sampling time.

Parameters
timeConstantTime constant
virtual void EcLowPassFilter::setTimeConstant ( EcReal  timeConstant)
virtual

Set time constant.

Parameters
timeConstantTime constant

The documentation for this class was generated from the following file:
Created by Energid Technologies www.energid.com
Copyright © 2016 Energid. All trademarks mentioned in this document are property of their respective owners.