CTRE Phoenix Pro C++ 23.0.12
SpnValue.hpp
Go to the documentation of this file.
1/*
2 * Copyright (C) Cross The Road Electronics.  All rights reserved.
3 * License information can be found in CTRE_LICENSE.txt
4 * For support and suggestions contact support@ctr-electronics.com or file
5 * an issue tracker at https://github.com/CrossTheRoadElec/Phoenix-Releases
6 */
7#pragma once
8
9#include <string>
10
11namespace ctre
12{
13 namespace phoenixpro
14 {
15 namespace spns
16 {
17 /**
18 * \brief Class that holds all the SPN values used in Phoenix Pro devices.
19 */
21 {
22 public:
23 int value;
24
25 static constexpr int TalonFX_System_State = 612;
26 static constexpr int Startup_ResetFlags = 633;
27 static constexpr int Version_Major = 731;
28 static constexpr int Version_Minor = 732;
29 static constexpr int Version_Bugfix = 733;
30 static constexpr int Version_Build = 734;
31 static constexpr int Version_Full = 735;
32 static constexpr int Licensing_IsProLicensed = 748;
33 static constexpr int CustomParam0 = 816;
34 static constexpr int CustomParam1 = 817;
35 static constexpr int CANcoder_SensorDirection = 821;
36 static constexpr int FrcLock = 823;
37 static constexpr int RobotEnabled = 824;
38 static constexpr int LED1_OnColor = 826;
39 static constexpr int LED1_OffColor = 827;
40 static constexpr int LED2_OnColor = 828;
41 static constexpr int LED2_OffColor = 829;
42 static constexpr int AllFaults = 835;
43 static constexpr int AllStickyFaults = 836;
44 static constexpr int Pigeon2UseCompass = 910;
45 static constexpr int Pigeon2DisableTemperatureCompensation = 945;
46 static constexpr int Pigeon2DisableNoMotionCalibration = 947;
47 static constexpr int Pigeon2MountPoseYaw = 952;
48 static constexpr int Pigeon2MountPosePitch = 953;
49 static constexpr int Pigeon2MountPoseRoll = 954;
50 static constexpr int Pigeon2GyroScalarX = 958;
51 static constexpr int Pigeon2GyroScalarY = 959;
52 static constexpr int Pigeon2GyroScalarZ = 960;
53 static constexpr int Pigeon2Yaw = 967;
54 static constexpr int Pigeon2Pitch = 968;
55 static constexpr int Pigeon2Roll = 969;
56 static constexpr int Pigeon2QuatW = 970;
57 static constexpr int Pigeon2QuatX = 971;
58 static constexpr int Pigeon2QuatY = 972;
59 static constexpr int Pigeon2QuatZ = 973;
60 static constexpr int Pigeon2GravityVectorX = 974;
61 static constexpr int Pigeon2GravityVectorY = 975;
62 static constexpr int Pigeon2GravityVectorZ = 976;
63 static constexpr int Pigeon2Temperature = 977;
64 static constexpr int Pigeon2NoMotionCalEnabled = 978;
65 static constexpr int Pigeon2NoMotionCount = 979;
66 static constexpr int Pigeon2TempCompDisabled = 980;
67 static constexpr int Pigeon2UpTime = 981;
68 static constexpr int Pigeon2AccumGyroX = 982;
69 static constexpr int Pigeon2AccumGyroY = 983;
70 static constexpr int Pigeon2AccumGyroZ = 984;
71 static constexpr int Pigeon2AngularVelocityX = 985;
72 static constexpr int Pigeon2AngularVelocityY = 986;
73 static constexpr int Pigeon2AngularVelocityZ = 987;
74 static constexpr int Pigeon2AccelerationX = 988;
75 static constexpr int Pigeon2AccelerationY = 989;
76 static constexpr int Pigeon2AccelerationZ = 990;
77 static constexpr int Pigeon2_SupplyVoltage = 993;
78 static constexpr int Pigeon2MagneticFieldX = 997;
79 static constexpr int Pigeon2MagneticFieldY = 998;
80 static constexpr int Pigeon2MagneticFieldZ = 999;
81 static constexpr int Pigeon2RawMagneticFieldX = 1000;
82 static constexpr int Pigeon2RawMagneticFieldY = 1001;
83 static constexpr int Pigeon2RawMagneticFieldZ = 1002;
84 static constexpr int CANCoder_MagnetOffset = 1003;
85 static constexpr int CANcoder_AbsoluteSensorRange = 1004;
86 static constexpr int DeviceEnabled = 1035;
87 static constexpr int ForwardLimit = 1359;
88 static constexpr int ReverseLimit = 1360;
89 static constexpr int PRO_MotorOutput_RotorPolarity = 1361;
90 static constexpr int PRO_MotorOutput_DutyCycle = 1362;
91 static constexpr int PRO_MotorOutput_TorqueCurrent = 1364;
92 static constexpr int PRO_SupplyAndTemp_StatorCurrent = 1365;
93 static constexpr int PRO_SupplyAndTemp_SupplyCurrent = 1366;
94 static constexpr int PRO_SupplyAndTemp_SupplyVoltage = 1367;
95 static constexpr int PRO_SupplyAndTemp_DeviceTemp = 1368;
96 static constexpr int PRO_SupplyAndTemp_ProcessorTemp = 1369;
97 static constexpr int PRO_RotorPosAndVel_Velocity = 1371;
98 static constexpr int PRO_RotorPosAndVel_Position = 1372;
99 static constexpr int PRO_PosAndVel_Velocity = 1375;
100 static constexpr int PRO_PosAndVel_Position = 1376;
101 static constexpr int PRO_PIDStateEnables_IntegratedAccum_DC = 1377;
102 static constexpr int PRO_PIDStateEnables_IntegratedAccum_V = 1378;
103 static constexpr int PRO_PIDStateEnables_IntegratedAccum_A = 1379;
104 static constexpr int PRO_PIDStateEnables_FeedForward_DC = 1380;
105 static constexpr int PRO_PIDStateEnables_FeedForward_V = 1381;
106 static constexpr int PRO_PIDStateEnables_FeedForward_A = 1382;
107 static constexpr int TalonFX_ControlMode = 1383;
108 static constexpr int PRO_PIDStateEnables_IsMotionMagicRunning = 1385;
109 static constexpr int PRO_PIDStateEnables_DeviceEnable = 1387;
110 static constexpr int PRO_PIDRefPIDErr_PIDRef_Position = 1389;
111 static constexpr int PRO_PIDRefPIDErr_PIDRef_Velocity = 1390;
112 static constexpr int PRO_PIDRefPIDErr_PIDErr_Position = 1391;
113 static constexpr int PRO_PIDRefPIDErr_PIDErr_Velocity = 1392;
114 static constexpr int PRO_PIDOutput_ProportionalOutput_DC = 1394;
115 static constexpr int PRO_PIDOutput_ProportionalOutput_V = 1395;
116 static constexpr int PRO_PIDOutput_ProportionalOutput_A = 1396;
117 static constexpr int PRO_PIDOutput_DerivativeOutput_DC = 1397;
118 static constexpr int PRO_PIDOutput_DerivativeOutput_V = 1398;
119 static constexpr int PRO_PIDOutput_DerivativeOutput_A = 1399;
120 static constexpr int PRO_PIDOutput_Output_DC = 1400;
121 static constexpr int PRO_PIDOutput_Output_V = 1401;
122 static constexpr int PRO_PIDOutput_Output_A = 1402;
123 static constexpr int PRO_PIDOutput_Slot = 1403;
126 static constexpr int Slot0_kP = 1407;
127 static constexpr int Slot0_kI = 1408;
128 static constexpr int Slot0_kD = 1409;
129 static constexpr int Slot0_kV = 1410;
130 static constexpr int Slot0_kS = 1411;
131 static constexpr int Slot1_kP = 1412;
132 static constexpr int Slot1_kI = 1413;
133 static constexpr int Slot1_kD = 1414;
134 static constexpr int Slot1_kV = 1415;
135 static constexpr int Slot1_kS = 1416;
136 static constexpr int Slot2_kP = 1417;
137 static constexpr int Slot2_kI = 1418;
138 static constexpr int Slot2_kD = 1419;
139 static constexpr int Slot2_kV = 1420;
140 static constexpr int Slot2_kS = 1421;
141 static constexpr int Config_Inverted = 1422;
142 static constexpr int Config_SupplyVLowpassTau = 1423;
143 static constexpr int Config_BeepOnBoot = 1424;
144 static constexpr int Config_NeutralMode = 1425;
145 static constexpr int Config_DutyCycleNeutralDB = 1426;
146 static constexpr int Config_StatorCurrentLimit = 1427;
147 static constexpr int Config_StatorCurrLimitEn = 1428;
148 static constexpr int Config_SupplyCurrentLimit = 1429;
149 static constexpr int Config_SupplyCurrLimitEn = 1430;
150 static constexpr int Config_PeakForwardDC = 1431;
151 static constexpr int Config_PeakReverseDC = 1432;
152 static constexpr int Config_PeakForwardV = 1433;
153 static constexpr int Config_PeakReverseV = 1434;
154 static constexpr int Config_PeakForTorqCurr = 1435;
155 static constexpr int Config_PeakRevTorqCurr = 1436;
156 static constexpr int Config_TorqueNeutralDB = 1437;
157 static constexpr int Config_FeedbackRotorOffset = 1438;
158 static constexpr int Config_SensorToMechanismRatio = 1439;
159 static constexpr int Config_RotorToSensorRatio = 1440;
160 static constexpr int Config_FeedbackSensorSource = 1441;
161 static constexpr int Config_FeedbackRemoteSensorID = 1442;
162 static constexpr int Config_DutyCycleOpenLoopRampPeriod = 1443;
163 static constexpr int Config_VoltageOpenLoopRampPeriod = 1444;
164 static constexpr int Config_TorqueOpenLoopRampPeriod = 1445;
165 static constexpr int Config_DutyCycleClosedLoopRampPeriod = 1446;
166 static constexpr int Config_VoltageClosedLoopRampPeriod = 1447;
167 static constexpr int Config_TorqueClosedLoopRampPeriod = 1448;
168 static constexpr int Config_ForwardLimitType = 1449;
169 static constexpr int Config_ForwardLimitAutosetPosEnable = 1450;
170 static constexpr int Config_ForwardLimitAutosetPosValue = 1451;
171 static constexpr int Config_ForwardLimitEnable = 1452;
172 static constexpr int Config_ForwardLimitSource = 1453;
173 static constexpr int Config_ForwardLimitRemoteSensorID = 1454;
174 static constexpr int Config_ReverseLimitType = 1455;
175 static constexpr int Config_ReverseLimitAutosetPosEnable = 1456;
176 static constexpr int Config_ReverseLimitAutosetPosValue = 1457;
177 static constexpr int Config_ReverseLimitEnable = 1458;
178 static constexpr int Config_ReverseLimitSource = 1459;
179 static constexpr int Config_ReverseLimitRemoteSensorID = 1460;
180 static constexpr int Config_ForwardSoftLimitEnable = 1461;
181 static constexpr int Config_ReverseSoftLimitEnable = 1462;
182 static constexpr int Config_ForwardSoftLimitThreshold = 1463;
183 static constexpr int Config_ReverseSoftLimitThreshold = 1464;
184 static constexpr int Config_MotionMagicCruiseVelocity = 1465;
185 static constexpr int Config_MotionMagicAcceleration = 1466;
186 static constexpr int Config_MotionMagicJerk = 1467;
187 static constexpr int CANcoder_Velocity = 1468;
188 static constexpr int CANcoder_Position = 1469;
189 static constexpr int CANcoder_AbsPosition = 1470;
190 static constexpr int CANCoder_RawVel = 1471;
191 static constexpr int CANCoder_RawPos = 1472;
192 static constexpr int CANCoder_SupplyVoltage = 1473;
193 static constexpr int CANcoder_MagHealth = 1474;
194 static constexpr int PRO_MotorOutput_BridgeType_Public = 1477;
195 static constexpr int Config_ContinuousWrap = 1499;
196 static constexpr int Config_SupplyCurrThres = 1505;
197 static constexpr int Config_SupplyTimeThres = 1506;
198 static constexpr int Fault_Hardware = 10001;
199 static constexpr int StickyFault_Hardware = 10002;
200 static constexpr int Fault_ProcTemp = 10003;
201 static constexpr int StickyFault_ProcTemp = 10004;
202 static constexpr int Fault_DeviceTemp = 10005;
203 static constexpr int StickyFault_DeviceTemp = 10006;
204 static constexpr int Fault_Undervoltage = 10007;
205 static constexpr int StickyFault_Undervoltage = 10008;
206 static constexpr int Fault_BootDuringEnable = 10009;
207 static constexpr int StickyFault_BootDuringEnable = 10010;
208 static constexpr int Fault_PIGEON2_BootupAccel = 10013;
209 static constexpr int StickyFault_PIGEON2_BootupAccel = 10014;
210 static constexpr int Fault_PIGEON2_BootupGyros = 10015;
211 static constexpr int StickyFault_PIGEON2_BootupGyros = 10016;
212 static constexpr int Fault_PIGEON2_BootupMagne = 10017;
213 static constexpr int StickyFault_PIGEON2_BootupMagne = 10018;
214 static constexpr int Fault_PIGEON2_BootIntoMotion = 10019;
215 static constexpr int StickyFault_PIGEON2_BootIntoMotion = 10020;
216 static constexpr int Fault_PIGEON2_DataAcquiredLate = 10021;
217 static constexpr int StickyFault_PIGEON2_DataAcquiredLate = 10022;
218 static constexpr int Fault_PIGEON2_LoopTimeSlow = 10023;
219 static constexpr int StickyFault_PIGEON2_LoopTimeSlow = 10024;
220 static constexpr int Fault_PIGEON2_SaturatedMagne = 10025;
221 static constexpr int StickyFault_PIGEON2_SaturatedMagne = 10026;
222 static constexpr int Fault_PIGEON2_SaturatedAccel = 10027;
223 static constexpr int StickyFault_PIGEON2_SaturatedAccel = 10028;
224 static constexpr int Fault_PIGEON2_SaturatedGyros = 10029;
225 static constexpr int StickyFault_PIGEON2_SaturatedGyros = 10030;
226 static constexpr int Fault_CANCODER_BadMagnet = 10031;
227 static constexpr int StickyFault_CANCODER_BadMagnet = 10032;
228 static constexpr int Fault_TALONFX_OverSupplyV = 10033;
229 static constexpr int StickyFault_TALONFX_OverSupplyV = 10034;
230 static constexpr int Fault_TALONFX_UnstableSupplyV = 10035;
231 static constexpr int StickyFault_TALONFX_UnstableSupplyV = 10036;
232 static constexpr int Fault_TALONFX_ReverseHardLimit = 10037;
233 static constexpr int StickyFault_TALONFX_ReverseHardLimit = 10038;
234 static constexpr int Fault_TALONFX_ForwardHardLimit = 10039;
235 static constexpr int StickyFault_TALONFX_ForwardHardLimit = 10040;
236 static constexpr int Fault_TALONFX_ReverseSoftLimit = 10041;
237 static constexpr int StickyFault_TALONFX_ReverseSoftLimit = 10042;
238 static constexpr int Fault_TALONFX_ForwardSoftLimit = 10043;
239 static constexpr int StickyFault_TALONFX_ForwardSoftLimit = 10044;
240 static constexpr int Fault_TALONFX_MissingRemoteSensor = 10049;
241 static constexpr int StickyFault_TALONFX_MissingRemoteSensor = 10050;
242 static constexpr int Fault_TALONFX_FusedSensorOutOfSync = 10051;
243 static constexpr int StickyFault_TALONFX_FusedSensorOutOfSync = 10052;
244 static constexpr int Fault_TALONFX_StatorCurrLimit = 10053;
245 static constexpr int StickyFault_TALONFX_StatorCurrLimit = 10054;
246 static constexpr int Fault_TALONFX_SupplyCurrLimit = 10055;
247 static constexpr int StickyFault_TALONFX_SupplyCurrLimit = 10056;
248
249 /**
250 * \brief Gets the string representation of this enum
251 *
252 * \returns String representation of this enum
253 */
254 std::string ToString() const
255 {
256 switch (value)
257 {
258 case SpnValue::TalonFX_System_State: return "TalonFX_System_State";
259 case SpnValue::Startup_ResetFlags: return "Startup_ResetFlags";
260 case SpnValue::Version_Major: return "Version_Major";
261 case SpnValue::Version_Minor: return "Version_Minor";
262 case SpnValue::Version_Bugfix: return "Version_Bugfix";
263 case SpnValue::Version_Build: return "Version_Build";
264 case SpnValue::Version_Full: return "Version_Full";
265 case SpnValue::Licensing_IsProLicensed: return "Licensing_IsProLicensed";
266 case SpnValue::CustomParam0: return "CustomParam0";
267 case SpnValue::CustomParam1: return "CustomParam1";
268 case SpnValue::CANcoder_SensorDirection: return "CANcoder_SensorDirection";
269 case SpnValue::FrcLock: return "FrcLock";
270 case SpnValue::RobotEnabled: return "RobotEnabled";
271 case SpnValue::LED1_OnColor: return "LED1_OnColor";
272 case SpnValue::LED1_OffColor: return "LED1_OffColor";
273 case SpnValue::LED2_OnColor: return "LED2_OnColor";
274 case SpnValue::LED2_OffColor: return "LED2_OffColor";
275 case SpnValue::AllFaults: return "AllFaults";
276 case SpnValue::AllStickyFaults: return "AllStickyFaults";
277 case SpnValue::Pigeon2UseCompass: return "Pigeon2UseCompass";
278 case SpnValue::Pigeon2DisableTemperatureCompensation: return "Pigeon2DisableTemperatureCompensation";
279 case SpnValue::Pigeon2DisableNoMotionCalibration: return "Pigeon2DisableNoMotionCalibration";
280 case SpnValue::Pigeon2MountPoseYaw: return "Pigeon2MountPoseYaw";
281 case SpnValue::Pigeon2MountPosePitch: return "Pigeon2MountPosePitch";
282 case SpnValue::Pigeon2MountPoseRoll: return "Pigeon2MountPoseRoll";
283 case SpnValue::Pigeon2GyroScalarX: return "Pigeon2GyroScalarX";
284 case SpnValue::Pigeon2GyroScalarY: return "Pigeon2GyroScalarY";
285 case SpnValue::Pigeon2GyroScalarZ: return "Pigeon2GyroScalarZ";
286 case SpnValue::Pigeon2Yaw: return "Pigeon2Yaw";
287 case SpnValue::Pigeon2Pitch: return "Pigeon2Pitch";
288 case SpnValue::Pigeon2Roll: return "Pigeon2Roll";
289 case SpnValue::Pigeon2QuatW: return "Pigeon2QuatW";
290 case SpnValue::Pigeon2QuatX: return "Pigeon2QuatX";
291 case SpnValue::Pigeon2QuatY: return "Pigeon2QuatY";
292 case SpnValue::Pigeon2QuatZ: return "Pigeon2QuatZ";
293 case SpnValue::Pigeon2GravityVectorX: return "Pigeon2GravityVectorX";
294 case SpnValue::Pigeon2GravityVectorY: return "Pigeon2GravityVectorY";
295 case SpnValue::Pigeon2GravityVectorZ: return "Pigeon2GravityVectorZ";
296 case SpnValue::Pigeon2Temperature: return "Pigeon2Temperature";
297 case SpnValue::Pigeon2NoMotionCalEnabled: return "Pigeon2NoMotionCalEnabled";
298 case SpnValue::Pigeon2NoMotionCount: return "Pigeon2NoMotionCount";
299 case SpnValue::Pigeon2TempCompDisabled: return "Pigeon2TempCompDisabled";
300 case SpnValue::Pigeon2UpTime: return "Pigeon2UpTime";
301 case SpnValue::Pigeon2AccumGyroX: return "Pigeon2AccumGyroX";
302 case SpnValue::Pigeon2AccumGyroY: return "Pigeon2AccumGyroY";
303 case SpnValue::Pigeon2AccumGyroZ: return "Pigeon2AccumGyroZ";
304 case SpnValue::Pigeon2AngularVelocityX: return "Pigeon2AngularVelocityX";
305 case SpnValue::Pigeon2AngularVelocityY: return "Pigeon2AngularVelocityY";
306 case SpnValue::Pigeon2AngularVelocityZ: return "Pigeon2AngularVelocityZ";
307 case SpnValue::Pigeon2AccelerationX: return "Pigeon2AccelerationX";
308 case SpnValue::Pigeon2AccelerationY: return "Pigeon2AccelerationY";
309 case SpnValue::Pigeon2AccelerationZ: return "Pigeon2AccelerationZ";
310 case SpnValue::Pigeon2_SupplyVoltage: return "Pigeon2_SupplyVoltage";
311 case SpnValue::Pigeon2MagneticFieldX: return "Pigeon2MagneticFieldX";
312 case SpnValue::Pigeon2MagneticFieldY: return "Pigeon2MagneticFieldY";
313 case SpnValue::Pigeon2MagneticFieldZ: return "Pigeon2MagneticFieldZ";
314 case SpnValue::Pigeon2RawMagneticFieldX: return "Pigeon2RawMagneticFieldX";
315 case SpnValue::Pigeon2RawMagneticFieldY: return "Pigeon2RawMagneticFieldY";
316 case SpnValue::Pigeon2RawMagneticFieldZ: return "Pigeon2RawMagneticFieldZ";
317 case SpnValue::CANCoder_MagnetOffset: return "CANCoder_MagnetOffset";
318 case SpnValue::CANcoder_AbsoluteSensorRange: return "CANcoder_AbsoluteSensorRange";
319 case SpnValue::DeviceEnabled: return "DeviceEnabled";
320 case SpnValue::ForwardLimit: return "ForwardLimit";
321 case SpnValue::ReverseLimit: return "ReverseLimit";
322 case SpnValue::PRO_MotorOutput_RotorPolarity: return "PRO_MotorOutput_RotorPolarity";
323 case SpnValue::PRO_MotorOutput_DutyCycle: return "PRO_MotorOutput_DutyCycle";
324 case SpnValue::PRO_MotorOutput_TorqueCurrent: return "PRO_MotorOutput_TorqueCurrent";
325 case SpnValue::PRO_SupplyAndTemp_StatorCurrent: return "PRO_SupplyAndTemp_StatorCurrent";
326 case SpnValue::PRO_SupplyAndTemp_SupplyCurrent: return "PRO_SupplyAndTemp_SupplyCurrent";
327 case SpnValue::PRO_SupplyAndTemp_SupplyVoltage: return "PRO_SupplyAndTemp_SupplyVoltage";
328 case SpnValue::PRO_SupplyAndTemp_DeviceTemp: return "PRO_SupplyAndTemp_DeviceTemp";
329 case SpnValue::PRO_SupplyAndTemp_ProcessorTemp: return "PRO_SupplyAndTemp_ProcessorTemp";
330 case SpnValue::PRO_RotorPosAndVel_Velocity: return "PRO_RotorPosAndVel_Velocity";
331 case SpnValue::PRO_RotorPosAndVel_Position: return "PRO_RotorPosAndVel_Position";
332 case SpnValue::PRO_PosAndVel_Velocity: return "PRO_PosAndVel_Velocity";
333 case SpnValue::PRO_PosAndVel_Position: return "PRO_PosAndVel_Position";
334 case SpnValue::PRO_PIDStateEnables_IntegratedAccum_DC: return "PRO_PIDStateEnables_IntegratedAccum_DC";
335 case SpnValue::PRO_PIDStateEnables_IntegratedAccum_V: return "PRO_PIDStateEnables_IntegratedAccum_V";
336 case SpnValue::PRO_PIDStateEnables_IntegratedAccum_A: return "PRO_PIDStateEnables_IntegratedAccum_A";
337 case SpnValue::PRO_PIDStateEnables_FeedForward_DC: return "PRO_PIDStateEnables_FeedForward_DC";
338 case SpnValue::PRO_PIDStateEnables_FeedForward_V: return "PRO_PIDStateEnables_FeedForward_V";
339 case SpnValue::PRO_PIDStateEnables_FeedForward_A: return "PRO_PIDStateEnables_FeedForward_A";
340 case SpnValue::TalonFX_ControlMode: return "TalonFX_ControlMode";
341 case SpnValue::PRO_PIDStateEnables_IsMotionMagicRunning: return "PRO_PIDStateEnables_IsMotionMagicRunning";
342 case SpnValue::PRO_PIDStateEnables_DeviceEnable: return "PRO_PIDStateEnables_DeviceEnable";
343 case SpnValue::PRO_PIDRefPIDErr_PIDRef_Position: return "PRO_PIDRefPIDErr_PIDRef_Position";
344 case SpnValue::PRO_PIDRefPIDErr_PIDRef_Velocity: return "PRO_PIDRefPIDErr_PIDRef_Velocity";
345 case SpnValue::PRO_PIDRefPIDErr_PIDErr_Position: return "PRO_PIDRefPIDErr_PIDErr_Position";
346 case SpnValue::PRO_PIDRefPIDErr_PIDErr_Velocity: return "PRO_PIDRefPIDErr_PIDErr_Velocity";
347 case SpnValue::PRO_PIDOutput_ProportionalOutput_DC: return "PRO_PIDOutput_ProportionalOutput_DC";
348 case SpnValue::PRO_PIDOutput_ProportionalOutput_V: return "PRO_PIDOutput_ProportionalOutput_V";
349 case SpnValue::PRO_PIDOutput_ProportionalOutput_A: return "PRO_PIDOutput_ProportionalOutput_A";
350 case SpnValue::PRO_PIDOutput_DerivativeOutput_DC: return "PRO_PIDOutput_DerivativeOutput_DC";
351 case SpnValue::PRO_PIDOutput_DerivativeOutput_V: return "PRO_PIDOutput_DerivativeOutput_V";
352 case SpnValue::PRO_PIDOutput_DerivativeOutput_A: return "PRO_PIDOutput_DerivativeOutput_A";
353 case SpnValue::PRO_PIDOutput_Output_DC: return "PRO_PIDOutput_Output_DC";
354 case SpnValue::PRO_PIDOutput_Output_V: return "PRO_PIDOutput_Output_V";
355 case SpnValue::PRO_PIDOutput_Output_A: return "PRO_PIDOutput_Output_A";
356 case SpnValue::PRO_PIDOutput_Slot: return "PRO_PIDOutput_Slot";
357 case SpnValue::PRO_PIDRefSlopeECUTime_ReferenceSlope_Position: return "PRO_PIDRefSlopeECUTime_ReferenceSlope_Position";
358 case SpnValue::PRO_PIDRefSlopeECUTime_ReferenceSlope_Velocity: return "PRO_PIDRefSlopeECUTime_ReferenceSlope_Velocity";
359 case SpnValue::Slot0_kP: return "Slot0_kP";
360 case SpnValue::Slot0_kI: return "Slot0_kI";
361 case SpnValue::Slot0_kD: return "Slot0_kD";
362 case SpnValue::Slot0_kV: return "Slot0_kV";
363 case SpnValue::Slot0_kS: return "Slot0_kS";
364 case SpnValue::Slot1_kP: return "Slot1_kP";
365 case SpnValue::Slot1_kI: return "Slot1_kI";
366 case SpnValue::Slot1_kD: return "Slot1_kD";
367 case SpnValue::Slot1_kV: return "Slot1_kV";
368 case SpnValue::Slot1_kS: return "Slot1_kS";
369 case SpnValue::Slot2_kP: return "Slot2_kP";
370 case SpnValue::Slot2_kI: return "Slot2_kI";
371 case SpnValue::Slot2_kD: return "Slot2_kD";
372 case SpnValue::Slot2_kV: return "Slot2_kV";
373 case SpnValue::Slot2_kS: return "Slot2_kS";
374 case SpnValue::Config_Inverted: return "Config_Inverted";
375 case SpnValue::Config_SupplyVLowpassTau: return "Config_SupplyVLowpassTau";
376 case SpnValue::Config_BeepOnBoot: return "Config_BeepOnBoot";
377 case SpnValue::Config_NeutralMode: return "Config_NeutralMode";
378 case SpnValue::Config_DutyCycleNeutralDB: return "Config_DutyCycleNeutralDB";
379 case SpnValue::Config_StatorCurrentLimit: return "Config_StatorCurrentLimit";
380 case SpnValue::Config_StatorCurrLimitEn: return "Config_StatorCurrLimitEn";
381 case SpnValue::Config_SupplyCurrentLimit: return "Config_SupplyCurrentLimit";
382 case SpnValue::Config_SupplyCurrLimitEn: return "Config_SupplyCurrLimitEn";
383 case SpnValue::Config_PeakForwardDC: return "Config_PeakForwardDC";
384 case SpnValue::Config_PeakReverseDC: return "Config_PeakReverseDC";
385 case SpnValue::Config_PeakForwardV: return "Config_PeakForwardV";
386 case SpnValue::Config_PeakReverseV: return "Config_PeakReverseV";
387 case SpnValue::Config_PeakForTorqCurr: return "Config_PeakForTorqCurr";
388 case SpnValue::Config_PeakRevTorqCurr: return "Config_PeakRevTorqCurr";
389 case SpnValue::Config_TorqueNeutralDB: return "Config_TorqueNeutralDB";
390 case SpnValue::Config_FeedbackRotorOffset: return "Config_FeedbackRotorOffset";
391 case SpnValue::Config_SensorToMechanismRatio: return "Config_SensorToMechanismRatio";
392 case SpnValue::Config_RotorToSensorRatio: return "Config_RotorToSensorRatio";
393 case SpnValue::Config_FeedbackSensorSource: return "Config_FeedbackSensorSource";
394 case SpnValue::Config_FeedbackRemoteSensorID: return "Config_FeedbackRemoteSensorID";
395 case SpnValue::Config_DutyCycleOpenLoopRampPeriod: return "Config_DutyCycleOpenLoopRampPeriod";
396 case SpnValue::Config_VoltageOpenLoopRampPeriod: return "Config_VoltageOpenLoopRampPeriod";
397 case SpnValue::Config_TorqueOpenLoopRampPeriod: return "Config_TorqueOpenLoopRampPeriod";
398 case SpnValue::Config_DutyCycleClosedLoopRampPeriod: return "Config_DutyCycleClosedLoopRampPeriod";
399 case SpnValue::Config_VoltageClosedLoopRampPeriod: return "Config_VoltageClosedLoopRampPeriod";
400 case SpnValue::Config_TorqueClosedLoopRampPeriod: return "Config_TorqueClosedLoopRampPeriod";
401 case SpnValue::Config_ForwardLimitType: return "Config_ForwardLimitType";
402 case SpnValue::Config_ForwardLimitAutosetPosEnable: return "Config_ForwardLimitAutosetPosEnable";
403 case SpnValue::Config_ForwardLimitAutosetPosValue: return "Config_ForwardLimitAutosetPosValue";
404 case SpnValue::Config_ForwardLimitEnable: return "Config_ForwardLimitEnable";
405 case SpnValue::Config_ForwardLimitSource: return "Config_ForwardLimitSource";
406 case SpnValue::Config_ForwardLimitRemoteSensorID: return "Config_ForwardLimitRemoteSensorID";
407 case SpnValue::Config_ReverseLimitType: return "Config_ReverseLimitType";
408 case SpnValue::Config_ReverseLimitAutosetPosEnable: return "Config_ReverseLimitAutosetPosEnable";
409 case SpnValue::Config_ReverseLimitAutosetPosValue: return "Config_ReverseLimitAutosetPosValue";
410 case SpnValue::Config_ReverseLimitEnable: return "Config_ReverseLimitEnable";
411 case SpnValue::Config_ReverseLimitSource: return "Config_ReverseLimitSource";
412 case SpnValue::Config_ReverseLimitRemoteSensorID: return "Config_ReverseLimitRemoteSensorID";
413 case SpnValue::Config_ForwardSoftLimitEnable: return "Config_ForwardSoftLimitEnable";
414 case SpnValue::Config_ReverseSoftLimitEnable: return "Config_ReverseSoftLimitEnable";
415 case SpnValue::Config_ForwardSoftLimitThreshold: return "Config_ForwardSoftLimitThreshold";
416 case SpnValue::Config_ReverseSoftLimitThreshold: return "Config_ReverseSoftLimitThreshold";
417 case SpnValue::Config_MotionMagicCruiseVelocity: return "Config_MotionMagicCruiseVelocity";
418 case SpnValue::Config_MotionMagicAcceleration: return "Config_MotionMagicAcceleration";
419 case SpnValue::Config_MotionMagicJerk: return "Config_MotionMagicJerk";
420 case SpnValue::CANcoder_Velocity: return "CANcoder_Velocity";
421 case SpnValue::CANcoder_Position: return "CANcoder_Position";
422 case SpnValue::CANcoder_AbsPosition: return "CANcoder_AbsPosition";
423 case SpnValue::CANCoder_RawVel: return "CANCoder_RawVel";
424 case SpnValue::CANCoder_RawPos: return "CANCoder_RawPos";
425 case SpnValue::CANCoder_SupplyVoltage: return "CANCoder_SupplyVoltage";
426 case SpnValue::CANcoder_MagHealth: return "CANcoder_MagHealth";
427 case SpnValue::PRO_MotorOutput_BridgeType_Public: return "PRO_MotorOutput_BridgeType_Public";
428 case SpnValue::Config_ContinuousWrap: return "Config_ContinuousWrap";
429 case SpnValue::Config_SupplyCurrThres: return "Config_SupplyCurrThres";
430 case SpnValue::Config_SupplyTimeThres: return "Config_SupplyTimeThres";
431 case SpnValue::Fault_Hardware: return "Fault_Hardware";
432 case SpnValue::StickyFault_Hardware: return "StickyFault_Hardware";
433 case SpnValue::Fault_ProcTemp: return "Fault_ProcTemp";
434 case SpnValue::StickyFault_ProcTemp: return "StickyFault_ProcTemp";
435 case SpnValue::Fault_DeviceTemp: return "Fault_DeviceTemp";
436 case SpnValue::StickyFault_DeviceTemp: return "StickyFault_DeviceTemp";
437 case SpnValue::Fault_Undervoltage: return "Fault_Undervoltage";
438 case SpnValue::StickyFault_Undervoltage: return "StickyFault_Undervoltage";
439 case SpnValue::Fault_BootDuringEnable: return "Fault_BootDuringEnable";
440 case SpnValue::StickyFault_BootDuringEnable: return "StickyFault_BootDuringEnable";
441 case SpnValue::Fault_PIGEON2_BootupAccel: return "Fault_PIGEON2_BootupAccel";
442 case SpnValue::StickyFault_PIGEON2_BootupAccel: return "StickyFault_PIGEON2_BootupAccel";
443 case SpnValue::Fault_PIGEON2_BootupGyros: return "Fault_PIGEON2_BootupGyros";
444 case SpnValue::StickyFault_PIGEON2_BootupGyros: return "StickyFault_PIGEON2_BootupGyros";
445 case SpnValue::Fault_PIGEON2_BootupMagne: return "Fault_PIGEON2_BootupMagne";
446 case SpnValue::StickyFault_PIGEON2_BootupMagne: return "StickyFault_PIGEON2_BootupMagne";
447 case SpnValue::Fault_PIGEON2_BootIntoMotion: return "Fault_PIGEON2_BootIntoMotion";
448 case SpnValue::StickyFault_PIGEON2_BootIntoMotion: return "StickyFault_PIGEON2_BootIntoMotion";
449 case SpnValue::Fault_PIGEON2_DataAcquiredLate: return "Fault_PIGEON2_DataAcquiredLate";
450 case SpnValue::StickyFault_PIGEON2_DataAcquiredLate: return "StickyFault_PIGEON2_DataAcquiredLate";
451 case SpnValue::Fault_PIGEON2_LoopTimeSlow: return "Fault_PIGEON2_LoopTimeSlow";
452 case SpnValue::StickyFault_PIGEON2_LoopTimeSlow: return "StickyFault_PIGEON2_LoopTimeSlow";
453 case SpnValue::Fault_PIGEON2_SaturatedMagne: return "Fault_PIGEON2_SaturatedMagne";
454 case SpnValue::StickyFault_PIGEON2_SaturatedMagne: return "StickyFault_PIGEON2_SaturatedMagne";
455 case SpnValue::Fault_PIGEON2_SaturatedAccel: return "Fault_PIGEON2_SaturatedAccel";
456 case SpnValue::StickyFault_PIGEON2_SaturatedAccel: return "StickyFault_PIGEON2_SaturatedAccel";
457 case SpnValue::Fault_PIGEON2_SaturatedGyros: return "Fault_PIGEON2_SaturatedGyros";
458 case SpnValue::StickyFault_PIGEON2_SaturatedGyros: return "StickyFault_PIGEON2_SaturatedGyros";
459 case SpnValue::Fault_CANCODER_BadMagnet: return "Fault_CANCODER_BadMagnet";
460 case SpnValue::StickyFault_CANCODER_BadMagnet: return "StickyFault_CANCODER_BadMagnet";
461 case SpnValue::Fault_TALONFX_OverSupplyV: return "Fault_TALONFX_OverSupplyV";
462 case SpnValue::StickyFault_TALONFX_OverSupplyV: return "StickyFault_TALONFX_OverSupplyV";
463 case SpnValue::Fault_TALONFX_UnstableSupplyV: return "Fault_TALONFX_UnstableSupplyV";
464 case SpnValue::StickyFault_TALONFX_UnstableSupplyV: return "StickyFault_TALONFX_UnstableSupplyV";
465 case SpnValue::Fault_TALONFX_ReverseHardLimit: return "Fault_TALONFX_ReverseHardLimit";
466 case SpnValue::StickyFault_TALONFX_ReverseHardLimit: return "StickyFault_TALONFX_ReverseHardLimit";
467 case SpnValue::Fault_TALONFX_ForwardHardLimit: return "Fault_TALONFX_ForwardHardLimit";
468 case SpnValue::StickyFault_TALONFX_ForwardHardLimit: return "StickyFault_TALONFX_ForwardHardLimit";
469 case SpnValue::Fault_TALONFX_ReverseSoftLimit: return "Fault_TALONFX_ReverseSoftLimit";
470 case SpnValue::StickyFault_TALONFX_ReverseSoftLimit: return "StickyFault_TALONFX_ReverseSoftLimit";
471 case SpnValue::Fault_TALONFX_ForwardSoftLimit: return "Fault_TALONFX_ForwardSoftLimit";
472 case SpnValue::StickyFault_TALONFX_ForwardSoftLimit: return "StickyFault_TALONFX_ForwardSoftLimit";
473 case SpnValue::Fault_TALONFX_MissingRemoteSensor: return "Fault_TALONFX_MissingRemoteSensor";
474 case SpnValue::StickyFault_TALONFX_MissingRemoteSensor: return "StickyFault_TALONFX_MissingRemoteSensor";
475 case SpnValue::Fault_TALONFX_FusedSensorOutOfSync: return "Fault_TALONFX_FusedSensorOutOfSync";
476 case SpnValue::StickyFault_TALONFX_FusedSensorOutOfSync: return "StickyFault_TALONFX_FusedSensorOutOfSync";
477 case SpnValue::Fault_TALONFX_StatorCurrLimit: return "Fault_TALONFX_StatorCurrLimit";
478 case SpnValue::StickyFault_TALONFX_StatorCurrLimit: return "StickyFault_TALONFX_StatorCurrLimit";
479 case SpnValue::Fault_TALONFX_SupplyCurrLimit: return "Fault_TALONFX_SupplyCurrLimit";
480 case SpnValue::StickyFault_TALONFX_SupplyCurrLimit: return "StickyFault_TALONFX_SupplyCurrLimit";
481 default:
482 return "Invalid Value";
483 }
484 }
485
486 friend std::ostream &operator<<(std::ostream &os, const SpnValue &data)
487 {
488 os << data.ToString();
489 return os;
490 }
491 bool operator==(const SpnValue &data) const
492 {
493 return this->value == data.value;
494 }
495 bool operator==(int data) const
496 {
497 return this->value == data;
498 }
499 bool operator<(const SpnValue &data) const
500 {
501 return this->value < data.value;
502 }
503 bool operator<(int data) const
504 {
505 return this->value < data;
506 }
507 };
508 }
509 }
510}
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