#![allow(non_camel_case_types)]
#[repr(i32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum ErrorCode {
OK = 0,
CAN_MSG_STALE = 1,
TxFailed = -1,
InvalidParamValue = -2,
RxTimeout = -3,
TxTimeout = -4,
UnexpectedArbId = -5,
BufferFull = 6,
CAN_OVERFLOW = -6,
SensorNotPresent = -7,
FirmwareTooOld = -8,
CouldNotChangePeriod = -9,
GeneralError = -100,
SigNotUpdated = -200,
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,
IncompatibleMode = -600,
InvalidHandle = -601,
FeatureRequiresHigherFirm = -700,
TalonFeatureRequiresHigherFirm = -701,
PulseWidthSensorNotPresent = 10,
GeneralWarning = 100,
FeatureNotSupported = 101,
NotImplemented = 102,
FirmVersionCouldNotBeRetrieved = 103,
FeaturesNotAvailableYet = 104,
ControlModeNotValid = 105,
ControlModeNotSupportedYet = 106,
AuxiliaryPIDNotSupportedYet = 107,
RemoteSensorsNotSupportedYet = 108,
MotProfFirmThreshold = 109,
MotProfFirmThreshold2 = 110,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum ParamEnum {
OnBoot_BrakeMode = 31,
QuadFilterEn = 91,
QuadIdxPolarity = 108,
ClearPositionOnIdx = 100,
MotionProfileHasUnderrunErr = 119,
MotionProfileTrajectoryPointDurationMs = 120,
ClearPosOnLimitF = 144,
ClearPosOnLimitR = 145,
StatusFramePeriod = 300,
OpenloopRamp = 301,
ClosedloopRamp = 302,
NeutralDeadband = 303,
PeakPosOutput = 305,
NominalPosOutput = 306,
PeakNegOutput = 307,
NominalNegOutput = 308,
ProfileParamSlot_P = 310,
ProfileParamSlot_I = 311,
ProfileParamSlot_D = 312,
ProfileParamSlot_F = 313,
ProfileParamSlot_IZone = 314,
ProfileParamSlot_AllowableErr = 315,
ProfileParamSlot_MaxIAccum = 316,
ProfileParamSlot_PeakOutput = 317,
ClearPositionOnLimitF = 320,
ClearPositionOnLimitR = 321,
ClearPositionOnQuadIdx = 322,
SampleVelocityPeriod = 325,
SampleVelocityWindow = 326,
FeedbackSensorType = 330,
SelectedSensorPosition = 331,
FeedbackNotContinuous = 332,
RemoteSensorSource = 333, RemoteSensorDeviceID = 334,
SensorTerm = 335, RemoteSensorClosedLoopDisableNeutralOnLOS = 336,
PIDLoopPolarity = 337,
PIDLoopPeriod = 338,
SelectedSensorCoefficient = 339,
ForwardSoftLimitThreshold = 340,
ReverseSoftLimitThreshold = 341,
ForwardSoftLimitEnable = 342,
ReverseSoftLimitEnable = 343,
NominalBatteryVoltage = 350,
BatteryVoltageFilterSize = 351,
ContinuousCurrentLimitAmps = 360,
PeakCurrentLimitMs = 361,
PeakCurrentLimitAmps = 362,
ClosedLoopIAccum = 370,
CustomParam = 380,
StickyFaults = 390,
AnalogPosition = 400,
QuadraturePosition = 401,
PulseWidthPosition = 402,
MotMag_Accel = 410,
MotMag_VelCruise = 411,
LimitSwitchSource = 421,
LimitSwitchNormClosedAndDis = 422,
LimitSwitchDisableNeutralOnLOS = 423,
LimitSwitchRemoteDevID = 424,
SoftLimitDisableNeutralOnLOS = 425,
PulseWidthPeriod_EdgesPerRot = 430,
PulseWidthPeriod_FilterWindowSz = 431,
YawOffset = 160,
CompassOffset = 161,
BetaGain = 162,
EnableCompassFusion = 163,
GyroNoMotionCal = 164,
EnterCalibration = 165,
FusedHeadingOffset = 166,
StatusFrameRate = 169,
AccumZ = 170,
TempCompDisable = 171,
MotionMeas_tap_threshX = 172,
MotionMeas_tap_threshY = 173,
MotionMeas_tap_threshZ = 174,
MotionMeas_tap_count = 175,
MotionMeas_tap_time = 176,
MotionMeas_tap_time_multi = 177,
MotionMeas_shake_reject_thresh = 178,
MotionMeas_shake_reject_time = 179,
MotionMeas_shake_reject_timeout = 180,
}