CTRE_Phoenix 5.20.2
com.ctre.phoenix.ErrorCode Enum Reference

Static Public Member Functions

 [static initializer]
 
static ErrorCode valueOf (int value)
 
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)
 

Public Attributes

 OK =(0)
 No Error - Function executed as expected.
 
 CAN_MSG_STALE =(1)
 
 CAN_TX_FULL =(-1)
 
 TxFailed =(-1)
 Could not transmit the CAN frame.
 
 InvalidParamValue =(-2)
 Caller passed an invalid param.
 
 CAN_INVALID_PARAM =(-2)
 
 RxTimeout =(-3)
 CAN frame has not been received within specified period of time.
 
 CAN_MSG_NOT_FOUND =(-3)
 
 TxTimeout =(-4)
 Not used.
 
 CAN_NO_MORE_TX_JOBS =(-4)
 
 UnexpectedArbId =(-5)
 Specified Device ID is invalid.
 
 CAN_NO_SESSIONS_AVAIL =(-5)
 
 BufferFull =(+6)
 Caller attempted to insert data into a buffer that is full.
 
 CAN_OVERFLOW =(-6)
 
 SensorNotPresent =(-7)
 Sensor is not present.
 
 FirmwareTooOld =(-8)
 
 GeneralError =(-100)
 User Specified General Error.
 
 GENERAL_ERROR =(-100)
 
 SIG_NOT_UPDATED =(-200)
 
 SigNotUpdated =(-200)
 Have not received an value response for signal.
 
 NotAllPIDValuesUpdated =(-201)
 
 GEN_PORT_ERROR =(-300)
 
 PORT_MODULE_TYPE_MISMATCH =(-301)
 
 GEN_MODULE_ERROR =(-400)
 
 MODULE_NOT_INIT_SET_ERROR =(-401)
 
 MODULE_NOT_INIT_GET_ERROR =(-402)
 
 WheelRadiusTooSmall =(-500)
 
 TicksPerRevZero =(-501)
 
 DistanceBetweenWheelsTooSmall =(-502)
 
 GainsAreNotSet =(-503)
 
 DoubleVoltageCompensatingWPI =(-505)
 
 IncompatibleMode =(-600)
 
 InvalidHandle =(-601)
 Handle does not match stored map of handles.
 
 PulseWidthSensorNotPresent =(10)
 Special Code for "isSensorPresent".
 
 GeneralWarning =(100)
 
 FeatureNotSupported =(101)
 
 NotImplemented =(102)
 
 FirmVersionCouldNotBeRetrieved =(103)
 
 FeaturesNotAvailableYet =(104)
 
 ControlModeNotValid =(105)
 
 ControlModeNotSupportedYet =(106)
 
 CascadedPIDNotSupportedYet =(107)
 
 AuxiliaryPIDNotSupportedYet =(107)
 
 RemoteSensorsNotSupportedYet =(108)
 
 MotProfFirmThreshold =(109)
 
 MotProfFirmThreshold2 =(110)
 
 SimDeviceNotFound =(200)
 
 SimPhysicsTypeNotSupported =(201)
 
 SimDeviceAlreadyExists =(202)
 
final int value
 Hold the integral value of an enum instance.
 

Detailed Description

All the codes available to CTRE products

Member Function Documentation

◆ [static initializer]()

com.ctre.phoenix.ErrorCode.[static initializer]
inlinestatic

static c'tor, prepare the map

◆ valueOf()

static ErrorCode com.ctre.phoenix.ErrorCode.valueOf ( int  value)
inlinestatic

public lookup to convert int to enum

◆ worstOne() [1/3]

static ErrorCode com.ctre.phoenix.ErrorCode.worstOne ( ErrorCode  errorCode1,
ErrorCode  errorCode2 
)
inlinestatic
Returns
the first nonzero error code

◆ worstOne() [2/3]

static ErrorCode com.ctre.phoenix.ErrorCode.worstOne ( ErrorCode  errorCode1,
ErrorCode  errorCode2,
ErrorCode  errorCode3 
)
inlinestatic
Returns
the first nonzero error code

◆ worstOne() [3/3]

static ErrorCode com.ctre.phoenix.ErrorCode.worstOne ( ErrorCode  errorCode1,
ErrorCode  errorCode2,
ErrorCode  errorCode3,
ErrorCode  errorCode4 
)
inlinestatic
Returns
the first nonzero error code

The documentation for this enum was generated from the following file: