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);
5285 std::stringstream ss;
5286 ss <<
"{" << std::endl;
5287 ss <<
"Config Group: Slot" << std::endl;
5288 ss <<
"Name: \"kP\" Value: \"" <<
kP <<
"\"" << std::endl;
5289 ss <<
"Name: \"kI\" Value: \"" <<
kI <<
"\"" << std::endl;
5290 ss <<
"Name: \"kD\" Value: \"" <<
kD <<
"\"" << std::endl;
5291 ss <<
"Name: \"kS\" Value: \"" <<
kS <<
"\"" << std::endl;
5292 ss <<
"Name: \"kV\" Value: \"" <<
kV <<
"\"" << std::endl;
5293 ss <<
"Name: \"kA\" Value: \"" <<
kA <<
"\"" << std::endl;
5294 ss <<
"Name: \"kG\" Value: \"" <<
kG <<
"\"" << std::endl;
5295 ss <<
"Name: \"GravityType\" Value: \"" <<
GravityType <<
"\"" << std::endl;
5297 ss <<
"}" << std::endl;
5303 std::stringstream ss;
5304 SlotSpns currentSpns = genericMap.at(
SlotNumber);
5318 ctre::phoenix::StatusCode
Deserialize(
const std::string& to_deserialize)
5320 const char *string_c_str = to_deserialize.c_str();
5321 size_t string_length = to_deserialize.length();
5322 SlotSpns currentSpns = genericMap.at(
SlotNumber);
ii that the Software will be uninterrupted or error free
Definition: CTRE_LICENSE.txt:226
CTREXPORT int c_ctre_phoenix6_deserialize_double(int spn, const char *str, uint32_t strlen, double *val)
CTREXPORT int c_ctre_phoenix6_serialize_int(int spn, int value, char **str)
CTREXPORT int c_ctre_phoenix6_serialize_bool(int spn, bool value, char **str)
CTREXPORT int c_ctre_phoenix6_deserialize_bool(int spn, const char *str, uint32_t strlen, bool *val)
CTREXPORT int c_ctre_phoenix6_deserialize_int(int spn, const char *str, uint32_t strlen, int *val)
CTREXPORT int c_ctre_phoenix6_serialize_double(int spn, double value, char **str)
Definition: Serializable.hpp:15
Configs that affect audible components of the device.
Definition: Configs.hpp:2723
AudioConfigs & WithBeepOnBoot(bool newBeepOnBoot)
Modifies this configuration's BeepOnBoot parameter and returns itself for method-chaining and easier ...
Definition: Configs.hpp:2767
bool BeepOnConfig
If true, the TalonFX will beep during configuration API calls if device is disabled.
Definition: Configs.hpp:2742
bool AllowMusicDurDisable
If true, the TalonFX will allow Orchestra and MusicTone requests during disabled state.
Definition: Configs.hpp:2752
std::string Serialize() const override
Definition: Configs.hpp:2826
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize) override
Definition: Configs.hpp:2836
std::string ToString() const override
Definition: Configs.hpp:2814
AudioConfigs & WithAllowMusicDurDisable(bool newAllowMusicDurDisable)
Modifies this configuration's AllowMusicDurDisable parameter and returns itself for method-chaining a...
Definition: Configs.hpp:2806
AudioConfigs & WithBeepOnConfig(bool newBeepOnConfig)
Modifies this configuration's BeepOnConfig parameter and returns itself for method-chaining and easie...
Definition: Configs.hpp:2786
bool BeepOnBoot
If true, the TalonFX will beep during boot-up.
Definition: Configs.hpp:2733
Configs that affect general behavior during closed-looping.
Definition: Configs.hpp:3345
bool ContinuousWrap
Wrap position error within [-0.5,+0.5) mechanism rotations.
Definition: Configs.hpp:3359
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize) override
Definition: Configs.hpp:3382
std::string ToString() const override
Definition: Configs.hpp:3364
std::string Serialize() const override
Definition: Configs.hpp:3374
Configs that affect the closed-loop control of this motor controller.
Definition: Configs.hpp:2091
double TorqueClosedLoopRampPeriod
If non-zero, this determines how much time to ramp from 0A output to 300A during closed-loop modes.
Definition: Configs.hpp:2122
std::string Serialize() const override
Definition: Configs.hpp:2199
double VoltageClosedLoopRampPeriod
If non-zero, this determines how much time to ramp from 0V output to 12V during closed-loop modes.
Definition: Configs.hpp:2112
ClosedLoopRampsConfigs & WithDutyCycleClosedLoopRampPeriod(double newDutyCycleClosedLoopRampPeriod)
Modifies this configuration's DutyCycleClosedLoopRampPeriod parameter and returns itself for method-c...
Definition: Configs.hpp:2139
ClosedLoopRampsConfigs & WithTorqueClosedLoopRampPeriod(double newTorqueClosedLoopRampPeriod)
Modifies this configuration's TorqueClosedLoopRampPeriod parameter and returns itself for method-chai...
Definition: Configs.hpp:2179
double DutyCycleClosedLoopRampPeriod
If non-zero, this determines how much time to ramp from 0% output to 100% during closed-loop modes.
Definition: Configs.hpp:2102
ClosedLoopRampsConfigs & WithVoltageClosedLoopRampPeriod(double newVoltageClosedLoopRampPeriod)
Modifies this configuration's VoltageClosedLoopRampPeriod parameter and returns itself for method-cha...
Definition: Configs.hpp:2159
std::string ToString() const override
Definition: Configs.hpp:2187
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize) override
Definition: Configs.hpp:2209
Configs that directly affect current limiting features.
Definition: Configs.hpp:740
bool StatorCurrentLimitEnable
Enable motor stator current limiting.
Definition: Configs.hpp:774
double StatorCurrentLimit
The amount of current allowed in the motor (motoring and regen current).
Definition: Configs.hpp:768
double SupplyCurrentLimit
The amount of supply current allowed.
Definition: Configs.hpp:802
CurrentLimitsConfigs & WithSupplyCurrentThreshold(double newSupplyCurrentThreshold)
Modifies this configuration's SupplyCurrentThreshold parameter and returns itself for method-chaining...
Definition: Configs.hpp:956
CurrentLimitsConfigs & WithSupplyCurrentLimit(double newSupplyCurrentLimit)
Modifies this configuration's SupplyCurrentLimit parameter and returns itself for method-chaining and...
Definition: Configs.hpp:918
double SupplyCurrentThreshold
Delay supply current limiting until current exceeds this threshold for longer than SupplyTimeThreshol...
Definition: Configs.hpp:820
std::string Serialize() const override
Definition: Configs.hpp:1000
CurrentLimitsConfigs & WithSupplyCurrentLimitEnable(bool newSupplyCurrentLimitEnable)
Modifies this configuration's SupplyCurrentLimitEnable parameter and returns itself for method-chaini...
Definition: Configs.hpp:934
CurrentLimitsConfigs & WithStatorCurrentLimit(double newStatorCurrentLimit)
Modifies this configuration's StatorCurrentLimit parameter and returns itself for method-chaining and...
Definition: Configs.hpp:864
double SupplyTimeThreshold
Allows unlimited current for a period of time before current limiting occurs.
Definition: Configs.hpp:831
CurrentLimitsConfigs & WithSupplyTimeThreshold(double newSupplyTimeThreshold)
Modifies this configuration's SupplyTimeThreshold parameter and returns itself for method-chaining an...
Definition: Configs.hpp:977
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize) override
Definition: Configs.hpp:1013
CurrentLimitsConfigs & WithStatorCurrentLimitEnable(bool newStatorCurrentLimitEnable)
Modifies this configuration's StatorCurrentLimitEnable parameter and returns itself for method-chaini...
Definition: Configs.hpp:880
std::string ToString() const override
Definition: Configs.hpp:985
bool SupplyCurrentLimitEnable
Enable motor supply current limiting.
Definition: Configs.hpp:808
Custom Params.
Definition: Configs.hpp:3242
CustomParamsConfigs & WithCustomParam1(int newCustomParam1)
Modifies this configuration's CustomParam1 parameter and returns itself for method-chaining and easie...
Definition: Configs.hpp:3300
std::string ToString() const override
Definition: Configs.hpp:3308
int CustomParam0
Custom parameter 0.
Definition: Configs.hpp:3253
std::string Serialize() const override
Definition: Configs.hpp:3319
int CustomParam1
Custom parameter 1.
Definition: Configs.hpp:3263
CustomParamsConfigs & WithCustomParam0(int newCustomParam0)
Modifies this configuration's CustomParam0 parameter and returns itself for method-chaining and easie...
Definition: Configs.hpp:3280
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize) override
Definition: Configs.hpp:3328
Configs related to constants used for differential control of a mechanism.
Definition: Configs.hpp:1817
std::string Serialize() const override
Definition: Configs.hpp:1925
std::string ToString() const override
Definition: Configs.hpp:1913
double PeakDifferentialDutyCycle
Maximum differential output during duty cycle based differential control modes.
Definition: Configs.hpp:1828
double PeakDifferentialTorqueCurrent
Maximum differential output during torque current based differential control modes.
Definition: Configs.hpp:1848
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize) override
Definition: Configs.hpp:1935
DifferentialConstantsConfigs & WithPeakDifferentialDutyCycle(double newPeakDifferentialDutyCycle)
Modifies this configuration's PeakDifferentialDutyCycle parameter and returns itself for method-chain...
Definition: Configs.hpp:1865
DifferentialConstantsConfigs & WithPeakDifferentialTorqueCurrent(double newPeakDifferentialTorqueCurrent)
Modifies this configuration's PeakDifferentialTorqueCurrent parameter and returns itself for method-c...
Definition: Configs.hpp:1905
double PeakDifferentialVoltage
Maximum differential output during voltage based differential control modes.
Definition: Configs.hpp:1838
DifferentialConstantsConfigs & WithPeakDifferentialVoltage(double newPeakDifferentialVoltage)
Modifies this configuration's PeakDifferentialVoltage parameter and returns itself for method-chainin...
Definition: Configs.hpp:1885
Configs related to sensors used for differential control of a mechanism.
Definition: Configs.hpp:1640
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize) override
Definition: Configs.hpp:1798
DifferentialSensorsConfigs & WithDifferentialTalonFXSensorID(int newDifferentialTalonFXSensorID)
Modifies this configuration's DifferentialTalonFXSensorID parameter and returns itself for method-cha...
Definition: Configs.hpp:1747
std::string Serialize() const override
Definition: Configs.hpp:1788
DifferentialSensorsConfigs & WithDifferentialRemoteSensorID(int newDifferentialRemoteSensorID)
Modifies this configuration's DifferentialRemoteSensorID parameter and returns itself for method-chai...
Definition: Configs.hpp:1768
DifferentialSensorsConfigs & WithDifferentialSensorSource(signals::DifferentialSensorSourceValue newDifferentialSensorSource)
Modifies this configuration's DifferentialSensorSource parameter and returns itself for method-chaini...
Definition: Configs.hpp:1727
std::string ToString() const override
Definition: Configs.hpp:1776
signals::DifferentialSensorSourceValue DifferentialSensorSource
Choose what sensor source is used for differential control of a mechanism.
Definition: Configs.hpp:1670
int DifferentialRemoteSensorID
Device ID of which remote sensor to use on the differential axis.
Definition: Configs.hpp:1691
int DifferentialTalonFXSensorID
Device ID of which remote Talon FX to use.
Definition: Configs.hpp:1680
Configs that affect the feedback of this motor controller.
Definition: Configs.hpp:1314
FeedbackConfigs & WithSensorToMechanismRatio(double newSensorToMechanismRatio)
Modifies this configuration's SensorToMechanismRatio parameter and returns itself for method-chaining...
Definition: Configs.hpp:1445
std::string ToString() const override
Definition: Configs.hpp:1593
FeedbackConfigs & WithFeedbackSensorSource(signals::FeedbackSensorSourceValue newFeedbackSensorSource)
Modifies this configuration's FeedbackSensorSource parameter and returns itself for method-chaining a...
Definition: Configs.hpp:1520
double FeedbackRotorOffset
This offset is applied to the absolute integrated rotor sensor.
Definition: Configs.hpp:1326
signals::FeedbackSensorSourceValue FeedbackSensorSource
Choose what sensor source is reported via API and used by closed-loop and limit features.
Definition: Configs.hpp:1394
FeedbackConfigs & WithRemoteCANcoder(const hardware::core::CoreCANcoder &device)
Helper method to configure this feedback group to use RemoteCANcoder by passing in the CANcoder objec...
double SensorToMechanismRatio
This is the ratio of sensor rotations to the mechanism's output.
Definition: Configs.hpp:1339
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize) override
Definition: Configs.hpp:1619
FeedbackConfigs & WithSyncCANcoder(const hardware::core::CoreCANcoder &device)
Helper method to configure this feedback group to use SyncCANcoder by passing in the CANcoder object.
std::string Serialize() const override
Definition: Configs.hpp:1607
double RotorToSensorRatio
Talon FX is capable of fusing a remote CANcoder with its rotor sensor to produce a high-bandwidth sen...
Definition: Configs.hpp:1352
FeedbackConfigs & WithFeedbackRotorOffset(double newFeedbackRotorOffset)
Modifies this configuration's FeedbackRotorOffset parameter and returns itself for method-chaining an...
Definition: Configs.hpp:1422
FeedbackConfigs & WithFeedbackRemoteSensorID(int newFeedbackRemoteSensorID)
Modifies this configuration's FeedbackRemoteSensorID parameter and returns itself for method-chaining...
Definition: Configs.hpp:1540
FeedbackConfigs & WithRotorToSensorRatio(double newRotorToSensorRatio)
Modifies this configuration's RotorToSensorRatio parameter and returns itself for method-chaining and...
Definition: Configs.hpp:1468
int FeedbackRemoteSensorID
Device ID of which remote device to use.
Definition: Configs.hpp:1404
FeedbackConfigs & WithFusedCANcoder(const hardware::core::CoreCANcoder &device)
Helper method to configure this feedback group to use FusedCANcoder by passing in the CANcoder object...
Configs to trim the Pigeon2's gyroscope.
Definition: Configs.hpp:308
GyroTrimConfigs & WithGyroScalarZ(double newGyroScalarZ)
Modifies this configuration's GyroScalarZ parameter and returns itself for method-chaining and easier...
Definition: Configs.hpp:390
std::string Serialize() const override
Definition: Configs.hpp:410
std::string ToString() const override
Definition: Configs.hpp:398
double GyroScalarX
The gyro scalar component for the X axis.
Definition: Configs.hpp:318
GyroTrimConfigs & WithGyroScalarY(double newGyroScalarY)
Modifies this configuration's GyroScalarY parameter and returns itself for method-chaining and easier...
Definition: Configs.hpp:371
GyroTrimConfigs & WithGyroScalarX(double newGyroScalarX)
Modifies this configuration's GyroScalarX parameter and returns itself for method-chaining and easier...
Definition: Configs.hpp:352
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize) override
Definition: Configs.hpp:420
double GyroScalarZ
The gyro scalar component for the Z axis.
Definition: Configs.hpp:336
double GyroScalarY
The gyro scalar component for the Y axis.
Definition: Configs.hpp:327
Configs that change how the motor controller behaves under different limit switch states.
Definition: Configs.hpp:2230
HardwareLimitSwitchConfigs & WithReverseLimitRemoteTalonFX(const hardware::core::CoreTalonFX &device)
Helper method to configure this feedback group to use RemoteTalonFX reverse limit switch by passing i...
std::string ToString() const override
Definition: Configs.hpp:2656
signals::ForwardLimitTypeValue ForwardLimitType
Determines if the forward limit switch is normally-open (default) or normally-closed.
Definition: Configs.hpp:2237
HardwareLimitSwitchConfigs & WithForwardLimitRemoteSensorID(int newForwardLimitRemoteSensorID)
Modifies this configuration's ForwardLimitRemoteSensorID parameter and returns itself for method-chai...
Definition: Configs.hpp:2473
signals::ForwardLimitSourceValue ForwardLimitSource
Determines where to poll the forward limit switch.
Definition: Configs.hpp:2283
HardwareLimitSwitchConfigs & WithReverseLimitSource(signals::ReverseLimitSourceValue newReverseLimitSource)
Modifies this configuration's ReverseLimitSource parameter and returns itself for method-chaining and...
Definition: Configs.hpp:2574
bool ForwardLimitEnable
If enabled, motor output is set to neutral when the forward limit switch is asserted and positive out...
Definition: Configs.hpp:2263
HardwareLimitSwitchConfigs & WithReverseLimitRemoteSensorID(int newReverseLimitRemoteSensorID)
Modifies this configuration's ReverseLimitRemoteSensorID parameter and returns itself for method-chai...
Definition: Configs.hpp:2594
bool ReverseLimitAutosetPositionEnable
If enabled, the position is automatically set to a specific value, specified by ReverseLimitAutosetPo...
Definition: Configs.hpp:2307
bool ForwardLimitAutosetPositionEnable
If enabled, the position is automatically set to a specific value, specified by ForwardLimitAutosetPo...
Definition: Configs.hpp:2245
signals::ReverseLimitTypeValue ReverseLimitType
Determines if the reverse limit switch is normally-open (default) or normally-closed.
Definition: Configs.hpp:2299
HardwareLimitSwitchConfigs & WithForwardLimitSource(signals::ForwardLimitSourceValue newForwardLimitSource)
Modifies this configuration's ForwardLimitSource parameter and returns itself for method-chaining and...
Definition: Configs.hpp:2453
double ReverseLimitAutosetPositionValue
The value to automatically set the position to when the reverse limit switch is asserted.
Definition: Configs.hpp:2318
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize) override
Definition: Configs.hpp:2696
HardwareLimitSwitchConfigs & WithReverseLimitRemoteCANcoder(const hardware::core::CoreCANcoder &device)
Helper method to configure this feedback group to use RemoteCANcoder reverse limit switch by passing ...
int ForwardLimitRemoteSensorID
Device ID of the remote device if using remote limit switch features for the forward limit switch.
Definition: Configs.hpp:2293
double ForwardLimitAutosetPositionValue
The value to automatically set the position to when the forward limit switch is asserted.
Definition: Configs.hpp:2256
signals::ReverseLimitSourceValue ReverseLimitSource
Determines where to poll the reverse limit switch.
Definition: Configs.hpp:2345
HardwareLimitSwitchConfigs & WithForwardLimitRemoteTalonFX(const hardware::core::CoreTalonFX &device)
Helper method to configure this feedback group to use RemoteTalonFX forward limit switch by passing i...
HardwareLimitSwitchConfigs & WithForwardLimitAutosetPositionEnable(bool newForwardLimitAutosetPositionEnable)
Modifies this configuration's ForwardLimitAutosetPositionEnable parameter and returns itself for meth...
Definition: Configs.hpp:2386
HardwareLimitSwitchConfigs & WithReverseLimitEnable(bool newReverseLimitEnable)
Modifies this configuration's ReverseLimitEnable parameter and returns itself for method-chaining and...
Definition: Configs.hpp:2545
std::string Serialize() const override
Definition: Configs.hpp:2677
HardwareLimitSwitchConfigs & WithReverseLimitType(signals::ReverseLimitTypeValue newReverseLimitType)
Modifies this configuration's ReverseLimitType parameter and returns itself for method-chaining and e...
Definition: Configs.hpp:2489
HardwareLimitSwitchConfigs & WithReverseLimitAutosetPositionEnable(bool newReverseLimitAutosetPositionEnable)
Modifies this configuration's ReverseLimitAutosetPositionEnable parameter and returns itself for meth...
Definition: Configs.hpp:2507
HardwareLimitSwitchConfigs & WithForwardLimitEnable(bool newForwardLimitEnable)
Modifies this configuration's ForwardLimitEnable parameter and returns itself for method-chaining and...
Definition: Configs.hpp:2424
HardwareLimitSwitchConfigs & WithForwardLimitAutosetPositionValue(double newForwardLimitAutosetPositionValue)
Modifies this configuration's ForwardLimitAutosetPositionValue parameter and returns itself for metho...
Definition: Configs.hpp:2407
HardwareLimitSwitchConfigs & WithReverseLimitAutosetPositionValue(double newReverseLimitAutosetPositionValue)
Modifies this configuration's ReverseLimitAutosetPositionValue parameter and returns itself for metho...
Definition: Configs.hpp:2528
HardwareLimitSwitchConfigs & WithForwardLimitRemoteCANcoder(const hardware::core::CoreCANcoder &device)
Helper method to configure this feedback group to use RemoteCANcoder forward limit switch by passing ...
bool ReverseLimitEnable
If enabled, motor output is set to neutral when reverse limit switch is asseted and negative output i...
Definition: Configs.hpp:2325
int ReverseLimitRemoteSensorID
Device ID of the remote device if using remote limit switch features for the reverse limit switch.
Definition: Configs.hpp:2355
HardwareLimitSwitchConfigs & WithForwardLimitType(signals::ForwardLimitTypeValue newForwardLimitType)
Modifies this configuration's ForwardLimitType parameter and returns itself for method-chaining and e...
Definition: Configs.hpp:2368
Configs that affect the magnet sensor and how to interpret it.
Definition: Configs.hpp:48
std::string Serialize() const override
Definition: Configs.hpp:144
signals::AbsoluteSensorRangeValue AbsoluteSensorRange
The range of the absolute sensor in rotations, either [-0.5, 0.5) or [0, 1).
Definition: Configs.hpp:73
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize) override
Definition: Configs.hpp:154
MagnetSensorConfigs & WithMagnetOffset(double newMagnetOffset)
Modifies this configuration's MagnetOffset parameter and returns itself for method-chaining and easie...
Definition: Configs.hpp:108
double MagnetOffset
This offset is added to the reported position, allowing the application to trim the zero position.
Definition: Configs.hpp:67
MagnetSensorConfigs & WithSensorDirection(signals::SensorDirectionValue newSensorDirection)
Modifies this configuration's SensorDirection parameter and returns itself for method-chaining and ea...
Definition: Configs.hpp:86
std::string ToString() const override
Definition: Configs.hpp:132
signals::SensorDirectionValue SensorDirection
Direction of the sensor to determine positive rotation, as seen facing the LED side of the CANcoder.
Definition: Configs.hpp:55
MagnetSensorConfigs & WithAbsoluteSensorRange(signals::AbsoluteSensorRangeValue newAbsoluteSensorRange)
Modifies this configuration's AbsoluteSensorRange parameter and returns itself for method-chaining an...
Definition: Configs.hpp:124
Configs for Motion Magic®.
Definition: Configs.hpp:3013
double MotionMagicCruiseVelocity
This is the maximum velocity Motion Magic® based control modes are allowed to use.
Definition: Configs.hpp:3027
MotionMagicConfigs & WithMotionMagicJerk(double newMotionMagicJerk)
Modifies this configuration's MotionMagicJerk parameter and returns itself for method-chaining and ea...
Definition: Configs.hpp:3142
MotionMagicConfigs & WithMotionMagicAcceleration(double newMotionMagicAcceleration)
Modifies this configuration's MotionMagicAcceleration parameter and returns itself for method-chainin...
Definition: Configs.hpp:3119
MotionMagicConfigs & WithMotionMagicCruiseVelocity(double newMotionMagicCruiseVelocity)
Modifies this configuration's MotionMagicCruiseVelocity parameter and returns itself for method-chain...
Definition: Configs.hpp:3098
std::string Serialize() const override
Definition: Configs.hpp:3210
double MotionMagicJerk
This is the target jerk (acceleration derivative) Motion Magic® based control modes are allowed to us...
Definition: Configs.hpp:3051
double MotionMagicExpo_kV
This is the target kV used only by Motion Magic® Expo control modes, in units of V/rps.
Definition: Configs.hpp:3064
double MotionMagicAcceleration
This is the target acceleration Motion Magic® based control modes are allowed to use.
Definition: Configs.hpp:3038
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize) override
Definition: Configs.hpp:3222
double MotionMagicExpo_kA
This is the target kA used only by Motion Magic® Expo control modes, in units of V/rps².
Definition: Configs.hpp:3078
MotionMagicConfigs & WithMotionMagicExpo_kV(double newMotionMagicExpo_kV)
Modifies this configuration's MotionMagicExpo_kV parameter and returns itself for method-chaining and...
Definition: Configs.hpp:3165
std::string ToString() const override
Definition: Configs.hpp:3196
MotionMagicConfigs & WithMotionMagicExpo_kA(double newMotionMagicExpo_kA)
Modifies this configuration's MotionMagicExpo_kA parameter and returns itself for method-chaining and...
Definition: Configs.hpp:3188
Configs that directly affect motor output.
Definition: Configs.hpp:557
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize) override
Definition: Configs.hpp:719
MotorOutputConfigs & WithNeutralMode(signals::NeutralModeValue newNeutralMode)
Modifies this configuration's NeutralMode parameter and returns itself for method-chaining and easier...
Definition: Configs.hpp:627
MotorOutputConfigs & WithPeakForwardDutyCycle(double newPeakForwardDutyCycle)
Modifies this configuration's PeakForwardDutyCycle parameter and returns itself for method-chaining a...
Definition: Configs.hpp:666
double PeakForwardDutyCycle
Maximum (forward) output during duty cycle based control modes.
Definition: Configs.hpp:589
double DutyCycleNeutralDeadband
Configures the output deadband duty cycle during duty cycle and voltage based control modes.
Definition: Configs.hpp:579
signals::NeutralModeValue NeutralMode
The state of the motor controller bridge when output is neutral or disabled.
Definition: Configs.hpp:569
MotorOutputConfigs & WithDutyCycleNeutralDeadband(double newDutyCycleNeutralDeadband)
Modifies this configuration's DutyCycleNeutralDeadband parameter and returns itself for method-chaini...
Definition: Configs.hpp:647
MotorOutputConfigs & WithPeakReverseDutyCycle(double newPeakReverseDutyCycle)
Modifies this configuration's PeakReverseDutyCycle parameter and returns itself for method-chaining a...
Definition: Configs.hpp:685
double PeakReverseDutyCycle
Minimum (reverse) output during duty cycle based control modes.
Definition: Configs.hpp:599
MotorOutputConfigs & WithInverted(signals::InvertedValue newInverted)
Modifies this configuration's Inverted parameter and returns itself for method-chaining and easier to...
Definition: Configs.hpp:611
std::string ToString() const override
Definition: Configs.hpp:693
signals::InvertedValue Inverted
Invert state of the device.
Definition: Configs.hpp:563
std::string Serialize() const override
Definition: Configs.hpp:707
Configs for Pigeon 2's Mount Pose configuration.
Definition: Configs.hpp:174
MountPoseConfigs & WithMountPoseRoll(double newMountPoseRoll)
Modifies this configuration's MountPoseRoll parameter and returns itself for method-chaining and easi...
Definition: Configs.hpp:256
double MountPoseYaw
The mounting calibration yaw-component.
Definition: Configs.hpp:184
double MountPosePitch
The mounting calibration pitch-component.
Definition: Configs.hpp:193
MountPoseConfigs & WithMountPosePitch(double newMountPosePitch)
Modifies this configuration's MountPosePitch parameter and returns itself for method-chaining and eas...
Definition: Configs.hpp:237
std::string ToString() const override
Definition: Configs.hpp:264
MountPoseConfigs & WithMountPoseYaw(double newMountPoseYaw)
Modifies this configuration's MountPoseYaw parameter and returns itself for method-chaining and easie...
Definition: Configs.hpp:218
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize) override
Definition: Configs.hpp:286
double MountPoseRoll
The mounting calibration roll-component.
Definition: Configs.hpp:202
std::string Serialize() const override
Definition: Configs.hpp:276
Configs that affect the open-loop control of this motor controller.
Definition: Configs.hpp:1954
OpenLoopRampsConfigs & WithTorqueOpenLoopRampPeriod(double newTorqueOpenLoopRampPeriod)
Modifies this configuration's TorqueOpenLoopRampPeriod parameter and returns itself for method-chaini...
Definition: Configs.hpp:2042
std::string Serialize() const override
Definition: Configs.hpp:2062
OpenLoopRampsConfigs & WithDutyCycleOpenLoopRampPeriod(double newDutyCycleOpenLoopRampPeriod)
Modifies this configuration's DutyCycleOpenLoopRampPeriod parameter and returns itself for method-cha...
Definition: Configs.hpp:2002
double DutyCycleOpenLoopRampPeriod
If non-zero, this determines how much time to ramp from 0% output to 100% during open-loop modes.
Definition: Configs.hpp:1965
OpenLoopRampsConfigs & WithVoltageOpenLoopRampPeriod(double newVoltageOpenLoopRampPeriod)
Modifies this configuration's VoltageOpenLoopRampPeriod parameter and returns itself for method-chain...
Definition: Configs.hpp:2022
std::string ToString() const override
Definition: Configs.hpp:2050
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize) override
Definition: Configs.hpp:2072
double VoltageOpenLoopRampPeriod
If non-zero, this determines how much time to ramp from 0V output to 12V during open-loop modes.
Definition: Configs.hpp:1975
double TorqueOpenLoopRampPeriod
If non-zero, this determines how much time to ramp from 0A output to 300A during open-loop modes.
Definition: Configs.hpp:1985
Definition: Configs.hpp:28
friend std::ostream & operator<<(std::ostream &str, const ParentConfiguration &v)
Definition: Configs.hpp:31
virtual ctre::phoenix::StatusCode Deserialize(const std::string &string)=0
virtual std::string ToString() const =0
Configs to enable/disable various features of the Pigeon2.
Definition: Configs.hpp:439
bool DisableTemperatureCompensation
Disables using the temperature compensation feature.
Definition: Configs.hpp:455
std::string ToString() const override
Definition: Configs.hpp:516
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize) override
Definition: Configs.hpp:538
Pigeon2FeaturesConfigs & WithDisableNoMotionCalibration(bool newDisableNoMotionCalibration)
Modifies this configuration's DisableNoMotionCalibration parameter and returns itself for method-chai...
Definition: Configs.hpp:508
std::string Serialize() const override
Definition: Configs.hpp:528
bool DisableNoMotionCalibration
Disables using the no-motion calibration feature.
Definition: Configs.hpp:461
Pigeon2FeaturesConfigs & WithEnableCompass(bool newEnableCompass)
Modifies this configuration's EnableCompass parameter and returns itself for method-chaining and easi...
Definition: Configs.hpp:476
bool EnableCompass
Turns on or off the magnetometer fusing for 9-axis.
Definition: Configs.hpp:449
Pigeon2FeaturesConfigs & WithDisableTemperatureCompensation(bool newDisableTemperatureCompensation)
Modifies this configuration's DisableTemperatureCompensation parameter and returns itself for method-...
Definition: Configs.hpp:492
Gains for the specified slot.
Definition: Configs.hpp:3399
Slot0Configs & WithKP(double newKP)
Modifies this configuration's kP parameter and returns itself for method-chaining and easier to use c...
Definition: Configs.hpp:3581
static Slot0Configs From(const SlotConfigs &value)
Slot0Configs & WithKV(double newKV)
Modifies this configuration's kV parameter and returns itself for method-chaining and easier to use c...
Definition: Configs.hpp:3696
signals::StaticFeedforwardSignValue StaticFeedforwardSign
Static Feedforward Sign during position closed loop.
Definition: Configs.hpp:3558
Slot0Configs & WithKD(double newKD)
Modifies this configuration's kD parameter and returns itself for method-chaining and easier to use c...
Definition: Configs.hpp:3638
std::string ToString() const override
Definition: Configs.hpp:3811
signals::GravityTypeValue GravityType
Gravity Feedforward/Feedback Type.
Definition: Configs.hpp:3541
Slot0Configs & WithGravityType(signals::GravityTypeValue newGravityType)
Modifies this configuration's GravityType parameter and returns itself for method-chaining and easier...
Definition: Configs.hpp:3776
double kD
Derivative Gain.
Definition: Configs.hpp:3453
double kG
Gravity Feedforward/Feedback Gain.
Definition: Configs.hpp:3521
double kV
Velocity Feedforward Gain.
Definition: Configs.hpp:3491
double kI
Integral Gain.
Definition: Configs.hpp:3434
Slot0Configs & WithStaticFeedforwardSign(signals::StaticFeedforwardSignValue newStaticFeedforwardSign)
Modifies this configuration's StaticFeedforwardSign parameter and returns itself for method-chaining ...
Definition: Configs.hpp:3803
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize) override
Definition: Configs.hpp:3845
Slot0Configs & WithKI(double newKI)
Modifies this configuration's kI parameter and returns itself for method-chaining and easier to use c...
Definition: Configs.hpp:3609
double kA
Acceleration Feedforward Gain.
Definition: Configs.hpp:3507
double kP
Proportional Gain.
Definition: Configs.hpp:3416
Slot0Configs & WithKG(double newKG)
Modifies this configuration's kG parameter and returns itself for method-chaining and easier to use c...
Definition: Configs.hpp:3746
std::string Serialize() const override
Definition: Configs.hpp:3829
Slot0Configs & WithKS(double newKS)
Modifies this configuration's kS parameter and returns itself for method-chaining and easier to use c...
Definition: Configs.hpp:3670
Slot0Configs & WithKA(double newKA)
Modifies this configuration's kA parameter and returns itself for method-chaining and easier to use c...
Definition: Configs.hpp:3722
double kS
Static Feedforward Gain.
Definition: Configs.hpp:3475
Gains for the specified slot.
Definition: Configs.hpp:3870
Slot1Configs & WithKS(double newKS)
Modifies this configuration's kS parameter and returns itself for method-chaining and easier to use c...
Definition: Configs.hpp:4141
Slot1Configs & WithKI(double newKI)
Modifies this configuration's kI parameter and returns itself for method-chaining and easier to use c...
Definition: Configs.hpp:4080
std::string Serialize() const override
Definition: Configs.hpp:4300
static Slot1Configs From(const SlotConfigs &value)
double kD
Derivative Gain.
Definition: Configs.hpp:3924
double kI
Integral Gain.
Definition: Configs.hpp:3905
double kS
Static Feedforward Gain.
Definition: Configs.hpp:3946
signals::StaticFeedforwardSignValue StaticFeedforwardSign
Static Feedforward Sign during position closed loop.
Definition: Configs.hpp:4029
Slot1Configs & WithGravityType(signals::GravityTypeValue newGravityType)
Modifies this configuration's GravityType parameter and returns itself for method-chaining and easier...
Definition: Configs.hpp:4247
double kA
Acceleration Feedforward Gain.
Definition: Configs.hpp:3978
Slot1Configs & WithKV(double newKV)
Modifies this configuration's kV parameter and returns itself for method-chaining and easier to use c...
Definition: Configs.hpp:4167
double kG
Gravity Feedforward/Feedback Gain.
Definition: Configs.hpp:3992
std::string ToString() const override
Definition: Configs.hpp:4282
Slot1Configs & WithKD(double newKD)
Modifies this configuration's kD parameter and returns itself for method-chaining and easier to use c...
Definition: Configs.hpp:4109
double kP
Proportional Gain.
Definition: Configs.hpp:3887
signals::GravityTypeValue GravityType
Gravity Feedforward/Feedback Type.
Definition: Configs.hpp:4012
Slot1Configs & WithKG(double newKG)
Modifies this configuration's kG parameter and returns itself for method-chaining and easier to use c...
Definition: Configs.hpp:4217
Slot1Configs & WithKP(double newKP)
Modifies this configuration's kP parameter and returns itself for method-chaining and easier to use c...
Definition: Configs.hpp:4052
Slot1Configs & WithKA(double newKA)
Modifies this configuration's kA parameter and returns itself for method-chaining and easier to use c...
Definition: Configs.hpp:4193
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize) override
Definition: Configs.hpp:4316
Slot1Configs & WithStaticFeedforwardSign(signals::StaticFeedforwardSignValue newStaticFeedforwardSign)
Modifies this configuration's StaticFeedforwardSign parameter and returns itself for method-chaining ...
Definition: Configs.hpp:4274
double kV
Velocity Feedforward Gain.
Definition: Configs.hpp:3962
Gains for the specified slot.
Definition: Configs.hpp:4341
double kV
Velocity Feedforward Gain.
Definition: Configs.hpp:4433
std::string Serialize() const override
Definition: Configs.hpp:4771
Slot2Configs & WithKV(double newKV)
Modifies this configuration's kV parameter and returns itself for method-chaining and easier to use c...
Definition: Configs.hpp:4638
signals::GravityTypeValue GravityType
Gravity Feedforward/Feedback Type.
Definition: Configs.hpp:4483
double kP
Proportional Gain.
Definition: Configs.hpp:4358
Slot2Configs & WithKD(double newKD)
Modifies this configuration's kD parameter and returns itself for method-chaining and easier to use c...
Definition: Configs.hpp:4580
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize) override
Definition: Configs.hpp:4787
double kI
Integral Gain.
Definition: Configs.hpp:4376
Slot2Configs & WithKI(double newKI)
Modifies this configuration's kI parameter and returns itself for method-chaining and easier to use c...
Definition: Configs.hpp:4551
double kA
Acceleration Feedforward Gain.
Definition: Configs.hpp:4449
Slot2Configs & WithKA(double newKA)
Modifies this configuration's kA parameter and returns itself for method-chaining and easier to use c...
Definition: Configs.hpp:4664
Slot2Configs & WithStaticFeedforwardSign(signals::StaticFeedforwardSignValue newStaticFeedforwardSign)
Modifies this configuration's StaticFeedforwardSign parameter and returns itself for method-chaining ...
Definition: Configs.hpp:4745
double kG
Gravity Feedforward/Feedback Gain.
Definition: Configs.hpp:4463
Slot2Configs & WithKP(double newKP)
Modifies this configuration's kP parameter and returns itself for method-chaining and easier to use c...
Definition: Configs.hpp:4523
double kS
Static Feedforward Gain.
Definition: Configs.hpp:4417
static Slot2Configs From(const SlotConfigs &value)
Slot2Configs & WithGravityType(signals::GravityTypeValue newGravityType)
Modifies this configuration's GravityType parameter and returns itself for method-chaining and easier...
Definition: Configs.hpp:4718
Slot2Configs & WithKG(double newKG)
Modifies this configuration's kG parameter and returns itself for method-chaining and easier to use c...
Definition: Configs.hpp:4688
signals::StaticFeedforwardSignValue StaticFeedforwardSign
Static Feedforward Sign during position closed loop.
Definition: Configs.hpp:4500
std::string ToString() const override
Definition: Configs.hpp:4753
Slot2Configs & WithKS(double newKS)
Modifies this configuration's kS parameter and returns itself for method-chaining and easier to use c...
Definition: Configs.hpp:4612
double kD
Derivative Gain.
Definition: Configs.hpp:4395
Gains for the specified slot.
Definition: Configs.hpp:4811
static SlotConfigs From(const Slot2Configs &value)
std::string ToString() const
Definition: Configs.hpp:5283
double kP
Proportional Gain.
Definition: Configs.hpp:4880
static SlotConfigs From(const Slot1Configs &value)
SlotConfigs & WithKA(double newKA)
Modifies this configuration's kA parameter and returns itself for method-chaining and easier to use c...
Definition: Configs.hpp:5186
SlotConfigs & WithGravityType(signals::GravityTypeValue newGravityType)
Modifies this configuration's GravityType parameter and returns itself for method-chaining and easier...
Definition: Configs.hpp:5240
SlotConfigs & WithKD(double newKD)
Modifies this configuration's kD parameter and returns itself for method-chaining and easier to use c...
Definition: Configs.hpp:5102
double kG
Gravity Feedforward/Feedback Gain.
Definition: Configs.hpp:4985
double kI
Integral Gain.
Definition: Configs.hpp:4898
SlotConfigs & WithKV(double newKV)
Modifies this configuration's kV parameter and returns itself for method-chaining and easier to use c...
Definition: Configs.hpp:5160
double kA
Acceleration Feedforward Gain.
Definition: Configs.hpp:4971
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize)
Definition: Configs.hpp:5318
signals::StaticFeedforwardSignValue StaticFeedforwardSign
Static Feedforward Sign during position closed loop.
Definition: Configs.hpp:5022
SlotConfigs & WithKP(double newKP)
Modifies this configuration's kP parameter and returns itself for method-chaining and easier to use c...
Definition: Configs.hpp:5045
double kD
Derivative Gain.
Definition: Configs.hpp:4917
SlotConfigs & WithKG(double newKG)
Modifies this configuration's kG parameter and returns itself for method-chaining and easier to use c...
Definition: Configs.hpp:5210
int SlotNumber
Chooses which slot these configs are for.
Definition: Configs.hpp:5277
double kV
Velocity Feedforward Gain.
Definition: Configs.hpp:4955
SlotConfigs & WithKS(double newKS)
Modifies this configuration's kS parameter and returns itself for method-chaining and easier to use c...
Definition: Configs.hpp:5134
std::string Serialize() const
Definition: Configs.hpp:5301
static SlotConfigs From(const Slot0Configs &value)
signals::GravityTypeValue GravityType
Gravity Feedforward/Feedback Type.
Definition: Configs.hpp:5005
SlotConfigs & WithKI(double newKI)
Modifies this configuration's kI parameter and returns itself for method-chaining and easier to use c...
Definition: Configs.hpp:5073
SlotConfigs & WithStaticFeedforwardSign(signals::StaticFeedforwardSignValue newStaticFeedforwardSign)
Modifies this configuration's StaticFeedforwardSign parameter and returns itself for method-chaining ...
Definition: Configs.hpp:5267
double kS
Static Feedforward Gain.
Definition: Configs.hpp:4939
Configs that affect how software-limit switches behave.
Definition: Configs.hpp:2855
double ForwardSoftLimitThreshold
Position threshold for forward soft limit features.
Definition: Configs.hpp:2880
std::string ToString() const override
Definition: Configs.hpp:2969
double ReverseSoftLimitThreshold
Position threshold for reverse soft limit features.
Definition: Configs.hpp:2890
SoftwareLimitSwitchConfigs & WithForwardSoftLimitEnable(bool newForwardSoftLimitEnable)
Modifies this configuration's ForwardSoftLimitEnable parameter and returns itself for method-chaining...
Definition: Configs.hpp:2904
SoftwareLimitSwitchConfigs & WithForwardSoftLimitThreshold(double newForwardSoftLimitThreshold)
Modifies this configuration's ForwardSoftLimitThreshold parameter and returns itself for method-chain...
Definition: Configs.hpp:2941
SoftwareLimitSwitchConfigs & WithReverseSoftLimitEnable(bool newReverseSoftLimitEnable)
Modifies this configuration's ReverseSoftLimitEnable parameter and returns itself for method-chaining...
Definition: Configs.hpp:2921
std::string Serialize() const override
Definition: Configs.hpp:2982
SoftwareLimitSwitchConfigs & WithReverseSoftLimitThreshold(double newReverseSoftLimitThreshold)
Modifies this configuration's ReverseSoftLimitThreshold parameter and returns itself for method-chain...
Definition: Configs.hpp:2961
bool ReverseSoftLimitEnable
If enabled, the motor output is set to neutral if position exceeds ReverseSoftLimitThreshold and reve...
Definition: Configs.hpp:2870
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize) override
Definition: Configs.hpp:2993
bool ForwardSoftLimitEnable
If enabled, the motor output is set to neutral if position exceeds ForwardSoftLimitThreshold and forw...
Definition: Configs.hpp:2863
Configs that affect Torque Current control types.
Definition: Configs.hpp:1177
std::string ToString() const override
Definition: Configs.hpp:1271
double TorqueNeutralDeadband
Configures the output deadband during torque current based control modes.
Definition: Configs.hpp:1208
TorqueCurrentConfigs & WithTorqueNeutralDeadband(double newTorqueNeutralDeadband)
Modifies this configuration's TorqueNeutralDeadband parameter and returns itself for method-chaining ...
Definition: Configs.hpp:1263
double PeakForwardTorqueCurrent
Maximum (forward) output during torque current based control modes.
Definition: Configs.hpp:1188
TorqueCurrentConfigs & WithPeakForwardTorqueCurrent(double newPeakForwardTorqueCurrent)
Modifies this configuration's PeakForwardTorqueCurrent parameter and returns itself for method-chaini...
Definition: Configs.hpp:1224
TorqueCurrentConfigs & WithPeakReverseTorqueCurrent(double newPeakReverseTorqueCurrent)
Modifies this configuration's PeakReverseTorqueCurrent parameter and returns itself for method-chaini...
Definition: Configs.hpp:1243
std::string Serialize() const override
Definition: Configs.hpp:1283
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize) override
Definition: Configs.hpp:1293
double PeakReverseTorqueCurrent
Minimum (reverse) output during torque current based control modes.
Definition: Configs.hpp:1198
Configs that affect Voltage control types.
Definition: Configs.hpp:1035
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize) override
Definition: Configs.hpp:1157
double PeakReverseVoltage
Minimum (reverse) output during voltage based control modes.
Definition: Configs.hpp:1068
std::string Serialize() const override
Definition: Configs.hpp:1147
std::string ToString() const override
Definition: Configs.hpp:1135
double PeakForwardVoltage
Maximum (forward) output during voltage based control modes.
Definition: Configs.hpp:1059
VoltageConfigs & WithPeakForwardVoltage(double newPeakForwardVoltage)
Modifies this configuration's PeakForwardVoltage parameter and returns itself for method-chaining and...
Definition: Configs.hpp:1108
VoltageConfigs & WithSupplyVoltageTimeConstant(double newSupplyVoltageTimeConstant)
Modifies this configuration's SupplyVoltageTimeConstant parameter and returns itself for method-chain...
Definition: Configs.hpp:1089
double SupplyVoltageTimeConstant
The time constant (in seconds) of the low-pass filter for the supply voltage.
Definition: Configs.hpp:1050
VoltageConfigs & WithPeakReverseVoltage(double newPeakReverseVoltage)
Modifies this configuration's PeakReverseVoltage parameter and returns itself for method-chaining and...
Definition: Configs.hpp:1127
Class for CANcoder, a CAN based magnetic encoder that provides absolute and relative position along w...
Definition: CoreCANcoder.hpp:504
Class description for the Talon FX integrated motor controller.
Definition: CoreTalonFX.hpp:2734
The range of the absolute sensor in rotations, either [-0.5, 0.5) or [0, 1).
Definition: SpnEnums.hpp:750
static constexpr int Signed_PlusMinusHalf
Definition: SpnEnums.hpp:755
int value
Definition: SpnEnums.hpp:752
Choose what sensor source is used for differential control of a mechanism.
Definition: SpnEnums.hpp:2190
static constexpr int Disabled
Definition: SpnEnums.hpp:2194
int value
Definition: SpnEnums.hpp:2192
Choose what sensor source is reported via API and used by closed-loop and limit features.
Definition: SpnEnums.hpp:1638
int value
Definition: SpnEnums.hpp:1640
static constexpr int RotorSensor
Definition: SpnEnums.hpp:1642
Determines where to poll the forward limit switch.
Definition: SpnEnums.hpp:1793
static constexpr int LimitSwitchPin
Definition: SpnEnums.hpp:1797
int value
Definition: SpnEnums.hpp:1795
Determines if the forward limit switch is normally-open (default) or normally-closed.
Definition: SpnEnums.hpp:1714
static constexpr int NormallyOpen
Definition: SpnEnums.hpp:1718
int value
Definition: SpnEnums.hpp:1716
Gravity Feedforward/Feedback Type.
Definition: SpnEnums.hpp:1406
static constexpr int Elevator_Static
Definition: SpnEnums.hpp:1410
int value
Definition: SpnEnums.hpp:1408
Invert state of the device.
Definition: SpnEnums.hpp:1471
static constexpr int CounterClockwise_Positive
Definition: SpnEnums.hpp:1475
int value
Definition: SpnEnums.hpp:1473
The state of the motor controller bridge when output is neutral or disabled.
Definition: SpnEnums.hpp:1537
int value
Definition: SpnEnums.hpp:1539
static constexpr int Coast
Definition: SpnEnums.hpp:1541
Determines where to poll the reverse limit switch.
Definition: SpnEnums.hpp:1944
int value
Definition: SpnEnums.hpp:1946
static constexpr int LimitSwitchPin
Definition: SpnEnums.hpp:1948
Determines if the reverse limit switch is normally-open (default) or normally-closed.
Definition: SpnEnums.hpp:1865
static constexpr int NormallyOpen
Definition: SpnEnums.hpp:1869
int value
Definition: SpnEnums.hpp:1867
Direction of the sensor to determine positive rotation, as seen facing the LED side of the CANcoder.
Definition: SpnEnums.hpp:246
static constexpr int CounterClockwise_Positive
Definition: SpnEnums.hpp:250
int value
Definition: SpnEnums.hpp:248
Static Feedforward Sign during position closed loop.
Definition: SpnEnums.hpp:2275
int value
Definition: SpnEnums.hpp:2277
static constexpr int UseVelocitySign
Definition: SpnEnums.hpp:2279
Definition: string_util.hpp:15