CTRE_Phoenix  5.19.4
ctre::phoenix::motorcontrol::can::BaseTalonPIDSetConfiguration Struct Reference

#include <BaseTalon.h>

Inherits ctre::phoenix::motorcontrol::can::BasePIDSetConfiguration.

Inherited by ctre::phoenix::motorcontrol::can::TalonFXPIDSetConfiguration, and ctre::phoenix::motorcontrol::can::TalonSRXPIDSetConfiguration.

Public Member Functions

 BaseTalonPIDSetConfiguration (FeedbackDevice defaultFeedbackDevice)
 
std::string toString ()
 
std::string toString (std::string prependString)
 
- Public Member Functions inherited from ctre::phoenix::motorcontrol::can::BasePIDSetConfiguration
std::string toString ()
 
std::string toString (const std::string &prependString)
 

Public Attributes

FeedbackDevice selectedFeedbackSensor
 
- Public Attributes inherited from ctre::phoenix::motorcontrol::can::BasePIDSetConfiguration
double selectedFeedbackCoefficient
 

Detailed Description

Configurables available to BaseTalon's PID

Member Function Documentation

◆ toString() [1/2]

std::string ctre::phoenix::motorcontrol::can::BaseTalonPIDSetConfiguration::toString ( )
inline
Returns
string representation of configs

◆ toString() [2/2]

std::string ctre::phoenix::motorcontrol::can::BaseTalonPIDSetConfiguration::toString ( std::string  prependString)
inline
Parameters
prependStringString to prepend to configs
Returns
String representation of configs

Member Data Documentation

◆ selectedFeedbackSensor

FeedbackDevice ctre::phoenix::motorcontrol::can::BaseTalonPIDSetConfiguration::selectedFeedbackSensor

Feedback device for a particular PID loop. Note the FeedbackDevice enum holds all possible sensor types. Consult product documentation to confirm what is available. Alternatively the product specific enum can be used instead.

configs.primaryPID.selectedFeedbackSensor = (FeedbackDevice)TalonSRXFeedbackDevice::QuadEncoder;
configs.primaryPID.selectedFeedbackSensor = (FeedbackDevice)TalonFXFeedbackDevice::IntegratedSensor;

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