CTRE Phoenix C++ 5.33.1
ctre::phoenix::motorcontrol::can::BaseTalonPIDSetConfiguration Struct Reference

Configurables available to BaseTalon's PID. More...

#include <ctre/phoenix/motorcontrol/can/BaseTalon.h>

Inheritance diagram for ctre::phoenix::motorcontrol::can::BaseTalonPIDSetConfiguration:
ctre::phoenix::motorcontrol::can::BasePIDSetConfiguration ctre::phoenix::motorcontrol::can::TalonFXPIDSetConfiguration 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
 BasePIDSetConfiguration ()
 
std::string toString ()
 
std::string toString (const std::string &prependString)
 

Public Attributes

FeedbackDevice selectedFeedbackSensor
 Feedback device for a particular PID loop. More...
 
- Public Attributes inherited from ctre::phoenix::motorcontrol::can::BasePIDSetConfiguration
double selectedFeedbackCoefficient
 Feedback coefficient of selected sensor. More...
 

Detailed Description

Configurables available to BaseTalon's PID.

Constructor & Destructor Documentation

◆ BaseTalonPIDSetConfiguration()

ctre::phoenix::motorcontrol::can::BaseTalonPIDSetConfiguration::BaseTalonPIDSetConfiguration ( FeedbackDevice  defaultFeedbackDevice)
inline

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;
@ IntegratedSensor
TalonFX supports an integrated sensor.
FeedbackDevice
Choose the feedback device for a motor controller.
Definition: FeedbackDevice.h:14

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