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

A limiter/ saturation. More...

#include <BlockLimit.hpp>

Inheritance diagram for control::BlockLimit:
Collaboration diagram for control::BlockLimit:

Public Member Functions

 BlockLimit (SuperBlock *parent, const char *name)
 
virtual ~BlockLimit ()=default
 
float update (float input)
 
float getMin ()
 
float getMax ()
 
- 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
 

Protected Attributes

control::BlockParamFloat _min
 
control::BlockParamFloat _max
 
- 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 ()
 
SuperBlockgetParent ()
 
List< BlockParamBase * > & getParams ()
 

Detailed Description

A limiter/ saturation.

The output of update is the input, bounded by min/max.

Definition at line 63 of file BlockLimit.hpp.

Constructor & Destructor Documentation

◆ BlockLimit()

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

Definition at line 67 of file BlockLimit.hpp.

◆ ~BlockLimit()

virtual control::BlockLimit::~BlockLimit ( )
virtualdefault

Member Function Documentation

◆ getMax()

float control::BlockLimit::getMax ( )
inline

Definition at line 76 of file BlockLimit.hpp.

Referenced by control::blockLimitTest(), blockLimitTest(), and update().

Here is the caller graph for this function:

◆ getMin()

float control::BlockLimit::getMin ( )
inline

Definition at line 75 of file BlockLimit.hpp.

Referenced by control::blockLimitTest(), blockLimitTest(), and update().

Here is the caller graph for this function:

◆ update()

float control::BlockLimit::update ( float  input)

Definition at line 48 of file BlockLimit.cpp.

References _max, control::BlockParam< T >::get(), getMax(), and getMin().

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

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

Member Data Documentation

◆ _max

control::BlockParamFloat control::BlockLimit::_max
protected

Definition at line 80 of file BlockLimit.hpp.

Referenced by update().

◆ _min

control::BlockParamFloat control::BlockLimit::_min
protected

Definition at line 79 of file BlockLimit.hpp.


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