37 static constexpr int Fault = 11;
72 default:
return "Invalid Value";
85 ss <<
"u_" << this->
value;
91 return this->value == data.
value;
95 return this->value == data;
99 return this->value < data.
value;
103 return this->value < data;
137 default:
return "Invalid Value";
149 std::stringstream ss;
150 ss <<
"u_" << this->
value;
156 return this->value == data.
value;
160 return this->value == data;
164 return this->value < data.
value;
168 return this->value < data;
203 default:
return "Invalid Value";
215 std::stringstream ss;
216 ss <<
"u_" << this->
value;
222 return this->value == data.
value;
226 return this->value == data;
230 return this->value < data.
value;
234 return this->value < data;
268 default:
return "Invalid Value";
280 std::stringstream ss;
281 ss <<
"u_" << this->
value;
287 return this->value == data.
value;
291 return this->value == data;
295 return this->value < data.
value;
299 return this->value < data;
333 default:
return "Invalid Value";
345 std::stringstream ss;
346 ss <<
"u_" << this->
value;
352 return this->value == data.
value;
356 return this->value == data;
360 return this->value < data.
value;
364 return this->value < data;
376 static constexpr int Off = 0;
377 static constexpr int Red = 1;
410 default:
return "Invalid Value";
422 std::stringstream ss;
423 ss <<
"u_" << this->
value;
429 return this->value == data.
value;
433 return this->value == data;
437 return this->value < data.
value;
441 return this->value < data;
453 static constexpr int Off = 0;
454 static constexpr int Red = 1;
487 default:
return "Invalid Value";
499 std::stringstream ss;
500 ss <<
"u_" << this->
value;
506 return this->value == data.
value;
510 return this->value == data;
514 return this->value < data.
value;
518 return this->value < data;
530 static constexpr int Off = 0;
531 static constexpr int Red = 1;
564 default:
return "Invalid Value";
576 std::stringstream ss;
577 ss <<
"u_" << this->
value;
583 return this->value == data.
value;
587 return this->value == data;
591 return this->value < data.
value;
595 return this->value < data;
607 static constexpr int Off = 0;
608 static constexpr int Red = 1;
641 default:
return "Invalid Value";
653 std::stringstream ss;
654 ss <<
"u_" << this->
value;
660 return this->value == data.
value;
664 return this->value == data;
668 return this->value < data.
value;
672 return this->value < data;
706 default:
return "Invalid Value";
718 std::stringstream ss;
719 ss <<
"u_" << this->
value;
725 return this->value == data.
value;
729 return this->value == data;
733 return this->value < data.
value;
737 return this->value < data;
771 default:
return "Invalid Value";
783 std::stringstream ss;
784 ss <<
"u_" << this->
value;
790 return this->value == data.
value;
794 return this->value == data;
798 return this->value < data.
value;
802 return this->value < data;
836 default:
return "Invalid Value";
848 std::stringstream ss;
849 ss <<
"u_" << this->
value;
855 return this->value == data.
value;
859 return this->value == data;
863 return this->value < data.
value;
867 return this->value < data;
901 default:
return "Invalid Value";
913 std::stringstream ss;
914 ss <<
"u_" << this->
value;
920 return this->value == data.
value;
924 return this->value == data;
928 return this->value < data.
value;
932 return this->value < data;
967 default:
return "Invalid Value";
979 std::stringstream ss;
980 ss <<
"u_" << this->
value;
986 return this->value == data.
value;
990 return this->value == data;
994 return this->value < data.
value;
998 return this->value < data;
1080 default:
return "Invalid Value";
1092 std::stringstream ss;
1093 ss <<
"u_" << this->
value;
1099 return this->value == data.
value;
1103 return this->value == data;
1107 return this->value < data.
value;
1111 return this->value < data;
1146 default:
return "Invalid Value";
1158 std::stringstream ss;
1159 ss <<
"u_" << this->
value;
1165 return this->value == data.
value;
1169 return this->value == data;
1173 return this->value < data.
value;
1177 return this->value < data;
1211 default:
return "Invalid Value";
1223 std::stringstream ss;
1224 ss <<
"u_" << this->
value;
1230 return this->value == data.
value;
1234 return this->value == data;
1238 return this->value < data.
value;
1242 return this->value < data;
1277 default:
return "Invalid Value";
1289 std::stringstream ss;
1290 ss <<
"u_" << this->
value;
1296 return this->value == data.
value;
1300 return this->value == data;
1304 return this->value < data.
value;
1308 return this->value < data;
1360 default:
return "Invalid Value";
1372 std::stringstream ss;
1373 ss <<
"u_" << this->
value;
1379 return this->value == data.
value;
1383 return this->value == data;
1387 return this->value < data.
value;
1391 return this->value < data;
1425 default:
return "Invalid Value";
1437 std::stringstream ss;
1438 ss <<
"u_" << this->
value;
1444 return this->value == data.
value;
1448 return this->value == data;
1452 return this->value < data.
value;
1456 return this->value < data;
1489 default:
return "Invalid Value";
1501 std::stringstream ss;
1502 ss <<
"u_" << this->
value;
1508 return this->value == data.
value;
1512 return this->value == data;
1516 return this->value < data.
value;
1520 return this->value < data;
1554 default:
return "Invalid Value";
1566 std::stringstream ss;
1567 ss <<
"u_" << this->
value;
1573 return this->value == data.
value;
1577 return this->value == data;
1581 return this->value < data.
value;
1585 return this->value < data;
1618 default:
return "Invalid Value";
1630 std::stringstream ss;
1631 ss <<
"u_" << this->
value;
1637 return this->value == data.
value;
1641 return this->value == data;
1645 return this->value < data.
value;
1649 return this->value < data;
1691 default:
return "Invalid Value";
1703 std::stringstream ss;
1704 ss <<
"u_" << this->
value;
1710 return this->value == data.
value;
1714 return this->value == data;
1718 return this->value < data.
value;
1722 return this->value < data;
1768 default:
return "Invalid Value";
1780 std::stringstream ss;
1781 ss <<
"u_" << this->
value;
1787 return this->value == data.
value;
1791 return this->value == data;
1795 return this->value < data.
value;
1799 return this->value < data;
Definition: Serializable.hpp:15
The range of the absolute sensor, either [0, 1) or [-0.5, 0.5).
Definition: SpnEnums.hpp:680
std::string Serialize() const
Definition: SpnEnums.hpp:716
bool operator<(int data) const
Definition: SpnEnums.hpp:735
std::string ToString() const
Gets the string representation of this enum.
Definition: SpnEnums.hpp:700
bool operator<(const AbsoluteSensorRangeValue &data) const
Definition: SpnEnums.hpp:731
static constexpr int Signed_PlusMinusHalf
Definition: SpnEnums.hpp:685
bool operator==(const AbsoluteSensorRangeValue &data) const
Definition: SpnEnums.hpp:723
int value
Definition: SpnEnums.hpp:682
static constexpr int Unsigned_0To1
Definition: SpnEnums.hpp:684
friend std::ostream & operator<<(std::ostream &os, const AbsoluteSensorRangeValue &data)
Definition: SpnEnums.hpp:710
AbsoluteSensorRangeValue(int value)
Definition: SpnEnums.hpp:687
bool operator==(int data) const
Definition: SpnEnums.hpp:727
AbsoluteSensorRangeValue()
Definition: SpnEnums.hpp:691
The applied rotor polarity.
Definition: SpnEnums.hpp:941
std::string ToString() const
Gets the string representation of this enum.
Definition: SpnEnums.hpp:961
bool operator==(const AppliedRotorPolarityValue &data) const
Definition: SpnEnums.hpp:984
bool operator<(int data) const
Definition: SpnEnums.hpp:996
int value
Definition: SpnEnums.hpp:943
AppliedRotorPolarityValue()
Definition: SpnEnums.hpp:952
bool operator==(int data) const
Definition: SpnEnums.hpp:988
bool operator<(const AppliedRotorPolarityValue &data) const
Definition: SpnEnums.hpp:992
friend std::ostream & operator<<(std::ostream &os, const AppliedRotorPolarityValue &data)
Definition: SpnEnums.hpp:971
static constexpr int PositiveIsClockwise
Definition: SpnEnums.hpp:946
static constexpr int PositiveIsCounterClockwise
Definition: SpnEnums.hpp:945
AppliedRotorPolarityValue(int value)
Definition: SpnEnums.hpp:948
std::string Serialize() const
Definition: SpnEnums.hpp:977
The applied output of the bridge.
Definition: SpnEnums.hpp:1730
static constexpr int BridgeReq_Trapez
Definition: SpnEnums.hpp:1736
static constexpr int BridgeReq_FaultCoast
Definition: SpnEnums.hpp:1741
BridgeOuputValue()
Definition: SpnEnums.hpp:1747
static constexpr int BridgeReq_FOCEasy
Definition: SpnEnums.hpp:1739
static constexpr int BridgeReq_Brake
Definition: SpnEnums.hpp:1735
friend std::ostream & operator<<(std::ostream &os, const BridgeOuputValue &data)
Definition: SpnEnums.hpp:1772
bool operator<(const BridgeOuputValue &data) const
Definition: SpnEnums.hpp:1793
std::string ToString() const
Gets the string representation of this enum.
Definition: SpnEnums.hpp:1756
bool operator==(int data) const
Definition: SpnEnums.hpp:1789
bool operator<(int data) const
Definition: SpnEnums.hpp:1797
static constexpr int BridgeReq_FaultBrake
Definition: SpnEnums.hpp:1740
static constexpr int BridgeReq_MusicTone
Definition: SpnEnums.hpp:1738
static constexpr int BridgeReq_Coast
Definition: SpnEnums.hpp:1734
static constexpr int BridgeReq_FOCTorque
Definition: SpnEnums.hpp:1737
bool operator==(const BridgeOuputValue &data) const
Definition: SpnEnums.hpp:1785
std::string Serialize() const
Definition: SpnEnums.hpp:1778
int value
Definition: SpnEnums.hpp:1732
BridgeOuputValue(int value)
Definition: SpnEnums.hpp:1743
The active control mode of the motor controller.
Definition: SpnEnums.hpp:1006
static constexpr int MotionMagicDutyCycle
Definition: SpnEnums.hpp:1016
static constexpr int MotionMagicDutyCycleFOC
Definition: SpnEnums.hpp:1020
static constexpr int DutyCycleOut
Definition: SpnEnums.hpp:1013
std::string Serialize() const
Definition: SpnEnums.hpp:1090
static constexpr int Follower
Definition: SpnEnums.hpp:1033
static constexpr int VoltageOut
Definition: SpnEnums.hpp:1021
static constexpr int DisabledOutput
Definition: SpnEnums.hpp:1010
static constexpr int CoastOut
Definition: SpnEnums.hpp:1035
static constexpr int VelocityDutyCycle
Definition: SpnEnums.hpp:1015
static constexpr int DutyCycleFOC
Definition: SpnEnums.hpp:1017
static constexpr int MotionMagicVoltageFOC
Definition: SpnEnums.hpp:1028
static constexpr int TorqueCurrentFOC
Definition: SpnEnums.hpp:1029
static constexpr int VelocityVoltageFOC
Definition: SpnEnums.hpp:1027
std::string ToString() const
Gets the string representation of this enum.
Definition: SpnEnums.hpp:1050
bool operator==(const ControlModeValue &data) const
Definition: SpnEnums.hpp:1097
static constexpr int MotionMagicVoltage
Definition: SpnEnums.hpp:1024
static constexpr int VelocityVoltage
Definition: SpnEnums.hpp:1023
static constexpr int PositionDutyCycleFOC
Definition: SpnEnums.hpp:1018
int value
Definition: SpnEnums.hpp:1008
static constexpr int PositionVoltage
Definition: SpnEnums.hpp:1022
static constexpr int VelocityTorqueCurrentFOC
Definition: SpnEnums.hpp:1031
static constexpr int VoltageFOC
Definition: SpnEnums.hpp:1025
static constexpr int NeutralOut
Definition: SpnEnums.hpp:1011
static constexpr int MotionMagicTorqueCurrentFOC
Definition: SpnEnums.hpp:1032
static constexpr int VelocityDutyCycleFOC
Definition: SpnEnums.hpp:1019
bool operator<(int data) const
Definition: SpnEnums.hpp:1109
friend std::ostream & operator<<(std::ostream &os, const ControlModeValue &data)
Definition: SpnEnums.hpp:1084
static constexpr int StaticBrake
Definition: SpnEnums.hpp:1012
bool operator<(const ControlModeValue &data) const
Definition: SpnEnums.hpp:1105
ControlModeValue()
Definition: SpnEnums.hpp:1041
static constexpr int Reserved
Definition: SpnEnums.hpp:1034
bool operator==(int data) const
Definition: SpnEnums.hpp:1101
ControlModeValue(int value)
Definition: SpnEnums.hpp:1037
static constexpr int PositionTorqueCurrentFOC
Definition: SpnEnums.hpp:1030
static constexpr int PositionDutyCycle
Definition: SpnEnums.hpp:1014
static constexpr int PositionVoltageFOC
Definition: SpnEnums.hpp:1026
True if the device is enabled.
Definition: SpnEnums.hpp:745
DeviceEnableValue()
Definition: SpnEnums.hpp:756
static constexpr int Disabled
Definition: SpnEnums.hpp:750
static constexpr int Enabled
Definition: SpnEnums.hpp:749
std::string ToString() const
Gets the string representation of this enum.
Definition: SpnEnums.hpp:765
bool operator<(int data) const
Definition: SpnEnums.hpp:800
friend std::ostream & operator<<(std::ostream &os, const DeviceEnableValue &data)
Definition: SpnEnums.hpp:775
int value
Definition: SpnEnums.hpp:747
bool operator<(const DeviceEnableValue &data) const
Definition: SpnEnums.hpp:796
std::string Serialize() const
Definition: SpnEnums.hpp:781
DeviceEnableValue(int value)
Definition: SpnEnums.hpp:752
bool operator==(int data) const
Definition: SpnEnums.hpp:792
bool operator==(const DeviceEnableValue &data) const
Definition: SpnEnums.hpp:788
Choose what sensor source is reported via API and used by closed-loop and limit features.
Definition: SpnEnums.hpp:1332
bool operator<(const FeedbackSensorSourceValue &data) const
Definition: SpnEnums.hpp:1385
std::string Serialize() const
Definition: SpnEnums.hpp:1370
std::string ToString() const
Gets the string representation of this enum.
Definition: SpnEnums.hpp:1353
friend std::ostream & operator<<(std::ostream &os, const FeedbackSensorSourceValue &data)
Definition: SpnEnums.hpp:1364
static constexpr int FusedCANcoder
Definition: SpnEnums.hpp:1338
bool operator==(const FeedbackSensorSourceValue &data) const
Definition: SpnEnums.hpp:1377
bool operator==(int data) const
Definition: SpnEnums.hpp:1381
static constexpr int RotorSensor
Definition: SpnEnums.hpp:1336
FeedbackSensorSourceValue(int value)
Definition: SpnEnums.hpp:1340
FeedbackSensorSourceValue()
Definition: SpnEnums.hpp:1344
static constexpr int RemoteCANcoder
Definition: SpnEnums.hpp:1337
int value
Definition: SpnEnums.hpp:1334
bool operator<(int data) const
Definition: SpnEnums.hpp:1389
Determines where to poll the forward limit switch.
Definition: SpnEnums.hpp:1465
ForwardLimitSourceValue(int value)
Definition: SpnEnums.hpp:1471
friend std::ostream & operator<<(std::ostream &os, const ForwardLimitSourceValue &data)
Definition: SpnEnums.hpp:1493
bool operator==(int data) const
Definition: SpnEnums.hpp:1510
static constexpr int LimitSwitchPin
Definition: SpnEnums.hpp:1469
bool operator==(const ForwardLimitSourceValue &data) const
Definition: SpnEnums.hpp:1506
std::string Serialize() const
Definition: SpnEnums.hpp:1499
int value
Definition: SpnEnums.hpp:1467
bool operator<(int data) const
Definition: SpnEnums.hpp:1518
bool operator<(const ForwardLimitSourceValue &data) const
Definition: SpnEnums.hpp:1514
ForwardLimitSourceValue()
Definition: SpnEnums.hpp:1475
std::string ToString() const
Gets the string representation of this enum.
Definition: SpnEnums.hpp:1484
Determines if limit is normally-open (default) or normally-closed.
Definition: SpnEnums.hpp:1399
bool operator==(int data) const
Definition: SpnEnums.hpp:1446
std::string ToString() const
Gets the string representation of this enum.
Definition: SpnEnums.hpp:1419
std::string Serialize() const
Definition: SpnEnums.hpp:1435
static constexpr int NormallyOpen
Definition: SpnEnums.hpp:1403
bool operator<(const ForwardLimitTypeValue &data) const
Definition: SpnEnums.hpp:1450
ForwardLimitTypeValue(int value)
Definition: SpnEnums.hpp:1406
ForwardLimitTypeValue()
Definition: SpnEnums.hpp:1410
friend std::ostream & operator<<(std::ostream &os, const ForwardLimitTypeValue &data)
Definition: SpnEnums.hpp:1429
bool operator<(int data) const
Definition: SpnEnums.hpp:1454
static constexpr int NormallyClosed
Definition: SpnEnums.hpp:1404
bool operator==(const ForwardLimitTypeValue &data) const
Definition: SpnEnums.hpp:1442
int value
Definition: SpnEnums.hpp:1401
Forward Limit Pin.
Definition: SpnEnums.hpp:810
static constexpr int ClosedToGround
Definition: SpnEnums.hpp:814
bool operator==(const ForwardLimitValue &data) const
Definition: SpnEnums.hpp:853
bool operator==(int data) const
Definition: SpnEnums.hpp:857
static constexpr int Open
Definition: SpnEnums.hpp:815
friend std::ostream & operator<<(std::ostream &os, const ForwardLimitValue &data)
Definition: SpnEnums.hpp:840
ForwardLimitValue(int value)
Definition: SpnEnums.hpp:817
bool operator<(const ForwardLimitValue &data) const
Definition: SpnEnums.hpp:861
ForwardLimitValue()
Definition: SpnEnums.hpp:821
int value
Definition: SpnEnums.hpp:812
std::string ToString() const
Gets the string representation of this enum.
Definition: SpnEnums.hpp:830
bool operator<(int data) const
Definition: SpnEnums.hpp:865
std::string Serialize() const
Definition: SpnEnums.hpp:846
True if device is locked by FRC.
Definition: SpnEnums.hpp:242
bool operator==(const FrcLockValue &data) const
Definition: SpnEnums.hpp:285
bool operator<(int data) const
Definition: SpnEnums.hpp:297
bool operator==(int data) const
Definition: SpnEnums.hpp:289
FrcLockValue(int value)
Definition: SpnEnums.hpp:249
static constexpr int Frc_Locked
Definition: SpnEnums.hpp:246
int value
Definition: SpnEnums.hpp:244
std::string ToString() const
Gets the string representation of this enum.
Definition: SpnEnums.hpp:262
friend std::ostream & operator<<(std::ostream &os, const FrcLockValue &data)
Definition: SpnEnums.hpp:272
std::string Serialize() const
Definition: SpnEnums.hpp:278
FrcLockValue()
Definition: SpnEnums.hpp:253
static constexpr int Frc_Unlocked
Definition: SpnEnums.hpp:247
bool operator<(const FrcLockValue &data) const
Definition: SpnEnums.hpp:293
Invert state of the device.
Definition: SpnEnums.hpp:1185
bool operator==(const InvertedValue &data) const
Definition: SpnEnums.hpp:1228
friend std::ostream & operator<<(std::ostream &os, const InvertedValue &data)
Definition: SpnEnums.hpp:1215
InvertedValue(int value)
Definition: SpnEnums.hpp:1192
static constexpr int Clockwise_Positive
Definition: SpnEnums.hpp:1190
bool operator==(int data) const
Definition: SpnEnums.hpp:1232
int value
Definition: SpnEnums.hpp:1187
bool operator<(const InvertedValue &data) const
Definition: SpnEnums.hpp:1236
static constexpr int CounterClockwise_Positive
Definition: SpnEnums.hpp:1189
std::string Serialize() const
Definition: SpnEnums.hpp:1221
InvertedValue()
Definition: SpnEnums.hpp:1196
std::string ToString() const
Gets the string representation of this enum.
Definition: SpnEnums.hpp:1205
bool operator<(int data) const
Definition: SpnEnums.hpp:1240
Whether the device is pro licensed or not.
Definition: SpnEnums.hpp:111
bool operator<(const IsPROLicensedValue &data) const
Definition: SpnEnums.hpp:162
IsPROLicensedValue()
Definition: SpnEnums.hpp:122
std::string ToString() const
Gets the string representation of this enum.
Definition: SpnEnums.hpp:131
friend std::ostream & operator<<(std::ostream &os, const IsPROLicensedValue &data)
Definition: SpnEnums.hpp:141
bool operator==(int data) const
Definition: SpnEnums.hpp:158
static constexpr int Licensed
Definition: SpnEnums.hpp:116
bool operator==(const IsPROLicensedValue &data) const
Definition: SpnEnums.hpp:154
static constexpr int NotLicensed
Definition: SpnEnums.hpp:115
int value
Definition: SpnEnums.hpp:113
IsPROLicensedValue(int value)
Definition: SpnEnums.hpp:118
bool operator<(int data) const
Definition: SpnEnums.hpp:166
std::string Serialize() const
Definition: SpnEnums.hpp:147
The Color of LED1 when it's "Off".
Definition: SpnEnums.hpp:449
bool operator<(int data) const
Definition: SpnEnums.hpp:516
static constexpr int Orange
Definition: SpnEnums.hpp:456
static constexpr int Cyan
Definition: SpnEnums.hpp:459
static constexpr int Pink
Definition: SpnEnums.hpp:458
std::string ToString() const
Gets the string representation of this enum.
Definition: SpnEnums.hpp:475
bool operator==(int data) const
Definition: SpnEnums.hpp:508
Led1OffColorValue(int value)
Definition: SpnEnums.hpp:462
bool operator==(const Led1OffColorValue &data) const
Definition: SpnEnums.hpp:504
static constexpr int Off
Definition: SpnEnums.hpp:453
bool operator<(const Led1OffColorValue &data) const
Definition: SpnEnums.hpp:512
std::string Serialize() const
Definition: SpnEnums.hpp:497
static constexpr int Blue
Definition: SpnEnums.hpp:457
int value
Definition: SpnEnums.hpp:451
static constexpr int Green
Definition: SpnEnums.hpp:455
friend std::ostream & operator<<(std::ostream &os, const Led1OffColorValue &data)
Definition: SpnEnums.hpp:491
static constexpr int White
Definition: SpnEnums.hpp:460
Led1OffColorValue()
Definition: SpnEnums.hpp:466
static constexpr int Red
Definition: SpnEnums.hpp:454
The Color of LED1 when it's "On".
Definition: SpnEnums.hpp:372
bool operator==(const Led1OnColorValue &data) const
Definition: SpnEnums.hpp:427
static constexpr int Green
Definition: SpnEnums.hpp:378
Led1OnColorValue()
Definition: SpnEnums.hpp:389
static constexpr int Cyan
Definition: SpnEnums.hpp:382
friend std::ostream & operator<<(std::ostream &os, const Led1OnColorValue &data)
Definition: SpnEnums.hpp:414
std::string Serialize() const
Definition: SpnEnums.hpp:420
static constexpr int Orange
Definition: SpnEnums.hpp:379
static constexpr int Blue
Definition: SpnEnums.hpp:380
static constexpr int Red
Definition: SpnEnums.hpp:377
bool operator<(const Led1OnColorValue &data) const
Definition: SpnEnums.hpp:435
bool operator<(int data) const
Definition: SpnEnums.hpp:439
static constexpr int Pink
Definition: SpnEnums.hpp:381
static constexpr int Off
Definition: SpnEnums.hpp:376
int value
Definition: SpnEnums.hpp:374
bool operator==(int data) const
Definition: SpnEnums.hpp:431
static constexpr int White
Definition: SpnEnums.hpp:383
std::string ToString() const
Gets the string representation of this enum.
Definition: SpnEnums.hpp:398
Led1OnColorValue(int value)
Definition: SpnEnums.hpp:385
The Color of LED2 when it's "Off".
Definition: SpnEnums.hpp:603
bool operator==(const Led2OffColorValue &data) const
Definition: SpnEnums.hpp:658
bool operator<(const Led2OffColorValue &data) const
Definition: SpnEnums.hpp:666
bool operator==(int data) const
Definition: SpnEnums.hpp:662
Led2OffColorValue(int value)
Definition: SpnEnums.hpp:616
int value
Definition: SpnEnums.hpp:605
static constexpr int Red
Definition: SpnEnums.hpp:608
static constexpr int Cyan
Definition: SpnEnums.hpp:613
static constexpr int White
Definition: SpnEnums.hpp:614
Led2OffColorValue()
Definition: SpnEnums.hpp:620
static constexpr int Blue
Definition: SpnEnums.hpp:611
std::string Serialize() const
Definition: SpnEnums.hpp:651
static constexpr int Orange
Definition: SpnEnums.hpp:610
static constexpr int Off
Definition: SpnEnums.hpp:607
static constexpr int Pink
Definition: SpnEnums.hpp:612
static constexpr int Green
Definition: SpnEnums.hpp:609
bool operator<(int data) const
Definition: SpnEnums.hpp:670
std::string ToString() const
Gets the string representation of this enum.
Definition: SpnEnums.hpp:629
friend std::ostream & operator<<(std::ostream &os, const Led2OffColorValue &data)
Definition: SpnEnums.hpp:645
The Color of LED2 when it's "On".
Definition: SpnEnums.hpp:526
bool operator<(int data) const
Definition: SpnEnums.hpp:593
Led2OnColorValue()
Definition: SpnEnums.hpp:543
std::string Serialize() const
Definition: SpnEnums.hpp:574
static constexpr int Pink
Definition: SpnEnums.hpp:535
int value
Definition: SpnEnums.hpp:528
bool operator==(int data) const
Definition: SpnEnums.hpp:585
bool operator<(const Led2OnColorValue &data) const
Definition: SpnEnums.hpp:589
static constexpr int Off
Definition: SpnEnums.hpp:530
static constexpr int White
Definition: SpnEnums.hpp:537
bool operator==(const Led2OnColorValue &data) const
Definition: SpnEnums.hpp:581
static constexpr int Green
Definition: SpnEnums.hpp:532
static constexpr int Orange
Definition: SpnEnums.hpp:533
Led2OnColorValue(int value)
Definition: SpnEnums.hpp:539
static constexpr int Cyan
Definition: SpnEnums.hpp:536
friend std::ostream & operator<<(std::ostream &os, const Led2OnColorValue &data)
Definition: SpnEnums.hpp:568
std::string ToString() const
Gets the string representation of this enum.
Definition: SpnEnums.hpp:552
static constexpr int Blue
Definition: SpnEnums.hpp:534
static constexpr int Red
Definition: SpnEnums.hpp:531
Magnet health as measured by CANcoder.
Definition: SpnEnums.hpp:1661
MagnetHealthValue()
Definition: SpnEnums.hpp:1674
bool operator==(int data) const
Definition: SpnEnums.hpp:1712
friend std::ostream & operator<<(std::ostream &os, const MagnetHealthValue &data)
Definition: SpnEnums.hpp:1695
static constexpr int Magnet_Green
Definition: SpnEnums.hpp:1667
static constexpr int Magnet_Red
Definition: SpnEnums.hpp:1665
MagnetHealthValue(int value)
Definition: SpnEnums.hpp:1670
bool operator==(const MagnetHealthValue &data) const
Definition: SpnEnums.hpp:1708
bool operator<(const MagnetHealthValue &data) const
Definition: SpnEnums.hpp:1716
bool operator<(int data) const
Definition: SpnEnums.hpp:1720
static constexpr int Magnet_Invalid
Definition: SpnEnums.hpp:1668
static constexpr int Magnet_Orange
Definition: SpnEnums.hpp:1666
std::string ToString() const
Gets the string representation of this enum.
Definition: SpnEnums.hpp:1683
int value
Definition: SpnEnums.hpp:1663
std::string Serialize() const
Definition: SpnEnums.hpp:1701
Check if Motion Magic® is running.
Definition: SpnEnums.hpp:1120
static constexpr int Enabled
Definition: SpnEnums.hpp:1124
MotionMagicIsRunningValue()
Definition: SpnEnums.hpp:1131
bool operator==(int data) const
Definition: SpnEnums.hpp:1167
bool operator==(const MotionMagicIsRunningValue &data) const
Definition: SpnEnums.hpp:1163
static constexpr int Disabled
Definition: SpnEnums.hpp:1125
std::string Serialize() const
Definition: SpnEnums.hpp:1156
bool operator<(const MotionMagicIsRunningValue &data) const
Definition: SpnEnums.hpp:1171
bool operator<(int data) const
Definition: SpnEnums.hpp:1175
std::string ToString() const
Gets the string representation of this enum.
Definition: SpnEnums.hpp:1140
MotionMagicIsRunningValue(int value)
Definition: SpnEnums.hpp:1127
friend std::ostream & operator<<(std::ostream &os, const MotionMagicIsRunningValue &data)
Definition: SpnEnums.hpp:1150
int value
Definition: SpnEnums.hpp:1122
The state of the motor controller bridge when output is neutral or disabled.
Definition: SpnEnums.hpp:1251
NeutralModeValue()
Definition: SpnEnums.hpp:1262
friend std::ostream & operator<<(std::ostream &os, const NeutralModeValue &data)
Definition: SpnEnums.hpp:1281
bool operator<(int data) const
Definition: SpnEnums.hpp:1306
NeutralModeValue(int value)
Definition: SpnEnums.hpp:1258
static constexpr int Brake
Definition: SpnEnums.hpp:1256
std::string ToString() const
Gets the string representation of this enum.
Definition: SpnEnums.hpp:1271
bool operator==(int data) const
Definition: SpnEnums.hpp:1298
std::string Serialize() const
Definition: SpnEnums.hpp:1287
int value
Definition: SpnEnums.hpp:1253
bool operator==(const NeutralModeValue &data) const
Definition: SpnEnums.hpp:1294
bool operator<(const NeutralModeValue &data) const
Definition: SpnEnums.hpp:1302
static constexpr int Coast
Definition: SpnEnums.hpp:1255
Determines where to poll the reverse limit switch.
Definition: SpnEnums.hpp:1594
bool operator==(int data) const
Definition: SpnEnums.hpp:1639
ReverseLimitSourceValue(int value)
Definition: SpnEnums.hpp:1600
static constexpr int LimitSwitchPin
Definition: SpnEnums.hpp:1598
bool operator<(const ReverseLimitSourceValue &data) const
Definition: SpnEnums.hpp:1643
friend std::ostream & operator<<(std::ostream &os, const ReverseLimitSourceValue &data)
Definition: SpnEnums.hpp:1622
ReverseLimitSourceValue()
Definition: SpnEnums.hpp:1604
std::string Serialize() const
Definition: SpnEnums.hpp:1628
std::string ToString() const
Gets the string representation of this enum.
Definition: SpnEnums.hpp:1613
bool operator<(int data) const
Definition: SpnEnums.hpp:1647
int value
Definition: SpnEnums.hpp:1596
bool operator==(const ReverseLimitSourceValue &data) const
Definition: SpnEnums.hpp:1635
Determines if limit is normally-open (default) or normally-closed.
Definition: SpnEnums.hpp:1528
bool operator<(int data) const
Definition: SpnEnums.hpp:1583
friend std::ostream & operator<<(std::ostream &os, const ReverseLimitTypeValue &data)
Definition: SpnEnums.hpp:1558
bool operator<(const ReverseLimitTypeValue &data) const
Definition: SpnEnums.hpp:1579
ReverseLimitTypeValue(int value)
Definition: SpnEnums.hpp:1535
std::string Serialize() const
Definition: SpnEnums.hpp:1564
static constexpr int NormallyOpen
Definition: SpnEnums.hpp:1532
std::string ToString() const
Gets the string representation of this enum.
Definition: SpnEnums.hpp:1548
ReverseLimitTypeValue()
Definition: SpnEnums.hpp:1539
bool operator==(int data) const
Definition: SpnEnums.hpp:1575
bool operator==(const ReverseLimitTypeValue &data) const
Definition: SpnEnums.hpp:1571
int value
Definition: SpnEnums.hpp:1530
static constexpr int NormallyClosed
Definition: SpnEnums.hpp:1533
Reverse Limit Pin.
Definition: SpnEnums.hpp:875
bool operator<(int data) const
Definition: SpnEnums.hpp:930
static constexpr int ClosedToGround
Definition: SpnEnums.hpp:879
std::string ToString() const
Gets the string representation of this enum.
Definition: SpnEnums.hpp:895
static constexpr int Open
Definition: SpnEnums.hpp:880
friend std::ostream & operator<<(std::ostream &os, const ReverseLimitValue &data)
Definition: SpnEnums.hpp:905
ReverseLimitValue(int value)
Definition: SpnEnums.hpp:882
bool operator<(const ReverseLimitValue &data) const
Definition: SpnEnums.hpp:926
int value
Definition: SpnEnums.hpp:877
bool operator==(const ReverseLimitValue &data) const
Definition: SpnEnums.hpp:918
std::string Serialize() const
Definition: SpnEnums.hpp:911
ReverseLimitValue()
Definition: SpnEnums.hpp:886
bool operator==(int data) const
Definition: SpnEnums.hpp:922
True if the robot is enabled.
Definition: SpnEnums.hpp:307
RobotEnableValue(int value)
Definition: SpnEnums.hpp:314
static constexpr int Enabled
Definition: SpnEnums.hpp:311
bool operator==(int data) const
Definition: SpnEnums.hpp:354
RobotEnableValue()
Definition: SpnEnums.hpp:318
bool operator<(const RobotEnableValue &data) const
Definition: SpnEnums.hpp:358
friend std::ostream & operator<<(std::ostream &os, const RobotEnableValue &data)
Definition: SpnEnums.hpp:337
std::string Serialize() const
Definition: SpnEnums.hpp:343
static constexpr int Disabled
Definition: SpnEnums.hpp:312
std::string ToString() const
Gets the string representation of this enum.
Definition: SpnEnums.hpp:327
bool operator<(int data) const
Definition: SpnEnums.hpp:362
bool operator==(const RobotEnableValue &data) const
Definition: SpnEnums.hpp:350
int value
Definition: SpnEnums.hpp:309
Direction of the sensor to determine positive facing the LED side of the CANcoder.
Definition: SpnEnums.hpp:177
bool operator==(const SensorDirectionValue &data) const
Definition: SpnEnums.hpp:220
static constexpr int CounterClockwise_Positive
Definition: SpnEnums.hpp:181
bool operator<(int data) const
Definition: SpnEnums.hpp:232
std::string ToString() const
Gets the string representation of this enum.
Definition: SpnEnums.hpp:197
SensorDirectionValue(int value)
Definition: SpnEnums.hpp:184
std::string Serialize() const
Definition: SpnEnums.hpp:213
int value
Definition: SpnEnums.hpp:179
bool operator==(int data) const
Definition: SpnEnums.hpp:224
bool operator<(const SensorDirectionValue &data) const
Definition: SpnEnums.hpp:228
friend std::ostream & operator<<(std::ostream &os, const SensorDirectionValue &data)
Definition: SpnEnums.hpp:207
static constexpr int Clockwise_Positive
Definition: SpnEnums.hpp:182
SensorDirectionValue()
Definition: SpnEnums.hpp:188
System state of the device.
Definition: SpnEnums.hpp:22
System_StateValue()
Definition: SpnEnums.hpp:45
static constexpr int Bootup_2
Definition: SpnEnums.hpp:28
static constexpr int ControlDisabled
Definition: SpnEnums.hpp:35
std::string Serialize() const
Definition: SpnEnums.hpp:82
static constexpr int Bootup_1
Definition: SpnEnums.hpp:27
static constexpr int Bootup_5
Definition: SpnEnums.hpp:31
std::string ToString() const
Gets the string representation of this enum.
Definition: SpnEnums.hpp:54
static constexpr int Recover
Definition: SpnEnums.hpp:38
static constexpr int Fault
Definition: SpnEnums.hpp:37
static constexpr int NotLicensed
Definition: SpnEnums.hpp:39
System_StateValue(int value)
Definition: SpnEnums.hpp:41
static constexpr int ControlEnabled
Definition: SpnEnums.hpp:36
static constexpr int BootBeep
Definition: SpnEnums.hpp:34
bool operator<(int data) const
Definition: SpnEnums.hpp:101
bool operator<(const System_StateValue &data) const
Definition: SpnEnums.hpp:97
static constexpr int Bootup_3
Definition: SpnEnums.hpp:29
static constexpr int Bootup_7
Definition: SpnEnums.hpp:33
bool operator==(const System_StateValue &data) const
Definition: SpnEnums.hpp:89
static constexpr int Bootup_4
Definition: SpnEnums.hpp:30
int value
Definition: SpnEnums.hpp:24
friend std::ostream & operator<<(std::ostream &os, const System_StateValue &data)
Definition: SpnEnums.hpp:76
static constexpr int Bootup_0
Definition: SpnEnums.hpp:26
static constexpr int Bootup_6
Definition: SpnEnums.hpp:32
bool operator==(int data) const
Definition: SpnEnums.hpp:93
Definition: string_util.hpp:14