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

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

#include <info.hpp>

Public Member Functions

const FloatFieldvelocityKp () const
 Proportional PID gain for velocity. More...
 
const FloatFieldvelocityKi () const
 Integral PID gain for velocity. More...
 
const FloatFieldvelocityKd () const
 Derivative PID gain for velocity. More...
 
const FloatFieldvelocityFeedForward () const
 Feed forward term for velocity (this term is multiplied by the target and added to the output). More...
 
const FloatFieldvelocityDeadZone () 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 FloatFieldvelocityIClamp () 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 FloatFieldvelocityPunch () const
 Constant offset to the velocity PID output outside of the deadzone; it is added when the error is positive and subtracted when it is negative. More...
 
const FloatFieldvelocityMinTarget () const
 Minimum allowed value for input to the PID controller. More...
 
const FloatFieldvelocityMaxTarget () const
 Maximum allowed value for input to the PID controller. More...
 
const FloatFieldvelocityTargetLowpass () 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 FloatFieldvelocityMinOutput () const
 Output from the PID controller is limited to a minimum of this value. More...
 
const FloatFieldvelocityMaxOutput () const
 Output from the PID controller is limited to a maximum of this value. More...
 
const FloatFieldvelocityOutputLowpass () 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 BoolFieldvelocityDOnError () 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 velocity PID loop.

Member Function Documentation

const FloatField& hebi::Info::Settings::Actuator::VelocityGains::velocityKp ( ) const
inline

Proportional PID gain for velocity.

const FloatField& hebi::Info::Settings::Actuator::VelocityGains::velocityKi ( ) const
inline

Integral PID gain for velocity.

const FloatField& hebi::Info::Settings::Actuator::VelocityGains::velocityKd ( ) const
inline

Derivative PID gain for velocity.

const FloatField& hebi::Info::Settings::Actuator::VelocityGains::velocityFeedForward ( ) const
inline

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

const FloatField& hebi::Info::Settings::Actuator::VelocityGains::velocityDeadZone ( ) 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::VelocityGains::velocityIClamp ( ) 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::VelocityGains::velocityPunch ( ) const
inline

Constant offset to the velocity 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::VelocityGains::velocityMinTarget ( ) const
inline

Minimum allowed value for input to the PID controller.

const FloatField& hebi::Info::Settings::Actuator::VelocityGains::velocityMaxTarget ( ) const
inline

Maximum allowed value for input to the PID controller.

const FloatField& hebi::Info::Settings::Actuator::VelocityGains::velocityTargetLowpass ( ) 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::VelocityGains::velocityMinOutput ( ) const
inline

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

const FloatField& hebi::Info::Settings::Actuator::VelocityGains::velocityMaxOutput ( ) const
inline

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

const FloatField& hebi::Info::Settings::Actuator::VelocityGains::velocityOutputLowpass ( ) 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::VelocityGains::velocityDOnError ( ) 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: