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

#include <Block.hpp>

Inheritance diagram for control::SuperBlock:
Collaboration diagram for control::SuperBlock:

Public Member Functions

 SuperBlock (SuperBlock *parent, const char *name)
 
 ~SuperBlock ()=default
 
 SuperBlock (const SuperBlock &)=delete
 
SuperBlockoperator= (const SuperBlock &)=delete
 
 SuperBlock (SuperBlock &&)=delete
 
SuperBlockoperator= (SuperBlock &&)=delete
 
void setDt (float dt) override
 
void updateParams () override
 
- 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)
 
float getDt ()
 
- Public Member Functions inherited from ListNode< Block *>
void setSibling (Block * sibling)
 
const Block * getSibling () const
 

Protected Member Functions

List< Block * > & getChildren ()
 
void updateChildParams ()
 
- Protected Member Functions inherited from control::Block
virtual void updateParamsSubclass ()
 
SuperBlockgetParent ()
 
List< BlockParamBase * > & getParams ()
 

Protected Attributes

List< Block * > _children
 
- 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
 

Friends

class Block
 

Detailed Description

Definition at line 94 of file Block.hpp.

Constructor & Destructor Documentation

◆ SuperBlock() [1/3]

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

Definition at line 100 of file Block.hpp.

References dt.

◆ ~SuperBlock()

control::SuperBlock::~SuperBlock ( )
default

◆ SuperBlock() [2/3]

control::SuperBlock::SuperBlock ( const SuperBlock )
delete

◆ SuperBlock() [3/3]

control::SuperBlock::SuperBlock ( SuperBlock &&  )
delete

Member Function Documentation

◆ getChildren()

List<Block *>& control::SuperBlock::getChildren ( )
inlineprotected

Definition at line 119 of file Block.hpp.

Referenced by control::Block::Block().

Here is the caller graph for this function:

◆ operator=() [1/2]

SuperBlock& control::SuperBlock::operator= ( const SuperBlock )
delete

◆ operator=() [2/2]

SuperBlock& control::SuperBlock::operator= ( SuperBlock &&  )
delete

◆ setDt()

void control::SuperBlock::setDt ( float  dt)
overridevirtual

Reimplemented from control::Block.

Definition at line 100 of file Block.cpp.

References control::blockNameLengthMax, control::Block::getName(), ListNode< T >::getSibling(), control::maxChildrenPerBlock, name, and control::Block::setDt().

Referenced by control::blockDerivativeTest(), blockDerivativeTest(), control::blockIntegralTest(), blockIntegralTest(), control::blockIntegralTrapTest(), blockIntegralTrapTest(), blockPDTest(), control::blockPDTest(), blockPIDTest(), control::blockPIDTest(), control::blockPITest(), blockPITest(), MulticopterPositionControl::Run(), and BlockLocalPositionEstimator::Run().

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

◆ updateChildParams()

void control::SuperBlock::updateChildParams ( )
protected

Definition at line 119 of file Block.cpp.

References control::blockNameLengthMax, control::Block::getName(), ListNode< T >::getSibling(), control::maxChildrenPerBlock, name, and control::Block::updateParams().

Here is the call graph for this function:

◆ updateParams()

void control::SuperBlock::updateParams ( )
inlineoverridevirtual

Reimplemented from control::Block.

Definition at line 111 of file Block.hpp.

References control::Block::updateParams().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ Block

friend class Block
friend

Definition at line 98 of file Block.hpp.

Member Data Documentation

◆ _children

List<Block *> control::SuperBlock::_children
protected

Definition at line 122 of file Block.hpp.


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