Package com.ctre.phoenix
Enum ErrorCode
- All Implemented Interfaces:
Serializable
,Comparable<ErrorCode>
,java.lang.constant.Constable
public enum ErrorCode extends Enum<ErrorCode>
All the codes available to CTRE products
-
Nested Class Summary
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description int
value
-
Method Summary
Modifier and Type Method Description static ErrorCode
valueOf(int value)
public lookup to convert int to enumstatic ErrorCode
valueOf(String name)
Returns the enum constant of this type with the specified name.static ErrorCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.static ErrorCode
worstOne(ErrorCode errorCode1, ErrorCode errorCode2)
static ErrorCode
worstOne(ErrorCode errorCode1, ErrorCode errorCode2, ErrorCode errorCode3)
static ErrorCode
worstOne(ErrorCode errorCode1, ErrorCode errorCode2, ErrorCode errorCode3, ErrorCode errorCode4)
-
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
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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
-