PX4 Firmware
PX4 Autopilot Software http://px4.io
control::BlockLowPassVector< Type, M > Class Template Reference

#include <BlockLowPassVector.hpp>

Inheritance diagram for control::BlockLowPassVector< Type, M >:
Collaboration diagram for control::BlockLowPassVector< Type, M >:

Public Member Functions

 BlockLowPassVector (SuperBlock *parent, const char *name)
 
virtual ~BlockLowPassVector ()=default
 
matrix::Vector< Type, M > update (const matrix::Matrix< Type, M, 1 > &input)
 
matrix::Vector< Type, M > getState ()
 
float getFCut ()
 
void setState (const matrix::Vector< Type, M > &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
 

Private Attributes

matrix::Vector< Type, M > _state
 
control::BlockParamFloat _fCut
 

Additional Inherited Members

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

Detailed Description

template<class Type, size_t M>
class control::BlockLowPassVector< Type, M >

Definition at line 59 of file BlockLowPassVector.hpp.

Constructor & Destructor Documentation

◆ BlockLowPassVector()

template<class Type, size_t M>
control::BlockLowPassVector< Type, M >::BlockLowPassVector ( SuperBlock parent,
const char *  name 
)
inline

Definition at line 63 of file BlockLowPassVector.hpp.

◆ ~BlockLowPassVector()

template<class Type, size_t M>
virtual control::BlockLowPassVector< Type, M >::~BlockLowPassVector ( )
virtualdefault

Member Function Documentation

◆ getFCut()

template<class Type, size_t M>
float control::BlockLowPassVector< Type, M >::getFCut ( )
inline

Definition at line 89 of file BlockLowPassVector.hpp.

◆ getState()

template<class Type, size_t M>
matrix::Vector<Type, M> control::BlockLowPassVector< Type, M >::getState ( )
inline

Definition at line 88 of file BlockLowPassVector.hpp.

Referenced by BlockLocalPositionEstimator::publishGlobalPos(), BlockLocalPositionEstimator::publishLocalPos(), and BlockLocalPositionEstimator::publishOdom().

Here is the caller graph for this function:

◆ setState()

template<class Type, size_t M>
void control::BlockLowPassVector< Type, M >::setState ( const matrix::Vector< Type, M > &  state)
inline

Definition at line 90 of file BlockLowPassVector.hpp.

◆ update()

template<class Type, size_t M>
matrix::Vector<Type, M> control::BlockLowPassVector< Type, M >::update ( const matrix::Matrix< Type, M, 1 > &  input)
inline

Definition at line 74 of file BlockLowPassVector.hpp.

Referenced by BlockLocalPositionEstimator::predict().

Here is the caller graph for this function:

Member Data Documentation

◆ _fCut

template<class Type, size_t M>
control::BlockParamFloat control::BlockLowPassVector< Type, M >::_fCut
private

Definition at line 94 of file BlockLowPassVector.hpp.

◆ _state

template<class Type, size_t M>
matrix::Vector<Type, M> control::BlockLowPassVector< Type, M >::_state
private

Definition at line 93 of file BlockLowPassVector.hpp.


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