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

A proportional controller. More...

#include <BlockP.hpp>

Inheritance diagram for control::BlockP:
Collaboration diagram for control::BlockP:

Public Member Functions

 BlockP (SuperBlock *parent, const char *name)
 
virtual ~BlockP ()=default
 
float update (float input)
 
float getKP ()
 
- 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 _kP
 
- 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 proportional controller.

http://en.wikipedia.org/wiki/PID_controller

Definition at line 62 of file BlockP.hpp.

Constructor & Destructor Documentation

◆ BlockP()

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

Definition at line 66 of file BlockP.hpp.

◆ ~BlockP()

virtual control::BlockP::~BlockP ( )
virtualdefault

Member Function Documentation

◆ getKP()

float control::BlockP::getKP ( )
inline

Definition at line 76 of file BlockP.hpp.

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

Here is the caller graph for this function:

◆ update()

float control::BlockP::update ( float  input)
inline

Definition at line 71 of file BlockP.hpp.

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

Here is the caller graph for this function:

Member Data Documentation

◆ _kP

control::BlockParamFloat control::BlockP::_kP
protected

Definition at line 78 of file BlockP.hpp.


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