PX4 Firmware
PX4 Autopilot Software http://px4.io
control::BlockHighPass Class Reference

A high pass filter as described here: http://en.wikipedia.org/wiki/High-pass_filter. More...

#include <BlockHighPass.hpp>

Inheritance diagram for control::BlockHighPass:
Collaboration diagram for control::BlockHighPass:

Public Member Functions

 BlockHighPass (SuperBlock *parent, const char *name)
 
virtual ~BlockHighPass ()=default
 
float update (float input)
 
float getU ()
 
float getY ()
 
float getFCut ()
 
void setU (float u)
 
void setY (float y)
 
- Public Member Functions inherited from control::Block
 Block (SuperBlock *parent, const char *name)
 
virtual ~Block ()=default
 
 Block (const Block &)=delete
 
Blockoperator= (const Block &)=delete
 
 Block (Block &&)=delete
 
Blockoperator= (Block &&)=delete
 
void getName (char *name, size_t n)
 
virtual void updateParams ()
 
virtual void setDt (float dt)
 
float getDt ()
 
- Public Member Functions inherited from ListNode< Block *>
void setSibling (Block * sibling)
 
const Block * getSibling () const
 

Protected Attributes

float _u
 previous input More...
 
float _y
 previous output More...
 
control::BlockParamFloat _fCut
 cut-off frequency, Hz More...
 
- Protected Attributes inherited from control::Block
const char * _name
 
SuperBlock_parent
 
float _dt {0.0f}
 
List< BlockParamBase * > _params
 
- Protected Attributes inherited from ListNode< Block *>
Block * _list_node_sibling
 

Additional Inherited Members

- Protected Member Functions inherited from control::Block
virtual void updateParamsSubclass ()
 
SuperBlockgetParent ()
 
List< BlockParamBase * > & getParams ()
 

Detailed Description

A high pass filter as described here: http://en.wikipedia.org/wiki/High-pass_filter.

Definition at line 62 of file BlockHighPass.hpp.

Constructor & Destructor Documentation

◆ BlockHighPass()

control::BlockHighPass::BlockHighPass ( SuperBlock parent,
const char *  name 
)
inline

Definition at line 66 of file BlockHighPass.hpp.

◆ ~BlockHighPass()

virtual control::BlockHighPass::~BlockHighPass ( )
virtualdefault

Member Function Documentation

◆ getFCut()

float control::BlockHighPass::getFCut ( )
inline

Definition at line 77 of file BlockHighPass.hpp.

Referenced by control::blockHighPassTest(), blockHighPassTest(), and update().

Here is the caller graph for this function:

◆ getU()

float control::BlockHighPass::getU ( )
inline

Definition at line 75 of file BlockHighPass.hpp.

Referenced by control::blockHighPassTest(), blockHighPassTest(), and update().

Here is the caller graph for this function:

◆ getY()

float control::BlockHighPass::getY ( )
inline

Definition at line 76 of file BlockHighPass.hpp.

Referenced by control::blockHighPassTest(), blockHighPassTest(), and update().

Here is the caller graph for this function:

◆ setU()

void control::BlockHighPass::setU ( float  u)
inline

Definition at line 78 of file BlockHighPass.hpp.

Referenced by control::blockHighPassTest(), blockHighPassTest(), and update().

Here is the caller graph for this function:

◆ setY()

void control::BlockHighPass::setY ( float  y)
inline

Definition at line 79 of file BlockHighPass.hpp.

Referenced by control::blockHighPassTest(), blockHighPassTest(), and update().

Here is the caller graph for this function:

◆ update()

float control::BlockHighPass::update ( float  input)

Definition at line 48 of file BlockHighPass.cpp.

References control::Block::getDt(), getFCut(), getU(), getY(), M_PI, setU(), and setY().

Referenced by control::blockHighPassTest(), blockHighPassTest(), and BlockLocalPositionEstimator::flowMeasure().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _fCut

control::BlockParamFloat control::BlockHighPass::_fCut
protected

cut-off frequency, Hz

Definition at line 84 of file BlockHighPass.hpp.

◆ _u

float control::BlockHighPass::_u
protected

previous input

Definition at line 82 of file BlockHighPass.hpp.

◆ _y

float control::BlockHighPass::_y
protected

previous output

Definition at line 83 of file BlockHighPass.hpp.


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