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

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

#include <command.hpp>

Public Member Functions

FloatFieldpositionKp ()
 Proportional PID gain for position. More...
 
const FloatFieldpositionKp () const
 Proportional PID gain for position. More...
 
FloatFieldpositionKi ()
 Integral PID gain for position. More...
 
const FloatFieldpositionKi () const
 Integral PID gain for position. More...
 
FloatFieldpositionKd ()
 Derivative PID gain for position. More...
 
const FloatFieldpositionKd () const
 Derivative PID gain for position. More...
 
FloatFieldpositionFeedForward ()
 Feed forward term for position (this term is multiplied by the target and added to the output). More...
 
const FloatFieldpositionFeedForward () const
 Feed forward term for position (this term is multiplied by the target and added to the output). More...
 
FloatFieldpositionDeadZone ()
 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 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...
 
FloatFieldpositionIClamp ()
 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 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...
 
FloatFieldpositionPunch ()
 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 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...
 
FloatFieldpositionMinTarget ()
 Minimum allowed value for input to the PID controller. More...
 
const FloatFieldpositionMinTarget () const
 Minimum allowed value for input to the PID controller. More...
 
FloatFieldpositionMaxTarget ()
 Maximum allowed value for input to the PID controller. More...
 
const FloatFieldpositionMaxTarget () const
 Maximum allowed value for input to the PID controller. More...
 
FloatFieldpositionTargetLowpass ()
 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 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...
 
FloatFieldpositionMinOutput ()
 Output from the PID controller is limited to a minimum of this value. More...
 
const FloatFieldpositionMinOutput () const
 Output from the PID controller is limited to a minimum of this value. More...
 
FloatFieldpositionMaxOutput ()
 Output from the PID controller is limited to a maximum of this value. More...
 
const FloatFieldpositionMaxOutput () const
 Output from the PID controller is limited to a maximum of this value. More...
 
FloatFieldpositionOutputLowpass ()
 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 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...
 
BoolFieldpositionDOnError ()
 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...
 
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

FloatField& hebi::Command::Settings::Actuator::PositionGains::positionKp ( )
inline

Proportional PID gain for position.

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

Proportional PID gain for position.

FloatField& hebi::Command::Settings::Actuator::PositionGains::positionKi ( )
inline

Integral PID gain for position.

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

Integral PID gain for position.

FloatField& hebi::Command::Settings::Actuator::PositionGains::positionKd ( )
inline

Derivative PID gain for position.

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

Derivative PID gain for position.

FloatField& hebi::Command::Settings::Actuator::PositionGains::positionFeedForward ( )
inline

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

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

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

FloatField& hebi::Command::Settings::Actuator::PositionGains::positionDeadZone ( )
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::Command::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).

FloatField& hebi::Command::Settings::Actuator::PositionGains::positionIClamp ( )
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::Command::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.

FloatField& hebi::Command::Settings::Actuator::PositionGains::positionPunch ( )
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::Command::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.

FloatField& hebi::Command::Settings::Actuator::PositionGains::positionMinTarget ( )
inline

Minimum allowed value for input to the PID controller.

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

Minimum allowed value for input to the PID controller.

FloatField& hebi::Command::Settings::Actuator::PositionGains::positionMaxTarget ( )
inline

Maximum allowed value for input to the PID controller.

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

Maximum allowed value for input to the PID controller.

FloatField& hebi::Command::Settings::Actuator::PositionGains::positionTargetLowpass ( )
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::Command::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).

FloatField& hebi::Command::Settings::Actuator::PositionGains::positionMinOutput ( )
inline

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

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

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

FloatField& hebi::Command::Settings::Actuator::PositionGains::positionMaxOutput ( )
inline

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

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

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

FloatField& hebi::Command::Settings::Actuator::PositionGains::positionOutputLowpass ( )
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 FloatField& hebi::Command::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).

BoolField& hebi::Command::Settings::Actuator::PositionGains::positionDOnError ( )
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.

const BoolField& hebi::Command::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: