|
PX4 Firmware
PX4 Autopilot Software http://px4.io
|
A high pass filter as described here: http://en.wikipedia.org/wiki/High-pass_filter. More...
#include <BlockHighPass.hpp>
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 | |
| 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 | _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 () |
| SuperBlock * | getParent () |
| List< BlockParamBase * > & | getParams () |
A high pass filter as described here: http://en.wikipedia.org/wiki/High-pass_filter.
Definition at line 62 of file BlockHighPass.hpp.
|
inline |
Definition at line 66 of file BlockHighPass.hpp.
|
virtualdefault |
|
inline |
Definition at line 77 of file BlockHighPass.hpp.
Referenced by control::blockHighPassTest(), blockHighPassTest(), and update().
|
inline |
Definition at line 75 of file BlockHighPass.hpp.
Referenced by control::blockHighPassTest(), blockHighPassTest(), and update().
|
inline |
Definition at line 76 of file BlockHighPass.hpp.
Referenced by control::blockHighPassTest(), blockHighPassTest(), and update().
|
inline |
Definition at line 78 of file BlockHighPass.hpp.
Referenced by control::blockHighPassTest(), blockHighPassTest(), and update().
|
inline |
Definition at line 79 of file BlockHighPass.hpp.
Referenced by control::blockHighPassTest(), blockHighPassTest(), and 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().
|
protected |
cut-off frequency, Hz
Definition at line 84 of file BlockHighPass.hpp.
|
protected |
previous input
Definition at line 82 of file BlockHighPass.hpp.
|
protected |
previous output
Definition at line 83 of file BlockHighPass.hpp.