Package com.ctre.phoenix6
Enum Class StatusCode
- All Implemented Interfaces:
Serializable
,Comparable<StatusCode>
,java.lang.constant.Constable
Status codes reported by APIs, including OK,
warnings, and errors.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis API version is too old for the firmware on the device.The user application is shutting down.Device firmware application is too old.BufferFailureBuffer is full, cannot insert more data.CANdleAnimationsRequireHigherFirmCANdleAnimSlotOutOfBoundsCommand-line issue with caniv.CAN message is stale, data is valid but old.Device cannot be licensed while it is control enabled.CannotOpenSerialPortCannotOpenUdpPortCannotReadSerialPortCannotReadUdpPortCannotSerialToDeviceThe simulation timing cannot be advanced by a time step while unpaused.CannotUdpToDeviceCannotWriteSerialPortCannotWriteUdpPortCanOverflowedCompileSzIsWrongConfig factory default features require firmware >=3.10.ConfigFailedConfig Motion S Curve Strength features require firmware >=4.16.The configs read from the device do not match the configs that were written.This control mode is not supported yet.The control mode is not valid for this function.CorruptedPOSTCould not cast from base value to this particular signal's typeControl Frame Period could not be changed.Could not confirm the device has entered the bootloader.Could not verify that the changed ID took effect.Device firmware could not be decoded.Could not put the device into bootloader mode.Could not erase flash.CouldNotFindDynamicIdCouldNotReqDevInfoUnable to factory default this device.Could not apply the device configs.Unable to set name to this device.Unable to set ID to this device.Device firmware could not be retrieved.Could not run the device firmware application.CouldNotSendCanFrameCould not field upgrade the device.The data frame could not be serialized for transmit.Bootloader could not verify integrity of the flashed application.CustomNameNotSupportedDeviceDidNotRespondToDiagReqDeviceIsNullDidNotGetDhcpDidNotGetFullDhcpCould not find specified directory.Distance between wheels is too small, cannot get heading.Motor Controller Voltage Compensation should not be used with setVoltage().Device is not present.This feature is not supported.Features requires newer firmware version.This feature will be supported in a future update.Firm Vers could not be retrieved.Firmware is legacy non-FRC version.Firmware Too New.Firmware Too Old.Firmware version is not compatible with this version of Phoenix.Device field upgrade was successful.Do not apply or refresh configs periodically, as configs are blocking.Cannot set the ID of a gadgeteer device.GainsAreNotSetGEN_MODULE_ERRORGEN_PORT_ERRORGeneral Error Occurred.General Warning Occurred.The given hoot log requires a newer version of Phoenix API.The given hoot log requires an older version of Phoenix API.The timestamp reported by CANivore is at least 10ms older than the timestamp reported by the system, indicating it's fallen out of sync.IncompatibleModeInsufficientSzInternalErrorInvalidCanivCacheInvalidContextInvalidCrfBadHeaderInvalidCrfBadSectHeaderInvalidCrfBadSectSizeInvalidCrfFileSzInvaldInvalidCrfNoSectsSpecified CRF is for the wrong product.InvalidDeviceDescriptorThe provided model was not a valid device type.InvalidDeviceSpecCould not open or read the given file.Handle passed into function is incorrect.The values specified for master are in valid.InvalidJsonInvalidLicenseRespInvalidLicenseResponseThis feature is not supported for this device model.The current mode of the device is invalid for getting this signal.InvalidNetworkAn invalid orchestra action occurred.An invalid argument was passed into the function/VI, such as a null pointer.Size is invalid.This diagnostic action is not supported.kAccessDeniedkDeviceResponseIncorrectkErrorPollingForDeviceskFailedSetupkFirmwareInvalidResponsekGeneralWinUsbErrorkInvalidClasskInvalidGuidkInvalidInterfacekInvalidPathkInvalidProtocolkInvalidRespFormatkListenFailedkReceiveFailedkSendFailedkWinUsbGeneralErrorkWinUsbInitFailedkWinUsbQueryFailedLibraryCouldNotBeLoadedLicense did not successfully download to Device.The signal logger is not running.The mechanism is disabled due to a fault in one of the devices.Could not determine context from this device hashMissingRoutineInLibraryModel name in license file does not match model name of selected device.MODULE_NOT_INIT_GET_ERRORMODULE_NOT_INIT_SET_ERRORMoreThanOneFileMotor Controller must have >= 3.2 firmware for motion profile control mode.Motor Controller must have >= 3.4 firmware for advanced PID0/PID1 features.Hoot replay does not support replaying multiple files.The CAN bus does not support multi-signal synchronization.Music file is invalid.Could not find music file specified, try specifying an absolute path.Music file version is too new, update Phoenix to utilize this file.This music file version is too old.Music file size is incorrect, could not parse correctly.Music interrupted due to one of the instruments being commanded a different control mode.This device doesn't support MusicTone control mode.This device did not report any available configs.This device does not support new controls.Specified CRF file could not be found.Specified device was not found.NoDevicesOnBusCould not find specified file.NormalModeMsgNotPresentNoSerialControlFrameRespNotAllPIDValuesUpdatedCould not find this value when searching for itNot Implemented, check latest installer.This is not supportedThe diagnostic server is not field upgrading any devices.NoUdpControlFrameRespNo ErrorThis feature requires Tuner X.PORT_MODULE_TYPE_MISMATCHPulseWidthSensorNotPresentResourceNotAvailableCAN frame not received/too-stale.Self Test report does not have any values, is the firmware up to date?Sensor Not Present.Serial Number in license file does not match model name of selected device.Failed to lookup signal properties.No new response to update signal.SimDeviceAlreadyExistsSimDeviceNotFoundSimPhysicsTypeNotSupportedThis StatusCode has not been initialized.Talon FX(Falcon 500) Firmware Too Old.Diagnostic Server is busy with another command.Ticks per revolution is 0, cannot get heading.Blocking operations, such as configs, cannot have a timeout of 0.TimeoutIso15ResponseCould not transmit CAN Frame.CAN Transmit timed out.ArbID is incorrect.Device is not licensed.Hoot log is not licensed.The maximum number of loggable user signals has been exceeded.Using a Pro only feature on an unlicensed device.WarningNotInitializedWheel Radius is too small, cannot get distance traveled.Use RemoteLimitSwitchSource instead of LimitSwitchSource. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGets the description of this StatusCodegetName()
Gets the name of this StatusCodeboolean
isError()
boolean
isOK()
boolean
static StatusCode
valueOf
(int value) Gets StatusCode from specified valuestatic StatusCode
Returns the enum constant of this class with the specified name.static StatusCode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OK
No Error -
TaskIsBusy
Diagnostic Server is busy with another command. -
InvalidDeviceSpec
InvalidDeviceSpec -
EcuIsNotPresent
Device is not present. Verify the device is connected and powered, and that the CAN bus is terminated. -
CouldNotEnterBl
Could not put the device into bootloader mode. -
CouldNotConfirmBl
Could not confirm the device has entered the bootloader. -
CouldNotErase
Could not erase flash. -
CouldNotSendFlash
Could not field upgrade the device. -
CouldNotValidate
Bootloader could not verify integrity of the flashed application. -
CouldNotRunApp
Could not run the device firmware application. -
CouldNotReqSetId
Unable to set ID to this device. -
CouldNotConfirmId
Could not verify that the changed ID took effect. -
FlashWasGood
Device field upgrade was successful. -
AppTooOld
Device firmware application is too old. -
CouldNotReqSetDesc
Unable to set name to this device. -
CompileSzIsWrong
CompileSzIsWrong -
GadgeteerDeviceNoSetId
Cannot set the ID of a gadgeteer device. -
InvalidTask
This diagnostic action is not supported. -
NotImplemented
Not Implemented, check latest installer. -
NoDevicesOnBus
NoDevicesOnBus -
MoreThanOneFile
MoreThanOneFile -
NodeIsInvalid
Specified device was not found. Verify the device is connected and powered, and that the CAN bus is terminated. -
InvalidDeviceDescriptor
InvalidDeviceDescriptor -
CouldNotSendCanFrame
CouldNotSendCanFrame -
NormalModeMsgNotPresent
NormalModeMsgNotPresent -
FeatureNotSupported
This feature is not supported. -
NotUpdating
The diagnostic server is not field upgrading any devices. -
CorruptedPOST
CorruptedPOST -
NoConfigs
This device did not report any available configs. Verify firmware and diagnostics are up-to-date. -
ConfigFailed
ConfigFailed -
CouldNotReqFactoryDefault
Unable to factory default this device. -
CustomNameNotSupported
CustomNameNotSupported -
ConfigReadWriteMismatch
The configs read from the device do not match the configs that were written. -
CouldNotReqSetConfigs
Could not apply the device configs. -
InsufficientSz
InsufficientSz -
InvalidModel
This feature is not supported for this device model. -
CouldNotReqDevInfo
CouldNotReqDevInfo -
NoControls
This device does not support new controls. -
DeviceIsNull
DeviceIsNull -
DeviceDidNotRespondToDiagReq
DeviceDidNotRespondToDiagReq -
OnlySupportedInTunerX
This feature requires Tuner X. -
CanivCliError
Command-line issue with caniv. -
InvalidCrfBadHeader
InvalidCrfBadHeader -
InvalidCrfFileSzInvald
InvalidCrfFileSzInvald -
InvalidCrfWrongProduct
Specified CRF is for the wrong product. -
InvalidCrfNoSects
InvalidCrfNoSects -
InvalidCrfBadSectHeader
InvalidCrfBadSectHeader -
InvalidCrfBadSectSize
InvalidCrfBadSectSize -
NoCrfFile
Specified CRF file could not be found. -
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
The user application is shutting down. -
CanMessageStale
CAN message is stale, data is valid but old. Check the CAN bus wiring, CAN bus utilization, and power to the device. -
BufferFull
Buffer is full, cannot insert more data. -
PulseWidthSensorNotPresent
PulseWidthSensorNotPresent -
GeneralWarning
General Warning Occurred. -
FirmVersionCouldNotBeRetrieved
Firm Vers could not be retrieved. Use Phoenix Tuner X 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
An invalid argument was passed into the function/VI, such as a null pointer. -
RxTimeout
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device. -
TxTimeout
CAN Transmit timed out. -
UnexpectedArbId
ArbID is incorrect. -
CanOverflowed
CanOverflowed -
SensorNotPresent
Sensor Not Present. -
FirmwareTooOld
Firmware Too Old. Use Phoenix Tuner X 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 X 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. -
FrequentConfigCalls
Do not apply or refresh configs periodically, as configs are blocking. -
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 -
kDeviceResponseIncorrect
kDeviceResponseIncorrect -
kErrorPollingForDevices
kErrorPollingForDevices -
CouldNotRetrieveV6Firmware
Device firmware could not be retrieved. Check that the device is running v6 firmware, the device ID is correct, the specified CAN bus is correct, and the device is powered. -
CouldNotDecodeDeviceFirmware
Device firmware could not be decoded. Check that the device is running v6 firmware, the device ID is correct, the specified CAN bus is correct, and 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 X to field upgrade your CTRE CAN device firmware(CRF) to a compatible version. Then restart your robot application to clear this error. -
CouldNotSerialize
The data frame could not be serialized for transmit. -
MechanismFaulted
The mechanism is disabled due to a fault in one of the devices. -
FirmwareVersNotCompatible
Firmware version is not compatible with this version of Phoenix. Make sure your firmware and API major versions match. -
DirectoryMissing
Could not find specified directory. -
ApiTooOld
This API version is too old for the firmware on the device. Either upgrade the API to a newer version or downgrade the device firmware to an older version for correct behavior. -
LoggerNotRunning
The signal logger is not running. Start the signal logger before writing any signals. -
TimeoutCannotBeZero
Blocking operations, such as configs, cannot have a timeout of 0. Pass in a non-zero timeout (typically 0.050+ seconds) for normal operation. -
CannotLicenseWhileEnabled
Device cannot be licensed while it is control enabled. Disable and neutral the device to apply the licenses. -
InvalidFile
Could not open or read the given file. -
HootLogTooOld
The given hoot log requires an older version of Phoenix API. -
HootLogTooNew
The given hoot log requires a newer version of Phoenix API. -
UnlicensedHootLog
Hoot log is not licensed. Cannot get any data from it. -
CannotStepWhileUnpaused
The simulation timing cannot be advanced by a time step while unpaused. Pause the simulator before advancing time. -
MultipleReplayNotSupported
Hoot replay does not support replaying multiple files. Ensure that only one file is loaded at a time. -
UserSignalLimitExceeded
The maximum number of loggable user signals has been exceeded. Additional user signals will not be logged. -
InvalidDeviceModel
The provided model was not a valid device type.
-
-
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
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
-