PX4 Firmware
PX4 Autopilot Software http://px4.io
|
#include <BlockParam.hpp>
Public Member Functions | |
BlockParamBase (Block *parent, const char *name, bool parent_prefix=true) | |
Instantiate a block param base. More... | |
virtual | ~BlockParamBase ()=default |
virtual bool | update ()=0 |
const char * | getName () const |
Public Member Functions inherited from ListNode< BlockParamBase *> | |
void | setSibling (BlockParamBase * sibling) |
const BlockParamBase * | getSibling () const |
Protected Attributes | |
param_t | _handle {PARAM_INVALID} |
Protected Attributes inherited from ListNode< BlockParamBase *> | |
BlockParamBase * | _list_node_sibling |
Definition at line 54 of file BlockParam.hpp.
control::BlockParamBase::BlockParamBase | ( | Block * | parent, |
const char * | name, | ||
bool | parent_prefix = true |
||
) |
Instantiate a block param base.
parent_prefix | Set to true to include the parent name in the parameter name |
Definition at line 49 of file BlockParam.cpp.
References _handle, control::blockNameLengthMax, control::Block::getName(), control::Block::getParams(), param_find(), and PARAM_INVALID.
|
virtualdefault |
|
inline |
Definition at line 66 of file BlockParam.hpp.
References _handle, and param_name().
|
pure virtual |
Implemented in control::BlockParam< T >, control::BlockParam< float >, control::BlockParam< T >, control::BlockParam< float >, control::BlockParam< T >, and control::BlockParam< float >.
Referenced by control::Block::updateParams().
|
protected |
Definition at line 69 of file BlockParam.hpp.
Referenced by BlockParamBase(), control::BlockParam< float >::commit(), control::BlockParam< float >::commit_no_notification(), getName(), and control::BlockParam< float >::update().