|
tomlankhorst/control
|
#include <pid.h>
Public Member Functions | |
| P (T Kp_=1.0, T Limit_=max< T >()) | |
Public Member Functions inherited from control::classic::AbstractController< T > | |
| AbstractController (T Limit_=max< T >()) | |
| T | step (T e) final |
| void | setLimit (T limit) |
| virtual void | reset () |
Public Attributes | |
| const T | Kp |
Public Attributes inherited from control::classic::AbstractController< T > | |
| T | Limit |
| bool | clipping = false |
Protected Member Functions | |
| T | control (T e) |
Protected Member Functions inherited from control::classic::AbstractController< T > | |
| T | clip (T u) |
Proportional controller
|
inlineexplicit |
Constructor of proportional controller
| Kp_ | Proportional gain |
| Limit_ | Maximum output value |
|
inlineprotectedvirtual |
Retrieves the control output, unclipped
| T | e the error |
Implements control::classic::AbstractController< T >.
1.8.13