|
libstp
Robotics library for Botball
|
Second-order lag. Port of ControlElementPT2.ts. More...
#include <control_elements.hpp>
Public Member Functions | |
| ControlElementPT2 (double k, double t, double d) | |
| std::string | getType () const override |
| Short type tag, e.g. "P", "PT1", "ControlLoop". | |
| double | getLowestTimeConstant () const override |
| Lowest time constant of the element, or -1 if it has none. | |
| void | initialize (double) override |
Reset internal state for a simulation run at sample time dt. | |
| double | calculate (double u, double dt) override |
Advance one sample: feed input u, return output. | |
| int | optimizeGetNumParameters () const override |
| Number of tunable parameters this element consumes. | |
| void | optimizeSetParameters (const std::vector< double > ¶ms, int startIdx) override |
Load parameters from params starting at startIdx. | |
| Public Member Functions inherited from libstp::autotune::control::ControlElement | |
| virtual | ~ControlElement ()=default |
Second-order lag. Port of ControlElementPT2.ts.
Definition at line 95 of file control_elements.hpp.
| libstp::autotune::control::ControlElementPT2::ControlElementPT2 | ( | double | k, |
| double | t, | ||
| double | d ) |
|
overridevirtual |
Advance one sample: feed input u, return output.
Implements libstp::autotune::control::ControlElement.
|
inlinenodiscardoverridevirtual |
Lowest time constant of the element, or -1 if it has none.
Implements libstp::autotune::control::ControlElement.
Definition at line 101 of file control_elements.hpp.
|
inlinenodiscardoverridevirtual |
Short type tag, e.g. "P", "PT1", "ControlLoop".
Implements libstp::autotune::control::ControlElement.
Definition at line 100 of file control_elements.hpp.
|
inlineoverridevirtual |
Reset internal state for a simulation run at sample time dt.
Implements libstp::autotune::control::ControlElement.
Definition at line 102 of file control_elements.hpp.
|
inlinenodiscardoverridevirtual |
Number of tunable parameters this element consumes.
Implements libstp::autotune::control::ControlElement.
Definition at line 104 of file control_elements.hpp.
|
overridevirtual |
Load parameters from params starting at startIdx.
Implements libstp::autotune::control::ControlElement.