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

#include <BlockStats.hpp>

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

Public Member Functions

 BlockStats (SuperBlock *parent, const char *name)
 
virtual ~BlockStats ()=default
 
void update (const matrix::Vector< Type, M > &u)
 
void reset ()
 
size_t getCount ()
 
matrix::Vector< Type, M > getMean ()
 
matrix::Vector< Type, M > getVar ()
 
matrix::Vector< Type, M > getStdDev ()
 
- 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 > _sum
 
matrix::Vector< Type, M > _sumSq
 
size_t _count
 

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::BlockStats< Type, M >

Definition at line 58 of file BlockStats.hpp.

Constructor & Destructor Documentation

◆ BlockStats()

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

Definition at line 63 of file BlockStats.hpp.

◆ ~BlockStats()

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

Member Function Documentation

◆ getCount()

template<class Type, size_t M>
size_t control::BlockStats< Type, M >::getCount ( )
inline

Definition at line 84 of file BlockStats.hpp.

Referenced by BlockLocalPositionEstimator::baroInit(), BlockLocalPositionEstimator::flowInit(), BlockLocalPositionEstimator::gpsInit(), BlockLocalPositionEstimator::lidarInit(), BlockLocalPositionEstimator::mocapInit(), BlockLocalPositionEstimator::sonarInit(), and BlockLocalPositionEstimator::visionInit().

Here is the caller graph for this function:

◆ getMean()

template<class Type, size_t M>
matrix::Vector<Type, M> control::BlockStats< Type, M >::getMean ( )
inline

◆ getStdDev()

template<class Type, size_t M>
matrix::Vector<Type, M> control::BlockStats< Type, M >::getStdDev ( )
inline

Definition at line 90 of file BlockStats.hpp.

Referenced by BlockLocalPositionEstimator::baroInit(), blockStatsTest(), control::blockStatsTest(), BlockLocalPositionEstimator::flowInit(), BlockLocalPositionEstimator::lidarInit(), BlockLocalPositionEstimator::mocapInit(), BlockLocalPositionEstimator::sonarInit(), and BlockLocalPositionEstimator::visionInit().

Here is the caller graph for this function:

◆ getVar()

template<class Type, size_t M>
matrix::Vector<Type, M> control::BlockStats< Type, M >::getVar ( )
inline

Definition at line 86 of file BlockStats.hpp.

◆ reset()

◆ update()

template<class Type, size_t M>
void control::BlockStats< Type, M >::update ( const matrix::Vector< Type, M > &  u)
inline

Member Data Documentation

◆ _count

template<class Type, size_t M>
size_t control::BlockStats< Type, M >::_count
private

Definition at line 98 of file BlockStats.hpp.

◆ _sum

template<class Type, size_t M>
matrix::Vector<Type, M> control::BlockStats< Type, M >::_sum
private

Definition at line 96 of file BlockStats.hpp.

◆ _sumSq

template<class Type, size_t M>
matrix::Vector<Type, M> control::BlockStats< Type, M >::_sumSq
private

Definition at line 97 of file BlockStats.hpp.


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