Package com.ctre.phoenix
Enum Class ErrorCode
- All Implemented Interfaces:
Serializable
,Comparable<ErrorCode>
,Constable
All the codes available to CTRE products
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorCode
valueOf
(int value) public lookup to convert int to enumstatic ErrorCode
Returns the enum constant of this class with the specified name.static ErrorCode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.static ErrorCode
static ErrorCode
static ErrorCode
-
Enum Constant Details
-
OK
-
CAN_MSG_STALE
-
CAN_TX_FULL
-
TxFailed
-
InvalidParamValue
-
CAN_INVALID_PARAM
-
RxTimeout
-
CAN_MSG_NOT_FOUND
-
TxTimeout
-
CAN_NO_MORE_TX_JOBS
-
UnexpectedArbId
-
CAN_NO_SESSIONS_AVAIL
-
BufferFull
-
CAN_OVERFLOW
-
SensorNotPresent
-
FirmwareTooOld
-
GeneralError
-
GENERAL_ERROR
-
SIG_NOT_UPDATED
-
SigNotUpdated
-
NotAllPIDValuesUpdated
-
GEN_PORT_ERROR
-
PORT_MODULE_TYPE_MISMATCH
-
GEN_MODULE_ERROR
-
MODULE_NOT_INIT_SET_ERROR
-
MODULE_NOT_INIT_GET_ERROR
-
WheelRadiusTooSmall
-
TicksPerRevZero
-
DistanceBetweenWheelsTooSmall
-
GainsAreNotSet
-
DoubleVoltageCompensatingWPI
-
IncompatibleMode
-
InvalidHandle
-
PulseWidthSensorNotPresent
-
GeneralWarning
-
FeatureNotSupported
-
NotImplemented
-
FirmVersionCouldNotBeRetrieved
-
FeaturesNotAvailableYet
-
ControlModeNotValid
-
ControlModeNotSupportedYet
-
CascadedPIDNotSupportedYet
-
AuxiliaryPIDNotSupportedYet
-
RemoteSensorsNotSupportedYet
-
MotProfFirmThreshold
-
MotProfFirmThreshold2
-
SimDeviceNotFound
-
SimPhysicsTypeNotSupported
-
SimDeviceAlreadyExists
-
-
Field Details
-
value
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
valueOf
public lookup to convert int to enum -
worstOne
- Returns:
- the first nonzero error code
-
worstOne
- Returns:
- the first nonzero error code
-
worstOne
public static ErrorCode worstOne(ErrorCode errorCode1, ErrorCode errorCode2, ErrorCode errorCode3, ErrorCode errorCode4) - Returns:
- the first nonzero error code
-