Class BaseTalonPIDSetConfiguration
java.lang.Object
com.ctre.phoenix.motorcontrol.can.BasePIDSetConfiguration
com.ctre.phoenix.motorcontrol.can.BaseTalonPIDSetConfiguration
- Direct Known Subclasses:
TalonFXPIDSetConfiguration
,TalonSRXPIDSetConfiguration
public class BaseTalonPIDSetConfiguration extends BasePIDSetConfiguration
Configurables available to TalonSRX's PID
-
Field Summary
Fields Modifier and Type Field Description FeedbackDevice
selectedFeedbackSensor
Feedback device for a particular PID loop.Fields inherited from class com.ctre.phoenix.motorcontrol.can.BasePIDSetConfiguration
selectedFeedbackCoefficient
-
Constructor Summary
Constructors Constructor Description BaseTalonPIDSetConfiguration(FeedbackDevice defaultFeedbackDevice)
-
Method Summary
-
Field Details
-
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 (see below).configs.primaryPID.selectedFeedbackSensor = TalonSRXFeedbackDevice.QuadEncoder.toFeedbackDevice(); configs.primaryPID.selectedFeedbackSensor = TalonFXFeedbackDevice.IntegratedSensor.toFeedbackDevice();
-
-
Constructor Details
-
Method Details
-
toString
- Overrides:
toString
in classBasePIDSetConfiguration
- Returns:
- string representation of configs
-
toString
- Overrides:
toString
in classBasePIDSetConfiguration
- Parameters:
prependString
- String to prepend to configs- Returns:
- String representation of configs
-