21namespace hardware {
namespace core {
class CoreCANcoder; } }
22namespace hardware {
namespace core {
class CoreTalonFX; } }
23namespace configs {
class SlotConfigs; }
36 virtual ctre::phoenix::StatusCode
Deserialize(
const std::string &
string) = 0;
134 std::stringstream ss;
135 ss <<
"{" << std::endl;
136 ss <<
"Config Group: MagnetSensor" << std::endl;
137 ss <<
"Name: \"SensorDirection\" Value: \"" <<
SensorDirection <<
"\"" << std::endl;
138 ss <<
"Name: \"MagnetOffset\" Value: \"" <<
MagnetOffset <<
"rotations\"" << std::endl;
139 ss <<
"Name: \"AbsoluteSensorRange\" Value: \"" <<
AbsoluteSensorRange <<
"\"" << std::endl;
140 ss <<
"}" << std::endl;
146 std::stringstream ss;
154 ctre::phoenix::StatusCode
Deserialize(
const std::string& to_deserialize)
override
156 const char *string_c_str = to_deserialize.c_str();
157 size_t string_length = to_deserialize.length();
266 std::stringstream ss;
267 ss <<
"{" << std::endl;
268 ss <<
"Config Group: MountPose" << std::endl;
269 ss <<
"Name: \"MountPoseYaw\" Value: \"" <<
MountPoseYaw <<
"deg\"" << std::endl;
270 ss <<
"Name: \"MountPosePitch\" Value: \"" <<
MountPosePitch <<
"deg\"" << std::endl;
271 ss <<
"Name: \"MountPoseRoll\" Value: \"" <<
MountPoseRoll <<
"deg\"" << std::endl;
272 ss <<
"}" << std::endl;
278 std::stringstream ss;
286 ctre::phoenix::StatusCode
Deserialize(
const std::string& to_deserialize)
override
288 const char *string_c_str = to_deserialize.c_str();
289 size_t string_length = to_deserialize.length();
400 std::stringstream ss;
401 ss <<
"{" << std::endl;
402 ss <<
"Config Group: GyroTrim" << std::endl;
403 ss <<
"Name: \"GyroScalarX\" Value: \"" <<
GyroScalarX <<
"deg per rotation\"" << std::endl;
404 ss <<
"Name: \"GyroScalarY\" Value: \"" <<
GyroScalarY <<
"deg per rotation\"" << std::endl;
405 ss <<
"Name: \"GyroScalarZ\" Value: \"" <<
GyroScalarZ <<
"deg per rotation\"" << std::endl;
406 ss <<
"}" << std::endl;
412 std::stringstream ss;
420 ctre::phoenix::StatusCode
Deserialize(
const std::string& to_deserialize)
override
422 const char *string_c_str = to_deserialize.c_str();
423 size_t string_length = to_deserialize.length();
518 std::stringstream ss;
519 ss <<
"{" << std::endl;
520 ss <<
"Config Group: Pigeon2Features" << std::endl;
521 ss <<
"Name: \"EnableCompass\" Value: \"" <<
EnableCompass <<
"\"" << std::endl;
524 ss <<
"}" << std::endl;
530 std::stringstream ss;
538 ctre::phoenix::StatusCode
Deserialize(
const std::string& to_deserialize)
override
540 const char *string_c_str = to_deserialize.c_str();
541 size_t string_length = to_deserialize.length();
695 std::stringstream ss;
696 ss <<
"{" << std::endl;
697 ss <<
"Config Group: MotorOutput" << std::endl;
698 ss <<
"Name: \"Inverted\" Value: \"" <<
Inverted <<
"\"" << std::endl;
699 ss <<
"Name: \"NeutralMode\" Value: \"" <<
NeutralMode <<
"\"" << std::endl;
701 ss <<
"Name: \"PeakForwardDutyCycle\" Value: \"" <<
PeakForwardDutyCycle <<
"fractional\"" << std::endl;
702 ss <<
"Name: \"PeakReverseDutyCycle\" Value: \"" <<
PeakReverseDutyCycle <<
"fractional\"" << std::endl;
703 ss <<
"}" << std::endl;
709 std::stringstream ss;
719 ctre::phoenix::StatusCode
Deserialize(
const std::string& to_deserialize)
override
721 const char *string_c_str = to_deserialize.c_str();
722 size_t string_length = to_deserialize.length();
987 std::stringstream ss;
988 ss <<
"{" << std::endl;
989 ss <<
"Config Group: CurrentLimits" << std::endl;
990 ss <<
"Name: \"StatorCurrentLimit\" Value: \"" <<
StatorCurrentLimit <<
"A\"" << std::endl;
992 ss <<
"Name: \"SupplyCurrentLimit\" Value: \"" <<
SupplyCurrentLimit <<
"A\"" << std::endl;
995 ss <<
"Name: \"SupplyTimeThreshold\" Value: \"" <<
SupplyTimeThreshold <<
"sec\"" << std::endl;
996 ss <<
"}" << std::endl;
1002 std::stringstream ss;
1013 ctre::phoenix::StatusCode
Deserialize(
const std::string& to_deserialize)
override
1015 const char *string_c_str = to_deserialize.c_str();
1016 size_t string_length = to_deserialize.length();
1137 std::stringstream ss;
1138 ss <<
"{" << std::endl;
1139 ss <<
"Config Group: Voltage" << std::endl;
1141 ss <<
"Name: \"PeakForwardVoltage\" Value: \"" <<
PeakForwardVoltage <<
"V\"" << std::endl;
1142 ss <<
"Name: \"PeakReverseVoltage\" Value: \"" <<
PeakReverseVoltage <<
"V\"" << std::endl;
1143 ss <<
"}" << std::endl;
1149 std::stringstream ss;
1157 ctre::phoenix::StatusCode
Deserialize(
const std::string& to_deserialize)
override
1159 const char *string_c_str = to_deserialize.c_str();
1160 size_t string_length = to_deserialize.length();
1273 std::stringstream ss;
1274 ss <<
"{" << std::endl;
1275 ss <<
"Config Group: TorqueCurrent" << std::endl;
1279 ss <<
"}" << std::endl;
1285 std::stringstream ss;
1293 ctre::phoenix::StatusCode
Deserialize(
const std::string& to_deserialize)
override
1295 const char *string_c_str = to_deserialize.c_str();
1296 size_t string_length = to_deserialize.length();
1595 std::stringstream ss;
1596 ss <<
"{" << std::endl;
1597 ss <<
"Config Group: Feedback" << std::endl;
1598 ss <<
"Name: \"FeedbackRotorOffset\" Value: \"" <<
FeedbackRotorOffset <<
"rotations\"" << std::endl;
1600 ss <<
"Name: \"RotorToSensorRatio\" Value: \"" <<
RotorToSensorRatio <<
"scalar\"" << std::endl;
1603 ss <<
"}" << std::endl;
1609 std::stringstream ss;
1619 ctre::phoenix::StatusCode
Deserialize(
const std::string& to_deserialize)
override
1621 const char *string_c_str = to_deserialize.c_str();
1622 size_t string_length = to_deserialize.length();
1778 std::stringstream ss;
1779 ss <<
"{" << std::endl;
1780 ss <<
"Config Group: DifferentialSensors" << std::endl;
1784 ss <<
"}" << std::endl;
1790 std::stringstream ss;
1798 ctre::phoenix::StatusCode
Deserialize(
const std::string& to_deserialize)
override
1800 const char *string_c_str = to_deserialize.c_str();
1801 size_t string_length = to_deserialize.length();
1915 std::stringstream ss;
1916 ss <<
"{" << std::endl;
1917 ss <<
"Config Group: DifferentialConstants" << std::endl;
1921 ss <<
"}" << std::endl;
1927 std::stringstream ss;
1935 ctre::phoenix::StatusCode
Deserialize(
const std::string& to_deserialize)
override
1937 const char *string_c_str = to_deserialize.c_str();
1938 size_t string_length = to_deserialize.length();
2052 std::stringstream ss;
2053 ss <<
"{" << std::endl;
2054 ss <<
"Config Group: OpenLoopRamps" << std::endl;
2058 ss <<
"}" << std::endl;
2064 std::stringstream ss;
2072 ctre::phoenix::StatusCode
Deserialize(
const std::string& to_deserialize)
override
2074 const char *string_c_str = to_deserialize.c_str();
2075 size_t string_length = to_deserialize.length();
2189 std::stringstream ss;
2190 ss <<
"{" << std::endl;
2191 ss <<
"Config Group: ClosedLoopRamps" << std::endl;
2195 ss <<
"}" << std::endl;
2201 std::stringstream ss;
2209 ctre::phoenix::StatusCode
Deserialize(
const std::string& to_deserialize)
override
2211 const char *string_c_str = to_deserialize.c_str();
2212 size_t string_length = to_deserialize.length();
2658 std::stringstream ss;
2659 ss <<
"{" << std::endl;
2660 ss <<
"Config Group: HardwareLimitSwitch" << std::endl;
2661 ss <<
"Name: \"ForwardLimitType\" Value: \"" <<
ForwardLimitType <<
"\"" << std::endl;
2664 ss <<
"Name: \"ForwardLimitEnable\" Value: \"" <<
ForwardLimitEnable <<
"\"" << std::endl;
2665 ss <<
"Name: \"ForwardLimitSource\" Value: \"" <<
ForwardLimitSource <<
"\"" << std::endl;
2667 ss <<
"Name: \"ReverseLimitType\" Value: \"" <<
ReverseLimitType <<
"\"" << std::endl;
2670 ss <<
"Name: \"ReverseLimitEnable\" Value: \"" <<
ReverseLimitEnable <<
"\"" << std::endl;
2671 ss <<
"Name: \"ReverseLimitSource\" Value: \"" <<
ReverseLimitSource <<
"\"" << std::endl;
2673 ss <<
"}" << std::endl;
2679 std::stringstream ss;
2696 ctre::phoenix::StatusCode
Deserialize(
const std::string& to_deserialize)
override
2698 const char *string_c_str = to_deserialize.c_str();
2699 size_t string_length = to_deserialize.length();
2816 std::stringstream ss;
2817 ss <<
"{" << std::endl;
2818 ss <<
"Config Group: Audio" << std::endl;
2819 ss <<
"Name: \"BeepOnBoot\" Value: \"" <<
BeepOnBoot <<
"\"" << std::endl;
2820 ss <<
"Name: \"BeepOnConfig\" Value: \"" <<
BeepOnConfig <<
"\"" << std::endl;
2822 ss <<
"}" << std::endl;
2828 std::stringstream ss;
2836 ctre::phoenix::StatusCode
Deserialize(
const std::string& to_deserialize)
override
2838 const char *string_c_str = to_deserialize.c_str();
2839 size_t string_length = to_deserialize.length();
2971 std::stringstream ss;
2972 ss <<
"{" << std::endl;
2973 ss <<
"Config Group: SoftwareLimitSwitch" << std::endl;
2978 ss <<
"}" << std::endl;
2984 std::stringstream ss;
2993 ctre::phoenix::StatusCode
Deserialize(
const std::string& to_deserialize)
override
2995 const char *string_c_str = to_deserialize.c_str();
2996 size_t string_length = to_deserialize.length();
3198 std::stringstream ss;
3199 ss <<
"{" << std::endl;
3200 ss <<
"Config Group: MotionMagic" << std::endl;
3202 ss <<
"Name: \"MotionMagicAcceleration\" Value: \"" <<
MotionMagicAcceleration <<
"rot per sec²\"" << std::endl;
3203 ss <<
"Name: \"MotionMagicJerk\" Value: \"" <<
MotionMagicJerk <<
"rot per sec³\"" << std::endl;
3204 ss <<
"Name: \"MotionMagicExpo_kV\" Value: \"" <<
MotionMagicExpo_kV <<
"V/rps\"" << std::endl;
3205 ss <<
"Name: \"MotionMagicExpo_kA\" Value: \"" <<
MotionMagicExpo_kA <<
"V/rps²\"" << std::endl;
3206 ss <<
"}" << std::endl;
3212 std::stringstream ss;
3222 ctre::phoenix::StatusCode
Deserialize(
const std::string& to_deserialize)
override
3224 const char *string_c_str = to_deserialize.c_str();
3225 size_t string_length = to_deserialize.length();
3310 std::stringstream ss;
3311 ss <<
"{" << std::endl;
3312 ss <<
"Config Group: CustomParams" << std::endl;
3313 ss <<
"Name: \"CustomParam0\" Value: \"" <<
CustomParam0 <<
"\"" << std::endl;
3314 ss <<
"Name: \"CustomParam1\" Value: \"" <<
CustomParam1 <<
"\"" << std::endl;
3315 ss <<
"}" << std::endl;
3321 std::stringstream ss;
3328 ctre::phoenix::StatusCode
Deserialize(
const std::string& to_deserialize)
override
3330 const char *string_c_str = to_deserialize.c_str();
3331 size_t string_length = to_deserialize.length();
3366 std::stringstream ss;
3367 ss <<
"{" << std::endl;
3368 ss <<
"Config Group: ClosedLoopGeneral" << std::endl;
3369 ss <<
"Name: \"ContinuousWrap\" Value: \"" <<
ContinuousWrap <<
"\"" << std::endl;
3370 ss <<
"}" << std::endl;
3376 std::stringstream ss;
3382 ctre::phoenix::StatusCode
Deserialize(
const std::string& to_deserialize)
override
3384 const char *string_c_str = to_deserialize.c_str();
3385 size_t string_length = to_deserialize.length();
3583 kP = std::move(newKP);
3611 kI = std::move(newKI);
3640 kD = std::move(newKD);
3672 kS = std::move(newKS);
3698 kV = std::move(newKV);
3724 kA = std::move(newKA);
3748 kG = std::move(newKG);
3813 std::stringstream ss;
3814 ss <<
"{" << std::endl;
3815 ss <<
"Config Group: Slot0" << std::endl;
3816 ss <<
"Name: \"kP\" Value: \"" <<
kP <<
"\"" << std::endl;
3817 ss <<
"Name: \"kI\" Value: \"" <<
kI <<
"\"" << std::endl;
3818 ss <<
"Name: \"kD\" Value: \"" <<
kD <<
"\"" << std::endl;
3819 ss <<
"Name: \"kS\" Value: \"" <<
kS <<
"\"" << std::endl;
3820 ss <<
"Name: \"kV\" Value: \"" <<
kV <<
"\"" << std::endl;
3821 ss <<
"Name: \"kA\" Value: \"" <<
kA <<
"\"" << std::endl;
3822 ss <<
"Name: \"kG\" Value: \"" <<
kG <<
"\"" << std::endl;
3823 ss <<
"Name: \"GravityType\" Value: \"" <<
GravityType <<
"\"" << std::endl;
3825 ss <<
"}" << std::endl;
3831 std::stringstream ss;
3845 ctre::phoenix::StatusCode
Deserialize(
const std::string& to_deserialize)
override
3847 const char *string_c_str = to_deserialize.c_str();
3848 size_t string_length = to_deserialize.length();
4054 kP = std::move(newKP);
4082 kI = std::move(newKI);
4111 kD = std::move(newKD);
4143 kS = std::move(newKS);
4169 kV = std::move(newKV);
4195 kA = std::move(newKA);
4219 kG = std::move(newKG);
4284 std::stringstream ss;
4285 ss <<
"{" << std::endl;
4286 ss <<
"Config Group: Slot1" << std::endl;
4287 ss <<
"Name: \"kP\" Value: \"" <<
kP <<
"\"" << std::endl;
4288 ss <<
"Name: \"kI\" Value: \"" <<
kI <<
"\"" << std::endl;
4289 ss <<
"Name: \"kD\" Value: \"" <<
kD <<
"\"" << std::endl;
4290 ss <<
"Name: \"kS\" Value: \"" <<
kS <<
"\"" << std::endl;
4291 ss <<
"Name: \"kV\" Value: \"" <<
kV <<
"\"" << std::endl;
4292 ss <<
"Name: \"kA\" Value: \"" <<
kA <<
"\"" << std::endl;
4293 ss <<
"Name: \"kG\" Value: \"" <<
kG <<
"\"" << std::endl;
4294 ss <<
"Name: \"GravityType\" Value: \"" <<
GravityType <<
"\"" << std::endl;
4296 ss <<
"}" << std::endl;
4302 std::stringstream ss;
4316 ctre::phoenix::StatusCode
Deserialize(
const std::string& to_deserialize)
override
4318 const char *string_c_str = to_deserialize.c_str();
4319 size_t string_length = to_deserialize.length();
4525 kP = std::move(newKP);
4553 kI = std::move(newKI);
4582 kD = std::move(newKD);
4614 kS = std::move(newKS);
4640 kV = std::move(newKV);
4666 kA = std::move(newKA);
4690 kG = std::move(newKG);
4755 std::stringstream ss;
4756 ss <<
"{" << std::endl;
4757 ss <<
"Config Group: Slot2" << std::endl;
4758 ss <<
"Name: \"kP\" Value: \"" <<
kP <<
"\"" << std::endl;
4759 ss <<
"Name: \"kI\" Value: \"" <<
kI <<
"\"" << std::endl;
4760 ss <<
"Name: \"kD\" Value: \"" <<
kD <<
"\"" << std::endl;
4761 ss <<
"Name: \"kS\" Value: \"" <<
kS <<
"\"" << std::endl;
4762 ss <<
"Name: \"kV\" Value: \"" <<
kV <<
"\"" << std::endl;
4763 ss <<
"Name: \"kA\" Value: \"" <<
kA <<
"\"" << std::endl;
4764 ss <<
"Name: \"kG\" Value: \"" <<
kG <<
"\"" << std::endl;
4765 ss <<
"Name: \"GravityType\" Value: \"" <<
GravityType <<
"\"" << std::endl;
4767 ss <<
"}" << std::endl;
4773 std::stringstream ss;
4787 ctre::phoenix::StatusCode
Deserialize(
const std::string& to_deserialize)
override
4789 const char *string_c_str = to_deserialize.c_str();
4790 size_t string_length = to_deserialize.length();
4822 int StaticFeedforwardSignSpn;
4825 std::map<int, SlotSpns> genericMap{
4827 ctre::phoenix6::spns::SpnValue::Slot0_kP,
4828 ctre::phoenix6::spns::SpnValue::Slot0_kI,
4829 ctre::phoenix6::spns::SpnValue::Slot0_kD,
4830 ctre::phoenix6::spns::SpnValue::Slot0_kS,
4831 ctre::phoenix6::spns::SpnValue::Slot0_kV,
4832 ctre::phoenix6::spns::SpnValue::Slot0_kA,
4833 ctre::phoenix6::spns::SpnValue::Slot0_kG,
4834 ctre::phoenix6::spns::SpnValue::Slot0_kG_Type,
4835 ctre::phoenix6::spns::SpnValue::Slot0_kS_Sign,
4839 ctre::phoenix6::spns::SpnValue::Slot1_kP,
4840 ctre::phoenix6::spns::SpnValue::Slot1_kI,
4841 ctre::phoenix6::spns::SpnValue::Slot1_kD,
4842 ctre::phoenix6::spns::SpnValue::Slot1_kS,
4843 ctre::phoenix6::spns::SpnValue::Slot1_kV,
4844 ctre::phoenix6::spns::SpnValue::Slot1_kA,
4845 ctre::phoenix6::spns::SpnValue::Slot1_kG,
4846 ctre::phoenix6::spns::SpnValue::Slot1_kG_Type,
4847 ctre::phoenix6::spns::SpnValue::Slot1_kS_Sign,
4851 ctre::phoenix6::spns::SpnValue::Slot2_kP,
4852 ctre::phoenix6::spns::SpnValue::Slot2_kI,
4853 ctre::phoenix6::spns::SpnValue::Slot2_kD,
4854 ctre::phoenix6::spns::SpnValue::Slot2_kS,
4855 ctre::phoenix6::spns::SpnValue::Slot2_kV,
4856 ctre::phoenix6::spns::SpnValue::Slot2_kA,
4857 ctre::phoenix6::spns::SpnValue::Slot2_kG,
4858 ctre::phoenix6::spns::SpnValue::Slot2_kG_Type,
4859 ctre::phoenix6::spns::SpnValue::Slot2_kS_Sign,
5047 kP = std::move(newKP);
5075 kI = std::move(newKI);
5104 kD = std::move(newKD);
5136 kS = std::move(newKS);
5162 kV = std::move(newKV);
5188 kA = std::move(newKA);
5212 kG = std::move(newKG);