libstp
Robotics library for Botball
Loading...
Searching...
No Matches
libstp::autotune::control::ControlElementDeadTime Class Referencefinal

Pure transport delay. Port of ControlElementDeadTime.ts. More...

#include <control_elements.hpp>

Inheritance diagram for libstp::autotune::control::ControlElementDeadTime:
[legend]
Collaboration diagram for libstp::autotune::control::ControlElementDeadTime:
[legend]

Public Member Functions

 ControlElementDeadTime (double t)
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 dt) 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 > &params, int startIdx) override
 Load parameters from params starting at startIdx.
Public Member Functions inherited from libstp::autotune::control::ControlElement
virtual ~ControlElement ()=default

Detailed Description

Pure transport delay. Port of ControlElementDeadTime.ts.

Definition at line 219 of file control_elements.hpp.

Constructor & Destructor Documentation

◆ ControlElementDeadTime()

libstp::autotune::control::ControlElementDeadTime::ControlElementDeadTime ( double t)
explicit

Member Function Documentation

◆ calculate()

double libstp::autotune::control::ControlElementDeadTime::calculate ( double u,
double dt )
overridevirtual

Advance one sample: feed input u, return output.

Implements libstp::autotune::control::ControlElement.

◆ getLowestTimeConstant()

double libstp::autotune::control::ControlElementDeadTime::getLowestTimeConstant ( ) const
inlinenodiscardoverridevirtual

Lowest time constant of the element, or -1 if it has none.

Implements libstp::autotune::control::ControlElement.

Definition at line 225 of file control_elements.hpp.

◆ getType()

std::string libstp::autotune::control::ControlElementDeadTime::getType ( ) const
inlinenodiscardoverridevirtual

Short type tag, e.g. "P", "PT1", "ControlLoop".

Implements libstp::autotune::control::ControlElement.

Definition at line 224 of file control_elements.hpp.

◆ initialize()

void libstp::autotune::control::ControlElementDeadTime::initialize ( double dt)
overridevirtual

Reset internal state for a simulation run at sample time dt.

Implements libstp::autotune::control::ControlElement.

◆ optimizeGetNumParameters()

int libstp::autotune::control::ControlElementDeadTime::optimizeGetNumParameters ( ) const
inlinenodiscardoverridevirtual

Number of tunable parameters this element consumes.

Implements libstp::autotune::control::ControlElement.

Definition at line 228 of file control_elements.hpp.

◆ optimizeSetParameters()

void libstp::autotune::control::ControlElementDeadTime::optimizeSetParameters ( const std::vector< double > & params,
int startIdx )
overridevirtual

Load parameters from params starting at startIdx.

Implements libstp::autotune::control::ControlElement.


The documentation for this class was generated from the following file:
  • /home/runner/work/raccoon-lib/raccoon-lib/modules/libstp-autotune/include/autotune/control/control_elements.hpp