PX4 Firmware
PX4 Autopilot Software http://px4.io
|
A low pass filter as described here: http://en.wikipedia.org/wiki/Low-pass_filter. More...
#include <BlockLowPass.hpp>
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 | |
Block & | operator= (const Block &)=delete |
Block (Block &&)=delete | |
Block & | operator= (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 () |
SuperBlock * | getParent () |
List< BlockParamBase * > & | getParams () |
A low pass filter as described here: http://en.wikipedia.org/wiki/Low-pass_filter.
Definition at line 63 of file BlockLowPass.hpp.
|
inline |
Definition at line 67 of file BlockLowPass.hpp.
|
virtualdefault |
|
inline |
Definition at line 76 of file BlockLowPass.hpp.
Referenced by control::blockLowPassTest(), blockLowPassTest(), and update().
|
inline |
Definition at line 75 of file BlockLowPass.hpp.
Referenced by control::blockLowPassTest(), blockLowPassTest(), BlockLocalPositionEstimator::publishLocalPos(), BlockLocalPositionEstimator::publishOdom(), and update().
|
inline |
Definition at line 77 of file BlockLowPass.hpp.
References state.
Referenced by control::blockLowPassTest(), blockLowPassTest(), and 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().
|
protected |
Definition at line 81 of file BlockLowPass.hpp.
|
protected |
Definition at line 80 of file BlockLowPass.hpp.