Package com.ctre.phoenix6
Enum StatusCode
- All Implemented Interfaces:
Serializable
,Comparable<StatusCode>
,java.lang.constant.Constable
public enum StatusCode extends Enum<StatusCode>
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description AppIsTerminating
AppIsTerminatingAppTooOld
AppTooOldBufferFailure
BufferFailureBufferFull
Buffer is full, cannot insert more data.CANdleAnimationsRequireHigherFirm
CANdleAnimationsRequireHigherFirmCANdleAnimSlotOutOfBounds
CANdleAnimSlotOutOfBoundsCanivCliError
CanivCliErrorCanMessageStale
CAN Message is stale.CannotOpenSerialPort
CannotOpenSerialPortCannotOpenUdpPort
CannotOpenUdpPortCannotReadSerialPort
CannotReadSerialPortCannotReadUdpPort
CannotReadUdpPortCannotSerialToDevice
CannotSerialToDeviceCannotUdpToDevice
CannotUdpToDeviceCannotWriteSerialPort
CannotWriteSerialPortCannotWriteUdpPort
CannotWriteUdpPortCanOverflowed
CanOverflowedCompileSzIsWrong
CompileSzIsWrongConfigFactoryDefaultRequiresHigherFirm
Config factory default features require firmware >=3.10.ConfigFailed
ConfigFailedConfigMotionSCurveRequiresHigherFirm
Config Motion S Curve Strength features require firmware >=4.16.ConfigReadWriteMismatch
ConfigReadWriteMismatchControlModeNotSupportedYet
This control mode is not supported yet.ControlModeNotValid
The control mode is not valid for this function.CorruptedPOST
CorruptedPOSTCouldNotCast
Could not cast from base value to this particular signal's typeCouldNotChangePeriod
Control Frame Period could not be changed.CouldNotConfirmBl
CouldNotConfirmBlCouldNotConfirmId
CouldNotConfirmIdCouldNotDecodeDeviceFirmware
Device firmware could not be decoded.CouldNotEnterBl
CouldNotEnterBlCouldNotErase
CouldNotEraseCouldNotFindDynamicId
CouldNotFindDynamicIdCouldNotReqDevInfo
CouldNotReqDevInfoCouldNotReqFactoryDefault
CouldNotReqFactoryDefaultCouldNotReqSetConfigs
CouldNotReqSetConfigsCouldNotReqSetDesc
CouldNotReqSetDescCouldNotReqSetId
CouldNotReqSetIdCouldNotRetrieveProFirmware
Device firmware could not be retrieved.CouldNotRunApp
CouldNotRunAppCouldNotSendCanFrame
CouldNotSendCanFrameCouldNotSendFlash
CouldNotSendFlashCouldNotValidate
CouldNotValidateCustomNameNotSupported
CustomNameNotSupportedDeviceDidNotRespondToDiagReq
DeviceDidNotRespondToDiagReqDeviceIsNull
DeviceIsNullDidNotGetDhcp
DidNotGetDhcpDidNotGetFullDhcp
DidNotGetFullDhcpDistanceBetweenWheelsTooSmall
Distance between wheels is too small, cannot get heading.DoubleVoltageCompensatingWPI
Motor Controller Voltage Compensation should not be used with setVoltage().EcuIsNotPresent
EcuIsNotPresentFeatureNotSupported
This feature is not supported.FeatureRequiresHigherFirm
Features requires newer firmware version.FeaturesNotAvailableYet
This feature will be supported in a future update.FirmVersionCouldNotBeRetrieved
Firm Vers could not be retrieved.FirmwareNonFRC
Firmware is legacy non-FRC version.FirmwareTooNew
Firmware Too New.FirmwareTooOld
Firmware Too Old.FlashWasGood
FlashWasGoodGadgeteerDeviceNoSetId
GadgeteerDeviceNoSetIdGainsAreNotSet
GainsAreNotSetGEN_MODULE_ERROR
GEN_MODULE_ERRORGEN_PORT_ERROR
GEN_PORT_ERRORGeneralError
General Error Occurred.GeneralWarning
General Warning Occurred.HwTimestampOutOfSync
The timestamp reported by CANivore is at least 10ms older than the timestamp reported by the system, indicating it's fallen out of sync.IncompatibleMode
IncompatibleModeInsufficientSz
InsufficientSzInternalError
InternalErrorInvalidCanivCache
InvalidCanivCacheInvalidContext
InvalidContextInvalidCrfBadHeader
InvalidCrfBadHeaderInvalidCrfBadSectHeader
InvalidCrfBadSectHeaderInvalidCrfBadSectSize
InvalidCrfBadSectSizeInvalidCrfFileSzInvald
InvalidCrfFileSzInvaldInvalidCrfNoSects
InvalidCrfNoSectsInvalidCrfWrongProduct
InvalidCrfWrongProductInvalidDeviceDescriptor
InvalidDeviceDescriptorInvalidDeviceSpec
InvalidDeviceSpecInvalidHandle
Handle passed into function is incorrect.InvalidIDToFollow
The values specified for master are in valid.InvalidJson
InvalidJsonInvalidLicenseResp
InvalidLicenseRespInvalidLicenseResponse
InvalidLicenseResponseInvalidModel
InvalidModelInvalidModeToGetSignal
The current mode of the device is invalid for getting this signal.InvalidNetwork
InvalidNetworkInvalidOrchestraAction
An invalid orchestra action occurred.InvalidParamValue
Incorrect argument passed into function/VI.InvalidSize
Size is invalid.InvalidTask
InvalidTaskkAccessDenied
kAccessDeniedkDeviceResponseIncorrect
kDeviceResponseIncorrectkErrorPollingForDevices
kErrorPollingForDeviceskFailedSetup
kFailedSetupkFirmwareInvalidResponse
kFirmwareInvalidResponsekGeneralWinUsbError
kGeneralWinUsbErrorkInvalidClass
kInvalidClasskInvalidGuid
kInvalidGuidkInvalidInterface
kInvalidInterfacekInvalidPath
kInvalidPathkInvalidProtocol
kInvalidProtocolkInvalidRespFormat
kInvalidRespFormatkListenFailed
kListenFailedkReceiveFailed
kReceiveFailedkSendFailed
kSendFailedkWinUsbGeneralError
kWinUsbGeneralErrorkWinUsbInitFailed
kWinUsbInitFailedkWinUsbQueryFailed
kWinUsbQueryFailedLibraryCouldNotBeLoaded
LibraryCouldNotBeLoadedLicenseDownloadFailed
License did not successfully download to Device.MissingContext
Could not determine context from this device hashMissingRoutineInLibrary
MissingRoutineInLibraryModelMismatch
Model name in license file does not match model name of selected device.MODULE_NOT_INIT_GET_ERROR
MODULE_NOT_INIT_GET_ERRORMODULE_NOT_INIT_SET_ERROR
MODULE_NOT_INIT_SET_ERRORMoreThanOneFile
MoreThanOneFileMotProfFirmThreshold
Motor Controller must have >= 3.2 firmware for motion profile control mode.MotProfFirmThreshold2
Motor Controller must have >= 3.4 firmware for advanced PID0/PID1 features.MultiSignalNotSupported
The CAN bus does not support multi-signal synchronization.MusicFileInvalid
Music file is invalid.MusicFileNotFound
Could not find music file specified, try specifying an absolute path.MusicFileTooNew
Music file version is too new, update Phoenix to utilize this file.MusicFileTooOld
This music file version is too old.MusicFileWrongSize
Music file size is incorrect, could not parse correctly.MusicInterrupted
Music interrupted due to one of the instruments being commanded a different control mode.MusicNotSupported
This device doesn't support MusicTone control mode.NoConfigs
NoConfigsNoControls
NoControlsNoCrfFile
NoCrfFileNodeIsInvalid
NodeIsInvalidNoDevicesOnBus
NoDevicesOnBusNoFile
Could not find specified file.NormalModeMsgNotPresent
NormalModeMsgNotPresentNoSerialControlFrameResp
NoSerialControlFrameRespNotAllPIDValuesUpdated
NotAllPIDValuesUpdatedNotFound
Could not find this value when searching for itNotImplemented
Not Implemented, check latest installer.NotSupported
This is not supportedNotUpdating
NotUpdatingNoUdpControlFrameResp
NoUdpControlFrameRespOK
No ErrorOnlySupportedInTunerX
OnlySupportedInTunerXPORT_MODULE_TYPE_MISMATCH
PORT_MODULE_TYPE_MISMATCHPulseWidthSensorNotPresent
PulseWidthSensorNotPresentResourceNotAvailable
ResourceNotAvailableRxTimeout
CAN frame not received/too-stale.SelfTestIsEmpty
Self Test report does not have any values, is the firmware up to date?SensorNotPresent
Sensor Not Present.SerialMismatch
Serial Number in license file does not match model name of selected device.SignalLookupFailed
Failed to lookup signal properties.SigNotUpdated
No new response to update signal.SimDeviceAlreadyExists
SimDeviceAlreadyExistsSimDeviceNotFound
SimDeviceNotFoundSimPhysicsTypeNotSupported
SimPhysicsTypeNotSupportedStatusCodeNotInitialized
This StatusCode has not been initialized.TalonFXFirmwarePreVBatDetect
Talon FX(Falcon 500) Firmware Too Old.TaskIsBusy
TaskIsBusyTicksPerRevZero
Ticks per revolution is 0, cannot get heading.TimeoutIso15Response
TimeoutIso15ResponseTxFailed
Could not transmit CAN Frame.TxTimeout
CAN Transmit timed out.UnexpectedArbId
ArbID is incorrect.UnlicensedDevice
Device is not licensed.UsingProFeatureOnUnlicensedDevice
Using a Pro only feature on an unlicensed device.WarningNotInitialized
WarningNotInitializedWheelRadiusTooSmall
Wheel Radius is too small, cannot get distance traveled.WrongRemoteLimitSwitchSource
Use RemoteLimitSwitchSource instead of LimitSwitchSource. -
Field Summary
Fields Modifier and Type Field Description int
value
-
Method Summary
Modifier and Type Method Description String
getDescription()
Gets the description of this StatusCodeString
getName()
Gets the name of this StatusCodeboolean
isError()
boolean
isOK()
boolean
isWarning()
static StatusCode
valueOf(int value)
Gets StatusCode from specified valuestatic StatusCode
valueOf(String name)
Returns the enum constant of this type with the specified name.static StatusCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
OK
No Error -
InvalidDeviceSpec
InvalidDeviceSpec -
EcuIsNotPresent
EcuIsNotPresent -
CouldNotEnterBl
CouldNotEnterBl -
CouldNotConfirmBl
CouldNotConfirmBl -
CouldNotErase
CouldNotErase -
CouldNotSendFlash
CouldNotSendFlash -
CouldNotValidate
CouldNotValidate -
CouldNotRunApp
CouldNotRunApp -
CouldNotReqSetId
CouldNotReqSetId -
CouldNotConfirmId
CouldNotConfirmId -
FlashWasGood
FlashWasGood -
AppTooOld
AppTooOld -
CouldNotReqSetDesc
CouldNotReqSetDesc -
CompileSzIsWrong
CompileSzIsWrong -
GadgeteerDeviceNoSetId
GadgeteerDeviceNoSetId -
InvalidTask
InvalidTask -
NotImplemented
Not Implemented, check latest installer. -
NoDevicesOnBus
NoDevicesOnBus -
MoreThanOneFile
MoreThanOneFile -
NodeIsInvalid
NodeIsInvalid -
InvalidDeviceDescriptor
InvalidDeviceDescriptor -
CouldNotSendCanFrame
CouldNotSendCanFrame -
NormalModeMsgNotPresent
NormalModeMsgNotPresent -
FeatureNotSupported
This feature is not supported. -
NotUpdating
NotUpdating -
CorruptedPOST
CorruptedPOST -
NoConfigs
NoConfigs -
ConfigFailed
ConfigFailed -
CouldNotReqFactoryDefault
CouldNotReqFactoryDefault -
CustomNameNotSupported
CustomNameNotSupported -
ConfigReadWriteMismatch
ConfigReadWriteMismatch -
CouldNotReqSetConfigs
CouldNotReqSetConfigs -
InsufficientSz
InsufficientSz -
InvalidModel
InvalidModel -
CouldNotReqDevInfo
CouldNotReqDevInfo -
NoControls
NoControls -
DeviceIsNull
DeviceIsNull -
DeviceDidNotRespondToDiagReq
DeviceDidNotRespondToDiagReq -
OnlySupportedInTunerX
OnlySupportedInTunerX -
CanivCliError
CanivCliError -
InvalidCrfBadHeader
InvalidCrfBadHeader -
InvalidCrfFileSzInvald
InvalidCrfFileSzInvald -
InvalidCrfWrongProduct
InvalidCrfWrongProduct -
InvalidCrfNoSects
InvalidCrfNoSects -
InvalidCrfBadSectHeader
InvalidCrfBadSectHeader -
InvalidCrfBadSectSize
InvalidCrfBadSectSize -
NoCrfFile
NoCrfFile -
CouldNotFindDynamicId
CouldNotFindDynamicId -
DidNotGetDhcp
DidNotGetDhcp -
DidNotGetFullDhcp
DidNotGetFullDhcp -
InvalidLicenseResp
InvalidLicenseResp -
InvalidCanivCache
InvalidCanivCache -
CannotOpenSerialPort
CannotOpenSerialPort -
CannotWriteSerialPort
CannotWriteSerialPort -
CannotReadSerialPort
CannotReadSerialPort -
CannotSerialToDevice
CannotSerialToDevice -
NoSerialControlFrameResp
NoSerialControlFrameResp -
CannotOpenUdpPort
CannotOpenUdpPort -
CannotWriteUdpPort
CannotWriteUdpPort -
CannotReadUdpPort
CannotReadUdpPort -
CannotUdpToDevice
CannotUdpToDevice -
NoUdpControlFrameResp
NoUdpControlFrameResp -
TimeoutIso15Response
TimeoutIso15Response -
InvalidJson
InvalidJson -
AppIsTerminating
AppIsTerminating -
CanMessageStale
CAN Message is stale. -
BufferFull
Buffer is full, cannot insert more data. -
PulseWidthSensorNotPresent
PulseWidthSensorNotPresent -
GeneralWarning
General Warning Occurred. -
FirmVersionCouldNotBeRetrieved
Firm Vers could not be retrieved. Use Phoenix Tuner to check ID and firmware(CRF) version. -
FeaturesNotAvailableYet
This feature will be supported in a future update. -
ControlModeNotValid
The control mode is not valid for this function. -
ControlModeNotSupportedYet
This control mode is not supported yet. A future release will supported this soon. -
MotProfFirmThreshold
Motor Controller must have >= 3.2 firmware for motion profile control mode. -
MotProfFirmThreshold2
Motor Controller must have >= 3.4 firmware for advanced PID0/PID1 features. -
SimDeviceNotFound
SimDeviceNotFound -
SimPhysicsTypeNotSupported
SimPhysicsTypeNotSupported -
SimDeviceAlreadyExists
SimDeviceAlreadyExists -
TxFailed
Could not transmit CAN Frame. -
InvalidParamValue
Incorrect argument passed into function/VI. -
RxTimeout
CAN frame not received/too-stale. -
TxTimeout
CAN Transmit timed out. -
UnexpectedArbId
ArbID is incorrect. -
CanOverflowed
CanOverflowed -
SensorNotPresent
Sensor Not Present. -
FirmwareTooOld
Firmware Too Old. Use Phoenix Tuner to field upgrade your CTRE CAN device firmware(CRF). Then restart your robot application to clear this error. -
CouldNotChangePeriod
Control Frame Period could not be changed. Most likely it is not being transmitted. -
BufferFailure
BufferFailure -
FirmwareNonFRC
Firmware is legacy non-FRC version. Use Phoenix Tuner to field upgrade your CTRE CAN device firmware(CRF). Firmware greater than 20.0 required. -
GeneralError
General Error Occurred. -
SigNotUpdated
No new response to update signal. -
NotAllPIDValuesUpdated
NotAllPIDValuesUpdated -
GEN_PORT_ERROR
GEN_PORT_ERROR -
PORT_MODULE_TYPE_MISMATCH
PORT_MODULE_TYPE_MISMATCH -
GEN_MODULE_ERROR
GEN_MODULE_ERROR -
MODULE_NOT_INIT_SET_ERROR
MODULE_NOT_INIT_SET_ERROR -
MODULE_NOT_INIT_GET_ERROR
MODULE_NOT_INIT_GET_ERROR -
WheelRadiusTooSmall
Wheel Radius is too small, cannot get distance traveled. -
TicksPerRevZero
Ticks per revolution is 0, cannot get heading. -
DistanceBetweenWheelsTooSmall
Distance between wheels is too small, cannot get heading. -
GainsAreNotSet
GainsAreNotSet -
WrongRemoteLimitSwitchSource
Use RemoteLimitSwitchSource instead of LimitSwitchSource. -
DoubleVoltageCompensatingWPI
Motor Controller Voltage Compensation should not be used with setVoltage(). This causes compensation to happen twice. Disable Voltage Compensation by calling enableVoltageCompensation(false) in order to use setVoltage(). -
CANdleAnimSlotOutOfBounds
CANdleAnimSlotOutOfBounds -
IncompatibleMode
IncompatibleMode -
InvalidHandle
Handle passed into function is incorrect. -
FeatureRequiresHigherFirm
Features requires newer firmware version. -
ConfigFactoryDefaultRequiresHigherFirm
Config factory default features require firmware >=3.10. -
ConfigMotionSCurveRequiresHigherFirm
Config Motion S Curve Strength features require firmware >=4.16. -
TalonFXFirmwarePreVBatDetect
Talon FX(Falcon 500) Firmware Too Old. Use Phoenix Tuner to field upgrade your CTRE CAN device firmware(CRF) to >=20.3. Then restart your robot application to clear this error. -
CANdleAnimationsRequireHigherFirm
CANdleAnimationsRequireHigherFirm -
LibraryCouldNotBeLoaded
LibraryCouldNotBeLoaded -
MissingRoutineInLibrary
MissingRoutineInLibrary -
ResourceNotAvailable
ResourceNotAvailable -
MusicFileNotFound
Could not find music file specified, try specifying an absolute path. -
MusicFileWrongSize
Music file size is incorrect, could not parse correctly. Ensure you're using Tuner to generate file. -
MusicFileTooNew
Music file version is too new, update Phoenix to utilize this file. -
MusicFileInvalid
Music file is invalid. Ensure you're using Tuner to generate file. -
InvalidOrchestraAction
An invalid orchestra action occurred. Ensure a music file is loaded. -
MusicFileTooOld
This music file version is too old. Regenerate file using Tuner. -
MusicInterrupted
Music interrupted due to one of the instruments being commanded a different control mode. Press Play to resume music. -
MusicNotSupported
This device doesn't support MusicTone control mode. -
kInvalidInterface
kInvalidInterface -
kInvalidGuid
kInvalidGuid -
kInvalidClass
kInvalidClass -
kInvalidProtocol
kInvalidProtocol -
kInvalidPath
kInvalidPath -
kGeneralWinUsbError
kGeneralWinUsbError -
kFailedSetup
kFailedSetup -
kListenFailed
kListenFailed -
kSendFailed
kSendFailed -
kReceiveFailed
kReceiveFailed -
kInvalidRespFormat
kInvalidRespFormat -
kWinUsbInitFailed
kWinUsbInitFailed -
kWinUsbQueryFailed
kWinUsbQueryFailed -
kWinUsbGeneralError
kWinUsbGeneralError -
kAccessDenied
kAccessDenied -
kFirmwareInvalidResponse
kFirmwareInvalidResponse -
StatusCodeNotInitialized
This StatusCode has not been initialized. Make sure the StatusCode is getting assigned to the return of a method. -
WarningNotInitialized
WarningNotInitialized -
HwTimestampOutOfSync
The timestamp reported by CANivore is at least 10ms older than the timestamp reported by the system, indicating it's fallen out of sync. This does not impact the data of this message, only the timing. -
InvalidNetwork
InvalidNetwork -
MultiSignalNotSupported
The CAN bus does not support multi-signal synchronization. -
CouldNotCast
Could not cast from base value to this particular signal's type -
NotFound
Could not find this value when searching for it -
NotSupported
This is not supported -
MissingContext
Could not determine context from this device hash -
ModelMismatch
Model name in license file does not match model name of selected device. -
SerialMismatch
Serial Number in license file does not match model name of selected device. -
NoFile
Could not find specified file. -
LicenseDownloadFailed
License did not successfully download to Device. -
SelfTestIsEmpty
Self Test report does not have any values, is the firmware up to date? -
SignalLookupFailed
Failed to lookup signal properties. This can happen if the fimware is too new and supports signals that older APIs do not support. -
InvalidModeToGetSignal
The current mode of the device is invalid for getting this signal. -
UnlicensedDevice
Device is not licensed. Cannot get any data from it. -
InvalidSize
Size is invalid. -
InvalidLicenseResponse
InvalidLicenseResponse -
InvalidContext
InvalidContext -
InternalError
InternalError -
TaskIsBusy
TaskIsBusy -
kDeviceResponseIncorrect
kDeviceResponseIncorrect -
kErrorPollingForDevices
kErrorPollingForDevices -
CouldNotRetrieveProFirmware
Device firmware could not be retrieved. Check that the device is running Pro firmware, that the device ID is correct, that the specified CAN bus is correct, and that the device is powered. -
CouldNotDecodeDeviceFirmware
Device firmware could not be decoded. Check that the device is running Pro firmware, that the device ID is correct, that the specified CAN bus is correct, and that the device is powered. -
InvalidIDToFollow
The values specified for master are in valid. Make sure the Device ID of master are correct. -
UsingProFeatureOnUnlicensedDevice
Using a Pro only feature on an unlicensed device. The device may not behave as expected if it continues to operate while unlicensed. -
FirmwareTooNew
Firmware Too New. Use Phoenix Tuner to field upgrade your CTRE CAN device firmware(CRF) to a compatible version. Then restart your robot application to clear this error.
-
-
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
Gets StatusCode from specified value- Parameters:
value
- Value of StatusCode- Returns:
- StatusCode of specified value
-
isError
- Returns:
- true if this code is an error
-
isWarning
- Returns:
- true if this code is a warning
-
isOK
- Returns:
- true if this code is OK
-
getName
Gets the name of this StatusCode- Returns:
- Name of this StatusCode
-
getDescription
Gets the description of this StatusCode- Returns:
- Description of this StatusCode
-