CTRE Phoenix Pro C++ 23.0.12

What the gains for slot 1 are. More...
#include <ctre/phoenixpro/configs/Configs.hpp>
Public Member Functions  
std::string  ToString () const 
std::string  Serialize () const 
ctre::phoenix::StatusCode  Deserialize (const std::string &string) 
virtual std::string  ToString () const =0 
virtual ctre::phoenix::StatusCode  Deserialize (const std::string &string)=0 
virtual std::string  Serialize () const =0 
Public Attributes  
double  kP = 0 
Proportional Gain. More...  
double  kI = 0 
Integral Gain. More...  
double  kD = 0 
Derivative Gain. More...  
double  kV = 0 
Velocity Feed Forward Gain. More...  
double  kS = 0 
Static Constant. More...  
What the gains for slot 1 are.
If this slot is selected, these gains are used in closed loop control requests.

inlinevirtual 
Implements ctre::phoenixpro::configs::ParentConfiguration.

inlinevirtual 
Implements ctre::phoenixpro::ISerializable.

inlinevirtual 
Implements ctre::phoenixpro::configs::ParentConfiguration.
double ctre::phoenixpro::configs::Slot1Configs::kD = 0 
Derivative Gain.
The units for this gain is dependent on the control mode. Since this gain is multiplied by the derivative of error in the input with respect to time (in units of seconds), the units should be defined as units of output per unit of the differentiated input error. For example, when controlling velocity using a duty cycle closed loop, the derivative of velocity with respect to time is rps/s, which is acceleration. Therefore, the units for the derivative gain will be duty cycle per unit of acceleration error, or 1/(rps/s).
Minimum Value: 0 Maximum Value: 3.4e+38 Default Value: 0 Units:
double ctre::phoenixpro::configs::Slot1Configs::kI = 0 
Integral Gain.
The units for this gain is dependent on the control mode. Since this gain is multiplied by error in the input integrated over time (in units of seconds), the units should be defined as units of output per unit of integrated input error. For example, when controlling velocity using a duty cycle closed loop, integrating velocity over time results in rps * s = rotations. Therefore, the units for the integral gain will be duty cycle per rotation of accumulated error, or 1/rot.
Minimum Value: 0 Maximum Value: 3.4e+38 Default Value: 0 Units:
double ctre::phoenixpro::configs::Slot1Configs::kP = 0 
Proportional Gain.
The units for this gain is dependent on the control mode. Since this gain is multiplied by error in the input, the units should be defined as units of output per unit of input error. For example, when controlling velocity using a duty cycle closed loop, the units for the proportional gain will be duty cycle per rps, or 1/rps.
Minimum Value: 0 Maximum Value: 3.4e+38 Default Value: 0 Units:
double ctre::phoenixpro::configs::Slot1Configs::kS = 0 
Static Constant.
This is added to the closed loop output. The sign is determined by target velocity. The unit for this constant is dependent on the control mode, typically fractional duty cycle, voltage, or torque current.
Minimum Value: 512 Maximum Value: 511 Default Value: 0 Units:
double ctre::phoenixpro::configs::Slot1Configs::kV = 0 
Velocity Feed Forward Gain.
The units for this gain is dependent on the control mode. Since this gain is multiplied by the requested velocity, the units should be defined as units of output per unit of requested input velocity. For example, when controlling velocity using a duty cycle closed loop, the units for the velocity feed foward gain will be duty cycle per requested rps, or 1/rps.
Minimum Value: 0 Maximum Value: 3.4e+38 Default Value: 0 Units: