HEBI C++ API  1.0.0-rc1
hebi::Info::Settings::Actuator::PositionGains Class Referencefinal

Controller gains for the position PID loop. More...

#include <info.hpp>

Public Member Functions

const FloatFieldpositionKp () const
 Proportional PID gain for position. More...
 
const FloatFieldpositionKi () const
 Integral PID gain for position. More...
 
const FloatFieldpositionKd () const
 Derivative PID gain for position. More...
 
const FloatFieldpositionFeedForward () const
 Feed forward term for position (this term is multiplied by the target and added to the output). More...
 
const FloatFieldpositionDeadZone () const
 Error values within +/- this value from zero are treated as zero (in terms of computed proportional output, input to numerical derivative, and accumulated integral error). More...
 
const FloatFieldpositionIClamp () const
 Maximum allowed value for the output of the integral component of the PID loop; the integrated error is not allowed to exceed value that will generate this number. More...
 
const FloatFieldpositionPunch () const
 Constant offset to the position PID output outside of the deadzone; it is added when the error is positive and subtracted when it is negative. More...
 
const FloatFieldpositionMinTarget () const
 Minimum allowed value for input to the PID controller. More...
 
const FloatFieldpositionMaxTarget () const
 Maximum allowed value for input to the PID controller. More...
 
const FloatFieldpositionTargetLowpass () const
 A simple lowpass filter applied to the target set point; needs to be between 0 and 1. At each timestep: x_t = x_t * a + x_{t-1} * (1 - a). More...
 
const FloatFieldpositionMinOutput () const
 Output from the PID controller is limited to a minimum of this value. More...
 
const FloatFieldpositionMaxOutput () const
 Output from the PID controller is limited to a maximum of this value. More...
 
const FloatFieldpositionOutputLowpass () const
 A simple lowpass filter applied to the controller output; needs to be between 0 and 1. At each timestep: x_t = x_t * a + x_{t-1} * (1 - a). More...
 
const BoolFieldpositionDOnError () const
 Controls whether the Kd term uses the "derivative of error" or "derivative of measurement." When the setpoints have step inputs or are noisy, setting this to false can eliminate corresponding spikes or noise in the output. More...
 

Detailed Description

Controller gains for the position PID loop.

Member Function Documentation

const FloatField& hebi::Info::Settings::Actuator::PositionGains::positionKp ( ) const
inline

Proportional PID gain for position.

const FloatField& hebi::Info::Settings::Actuator::PositionGains::positionKi ( ) const
inline

Integral PID gain for position.

const FloatField& hebi::Info::Settings::Actuator::PositionGains::positionKd ( ) const
inline

Derivative PID gain for position.

const FloatField& hebi::Info::Settings::Actuator::PositionGains::positionFeedForward ( ) const
inline

Feed forward term for position (this term is multiplied by the target and added to the output).

const FloatField& hebi::Info::Settings::Actuator::PositionGains::positionDeadZone ( ) const
inline

Error values within +/- this value from zero are treated as zero (in terms of computed proportional output, input to numerical derivative, and accumulated integral error).

const FloatField& hebi::Info::Settings::Actuator::PositionGains::positionIClamp ( ) const
inline

Maximum allowed value for the output of the integral component of the PID loop; the integrated error is not allowed to exceed value that will generate this number.

const FloatField& hebi::Info::Settings::Actuator::PositionGains::positionPunch ( ) const
inline

Constant offset to the position PID output outside of the deadzone; it is added when the error is positive and subtracted when it is negative.

const FloatField& hebi::Info::Settings::Actuator::PositionGains::positionMinTarget ( ) const
inline

Minimum allowed value for input to the PID controller.

const FloatField& hebi::Info::Settings::Actuator::PositionGains::positionMaxTarget ( ) const
inline

Maximum allowed value for input to the PID controller.

const FloatField& hebi::Info::Settings::Actuator::PositionGains::positionTargetLowpass ( ) const
inline

A simple lowpass filter applied to the target set point; needs to be between 0 and 1. At each timestep: x_t = x_t * a + x_{t-1} * (1 - a).

const FloatField& hebi::Info::Settings::Actuator::PositionGains::positionMinOutput ( ) const
inline

Output from the PID controller is limited to a minimum of this value.

const FloatField& hebi::Info::Settings::Actuator::PositionGains::positionMaxOutput ( ) const
inline

Output from the PID controller is limited to a maximum of this value.

const FloatField& hebi::Info::Settings::Actuator::PositionGains::positionOutputLowpass ( ) const
inline

A simple lowpass filter applied to the controller output; needs to be between 0 and 1. At each timestep: x_t = x_t * a + x_{t-1} * (1 - a).

const BoolField& hebi::Info::Settings::Actuator::PositionGains::positionDOnError ( ) const
inline

Controls whether the Kd term uses the "derivative of error" or "derivative of measurement." When the setpoints have step inputs or are noisy, setting this to false can eliminate corresponding spikes or noise in the output.


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