ErrorCode
- class phoenix5.ErrorCode(value: int)
Bases:
pybind11_object
Members:
OK
OKAY : No Error - Function executed as expected
CAN_MSG_STALE
CAN_TX_FULL
TxFailed : Could not transmit the CAN frame.
InvalidParamValue : Caller passed an invalid param
CAN_INVALID_PARAM
RxTimeout : CAN frame has not been received within specified period of time.
CAN_MSG_NOT_FOUND
TxTimeout : Not used.
CAN_NO_MORE_TX_JOBS
UnexpectedArbId : Specified CAN Id is invalid.
CAN_NO_SESSIONS_AVAIL
BufferFull : Caller attempted to insert data into a buffer that is full.
CAN_OVERFLOW
SensorNotPresent : Sensor is not present
FirmwareTooOld
CouldNotChangePeriod
BufferFailure
FirwmwareNonFRC
GeneralError : User Specified General Error
GENERAL_ERROR
SIG_NOT_UPDATED
SigNotUpdated : Have not received an value response for signal.
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
WrongRemoteLimitSwitchSource
DoubleVoltageCompensatingWPI
CANdleAnimSlotOutOfBounds
IncompatibleMode
InvalidHandle : Handle does not match stored map of handles
FeatureRequiresHigherFirm
MotorControllerFeatureRequiresHigherFirm
TalonFeatureRequiresHigherFirm
ConfigFactoryDefaultRequiresHigherFirm
ConfigMotionSCurveRequiresHigherFirm
TalonFXFirmwarePreVBatDetect
CANdleAnimationsRequireHigherFirm
LibraryCouldNotBeLoaded
MissingRoutineInLibrary
ResourceNotAvailable
MusicFileNotFound
MusicFileWrongSize
MusicFileTooNew
MusicFileInvalid
InvalidOrchestraAction
MusicFileTooOld
MusicInterrupted
MusicNotSupported
kInvalidInterface
kInvalidGuid
kInvalidClass
kInvalidProtocol
kInvalidPath
kGeneralWinUsbError
kFailedSetup
kListenFailed
kSendFailed
kReceiveFailed
kInvalidRespFormat
kWinUsbInitFailed
kWinUsbQueryFailed
kWinUsbGeneralError
kAccessDenied
kFirmwareInvalidResponse
PulseWidthSensorNotPresent : Special Code for “isSensorPresent”
GeneralWarning
FeatureNotSupported
NotImplemented
FirmVersionCouldNotBeRetrieved
FeaturesNotAvailableYet
ControlModeNotValid
ControlModeNotSupportedYet
CascadedPIDNotSupporteYet
AuxiliaryPIDNotSupportedYet
RemoteSensorsNotSupportedYet
MotProfFirmThreshold
MotProfFirmThreshold2
SimDeviceNotFound
SimPhysicsTypeNotSupported
SimDeviceAlreadyExists
- AuxiliaryPIDNotSupportedYet = <ErrorCode.CascadedPIDNotSupporteYet: 107>
- BufferFailure = <ErrorCode.BufferFailure: -10>
- BufferFull = <ErrorCode.BufferFull: 6>
- CAN_INVALID_PARAM = <ErrorCode.InvalidParamValue: -2>
- CAN_MSG_NOT_FOUND = <ErrorCode.RxTimeout: -3>
- CAN_MSG_STALE = <ErrorCode.CAN_MSG_STALE: 1>
- CAN_NO_MORE_TX_JOBS = <ErrorCode.TxTimeout: -4>
- CAN_NO_SESSIONS_AVAIL = <ErrorCode.UnexpectedArbId: -5>
- CAN_OVERFLOW = <ErrorCode.CAN_OVERFLOW: -6>
- CAN_TX_FULL = <ErrorCode.CAN_TX_FULL: -1>
- CANdleAnimSlotOutOfBounds = <ErrorCode.CANdleAnimSlotOutOfBounds: -506>
- CANdleAnimationsRequireHigherFirm = <ErrorCode.CANdleAnimationsRequireHigherFirm: -705>
- CascadedPIDNotSupporteYet = <ErrorCode.CascadedPIDNotSupporteYet: 107>
- ConfigFactoryDefaultRequiresHigherFirm = <ErrorCode.ConfigFactoryDefaultRequiresHigherFirm: -702>
- ConfigMotionSCurveRequiresHigherFirm = <ErrorCode.ConfigMotionSCurveRequiresHigherFirm: -703>
- ControlModeNotSupportedYet = <ErrorCode.ControlModeNotSupportedYet: 106>
- ControlModeNotValid = <ErrorCode.ControlModeNotValid: 105>
- CouldNotChangePeriod = <ErrorCode.CouldNotChangePeriod: -9>
- DistanceBetweenWheelsTooSmall = <ErrorCode.DistanceBetweenWheelsTooSmall: -502>
- DoubleVoltageCompensatingWPI = <ErrorCode.DoubleVoltageCompensatingWPI: -505>
- FeatureNotSupported = <ErrorCode.FeatureNotSupported: 101>
- FeatureRequiresHigherFirm = <ErrorCode.FeatureRequiresHigherFirm: -700>
- FeaturesNotAvailableYet = <ErrorCode.FeaturesNotAvailableYet: 104>
- FirmVersionCouldNotBeRetrieved = <ErrorCode.FirmVersionCouldNotBeRetrieved: 103>
- FirmwareTooOld = <ErrorCode.FirmwareTooOld: -8>
- FirwmwareNonFRC = <ErrorCode.FirwmwareNonFRC: -11>
- GENERAL_ERROR = <ErrorCode.GeneralError: -100>
- GEN_MODULE_ERROR = <ErrorCode.GEN_MODULE_ERROR: -400>
- GEN_PORT_ERROR = <ErrorCode.GEN_PORT_ERROR: -300>
- GainsAreNotSet = <ErrorCode.GainsAreNotSet: -503>
- GeneralError = <ErrorCode.GeneralError: -100>
- GeneralWarning = <ErrorCode.GeneralWarning: 100>
- IncompatibleMode = <ErrorCode.IncompatibleMode: -600>
- InvalidHandle = <ErrorCode.InvalidHandle: -601>
- InvalidOrchestraAction = <ErrorCode.InvalidOrchestraAction: -904>
- InvalidParamValue = <ErrorCode.InvalidParamValue: -2>
- LibraryCouldNotBeLoaded = <ErrorCode.LibraryCouldNotBeLoaded: -800>
- MODULE_NOT_INIT_GET_ERROR = <ErrorCode.MODULE_NOT_INIT_GET_ERROR: -402>
- MODULE_NOT_INIT_SET_ERROR = <ErrorCode.MODULE_NOT_INIT_SET_ERROR: -401>
- MissingRoutineInLibrary = <ErrorCode.MissingRoutineInLibrary: -801>
- MotProfFirmThreshold = <ErrorCode.MotProfFirmThreshold: 109>
- MotProfFirmThreshold2 = <ErrorCode.MotProfFirmThreshold2: 110>
- MotorControllerFeatureRequiresHigherFirm = <ErrorCode.MotorControllerFeatureRequiresHigherFirm: -701>
- MusicFileInvalid = <ErrorCode.MusicFileInvalid: -903>
- MusicFileNotFound = <ErrorCode.MusicFileNotFound: -900>
- MusicFileTooNew = <ErrorCode.MusicFileTooNew: -902>
- MusicFileTooOld = <ErrorCode.MusicFileTooOld: -905>
- MusicFileWrongSize = <ErrorCode.MusicFileWrongSize: -901>
- MusicInterrupted = <ErrorCode.MusicInterrupted: -906>
- MusicNotSupported = <ErrorCode.MusicNotSupported: -907>
- NotAllPIDValuesUpdated = <ErrorCode.NotAllPIDValuesUpdated: -201>
- NotImplemented = <ErrorCode.NotImplemented: 102>
- OK = <ErrorCode.OK: 0>
- OKAY = <ErrorCode.OK: 0>
- PORT_MODULE_TYPE_MISMATCH = <ErrorCode.PORT_MODULE_TYPE_MISMATCH: -301>
- PulseWidthSensorNotPresent = <ErrorCode.PulseWidthSensorNotPresent: 10>
- RemoteSensorsNotSupportedYet = <ErrorCode.RemoteSensorsNotSupportedYet: 108>
- ResourceNotAvailable = <ErrorCode.ResourceNotAvailable: -802>
- RxTimeout = <ErrorCode.RxTimeout: -3>
- SIG_NOT_UPDATED = <ErrorCode.SIG_NOT_UPDATED: -200>
- SensorNotPresent = <ErrorCode.SensorNotPresent: -7>
- SigNotUpdated = <ErrorCode.SIG_NOT_UPDATED: -200>
- SimDeviceAlreadyExists = <ErrorCode.SimDeviceAlreadyExists: 202>
- SimDeviceNotFound = <ErrorCode.SimDeviceNotFound: 200>
- SimPhysicsTypeNotSupported = <ErrorCode.SimPhysicsTypeNotSupported: 201>
- TalonFXFirmwarePreVBatDetect = <ErrorCode.TalonFXFirmwarePreVBatDetect: -704>
- TalonFeatureRequiresHigherFirm = <ErrorCode.MotorControllerFeatureRequiresHigherFirm: -701>
- TicksPerRevZero = <ErrorCode.TicksPerRevZero: -501>
- TxFailed = <ErrorCode.CAN_TX_FULL: -1>
- TxTimeout = <ErrorCode.TxTimeout: -4>
- UnexpectedArbId = <ErrorCode.UnexpectedArbId: -5>
- WheelRadiusTooSmall = <ErrorCode.WheelRadiusTooSmall: -500>
- WrongRemoteLimitSwitchSource = <ErrorCode.WrongRemoteLimitSwitchSource: -504>
- kAccessDenied = <ErrorCode.kAccessDenied: -1014>
- kFailedSetup = <ErrorCode.kFailedSetup: -1006>
- kFirmwareInvalidResponse = <ErrorCode.kFirmwareInvalidResponse: -1015>
- kGeneralWinUsbError = <ErrorCode.kGeneralWinUsbError: -1005>
- kInvalidClass = <ErrorCode.kInvalidClass: -1002>
- kInvalidGuid = <ErrorCode.kInvalidGuid: -1001>
- kInvalidInterface = <ErrorCode.kInvalidInterface: -1000>
- kInvalidPath = <ErrorCode.kInvalidPath: -1004>
- kInvalidProtocol = <ErrorCode.kInvalidProtocol: -1003>
- kInvalidRespFormat = <ErrorCode.kInvalidRespFormat: -1010>
- kListenFailed = <ErrorCode.kListenFailed: -1007>
- kReceiveFailed = <ErrorCode.kReceiveFailed: -1009>
- kSendFailed = <ErrorCode.kSendFailed: -1008>
- kWinUsbGeneralError = <ErrorCode.kWinUsbGeneralError: -1013>
- kWinUsbInitFailed = <ErrorCode.kWinUsbInitFailed: -1011>
- kWinUsbQueryFailed = <ErrorCode.kWinUsbQueryFailed: -1012>
- property name
- property value