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

An output trim/ saturation block. More...

#include <BlockOutput.hpp>

Inheritance diagram for control::BlockOutput:
Collaboration diagram for control::BlockOutput:

Public Member Functions

 BlockOutput (SuperBlock *parent, const char *name)
 
virtual ~BlockOutput ()=default
 
void update (float input)
 
float getMin ()
 
float getMax ()
 
float getTrim ()
 
float get ()
 
- Public Member Functions inherited from control::SuperBlock
 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
 

Private Attributes

control::BlockParamFloat _trim
 
BlockLimit _limit
 
float _val
 

Additional Inherited Members

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

Detailed Description

An output trim/ saturation block.

Definition at line 60 of file BlockOutput.hpp.

Constructor & Destructor Documentation

◆ BlockOutput()

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

Definition at line 64 of file BlockOutput.hpp.

◆ ~BlockOutput()

virtual control::BlockOutput::~BlockOutput ( )
virtualdefault

Member Function Documentation

◆ get()

float control::BlockOutput::get ( )
inline

Definition at line 82 of file BlockOutput.hpp.

Referenced by control::blockOutputTest(), and blockOutputTest().

Here is the caller graph for this function:

◆ getMax()

float control::BlockOutput::getMax ( )
inline

Definition at line 80 of file BlockOutput.hpp.

Referenced by control::blockOutputTest(), and blockOutputTest().

Here is the caller graph for this function:

◆ getMin()

float control::BlockOutput::getMin ( )
inline

Definition at line 79 of file BlockOutput.hpp.

Referenced by control::blockOutputTest(), and blockOutputTest().

Here is the caller graph for this function:

◆ getTrim()

float control::BlockOutput::getTrim ( )
inline

Definition at line 81 of file BlockOutput.hpp.

◆ update()

void control::BlockOutput::update ( float  input)
inline

Definition at line 74 of file BlockOutput.hpp.

Referenced by control::blockOutputTest(), and blockOutputTest().

Here is the caller graph for this function:

Member Data Documentation

◆ _limit

BlockLimit control::BlockOutput::_limit
private

Definition at line 86 of file BlockOutput.hpp.

◆ _trim

control::BlockParamFloat control::BlockOutput::_trim
private

Definition at line 85 of file BlockOutput.hpp.

◆ _val

float control::BlockOutput::_val
private

Definition at line 87 of file BlockOutput.hpp.


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