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

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

#include <BlockLowPass.hpp>

Inheritance diagram for control::BlockLowPass:
Collaboration diagram for control::BlockLowPass:

Public Member Functions

 BlockLowPass (SuperBlock *parent, const char *name)
 
virtual ~BlockLowPass ()=default
 
float update (float input)
 
float getState ()
 
float getFCut ()
 
void setState (float state)
 
- 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 _state
 
control::BlockParamFloat _fCut
 
- 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 low pass filter as described here: http://en.wikipedia.org/wiki/Low-pass_filter.

Definition at line 63 of file BlockLowPass.hpp.

Constructor & Destructor Documentation

◆ BlockLowPass()

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

Definition at line 67 of file BlockLowPass.hpp.

◆ ~BlockLowPass()

virtual control::BlockLowPass::~BlockLowPass ( )
virtualdefault

Member Function Documentation

◆ getFCut()

float control::BlockLowPass::getFCut ( )
inline

Definition at line 76 of file BlockLowPass.hpp.

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

Here is the caller graph for this function:

◆ getState()

float control::BlockLowPass::getState ( )
inline

Definition at line 75 of file BlockLowPass.hpp.

Referenced by control::blockLowPassTest(), blockLowPassTest(), BlockLocalPositionEstimator::publishLocalPos(), BlockLocalPositionEstimator::publishOdom(), and update().

Here is the caller graph for this function:

◆ setState()

void control::BlockLowPass::setState ( float  state)
inline

Definition at line 77 of file BlockLowPass.hpp.

References state.

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

Here is the caller graph for this function:

◆ update()

float control::BlockLowPass::update ( float  input)

Definition at line 48 of file BlockLowPass.cpp.

References control::Block::getDt(), getFCut(), getState(), M_PI, and setState().

Referenced by control::blockLowPassTest(), blockLowPassTest(), BlockLocalPositionEstimator::predict(), and control::BlockDerivative::update().

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

Member Data Documentation

◆ _fCut

control::BlockParamFloat control::BlockLowPass::_fCut
protected

Definition at line 81 of file BlockLowPass.hpp.

◆ _state

float control::BlockLowPass::_state
protected

Definition at line 80 of file BlockLowPass.hpp.


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