482 return "Invalid Value";
493 return this->value == data.
value;
497 return this->value == data;
501 return this->value < data.
value;
505 return this->value < data;
Class that holds all the SPN values used in Phoenix Pro devices.
Definition: SpnValue.hpp:21
static constexpr int StickyFault_DeviceTemp
Definition: SpnValue.hpp:203
static constexpr int Config_ReverseLimitSource
Definition: SpnValue.hpp:178
static constexpr int Slot2_kP
Definition: SpnValue.hpp:136
static constexpr int Config_SupplyCurrentLimit
Definition: SpnValue.hpp:148
static constexpr int StickyFault_BootDuringEnable
Definition: SpnValue.hpp:207
static constexpr int ReverseLimit
Definition: SpnValue.hpp:88
static constexpr int StickyFault_TALONFX_StatorCurrLimit
Definition: SpnValue.hpp:245
static constexpr int Config_PeakRevTorqCurr
Definition: SpnValue.hpp:155
static constexpr int PRO_PIDOutput_DerivativeOutput_A
Definition: SpnValue.hpp:119
static constexpr int Fault_PIGEON2_DataAcquiredLate
Definition: SpnValue.hpp:216
static constexpr int Config_DutyCycleNeutralDB
Definition: SpnValue.hpp:145
static constexpr int Config_StatorCurrentLimit
Definition: SpnValue.hpp:146
static constexpr int PRO_PIDOutput_DerivativeOutput_DC
Definition: SpnValue.hpp:117
static constexpr int Config_TorqueNeutralDB
Definition: SpnValue.hpp:156
static constexpr int PRO_PIDRefSlopeECUTime_ReferenceSlope_Position
Definition: SpnValue.hpp:124
static constexpr int StickyFault_PIGEON2_DataAcquiredLate
Definition: SpnValue.hpp:217
static constexpr int Fault_TALONFX_UnstableSupplyV
Definition: SpnValue.hpp:230
static constexpr int Config_ReverseSoftLimitThreshold
Definition: SpnValue.hpp:183
static constexpr int Fault_TALONFX_ForwardHardLimit
Definition: SpnValue.hpp:234
static constexpr int StickyFault_TALONFX_ForwardHardLimit
Definition: SpnValue.hpp:235
static constexpr int Pigeon2QuatZ
Definition: SpnValue.hpp:59
static constexpr int Config_PeakReverseDC
Definition: SpnValue.hpp:151
static constexpr int Config_RotorToSensorRatio
Definition: SpnValue.hpp:159
static constexpr int Fault_Undervoltage
Definition: SpnValue.hpp:204
static constexpr int Pigeon2AngularVelocityX
Definition: SpnValue.hpp:71
static constexpr int Fault_Hardware
Definition: SpnValue.hpp:198
static constexpr int StickyFault_TALONFX_SupplyCurrLimit
Definition: SpnValue.hpp:247
static constexpr int Slot0_kI
Definition: SpnValue.hpp:127
static constexpr int PRO_MotorOutput_RotorPolarity
Definition: SpnValue.hpp:89
static constexpr int Version_Full
Definition: SpnValue.hpp:31
static constexpr int StickyFault_TALONFX_ForwardSoftLimit
Definition: SpnValue.hpp:239
static constexpr int Fault_DeviceTemp
Definition: SpnValue.hpp:202
static constexpr int Pigeon2GravityVectorY
Definition: SpnValue.hpp:61
static constexpr int StickyFault_PIGEON2_SaturatedAccel
Definition: SpnValue.hpp:223
static constexpr int StickyFault_ProcTemp
Definition: SpnValue.hpp:201
static constexpr int Fault_PIGEON2_BootupAccel
Definition: SpnValue.hpp:208
static constexpr int Config_ForwardSoftLimitEnable
Definition: SpnValue.hpp:180
static constexpr int Fault_TALONFX_OverSupplyV
Definition: SpnValue.hpp:228
static constexpr int PRO_MotorOutput_BridgeType_Public
Definition: SpnValue.hpp:194
static constexpr int Config_TorqueClosedLoopRampPeriod
Definition: SpnValue.hpp:167
static constexpr int Pigeon2MagneticFieldX
Definition: SpnValue.hpp:78
static constexpr int StickyFault_PIGEON2_SaturatedMagne
Definition: SpnValue.hpp:221
static constexpr int PRO_PIDOutput_Output_DC
Definition: SpnValue.hpp:120
static constexpr int Pigeon2RawMagneticFieldX
Definition: SpnValue.hpp:81
static constexpr int Config_ForwardLimitAutosetPosValue
Definition: SpnValue.hpp:170
static constexpr int Pigeon2NoMotionCalEnabled
Definition: SpnValue.hpp:64
static constexpr int StickyFault_TALONFX_FusedSensorOutOfSync
Definition: SpnValue.hpp:243
static constexpr int Version_Bugfix
Definition: SpnValue.hpp:29
static constexpr int StickyFault_PIGEON2_BootupGyros
Definition: SpnValue.hpp:211
static constexpr int Pigeon2DisableTemperatureCompensation
Definition: SpnValue.hpp:45
static constexpr int StickyFault_TALONFX_OverSupplyV
Definition: SpnValue.hpp:229
static constexpr int Pigeon2MagneticFieldY
Definition: SpnValue.hpp:79
static constexpr int Pigeon2AccumGyroX
Definition: SpnValue.hpp:68
static constexpr int PRO_PIDOutput_ProportionalOutput_V
Definition: SpnValue.hpp:115
static constexpr int StickyFault_PIGEON2_BootIntoMotion
Definition: SpnValue.hpp:215
static constexpr int Fault_PIGEON2_SaturatedGyros
Definition: SpnValue.hpp:224
static constexpr int Config_PeakForwardDC
Definition: SpnValue.hpp:150
static constexpr int PRO_PIDStateEnables_IntegratedAccum_DC
Definition: SpnValue.hpp:101
static constexpr int CANCoder_RawVel
Definition: SpnValue.hpp:190
static constexpr int Slot2_kD
Definition: SpnValue.hpp:138
static constexpr int CustomParam1
Definition: SpnValue.hpp:34
bool operator==(const SpnValue &data) const
Definition: SpnValue.hpp:491
static constexpr int Fault_TALONFX_ForwardSoftLimit
Definition: SpnValue.hpp:238
static constexpr int Pigeon2Pitch
Definition: SpnValue.hpp:54
static constexpr int PRO_PIDRefPIDErr_PIDRef_Position
Definition: SpnValue.hpp:110
static constexpr int StickyFault_PIGEON2_LoopTimeSlow
Definition: SpnValue.hpp:219
static constexpr int PRO_PIDRefPIDErr_PIDErr_Position
Definition: SpnValue.hpp:112
static constexpr int PRO_SupplyAndTemp_StatorCurrent
Definition: SpnValue.hpp:92
static constexpr int Config_SensorToMechanismRatio
Definition: SpnValue.hpp:158
static constexpr int Slot2_kI
Definition: SpnValue.hpp:137
static constexpr int Pigeon2NoMotionCount
Definition: SpnValue.hpp:65
static constexpr int Pigeon2MountPoseYaw
Definition: SpnValue.hpp:47
static constexpr int Pigeon2RawMagneticFieldZ
Definition: SpnValue.hpp:83
static constexpr int Fault_TALONFX_FusedSensorOutOfSync
Definition: SpnValue.hpp:242
static constexpr int CANcoder_Position
Definition: SpnValue.hpp:188
static constexpr int CANCoder_SupplyVoltage
Definition: SpnValue.hpp:192
static constexpr int Config_FeedbackRemoteSensorID
Definition: SpnValue.hpp:161
static constexpr int Config_ForwardLimitAutosetPosEnable
Definition: SpnValue.hpp:169
static constexpr int Pigeon2GyroScalarY
Definition: SpnValue.hpp:51
static constexpr int Pigeon2GyroScalarX
Definition: SpnValue.hpp:50
static constexpr int Config_StatorCurrLimitEn
Definition: SpnValue.hpp:147
static constexpr int Pigeon2_SupplyVoltage
Definition: SpnValue.hpp:77
static constexpr int Pigeon2RawMagneticFieldY
Definition: SpnValue.hpp:82
static constexpr int Fault_ProcTemp
Definition: SpnValue.hpp:200
static constexpr int Config_NeutralMode
Definition: SpnValue.hpp:144
static constexpr int Config_BeepOnBoot
Definition: SpnValue.hpp:143
static constexpr int Slot2_kV
Definition: SpnValue.hpp:139
static constexpr int Config_DutyCycleClosedLoopRampPeriod
Definition: SpnValue.hpp:165
static constexpr int StickyFault_PIGEON2_SaturatedGyros
Definition: SpnValue.hpp:225
static constexpr int Slot0_kV
Definition: SpnValue.hpp:129
static constexpr int Config_ContinuousWrap
Definition: SpnValue.hpp:195
static constexpr int PRO_RotorPosAndVel_Position
Definition: SpnValue.hpp:98
static constexpr int PRO_PIDOutput_DerivativeOutput_V
Definition: SpnValue.hpp:118
static constexpr int Config_MotionMagicAcceleration
Definition: SpnValue.hpp:185
static constexpr int PRO_PIDStateEnables_FeedForward_A
Definition: SpnValue.hpp:106
static constexpr int Config_ReverseLimitType
Definition: SpnValue.hpp:174
static constexpr int CANCoder_RawPos
Definition: SpnValue.hpp:191
static constexpr int PRO_PIDRefPIDErr_PIDRef_Velocity
Definition: SpnValue.hpp:111
static constexpr int CANcoder_SensorDirection
Definition: SpnValue.hpp:35
static constexpr int PRO_PosAndVel_Position
Definition: SpnValue.hpp:100
static constexpr int Slot1_kS
Definition: SpnValue.hpp:135
static constexpr int Config_MotionMagicJerk
Definition: SpnValue.hpp:186
static constexpr int PRO_RotorPosAndVel_Velocity
Definition: SpnValue.hpp:97
static constexpr int Pigeon2AccumGyroY
Definition: SpnValue.hpp:69
static constexpr int Fault_PIGEON2_SaturatedAccel
Definition: SpnValue.hpp:222
static constexpr int Config_PeakReverseV
Definition: SpnValue.hpp:153
static constexpr int Slot0_kS
Definition: SpnValue.hpp:130
static constexpr int Pigeon2GravityVectorX
Definition: SpnValue.hpp:60
static constexpr int Config_ForwardLimitRemoteSensorID
Definition: SpnValue.hpp:173
static constexpr int LED1_OnColor
Definition: SpnValue.hpp:38
static constexpr int Slot1_kD
Definition: SpnValue.hpp:133
static constexpr int LED1_OffColor
Definition: SpnValue.hpp:39
static constexpr int PRO_PIDStateEnables_FeedForward_V
Definition: SpnValue.hpp:105
static constexpr int PRO_PIDStateEnables_DeviceEnable
Definition: SpnValue.hpp:109
static constexpr int Slot1_kV
Definition: SpnValue.hpp:134
static constexpr int PRO_SupplyAndTemp_SupplyVoltage
Definition: SpnValue.hpp:94
static constexpr int PRO_PIDStateEnables_IntegratedAccum_A
Definition: SpnValue.hpp:103
static constexpr int PRO_PIDStateEnables_FeedForward_DC
Definition: SpnValue.hpp:104
int value
Definition: SpnValue.hpp:23
static constexpr int PRO_PIDOutput_Slot
Definition: SpnValue.hpp:123
static constexpr int Pigeon2MountPosePitch
Definition: SpnValue.hpp:48
static constexpr int StickyFault_TALONFX_ReverseSoftLimit
Definition: SpnValue.hpp:237
static constexpr int Fault_TALONFX_ReverseSoftLimit
Definition: SpnValue.hpp:236
static constexpr int Config_VoltageClosedLoopRampPeriod
Definition: SpnValue.hpp:166
static constexpr int Pigeon2AccelerationY
Definition: SpnValue.hpp:75
static constexpr int Version_Build
Definition: SpnValue.hpp:30
static constexpr int Pigeon2AngularVelocityY
Definition: SpnValue.hpp:72
static constexpr int Slot1_kI
Definition: SpnValue.hpp:132
static constexpr int Startup_ResetFlags
Definition: SpnValue.hpp:26
static constexpr int CANCoder_MagnetOffset
Definition: SpnValue.hpp:84
static constexpr int Fault_PIGEON2_LoopTimeSlow
Definition: SpnValue.hpp:218
static constexpr int Config_ReverseSoftLimitEnable
Definition: SpnValue.hpp:181
static constexpr int StickyFault_PIGEON2_BootupAccel
Definition: SpnValue.hpp:209
static constexpr int StickyFault_TALONFX_UnstableSupplyV
Definition: SpnValue.hpp:231
static constexpr int Fault_TALONFX_StatorCurrLimit
Definition: SpnValue.hpp:244
static constexpr int Config_SupplyTimeThres
Definition: SpnValue.hpp:197
static constexpr int Fault_PIGEON2_SaturatedMagne
Definition: SpnValue.hpp:220
static constexpr int Version_Minor
Definition: SpnValue.hpp:28
friend std::ostream & operator<<(std::ostream &os, const SpnValue &data)
Definition: SpnValue.hpp:486
bool operator==(int data) const
Definition: SpnValue.hpp:495
static constexpr int CANcoder_MagHealth
Definition: SpnValue.hpp:193
static constexpr int Pigeon2AccumGyroZ
Definition: SpnValue.hpp:70
static constexpr int PRO_SupplyAndTemp_SupplyCurrent
Definition: SpnValue.hpp:93
bool operator<(int data) const
Definition: SpnValue.hpp:503
static constexpr int Config_ForwardLimitSource
Definition: SpnValue.hpp:172
static constexpr int StickyFault_TALONFX_ReverseHardLimit
Definition: SpnValue.hpp:233
static constexpr int Slot0_kP
Definition: SpnValue.hpp:126
static constexpr int Fault_TALONFX_MissingRemoteSensor
Definition: SpnValue.hpp:240
static constexpr int CANcoder_AbsoluteSensorRange
Definition: SpnValue.hpp:85
static constexpr int Version_Major
Definition: SpnValue.hpp:27
static constexpr int Pigeon2UpTime
Definition: SpnValue.hpp:67
static constexpr int Config_Inverted
Definition: SpnValue.hpp:141
static constexpr int Pigeon2AccelerationX
Definition: SpnValue.hpp:74
static constexpr int CANcoder_AbsPosition
Definition: SpnValue.hpp:189
static constexpr int Config_ReverseLimitEnable
Definition: SpnValue.hpp:177
static constexpr int TalonFX_ControlMode
Definition: SpnValue.hpp:107
static constexpr int Config_PeakForwardV
Definition: SpnValue.hpp:152
static constexpr int Config_SupplyCurrLimitEn
Definition: SpnValue.hpp:149
static constexpr int LED2_OffColor
Definition: SpnValue.hpp:41
static constexpr int Licensing_IsProLicensed
Definition: SpnValue.hpp:32
static constexpr int PRO_SupplyAndTemp_DeviceTemp
Definition: SpnValue.hpp:95
static constexpr int Fault_PIGEON2_BootupGyros
Definition: SpnValue.hpp:210
static constexpr int PRO_PIDOutput_ProportionalOutput_A
Definition: SpnValue.hpp:116
static constexpr int StickyFault_CANCODER_BadMagnet
Definition: SpnValue.hpp:227
static constexpr int Config_FeedbackSensorSource
Definition: SpnValue.hpp:160
static constexpr int Fault_PIGEON2_BootupMagne
Definition: SpnValue.hpp:212
static constexpr int PRO_PIDRefSlopeECUTime_ReferenceSlope_Velocity
Definition: SpnValue.hpp:125
static constexpr int Config_ReverseLimitRemoteSensorID
Definition: SpnValue.hpp:179
static constexpr int Config_ReverseLimitAutosetPosEnable
Definition: SpnValue.hpp:175
static constexpr int Config_VoltageOpenLoopRampPeriod
Definition: SpnValue.hpp:163
static constexpr int Pigeon2DisableNoMotionCalibration
Definition: SpnValue.hpp:46
static constexpr int StickyFault_Undervoltage
Definition: SpnValue.hpp:205
static constexpr int Config_MotionMagicCruiseVelocity
Definition: SpnValue.hpp:184
static constexpr int AllFaults
Definition: SpnValue.hpp:42
static constexpr int Pigeon2QuatX
Definition: SpnValue.hpp:57
static constexpr int Config_DutyCycleOpenLoopRampPeriod
Definition: SpnValue.hpp:162
static constexpr int PRO_PIDOutput_Output_V
Definition: SpnValue.hpp:121
static constexpr int StickyFault_Hardware
Definition: SpnValue.hpp:199
static constexpr int PRO_MotorOutput_DutyCycle
Definition: SpnValue.hpp:90
static constexpr int AllStickyFaults
Definition: SpnValue.hpp:43
static constexpr int Fault_CANCODER_BadMagnet
Definition: SpnValue.hpp:226
static constexpr int PRO_PIDStateEnables_IntegratedAccum_V
Definition: SpnValue.hpp:102
static constexpr int StickyFault_PIGEON2_BootupMagne
Definition: SpnValue.hpp:213
static constexpr int Slot1_kP
Definition: SpnValue.hpp:131
static constexpr int PRO_PIDOutput_ProportionalOutput_DC
Definition: SpnValue.hpp:114
static constexpr int Pigeon2GyroScalarZ
Definition: SpnValue.hpp:52
static constexpr int Config_ForwardLimitEnable
Definition: SpnValue.hpp:171
static constexpr int Fault_TALONFX_ReverseHardLimit
Definition: SpnValue.hpp:232
static constexpr int Pigeon2TempCompDisabled
Definition: SpnValue.hpp:66
static constexpr int CustomParam0
Definition: SpnValue.hpp:33
static constexpr int PRO_PIDStateEnables_IsMotionMagicRunning
Definition: SpnValue.hpp:108
static constexpr int PRO_SupplyAndTemp_ProcessorTemp
Definition: SpnValue.hpp:96
bool operator<(const SpnValue &data) const
Definition: SpnValue.hpp:499
static constexpr int Pigeon2MagneticFieldZ
Definition: SpnValue.hpp:80
static constexpr int Pigeon2Temperature
Definition: SpnValue.hpp:63
static constexpr int Slot0_kD
Definition: SpnValue.hpp:128
static constexpr int FrcLock
Definition: SpnValue.hpp:36
static constexpr int Fault_PIGEON2_BootIntoMotion
Definition: SpnValue.hpp:214
static constexpr int Config_TorqueOpenLoopRampPeriod
Definition: SpnValue.hpp:164
static constexpr int Pigeon2QuatW
Definition: SpnValue.hpp:56
static constexpr int Pigeon2UseCompass
Definition: SpnValue.hpp:44
static constexpr int Config_PeakForTorqCurr
Definition: SpnValue.hpp:154
static constexpr int PRO_MotorOutput_TorqueCurrent
Definition: SpnValue.hpp:91
static constexpr int Pigeon2Roll
Definition: SpnValue.hpp:55
static constexpr int Pigeon2Yaw
Definition: SpnValue.hpp:53
static constexpr int Fault_BootDuringEnable
Definition: SpnValue.hpp:206
static constexpr int ForwardLimit
Definition: SpnValue.hpp:87
static constexpr int PRO_PIDOutput_Output_A
Definition: SpnValue.hpp:122
static constexpr int TalonFX_System_State
Definition: SpnValue.hpp:25
static constexpr int RobotEnabled
Definition: SpnValue.hpp:37
static constexpr int PRO_PIDRefPIDErr_PIDErr_Velocity
Definition: SpnValue.hpp:113
static constexpr int Pigeon2MountPoseRoll
Definition: SpnValue.hpp:49
std::string ToString() const
Gets the string representation of this enum.
Definition: SpnValue.hpp:254
static constexpr int Pigeon2AccelerationZ
Definition: SpnValue.hpp:76
static constexpr int PRO_PosAndVel_Velocity
Definition: SpnValue.hpp:99
static constexpr int Fault_TALONFX_SupplyCurrLimit
Definition: SpnValue.hpp:246
static constexpr int Config_ForwardLimitType
Definition: SpnValue.hpp:168
static constexpr int Slot2_kS
Definition: SpnValue.hpp:140
static constexpr int DeviceEnabled
Definition: SpnValue.hpp:86
static constexpr int Pigeon2QuatY
Definition: SpnValue.hpp:58
static constexpr int Config_ReverseLimitAutosetPosValue
Definition: SpnValue.hpp:176
static constexpr int LED2_OnColor
Definition: SpnValue.hpp:40
static constexpr int CANcoder_Velocity
Definition: SpnValue.hpp:187
static constexpr int Config_ForwardSoftLimitThreshold
Definition: SpnValue.hpp:182
static constexpr int Config_SupplyVLowpassTau
Definition: SpnValue.hpp:142
static constexpr int StickyFault_TALONFX_MissingRemoteSensor
Definition: SpnValue.hpp:241
static constexpr int Pigeon2GravityVectorZ
Definition: SpnValue.hpp:62
static constexpr int Pigeon2AngularVelocityZ
Definition: SpnValue.hpp:73
static constexpr int Config_FeedbackRotorOffset
Definition: SpnValue.hpp:157
static constexpr int Config_SupplyCurrThres
Definition: SpnValue.hpp:196
Definition: string_util.hpp:14