Package org.team1540.rooster.wrappers
Class ChickenVictor
- java.lang.Object
 - 
- com.ctre.phoenix.motorcontrol.can.BaseMotorController
 - 
- com.ctre.phoenix.motorcontrol.can.VictorSPX
 - 
- org.team1540.rooster.wrappers.ChickenVictor
 
 
 
 
- 
- All Implemented Interfaces:
 com.ctre.phoenix.motorcontrol.IFollower,com.ctre.phoenix.motorcontrol.IMotorController,com.ctre.phoenix.signals.IInvertable,com.ctre.phoenix.signals.IOutputSignal,ChickenController
public class ChickenVictor extends com.ctre.phoenix.motorcontrol.can.VictorSPX implements ChickenController
 
- 
- 
Constructor Summary
Constructors Constructor Description ChickenVictor(int deviceNumber) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description com.ctre.phoenix.ErrorCodeclearMotionProfileHasUnderrun()com.ctre.phoenix.ErrorCodeclearStickyFaults()com.ctre.phoenix.ErrorCodeconfig_IntegralZone(int slotIdx, int izone)Sets the Integral Zone constant in the given parameter slot.com.ctre.phoenix.ErrorCodeconfig_kD(int slotIdx, double value)Sets the 'D' constant in the given parameter slot.com.ctre.phoenix.ErrorCodeconfig_kF(int slotIdx, double value)Sets the 'F' constant in the given parameter slot.com.ctre.phoenix.ErrorCodeconfig_kI(int slotIdx, double value)Sets the 'I' constant in the given parameter slot.com.ctre.phoenix.ErrorCodeconfig_kP(int slotIdx, double value)Sets the 'P' constant in the given parameter slot.com.ctre.phoenix.ErrorCodeconfigAllowableClosedloopError(int slotIdx, int allowableClosedLoopError)Sets the allowable closed-loop error in the given parameter slot.com.ctre.phoenix.ErrorCodeconfigClosedloopRamp(double secondsFromNeutralToFull)Configures the closed-loop ramp rate of throttle output.com.ctre.phoenix.ErrorCodeconfigForwardLimitSwitchSource(com.ctre.phoenix.motorcontrol.LimitSwitchSource type, com.ctre.phoenix.motorcontrol.LimitSwitchNormal normalOpenOrClose)com.ctre.phoenix.ErrorCodeconfigForwardLimitSwitchSource(com.ctre.phoenix.motorcontrol.RemoteLimitSwitchSource type, com.ctre.phoenix.motorcontrol.LimitSwitchNormal normalOpenOrClose, int deviceID)Configures the forward limit switch for a remote source.com.ctre.phoenix.ErrorCodeconfigForwardSoftLimitEnable(boolean enable)Configures the forward soft limit enable.com.ctre.phoenix.ErrorCodeconfigForwardSoftLimitThreshold(int forwardSensorLimit)Configures the forward soft limit threhold.intconfigGetCustomParam(int paramIndex)Gets the value of a custom parameter.doubleconfigGetParameter(int param, int ordinal)Gets a parameter.doubleconfigGetParameter(com.ctre.phoenix.ParamEnum param, int ordinal)Gets a parameter.com.ctre.phoenix.ErrorCodeconfigMaxIntegralAccumulator(int slotIdx, double iaccum)Sets the maximum integral accumulator in the given parameter slot.com.ctre.phoenix.ErrorCodeconfigMotionAcceleration(int sensorUnitsPer100msPerSec)Sets the Motion Magic Acceleration.com.ctre.phoenix.ErrorCodeconfigMotionCruiseVelocity(int sensorUnitsPer100ms)Sets the Motion Magic Cruise Velocity.com.ctre.phoenix.ErrorCodeconfigNeutralDeadband(double percentDeadband)Configures the output deadband percentage.com.ctre.phoenix.ErrorCodeconfigNominalOutputForward(double percentOut)Configures the forward nominal output percentage.com.ctre.phoenix.ErrorCodeconfigNominalOutputReverse(double percentOut)Configures the reverse nominal output percentage.com.ctre.phoenix.ErrorCodeconfigOpenloopRamp(double secondsFromNeutralToFull)Configures the open-loop ramp rate of throttle output.com.ctre.phoenix.ErrorCodeconfigPeakOutputForward(double percentOut)Configures the forward peak output percentage.com.ctre.phoenix.ErrorCodeconfigPeakOutputReverse(double percentOut)Configures the reverse peak output percentage.com.ctre.phoenix.ErrorCodeconfigRemoteFeedbackFilter(int deviceID, com.ctre.phoenix.motorcontrol.RemoteSensorSource remoteSensorSource, int remoteOrdinal)com.ctre.phoenix.ErrorCodeconfigReverseLimitSwitchSource(com.ctre.phoenix.motorcontrol.RemoteLimitSwitchSource type, com.ctre.phoenix.motorcontrol.LimitSwitchNormal normalOpenOrClose, int deviceID)Configures the reverse limit switch for a remote source.com.ctre.phoenix.ErrorCodeconfigReverseSoftLimitEnable(boolean enable)Configures the reverse soft limit enable.com.ctre.phoenix.ErrorCodeconfigReverseSoftLimitThreshold(int reverseSensorLimit)Configures the reverse soft limit threshold.com.ctre.phoenix.ErrorCodeconfigSelectedFeedbackSensor(com.ctre.phoenix.motorcontrol.FeedbackDevice feedbackDevice)Select the feedback device for the motor controller.com.ctre.phoenix.ErrorCodeconfigSelectedFeedbackSensor(com.ctre.phoenix.motorcontrol.FeedbackDevice feedbackDevice, int pidIdx)Select the feedback device for the motor controller.com.ctre.phoenix.ErrorCodeconfigSelectedFeedbackSensor(com.ctre.phoenix.motorcontrol.RemoteFeedbackDevice feedbackDevice)Select the remote feedback device for the motor controller.com.ctre.phoenix.ErrorCodeconfigSelectedFeedbackSensor(com.ctre.phoenix.motorcontrol.RemoteFeedbackDevice feedbackDevice, int pidIdx)Select the remote feedback device for the motor controller.com.ctre.phoenix.ErrorCodeconfigSensorTerm(com.ctre.phoenix.motorcontrol.SensorTerm sensorTerm, com.ctre.phoenix.motorcontrol.FeedbackDevice feedbackDevice)com.ctre.phoenix.ErrorCodeconfigSetCustomParam(int newValue, int paramIndex)Sets the value of a custom parameter.com.ctre.phoenix.ErrorCodeconfigSetParameter(int param, double value, int subValue, int ordinal)Sets a parameter.com.ctre.phoenix.ErrorCodeconfigSetParameter(com.ctre.phoenix.ParamEnum param, double value, int subValue, int ordinal)Sets a parameter.com.ctre.phoenix.ErrorCodeconfigVelocityMeasurementPeriod(int period)Sets the period over which velocity measurements are taken.com.ctre.phoenix.ErrorCodeconfigVelocityMeasurementWindow(int windowSize)com.ctre.phoenix.ErrorCodeconfigVoltageCompSaturation(double voltage)Configures the Voltage Compensation saturation voltage.com.ctre.phoenix.ErrorCodeconfigVoltageMeasurementFilter(int filterWindowSamples)Configures the voltage measurement filter.intgetClosedLoopError()Gets the closed-loop error.com.ctre.phoenix.motorcontrol.ControlModegetControlMode()Note that this does not return the currently set control mode in the talon wrapper and may be different than the control mode set usingChickenController.setControlMode(ControlMode).intgetDefaultPidIdx()intgetDefaultTimeoutMs()doublegetEncoderCodesPerRev()Deprecated.doublegetErrorDerivative()Gets the derivative of the closed-loop error.doublegetIntegralAccumulator()Gets the iaccum value.doublegetPeakOutputForward()Gets the forward peak output percentage.doublegetPeakOutputReverse()Gets the reverse peak output percentage.intgetSelectedSensorPosition()Get the selected sensor position.intgetSelectedSensorVelocity()Get the selected sensor velocity.intgetStatusFramePeriod(int frame)Gets the period of the given status frame.intgetStatusFramePeriod(com.ctre.phoenix.motorcontrol.StatusFrame frame)Gets the period of the given status frame.intgetStatusFramePeriod(com.ctre.phoenix.motorcontrol.StatusFrameEnhanced frame)voidselectProfileSlot(int slotIdx)Selects which profile slot to use for closed-loop control.voidset(double outputValue)Sets the appropriate output on the talon, depending on the mode.voidsetBrake(boolean brake)Sets the mode of operation during neutral throttle output.voidsetControlMode(com.ctre.phoenix.motorcontrol.ControlMode controlMode)voidsetDefaultPidIdx(int defaultPidIdx)voidsetDefaultTimeoutMs(int defaultTimeoutMs)voidsetEncoderCodesPerRev(double encoderCodesPerRev)Deprecated.com.ctre.phoenix.ErrorCodesetIntegralAccumulator(double iaccum)Sets the integral accumulator.com.ctre.phoenix.ErrorCodesetIntegralAccumulator(double iaccum, int pidIdx)Sets the integral accumulator.com.ctre.phoenix.ErrorCodesetSelectedSensorPosition(int sensorPos)Sets the sensor position to the given value.com.ctre.phoenix.ErrorCodesetSelectedSensorPosition(int sensorPos, int pidIdx)Sets the sensor position to the given value.com.ctre.phoenix.ErrorCodesetStatusFramePeriod(int frameValue, int periodMs)Sets the period of the given status frame.com.ctre.phoenix.ErrorCodesetStatusFramePeriod(com.ctre.phoenix.motorcontrol.StatusFrame frame, int periodMs)Sets the period of the given status frame.- 
Methods inherited from class com.ctre.phoenix.motorcontrol.can.VictorSPX
configAllSettings, configAllSettings, getAllConfigs, getAllConfigs, getPIDConfigs, getPIDConfigs 
- 
Methods inherited from class com.ctre.phoenix.motorcontrol.can.BaseMotorController
baseConfigAllSettings, baseConfigurePID, baseGetAllConfigs, baseGetPIDConfigs, changeMotionControlFramePeriod, clearMotionProfileHasUnderrun, clearMotionProfileTrajectories, clearStickyFaults, config_IntegralZone, config_kD, config_kF, config_kI, config_kP, configAllowableClosedloopError, configAuxPIDPolarity, configAuxPIDPolarity, configClearPositionOnLimitF, configClearPositionOnLimitR, configClearPositionOnQuadIdx, configClosedLoopPeakOutput, configClosedLoopPeakOutput, configClosedLoopPeriod, configClosedLoopPeriod, configClosedloopRamp, configFactoryDefault, configFactoryDefault, configFeedbackNotContinuous, configForwardLimitSwitchSource, configForwardLimitSwitchSource, configForwardLimitSwitchSource, configForwardSoftLimitEnable, configForwardSoftLimitThreshold, configGetCustomParam, configGetParameter, configGetParameter, configLimitSwitchDisableNeutralOnLOS, configMaxIntegralAccumulator, configMotionAcceleration, configMotionCruiseVelocity, configMotionProfileTrajectoryInterpolationEnable, configMotionProfileTrajectoryInterpolationEnable, configMotionProfileTrajectoryPeriod, configMotionProfileTrajectoryPeriod, configMotionSCurveStrength, configMotionSCurveStrength, configNeutralDeadband, configNominalOutputForward, configNominalOutputReverse, configOpenloopRamp, configPeakOutputForward, configPeakOutputReverse, configPulseWidthPeriod_EdgesPerRot, configPulseWidthPeriod_FilterWindowSz, configRemoteFeedbackFilter, configRemoteSensorClosedLoopDisableNeutralOnLOS, configReverseLimitSwitchSource, configReverseLimitSwitchSource, configReverseSoftLimitEnable, configReverseSoftLimitThreshold, configSelectedFeedbackCoefficient, configSelectedFeedbackCoefficient, configSelectedFeedbackSensor, configSelectedFeedbackSensor, configSensorTerm, configSensorTerm, configSensorTerm, configSetCustomParam, configSetParameter, configSetParameter, configSoftLimitDisableNeutralOnLOS, configureFilter, configureFilter, configureFilter, configureSlot, configureSlot, configVelocityMeasurementPeriod, configVelocityMeasurementPeriod, configVelocityMeasurementWindow, configVoltageCompSaturation, configVoltageMeasurementFilter, DestroyObject, enableHeadingHold, enableVoltageCompensation, follow, follow, getActiveTrajectoryArbFeedFwd, getActiveTrajectoryArbFeedFwd, getActiveTrajectoryHeading, getActiveTrajectoryPosition, getActiveTrajectoryPosition, getActiveTrajectoryVelocity, getActiveTrajectoryVelocity, getBaseID, getBusVoltage, getClosedLoopError, getClosedLoopTarget, getClosedLoopTarget, getDeviceID, getErrorDerivative, getFaults, getFilterConfigs, getFilterConfigs, getFirmwareVersion, getHandle, getIntegralAccumulator, getInverted, getLastError, getMotionProfileStatus, getMotionProfileTopLevelBufferCount, getMotorOutputPercent, getMotorOutputVoltage, getOutputCurrent, getSelectedSensorPosition, getSelectedSensorVelocity, getSlotConfigs, getSlotConfigs, getStatusFramePeriod, getStatusFramePeriod, getStatusFramePeriod, getStickyFaults, getTemperature, hasResetOccurred, isMotionProfileFinished, isMotionProfileTopLevelBufferFull, neutralOutput, overrideLimitSwitchesEnable, overrideSoftLimitsEnable, processMotionProfileBuffer, pushMotionProfileTrajectory, selectDemandType, selectProfileSlot, set, set, set, setControlFramePeriod, setControlFramePeriod, setIntegralAccumulator, setInverted, setInverted, setNeutralMode, setSelectedSensorPosition, setSensorPhase, setStatusFramePeriod, setStatusFramePeriod, startMotionProfile, valueUpdated 
- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface com.ctre.phoenix.motorcontrol.IMotorController
changeMotionControlFramePeriod, clearMotionProfileHasUnderrun, clearMotionProfileTrajectories, clearStickyFaults, config_IntegralZone, config_kD, config_kF, config_kI, config_kP, configAllowableClosedloopError, configAuxPIDPolarity, configClosedLoopPeakOutput, configClosedLoopPeriod, configClosedloopRamp, configForwardLimitSwitchSource, configForwardSoftLimitEnable, configForwardSoftLimitThreshold, configGetCustomParam, configGetParameter, configGetParameter, configMaxIntegralAccumulator, configMotionAcceleration, configMotionCruiseVelocity, configMotionProfileTrajectoryPeriod, configMotionSCurveStrength, configNeutralDeadband, configNominalOutputForward, configNominalOutputReverse, configOpenloopRamp, configPeakOutputForward, configPeakOutputReverse, configRemoteFeedbackFilter, configReverseLimitSwitchSource, configReverseSoftLimitEnable, configReverseSoftLimitThreshold, configSelectedFeedbackCoefficient, configSelectedFeedbackSensor, configSensorTerm, configSetCustomParam, configSetParameter, configSetParameter, configVoltageCompSaturation, configVoltageMeasurementFilter, enableVoltageCompensation, getActiveTrajectoryHeading, getActiveTrajectoryPosition, getActiveTrajectoryVelocity, getBaseID, getBusVoltage, getClosedLoopError, getClosedLoopTarget, getDeviceID, getErrorDerivative, getFaults, getFirmwareVersion, getIntegralAccumulator, getInverted, getLastError, getMotionProfileStatus, getMotionProfileTopLevelBufferCount, getMotorOutputPercent, getMotorOutputVoltage, getSelectedSensorPosition, getSelectedSensorVelocity, getStatusFramePeriod, getStickyFaults, getTemperature, hasResetOccurred, isMotionProfileTopLevelBufferFull, neutralOutput, overrideLimitSwitchesEnable, overrideSoftLimitsEnable, processMotionProfileBuffer, pushMotionProfileTrajectory, selectProfileSlot, set, set, set, setControlFramePeriod, setIntegralAccumulator, setInverted, setNeutralMode, setSelectedSensorPosition, setSensorPhase, setStatusFramePeriod 
 - 
 
 - 
 
- 
- 
Method Detail
- 
clearMotionProfileHasUnderrun
public com.ctre.phoenix.ErrorCode clearMotionProfileHasUnderrun()
- Specified by:
 clearMotionProfileHasUnderrunin interfaceChickenController- Overrides:
 clearMotionProfileHasUnderrunin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController
 
- 
clearStickyFaults
public com.ctre.phoenix.ErrorCode clearStickyFaults()
- Specified by:
 clearStickyFaultsin interfaceChickenController- Overrides:
 clearStickyFaultsin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController
 
- 
configAllowableClosedloopError
public com.ctre.phoenix.ErrorCode configAllowableClosedloopError(int slotIdx, int allowableClosedLoopError)Description copied from interface:ChickenControllerSets the allowable closed-loop error in the given parameter slot.- Specified by:
 configAllowableClosedloopErrorin interfaceChickenController- Overrides:
 configAllowableClosedloopErrorin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 slotIdx- Parameter slot for the constant.allowableClosedLoopError- Value of the allowable closed-loop error.- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
configClosedloopRamp
public com.ctre.phoenix.ErrorCode configClosedloopRamp(double secondsFromNeutralToFull)
Description copied from interface:ChickenControllerConfigures the closed-loop ramp rate of throttle output.- Specified by:
 configClosedloopRampin interfaceChickenController- Overrides:
 configClosedloopRampin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 secondsFromNeutralToFull- Minimum desired time to go from neutral to full throttle. A value of '0' will disable the ramp.- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
configOpenloopRamp
public com.ctre.phoenix.ErrorCode configOpenloopRamp(double secondsFromNeutralToFull)
Description copied from interface:ChickenControllerConfigures the open-loop ramp rate of throttle output.- Specified by:
 configOpenloopRampin interfaceChickenController- Overrides:
 configOpenloopRampin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 secondsFromNeutralToFull- Minimum desired time to go from neutral to full throttle. A value of '0' will disable the ramp.- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
configForwardLimitSwitchSource
public com.ctre.phoenix.ErrorCode configForwardLimitSwitchSource(com.ctre.phoenix.motorcontrol.LimitSwitchSource type, com.ctre.phoenix.motorcontrol.LimitSwitchNormal normalOpenOrClose)- Specified by:
 configForwardLimitSwitchSourcein interfaceChickenController- Overrides:
 configForwardLimitSwitchSourcein classcom.ctre.phoenix.motorcontrol.can.BaseMotorController
 
- 
configForwardLimitSwitchSource
public com.ctre.phoenix.ErrorCode configForwardLimitSwitchSource(com.ctre.phoenix.motorcontrol.RemoteLimitSwitchSource type, com.ctre.phoenix.motorcontrol.LimitSwitchNormal normalOpenOrClose, int deviceID)Description copied from interface:ChickenControllerConfigures the forward limit switch for a remote source.- Specified by:
 configForwardLimitSwitchSourcein interfaceChickenController- Overrides:
 configForwardLimitSwitchSourcein classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 type- Remote limit switch source. @see #LimitSwitchSourcenormalOpenOrClose- Setting for normally open or normally closed.deviceID- Device ID of remote source.- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
configForwardSoftLimitEnable
public com.ctre.phoenix.ErrorCode configForwardSoftLimitEnable(boolean enable)
Description copied from interface:ChickenControllerConfigures the forward soft limit enable.- Specified by:
 configForwardSoftLimitEnablein interfaceChickenController- Overrides:
 configForwardSoftLimitEnablein classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 enable- Forward Sensor Position Limit Enable.- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
configForwardSoftLimitThreshold
public com.ctre.phoenix.ErrorCode configForwardSoftLimitThreshold(int forwardSensorLimit)
Description copied from interface:ChickenControllerConfigures the forward soft limit threhold.- Specified by:
 configForwardSoftLimitThresholdin interfaceChickenController- Overrides:
 configForwardSoftLimitThresholdin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 forwardSensorLimit- Forward Sensor Position Limit (in Raw Sensor Units).- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
configGetCustomParam
public int configGetCustomParam(int paramIndex)
Description copied from interface:ChickenControllerGets the value of a custom parameter.- Specified by:
 configGetCustomParamin interfaceChickenController- Overrides:
 configGetCustomParamin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 paramIndex- Index of custom parameter.- Returns:
 - Value of the custom param.
 
 
- 
configGetParameter
public double configGetParameter(com.ctre.phoenix.ParamEnum param, int ordinal)Description copied from interface:ChickenControllerGets a parameter.- Specified by:
 configGetParameterin interfaceChickenController- Overrides:
 configGetParameterin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 param- Parameter enumeration.ordinal- Ordinal of parameter.- Returns:
 - Value of parameter.
 
 
- 
configGetParameter
public double configGetParameter(int param, int ordinal)Description copied from interface:ChickenControllerGets a parameter.- Specified by:
 configGetParameterin interfaceChickenController- Overrides:
 configGetParameterin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 param- Parameter enumeration.ordinal- Ordinal of parameter.- Returns:
 - Value of parameter.
 
 
- 
configMaxIntegralAccumulator
public com.ctre.phoenix.ErrorCode configMaxIntegralAccumulator(int slotIdx, double iaccum)Description copied from interface:ChickenControllerSets the maximum integral accumulator in the given parameter slot.- Specified by:
 configMaxIntegralAccumulatorin interfaceChickenController- Overrides:
 configMaxIntegralAccumulatorin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 slotIdx- Parameter slot for the constant.iaccum- Value of the maximum integral accumulator.- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
configMotionAcceleration
public com.ctre.phoenix.ErrorCode configMotionAcceleration(int sensorUnitsPer100msPerSec)
Description copied from interface:ChickenControllerSets the Motion Magic Acceleration.- Specified by:
 configMotionAccelerationin interfaceChickenController- Overrides:
 configMotionAccelerationin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 sensorUnitsPer100msPerSec- Motion Magic Acceleration (in Raw Sensor Units per 100 ms per second).- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
configMotionCruiseVelocity
public com.ctre.phoenix.ErrorCode configMotionCruiseVelocity(int sensorUnitsPer100ms)
Description copied from interface:ChickenControllerSets the Motion Magic Cruise Velocity.- Specified by:
 configMotionCruiseVelocityin interfaceChickenController- Overrides:
 configMotionCruiseVelocityin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 sensorUnitsPer100ms- Motion Magic Cruise Velocity (in Raw Sensor Units per 100 ms).- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
configNeutralDeadband
public com.ctre.phoenix.ErrorCode configNeutralDeadband(double percentDeadband)
Description copied from interface:ChickenControllerConfigures the output deadband percentage.- Specified by:
 configNeutralDeadbandin interfaceChickenController- Overrides:
 configNeutralDeadbandin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 percentDeadband- Desired deadband percentage. Minimum is 0.1%, Maximum is 25%. Pass 0.04 for 4%.- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
configNominalOutputForward
public com.ctre.phoenix.ErrorCode configNominalOutputForward(double percentOut)
Description copied from interface:ChickenControllerConfigures the forward nominal output percentage.- Specified by:
 configNominalOutputForwardin interfaceChickenController- Overrides:
 configNominalOutputForwardin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 percentOut- Nominal (minimum) percent output.- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
configNominalOutputReverse
public com.ctre.phoenix.ErrorCode configNominalOutputReverse(double percentOut)
Description copied from interface:ChickenControllerConfigures the reverse nominal output percentage.- Specified by:
 configNominalOutputReversein interfaceChickenController- Overrides:
 configNominalOutputReversein classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 percentOut- Nominal (minimum) percent output.- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
configPeakOutputForward
public com.ctre.phoenix.ErrorCode configPeakOutputForward(double percentOut)
Description copied from interface:ChickenControllerConfigures the forward peak output percentage.- Specified by:
 configPeakOutputForwardin interfaceChickenController- Overrides:
 configPeakOutputForwardin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 percentOut- Desired peak output percentage.- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
configPeakOutputReverse
public com.ctre.phoenix.ErrorCode configPeakOutputReverse(double percentOut)
Description copied from interface:ChickenControllerConfigures the reverse peak output percentage.- Specified by:
 configPeakOutputReversein interfaceChickenController- Overrides:
 configPeakOutputReversein classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 percentOut- Desired peak output percentage.- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
getPeakOutputForward
public double getPeakOutputForward()
Description copied from interface:ChickenControllerGets the forward peak output percentage.- Specified by:
 getPeakOutputForwardin interfaceChickenController- Returns:
 - Double from -1 to 1 inclusive.
 
 
- 
getPeakOutputReverse
public double getPeakOutputReverse()
Description copied from interface:ChickenControllerGets the reverse peak output percentage.- Specified by:
 getPeakOutputReversein interfaceChickenController- Returns:
 - Double from -1 to 1 inclusive.
 
 
- 
configRemoteFeedbackFilter
public com.ctre.phoenix.ErrorCode configRemoteFeedbackFilter(int deviceID, com.ctre.phoenix.motorcontrol.RemoteSensorSource remoteSensorSource, int remoteOrdinal)- Specified by:
 configRemoteFeedbackFilterin interfaceChickenController- Overrides:
 configRemoteFeedbackFilterin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController
 
- 
configReverseLimitSwitchSource
public com.ctre.phoenix.ErrorCode configReverseLimitSwitchSource(com.ctre.phoenix.motorcontrol.RemoteLimitSwitchSource type, com.ctre.phoenix.motorcontrol.LimitSwitchNormal normalOpenOrClose, int deviceID)Description copied from interface:ChickenControllerConfigures the reverse limit switch for a remote source.- Specified by:
 configReverseLimitSwitchSourcein interfaceChickenController- Overrides:
 configReverseLimitSwitchSourcein classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 type- Remote limit switch source. @see #LimitSwitchSourcenormalOpenOrClose- Setting for normally open or normally closed.deviceID- Device ID of remote source.- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
configReverseSoftLimitEnable
public com.ctre.phoenix.ErrorCode configReverseSoftLimitEnable(boolean enable)
Description copied from interface:ChickenControllerConfigures the reverse soft limit enable.- Specified by:
 configReverseSoftLimitEnablein interfaceChickenController- Overrides:
 configReverseSoftLimitEnablein classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 enable- Reverse Sensor Position Limit Enable.- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
configReverseSoftLimitThreshold
public com.ctre.phoenix.ErrorCode configReverseSoftLimitThreshold(int reverseSensorLimit)
Description copied from interface:ChickenControllerConfigures the reverse soft limit threshold.- Specified by:
 configReverseSoftLimitThresholdin interfaceChickenController- Overrides:
 configReverseSoftLimitThresholdin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 reverseSensorLimit- Reverse Sensor Position Limit (in Raw Sensor Units).- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
configSelectedFeedbackSensor
public com.ctre.phoenix.ErrorCode configSelectedFeedbackSensor(com.ctre.phoenix.motorcontrol.RemoteFeedbackDevice feedbackDevice, int pidIdx)Description copied from interface:ChickenControllerSelect the remote feedback device for the motor controller.- Specified by:
 configSelectedFeedbackSensorin interfaceChickenController- Parameters:
 feedbackDevice- Remote Feedback Device to select.pidIdx- 0 for Primary closed-loop. 1 for cascaded closed-loop.- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
configSelectedFeedbackSensor
public com.ctre.phoenix.ErrorCode configSelectedFeedbackSensor(com.ctre.phoenix.motorcontrol.RemoteFeedbackDevice feedbackDevice)
Description copied from interface:ChickenControllerSelect the remote feedback device for the motor controller.- Specified by:
 configSelectedFeedbackSensorin interfaceChickenController- Overrides:
 configSelectedFeedbackSensorin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 feedbackDevice- Remote Feedback Device to select.- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
configSelectedFeedbackSensor
public com.ctre.phoenix.ErrorCode configSelectedFeedbackSensor(com.ctre.phoenix.motorcontrol.FeedbackDevice feedbackDevice, int pidIdx)Description copied from interface:ChickenControllerSelect the feedback device for the motor controller.- Specified by:
 configSelectedFeedbackSensorin interfaceChickenController- Parameters:
 feedbackDevice- Feedback Device to select.pidIdx- The PID IDX to use.- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
configSelectedFeedbackSensor
public com.ctre.phoenix.ErrorCode configSelectedFeedbackSensor(com.ctre.phoenix.motorcontrol.FeedbackDevice feedbackDevice)
Description copied from interface:ChickenControllerSelect the feedback device for the motor controller.- Specified by:
 configSelectedFeedbackSensorin interfaceChickenController- Overrides:
 configSelectedFeedbackSensorin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 feedbackDevice- Feedback Device to select.- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
configSensorTerm
public com.ctre.phoenix.ErrorCode configSensorTerm(com.ctre.phoenix.motorcontrol.SensorTerm sensorTerm, com.ctre.phoenix.motorcontrol.FeedbackDevice feedbackDevice)- Specified by:
 configSensorTermin interfaceChickenController- Overrides:
 configSensorTermin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController
 
- 
configSetCustomParam
public com.ctre.phoenix.ErrorCode configSetCustomParam(int newValue, int paramIndex)Description copied from interface:ChickenControllerSets the value of a custom parameter.- Specified by:
 configSetCustomParamin interfaceChickenController- Overrides:
 configSetCustomParamin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 newValue- Value for custom parameter.paramIndex- Index of custom parameter.- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
configSetParameter
public com.ctre.phoenix.ErrorCode configSetParameter(com.ctre.phoenix.ParamEnum param, double value, int subValue, int ordinal)Description copied from interface:ChickenControllerSets a parameter.- Specified by:
 configSetParameterin interfaceChickenController- Overrides:
 configSetParameterin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 param- Parameter enumeration.value- Value of parameter.subValue- Subvalue for parameter. Maximum value of 255.ordinal- Ordinal of parameter.- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
configSetParameter
public com.ctre.phoenix.ErrorCode configSetParameter(int param, double value, int subValue, int ordinal)Description copied from interface:ChickenControllerSets a parameter.- Specified by:
 configSetParameterin interfaceChickenController- Overrides:
 configSetParameterin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 param- Parameter enumeration.value- Value of parameter.subValue- Subvalue for parameter. Maximum value of 255.ordinal- Ordinal of parameter.- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
configVelocityMeasurementPeriod
public com.ctre.phoenix.ErrorCode configVelocityMeasurementPeriod(int period)
Description copied from interface:ChickenControllerSets the period over which velocity measurements are taken.- Specified by:
 configVelocityMeasurementPeriodin interfaceChickenController- Parameters:
 period- Desired period for the velocity measurement. @see #VelocityMeasPeriod- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
configVelocityMeasurementWindow
public com.ctre.phoenix.ErrorCode configVelocityMeasurementWindow(int windowSize)
- Specified by:
 configVelocityMeasurementWindowin interfaceChickenController- Overrides:
 configVelocityMeasurementWindowin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController
 
- 
configVoltageCompSaturation
public com.ctre.phoenix.ErrorCode configVoltageCompSaturation(double voltage)
Description copied from interface:ChickenControllerConfigures the Voltage Compensation saturation voltage.- Specified by:
 configVoltageCompSaturationin interfaceChickenController- Overrides:
 configVoltageCompSaturationin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 voltage- TO-DO: Comment me!- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
configVoltageMeasurementFilter
public com.ctre.phoenix.ErrorCode configVoltageMeasurementFilter(int filterWindowSamples)
Description copied from interface:ChickenControllerConfigures the voltage measurement filter.- Specified by:
 configVoltageMeasurementFilterin interfaceChickenController- Overrides:
 configVoltageMeasurementFilterin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 filterWindowSamples- Number of samples in the rolling average of voltage measurement.- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
config_IntegralZone
public com.ctre.phoenix.ErrorCode config_IntegralZone(int slotIdx, int izone)Description copied from interface:ChickenControllerSets the Integral Zone constant in the given parameter slot.- Specified by:
 config_IntegralZonein interfaceChickenController- Overrides:
 config_IntegralZonein classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 slotIdx- Parameter slot for the constant.izone- Value of the Integral Zone constant.- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
config_kD
public com.ctre.phoenix.ErrorCode config_kD(int slotIdx, double value)Description copied from interface:ChickenControllerSets the 'D' constant in the given parameter slot.- Specified by:
 config_kDin interfaceChickenController- Overrides:
 config_kDin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 slotIdx- Parameter slot for the constant.value- Value of the D constant.- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
config_kF
public com.ctre.phoenix.ErrorCode config_kF(int slotIdx, double value)Description copied from interface:ChickenControllerSets the 'F' constant in the given parameter slot.- Specified by:
 config_kFin interfaceChickenController- Overrides:
 config_kFin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 slotIdx- Parameter slot for the constant.value- Value of the F constant.- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
config_kI
public com.ctre.phoenix.ErrorCode config_kI(int slotIdx, double value)Description copied from interface:ChickenControllerSets the 'I' constant in the given parameter slot.- Specified by:
 config_kIin interfaceChickenController- Overrides:
 config_kIin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 slotIdx- Parameter slot for the constant.value- Value of the I constant.- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
config_kP
public com.ctre.phoenix.ErrorCode config_kP(int slotIdx, double value)Description copied from interface:ChickenControllerSets the 'P' constant in the given parameter slot.- Specified by:
 config_kPin interfaceChickenController- Overrides:
 config_kPin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 slotIdx- Parameter slot for the constant.value- Value of the P constant.- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
getClosedLoopError
public int getClosedLoopError()
Description copied from interface:ChickenControllerGets the closed-loop error.- Specified by:
 getClosedLoopErrorin interfaceChickenController- Overrides:
 getClosedLoopErrorin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Returns:
 - Closed-loop error value.
 
 
- 
getControlMode
public com.ctre.phoenix.motorcontrol.ControlMode getControlMode()
Description copied from interface:ChickenControllerNote that this does not return the currently set control mode in the talon wrapper and may be different than the control mode set usingChickenController.setControlMode(ControlMode).- Specified by:
 getControlModein interfaceChickenController- Specified by:
 getControlModein interfacecom.ctre.phoenix.motorcontrol.IMotorController- Overrides:
 getControlModein classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Returns:
 - The current control mode in the motor controller.
 
 
- 
setControlMode
public void setControlMode(com.ctre.phoenix.motorcontrol.ControlMode controlMode)
- Specified by:
 setControlModein interfaceChickenController
 
- 
getDefaultPidIdx
public int getDefaultPidIdx()
- Specified by:
 getDefaultPidIdxin interfaceChickenController
 
- 
setDefaultPidIdx
public void setDefaultPidIdx(int defaultPidIdx)
- Specified by:
 setDefaultPidIdxin interfaceChickenController
 
- 
getDefaultTimeoutMs
public int getDefaultTimeoutMs()
- Specified by:
 getDefaultTimeoutMsin interfaceChickenController
 
- 
setDefaultTimeoutMs
public void setDefaultTimeoutMs(int defaultTimeoutMs)
- Specified by:
 setDefaultTimeoutMsin interfaceChickenController
 
- 
getEncoderCodesPerRev
@Deprecated public double getEncoderCodesPerRev()
Deprecated.Description copied from interface:ChickenControllerGets the encoder codes per revolution.- Specified by:
 getEncoderCodesPerRevin interfaceChickenController- Returns:
 0.
 
- 
setEncoderCodesPerRev
@Deprecated public void setEncoderCodesPerRev(double encoderCodesPerRev)
Deprecated.Description copied from interface:ChickenControllerSets the encoder codes per revolution for getting and setting velocity and position.- Specified by:
 setEncoderCodesPerRevin interfaceChickenController- Parameters:
 encoderCodesPerRev- The encoder codes per revolution to set.
 
- 
getErrorDerivative
public double getErrorDerivative()
Description copied from interface:ChickenControllerGets the derivative of the closed-loop error.- Specified by:
 getErrorDerivativein interfaceChickenController- Overrides:
 getErrorDerivativein classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Returns:
 - The error derivative value.
 
 
- 
getIntegralAccumulator
public double getIntegralAccumulator()
Description copied from interface:ChickenControllerGets the iaccum value.- Specified by:
 getIntegralAccumulatorin interfaceChickenController- Overrides:
 getIntegralAccumulatorin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Returns:
 - Integral accumulator value.
 
 
- 
getSelectedSensorPosition
public int getSelectedSensorPosition()
Description copied from interface:ChickenControllerGet the selected sensor position.- Specified by:
 getSelectedSensorPositionin interfaceChickenController- Overrides:
 getSelectedSensorPositionin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Returns:
 - Position of selected sensor in raw sensor units.
 
 
- 
getSelectedSensorVelocity
public int getSelectedSensorVelocity()
Description copied from interface:ChickenControllerGet the selected sensor velocity.- Specified by:
 getSelectedSensorVelocityin interfaceChickenController- Overrides:
 getSelectedSensorVelocityin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Returns:
 - Velocity of selected sensor in raw sensor units per decisecond.
 
 
- 
getStatusFramePeriod
public int getStatusFramePeriod(com.ctre.phoenix.motorcontrol.StatusFrameEnhanced frame)
- Specified by:
 getStatusFramePeriodin interfaceChickenController- Overrides:
 getStatusFramePeriodin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController
 
- 
getStatusFramePeriod
public int getStatusFramePeriod(int frame)
Description copied from interface:ChickenControllerGets the period of the given status frame.- Specified by:
 getStatusFramePeriodin interfaceChickenController- Overrides:
 getStatusFramePeriodin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 frame- Frame to get the period of.- Returns:
 - Period of the given status frame.
 
 
- 
getStatusFramePeriod
public int getStatusFramePeriod(com.ctre.phoenix.motorcontrol.StatusFrame frame)
Description copied from interface:ChickenControllerGets the period of the given status frame.- Specified by:
 getStatusFramePeriodin interfaceChickenController- Overrides:
 getStatusFramePeriodin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 frame- Frame to get the period of.- Returns:
 - Period of the given status frame.
 
 
- 
selectProfileSlot
public void selectProfileSlot(int slotIdx)
Description copied from interface:ChickenControllerSelects which profile slot to use for closed-loop control.- Specified by:
 selectProfileSlotin interfaceChickenController- Parameters:
 slotIdx- Profile slot to select.
 
- 
set
public void set(double outputValue)
Description copied from interface:ChickenControllerSets the appropriate output on the talon, depending on the mode.In PercentOutput, the output is between -1.0 and 1.0, with 0.0 as stopped. In Voltage mode, output value is in volts. In Current mode, output value is in amperes. In Speed mode, output value is in position change / 100ms. In Position mode, output value is in native sensor units. In Velocity mode, output value is in native units per decisecond. In Follower mode, the output value is the integer device ID of the talon to duplicate.
- Specified by:
 setin interfaceChickenController- Parameters:
 outputValue- The setpoint value, as described above.
 
- 
setBrake
public void setBrake(boolean brake)
Description copied from interface:ChickenControllerSets the mode of operation during neutral throttle output.- Specified by:
 setBrakein interfaceChickenController- Parameters:
 brake- Whether or not to brake.
 
- 
setIntegralAccumulator
public com.ctre.phoenix.ErrorCode setIntegralAccumulator(double iaccum, int pidIdx)Description copied from interface:ChickenControllerSets the integral accumulator.- Specified by:
 setIntegralAccumulatorin interfaceChickenController- Parameters:
 iaccum- Value to set for the integral accumulator.pidIdx- The PID IDX to use.- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
setIntegralAccumulator
public com.ctre.phoenix.ErrorCode setIntegralAccumulator(double iaccum)
Description copied from interface:ChickenControllerSets the integral accumulator.- Specified by:
 setIntegralAccumulatorin interfaceChickenController- Overrides:
 setIntegralAccumulatorin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 iaccum- Value to set for the integral accumulator.- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
setSelectedSensorPosition
public com.ctre.phoenix.ErrorCode setSelectedSensorPosition(int sensorPos, int pidIdx)Description copied from interface:ChickenControllerSets the sensor position to the given value.- Specified by:
 setSelectedSensorPositionin interfaceChickenController- Parameters:
 sensorPos- Position to set for the selected sensor (in Raw Sensor Units).pidIdx- The PID IDX to use.- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
setSelectedSensorPosition
public com.ctre.phoenix.ErrorCode setSelectedSensorPosition(int sensorPos)
Description copied from interface:ChickenControllerSets the sensor position to the given value.- Specified by:
 setSelectedSensorPositionin interfaceChickenController- Overrides:
 setSelectedSensorPositionin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 sensorPos- Position to set for the selected sensor (in Raw Sensor Units).- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
setStatusFramePeriod
public com.ctre.phoenix.ErrorCode setStatusFramePeriod(int frameValue, int periodMs)Description copied from interface:ChickenControllerSets the period of the given status frame.- Specified by:
 setStatusFramePeriodin interfaceChickenController- Overrides:
 setStatusFramePeriodin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 frameValue- Frame whose period is to be changed.periodMs- Period in ms for the given frame.- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
- 
setStatusFramePeriod
public com.ctre.phoenix.ErrorCode setStatusFramePeriod(com.ctre.phoenix.motorcontrol.StatusFrame frame, int periodMs)Description copied from interface:ChickenControllerSets the period of the given status frame.- Specified by:
 setStatusFramePeriodin interfaceChickenController- Overrides:
 setStatusFramePeriodin classcom.ctre.phoenix.motorcontrol.can.BaseMotorController- Parameters:
 frame- Frame whose period is to be changed.periodMs- Period in ms for the given frame.- Returns:
 - Error Code generated by function. 0 indicates no error.
 
 
 - 
 
 -