Class BaseTalonConfiguration
java.lang.Object
com.ctre.phoenix.CustomParamConfiguration
com.ctre.phoenix.motorcontrol.can.BaseMotorControllerConfiguration
com.ctre.phoenix.motorcontrol.can.BaseTalonConfiguration
- Direct Known Subclasses:
TalonFXConfiguration
,TalonSRXConfiguration
public class BaseTalonConfiguration extends BaseMotorControllerConfiguration
Configurables available to TalonSRX
-
Field Summary
Fields Modifier and Type Field Description BaseTalonPIDSetConfiguration
auxiliaryPID
Auxiliary PID configurationFeedbackDevice
diff0Term
Feedback Device for Diff 0 Term Note the FeedbackDevice enum holds all possible sensor types.FeedbackDevice
diff1Term
Feedback Device for Diff 1 Term Note the FeedbackDevice enum holds all possible sensor types.int
forwardLimitSwitchDeviceID
Forward limit switch device ID Limit Switch device id isn't used unless device is a remoteLimitSwitchNormal
forwardLimitSwitchNormal
Forward limit switch normally open/closedLimitSwitchSource
forwardLimitSwitchSource
Forward Limit Switch Source User can choose between the feedback connector, remote Talon SRX, CANifier, or deactivate the featureBaseTalonPIDSetConfiguration
primaryPID
Primary PID configurationint
reverseLimitSwitchDeviceID
Reverse limit switch device ID Limit Switch device id isn't used unless device is a remoteLimitSwitchNormal
reverseLimitSwitchNormal
Reverse limit switch normally open/closedLimitSwitchSource
reverseLimitSwitchSource
Reverse Limit Switch Source User can choose between the feedback connector, remote Talon SRX, CANifier, or deactivate the featureFeedbackDevice
sum0Term
Feedback Device for Sum 0 Term Note the FeedbackDevice enum holds all possible sensor types.FeedbackDevice
sum1Term
Feedback Device for Sum 1 Term Note the FeedbackDevice enum holds all possible sensor types.Fields inherited from class com.ctre.phoenix.motorcontrol.can.BaseMotorControllerConfiguration
auxPIDPolarity, clearPositionOnLimitF, clearPositionOnLimitR, clearPositionOnQuadIdx, closedloopRamp, feedbackNotContinuous, forwardSoftLimitEnable, forwardSoftLimitThreshold, limitSwitchDisableNeutralOnLOS, motionAcceleration, motionCruiseVelocity, motionCurveStrength, motionProfileTrajectoryPeriod, neutralDeadband, nominalOutputForward, nominalOutputReverse, openloopRamp, peakOutputForward, peakOutputReverse, pulseWidthPeriod_EdgesPerRot, pulseWidthPeriod_FilterWindowSz, remoteFilter0, remoteFilter1, remoteSensorClosedLoopDisableNeutralOnLOS, reverseSoftLimitEnable, reverseSoftLimitThreshold, slot0, slot1, slot2, slot3, softLimitDisableNeutralOnLOS, trajectoryInterpolationEnable, velocityMeasurementPeriod, velocityMeasurementWindow, voltageCompSaturation, voltageMeasurementFilter
Fields inherited from class com.ctre.phoenix.CustomParamConfiguration
customParam0, customParam1, enableOptimizations
-
Constructor Summary
Constructors Constructor Description BaseTalonConfiguration(FeedbackDevice defaultFeedbackDevice)
-
Method Summary
-
Field Details
-
primaryPID
Primary PID configuration -
auxiliaryPID
Auxiliary PID configuration -
forwardLimitSwitchSource
Forward Limit Switch Source User can choose between the feedback connector, remote Talon SRX, CANifier, or deactivate the feature -
reverseLimitSwitchSource
Reverse Limit Switch Source User can choose between the feedback connector, remote Talon SRX, CANifier, or deactivate the feature -
forwardLimitSwitchDeviceID
Forward limit switch device ID Limit Switch device id isn't used unless device is a remote -
reverseLimitSwitchDeviceID
Reverse limit switch device ID Limit Switch device id isn't used unless device is a remote -
forwardLimitSwitchNormal
Forward limit switch normally open/closed -
reverseLimitSwitchNormal
Reverse limit switch normally open/closed -
sum0Term
Feedback Device for Sum 0 Term 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.sum0Term = TalonSRXFeedbackDevice.QuadEncoder.toFeedbackDevice(); configs.sum0Term = TalonFXFeedbackDevice.IntegratedSensor.toFeedbackDevice();
-
sum1Term
Feedback Device for Sum 1 Term 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.sum1Term = TalonSRXFeedbackDevice.QuadEncoder.toFeedbackDevice(); configs.sum1Term = TalonFXFeedbackDevice.IntegratedSensor.toFeedbackDevice();
-
diff0Term
Feedback Device for Diff 0 Term 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.diff0Term = TalonSRXFeedbackDevice.QuadEncoder.toFeedbackDevice(); configs.diff0Term = TalonFXFeedbackDevice.IntegratedSensor.toFeedbackDevice();
-
diff1Term
Feedback Device for Diff 1 Term 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.diff1Term = TalonSRXFeedbackDevice.QuadEncoder.toFeedbackDevice(); configs.diff1Term = TalonFXFeedbackDevice.IntegratedSensor.toFeedbackDevice();
-
-
Constructor Details
-
Method Details
-
toString
- Overrides:
toString
in classBaseMotorControllerConfiguration
- Returns:
- String representation of all the configs
-
toString
- Overrides:
toString
in classBaseMotorControllerConfiguration
- Parameters:
prependString
- String to prepend to all the configs- Returns:
- String representation of all the configs
-