74#include <units/angle.h>
75#include <units/angular_acceleration.h>
76#include <units/angular_velocity.h>
77#include <units/current.h>
78#include <units/dimensionless.h>
79#include <units/temperature.h>
80#include <units/voltage.h>
313 Voltage = std::move(newVoltage);
460 Audio = std::move(newAudio);
548 Slot0 = std::move(newSlot0);
566 Slot1 = std::move(newSlot1);
584 Slot2 = std::move(newSlot2);
593 std::stringstream ss;
620 std::stringstream ss;
645 ctre::phoenix::StatusCode
Deserialize(
const std::string& to_deserialize)
1885 ctre::phoenix::StatusCode
Apply(
const SlotConfigs& configs, units::time::second_t timeoutSeconds)
1924 ctre::phoenix::StatusCode
SetPosition(units::angle::turn_t newValue, units::time::second_t timeoutSeconds)
1926 std::stringstream ss;
1971 std::stringstream ss;
2008 std::stringstream ss;
2045 std::stringstream ss;
2082 std::stringstream ss;
2121 std::stringstream ss;
2160 std::stringstream ss;
2199 std::stringstream ss;
2236 std::stringstream ss;
2275 std::stringstream ss;
2320 std::stringstream ss;
2359 std::stringstream ss;
2398 std::stringstream ss;
2437 std::stringstream ss;
2476 std::stringstream ss;
2515 std::stringstream ss;
2554 std::stringstream ss;
2599 std::stringstream ss;
2644 std::stringstream ss;
2681 std::stringstream ss;
2718 std::stringstream ss;
3565 std::unique_ptr<sim::TalonFXSimState> _simState{};
3578 if (_simState ==
nullptr)
3579 _simState = std::make_unique<sim::TalonFXSimState>(*
this);
8487 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_DutyCycleOut_Position& request);
8500 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_DutyCycleOut_Position&& request)
8517 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_PositionDutyCycle_Position& request);
8530 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_PositionDutyCycle_Position&& request)
8547 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_VelocityDutyCycle_Position& request);
8560 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_VelocityDutyCycle_Position&& request)
8577 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_MotionMagicDutyCycle_Position& request);
8590 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_MotionMagicDutyCycle_Position&& request)
8607 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_DutyCycleOut_Velocity& request);
8620 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_DutyCycleOut_Velocity&& request)
8637 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_PositionDutyCycle_Velocity& request);
8650 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_PositionDutyCycle_Velocity&& request)
8667 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_VelocityDutyCycle_Velocity& request);
8680 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_VelocityDutyCycle_Velocity&& request)
8697 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_MotionMagicDutyCycle_Velocity& request);
8710 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_MotionMagicDutyCycle_Velocity&& request)
8726 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_VoltageOut_Position& request);
8738 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_VoltageOut_Position&& request)
8754 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_PositionVoltage_Position& request);
8766 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_PositionVoltage_Position&& request)
8782 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_VelocityVoltage_Position& request);
8794 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_VelocityVoltage_Position&& request)
8810 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_MotionMagicVoltage_Position& request);
8822 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_MotionMagicVoltage_Position&& request)
8838 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_VoltageOut_Velocity& request);
8850 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_VoltageOut_Velocity&& request)
8866 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_PositionVoltage_Velocity& request);
8878 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_PositionVoltage_Velocity&& request)
8894 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_VelocityVoltage_Velocity& request);
8906 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_VelocityVoltage_Velocity&& request)
8922 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_MotionMagicVoltage_Velocity& request);
8934 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_MotionMagicVoltage_Velocity&& request)
8951 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_TorqueCurrentFOC_Position& request);
8964 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_TorqueCurrentFOC_Position&& request)
8981 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_PositionTorqueCurrentFOC_Position& request);
8994 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_PositionTorqueCurrentFOC_Position&& request)
9011 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_VelocityTorqueCurrentFOC_Position& request);
9024 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_VelocityTorqueCurrentFOC_Position&& request)
9042 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_MotionMagicTorqueCurrentFOC_Position& request);
9056 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_MotionMagicTorqueCurrentFOC_Position&& request)
9073 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_TorqueCurrentFOC_Velocity& request);
9086 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_TorqueCurrentFOC_Velocity&& request)
9103 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_PositionTorqueCurrentFOC_Velocity& request);
9116 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_PositionTorqueCurrentFOC_Velocity&& request)
9133 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_VelocityTorqueCurrentFOC_Velocity& request);
9146 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_VelocityTorqueCurrentFOC_Velocity&& request)
9164 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_MotionMagicTorqueCurrentFOC_Velocity& request);
9178 ctre::phoenix::StatusCode
SetControl(controls::compound::Diff_MotionMagicTorqueCurrentFOC_Velocity&& request)
9197 if (DutyCycleOutValue !=
nullptr)
9200 if (TorqueCurrentFOCValue !=
nullptr)
9203 if (VoltageOutValue !=
nullptr)
9206 if (PositionDutyCycleValue !=
nullptr)
9209 if (PositionVoltageValue !=
nullptr)
9212 if (PositionTorqueCurrentFOCValue !=
nullptr)
9213 return SetControl(*PositionTorqueCurrentFOCValue);
9215 if (VelocityDutyCycleValue !=
nullptr)
9218 if (VelocityVoltageValue !=
nullptr)
9221 if (VelocityTorqueCurrentFOCValue !=
nullptr)
9222 return SetControl(*VelocityTorqueCurrentFOCValue);
9224 if (MotionMagicDutyCycleValue !=
nullptr)
9225 return SetControl(*MotionMagicDutyCycleValue);
9227 if (MotionMagicVoltageValue !=
nullptr)
9230 if (MotionMagicTorqueCurrentFOCValue !=
nullptr)
9231 return SetControl(*MotionMagicTorqueCurrentFOCValue);
9233 if (DifferentialDutyCycleValue !=
nullptr)
9234 return SetControl(*DifferentialDutyCycleValue);
9236 if (DifferentialVoltageValue !=
nullptr)
9237 return SetControl(*DifferentialVoltageValue);
9239 if (DifferentialPositionDutyCycleValue !=
nullptr)
9240 return SetControl(*DifferentialPositionDutyCycleValue);
9242 if (DifferentialPositionVoltageValue !=
nullptr)
9243 return SetControl(*DifferentialPositionVoltageValue);
9245 if (DifferentialVelocityDutyCycleValue !=
nullptr)
9246 return SetControl(*DifferentialVelocityDutyCycleValue);
9248 if (DifferentialVelocityVoltageValue !=
nullptr)
9249 return SetControl(*DifferentialVelocityVoltageValue);
9251 if (DifferentialMotionMagicDutyCycleValue !=
nullptr)
9252 return SetControl(*DifferentialMotionMagicDutyCycleValue);
9254 if (DifferentialMotionMagicVoltageValue !=
nullptr)
9255 return SetControl(*DifferentialMotionMagicVoltageValue);
9257 if (FollowerValue !=
nullptr)
9260 if (StrictFollowerValue !=
nullptr)
9263 if (DifferentialFollowerValue !=
nullptr)
9264 return SetControl(*DifferentialFollowerValue);
9266 if (DifferentialStrictFollowerValue !=
nullptr)
9267 return SetControl(*DifferentialStrictFollowerValue);
9269 if (NeutralOutValue !=
nullptr)
9272 if (CoastOutValue !=
nullptr)
9275 if (StaticBrakeValue !=
nullptr)
9278 if (MusicToneValue !=
nullptr)
9281 if (MotionMagicVelocityDutyCycleValue !=
nullptr)
9282 return SetControl(*MotionMagicVelocityDutyCycleValue);
9284 if (MotionMagicVelocityTorqueCurrentFOCValue !=
nullptr)
9285 return SetControl(*MotionMagicVelocityTorqueCurrentFOCValue);
9287 if (MotionMagicVelocityVoltageValue !=
nullptr)
9288 return SetControl(*MotionMagicVelocityVoltageValue);
9290 if (MotionMagicExpoDutyCycleValue !=
nullptr)
9291 return SetControl(*MotionMagicExpoDutyCycleValue);
9293 if (MotionMagicExpoVoltageValue !=
nullptr)
9294 return SetControl(*MotionMagicExpoVoltageValue);
9296 if (MotionMagicExpoTorqueCurrentFOCValue !=
nullptr)
9297 return SetControl(*MotionMagicExpoTorqueCurrentFOCValue);
9299 if (DynamicMotionMagicDutyCycleValue !=
nullptr)
9300 return SetControl(*DynamicMotionMagicDutyCycleValue);
9302 if (DynamicMotionMagicVoltageValue !=
nullptr)
9303 return SetControl(*DynamicMotionMagicVoltageValue);
9305 if (DynamicMotionMagicTorqueCurrentFOCValue !=
nullptr)
9306 return SetControl(*DynamicMotionMagicTorqueCurrentFOCValue);
9307 auto *Diff_DutyCycleOut_PositionValue =
dynamic_cast<controls::compound::Diff_DutyCycleOut_Position *
>(ptr);
9308 if (Diff_DutyCycleOut_PositionValue !=
nullptr)
9309 return SetControl(*Diff_DutyCycleOut_PositionValue);
9310 auto *Diff_PositionDutyCycle_PositionValue =
dynamic_cast<controls::compound::Diff_PositionDutyCycle_Position *
>(ptr);
9311 if (Diff_PositionDutyCycle_PositionValue !=
nullptr)
9312 return SetControl(*Diff_PositionDutyCycle_PositionValue);
9313 auto *Diff_VelocityDutyCycle_PositionValue =
dynamic_cast<controls::compound::Diff_VelocityDutyCycle_Position *
>(ptr);
9314 if (Diff_VelocityDutyCycle_PositionValue !=
nullptr)
9315 return SetControl(*Diff_VelocityDutyCycle_PositionValue);
9316 auto *Diff_MotionMagicDutyCycle_PositionValue =
dynamic_cast<controls::compound::Diff_MotionMagicDutyCycle_Position *
>(ptr);
9317 if (Diff_MotionMagicDutyCycle_PositionValue !=
nullptr)
9318 return SetControl(*Diff_MotionMagicDutyCycle_PositionValue);
9319 auto *Diff_DutyCycleOut_VelocityValue =
dynamic_cast<controls::compound::Diff_DutyCycleOut_Velocity *
>(ptr);
9320 if (Diff_DutyCycleOut_VelocityValue !=
nullptr)
9321 return SetControl(*Diff_DutyCycleOut_VelocityValue);
9322 auto *Diff_PositionDutyCycle_VelocityValue =
dynamic_cast<controls::compound::Diff_PositionDutyCycle_Velocity *
>(ptr);
9323 if (Diff_PositionDutyCycle_VelocityValue !=
nullptr)
9324 return SetControl(*Diff_PositionDutyCycle_VelocityValue);
9325 auto *Diff_VelocityDutyCycle_VelocityValue =
dynamic_cast<controls::compound::Diff_VelocityDutyCycle_Velocity *
>(ptr);
9326 if (Diff_VelocityDutyCycle_VelocityValue !=
nullptr)
9327 return SetControl(*Diff_VelocityDutyCycle_VelocityValue);
9328 auto *Diff_MotionMagicDutyCycle_VelocityValue =
dynamic_cast<controls::compound::Diff_MotionMagicDutyCycle_Velocity *
>(ptr);
9329 if (Diff_MotionMagicDutyCycle_VelocityValue !=
nullptr)
9330 return SetControl(*Diff_MotionMagicDutyCycle_VelocityValue);
9331 auto *Diff_VoltageOut_PositionValue =
dynamic_cast<controls::compound::Diff_VoltageOut_Position *
>(ptr);
9332 if (Diff_VoltageOut_PositionValue !=
nullptr)
9333 return SetControl(*Diff_VoltageOut_PositionValue);
9334 auto *Diff_PositionVoltage_PositionValue =
dynamic_cast<controls::compound::Diff_PositionVoltage_Position *
>(ptr);
9335 if (Diff_PositionVoltage_PositionValue !=
nullptr)
9336 return SetControl(*Diff_PositionVoltage_PositionValue);
9337 auto *Diff_VelocityVoltage_PositionValue =
dynamic_cast<controls::compound::Diff_VelocityVoltage_Position *
>(ptr);
9338 if (Diff_VelocityVoltage_PositionValue !=
nullptr)
9339 return SetControl(*Diff_VelocityVoltage_PositionValue);
9340 auto *Diff_MotionMagicVoltage_PositionValue =
dynamic_cast<controls::compound::Diff_MotionMagicVoltage_Position *
>(ptr);
9341 if (Diff_MotionMagicVoltage_PositionValue !=
nullptr)
9342 return SetControl(*Diff_MotionMagicVoltage_PositionValue);
9343 auto *Diff_VoltageOut_VelocityValue =
dynamic_cast<controls::compound::Diff_VoltageOut_Velocity *
>(ptr);
9344 if (Diff_VoltageOut_VelocityValue !=
nullptr)
9345 return SetControl(*Diff_VoltageOut_VelocityValue);
9346 auto *Diff_PositionVoltage_VelocityValue =
dynamic_cast<controls::compound::Diff_PositionVoltage_Velocity *
>(ptr);
9347 if (Diff_PositionVoltage_VelocityValue !=
nullptr)
9348 return SetControl(*Diff_PositionVoltage_VelocityValue);
9349 auto *Diff_VelocityVoltage_VelocityValue =
dynamic_cast<controls::compound::Diff_VelocityVoltage_Velocity *
>(ptr);
9350 if (Diff_VelocityVoltage_VelocityValue !=
nullptr)
9351 return SetControl(*Diff_VelocityVoltage_VelocityValue);
9352 auto *Diff_MotionMagicVoltage_VelocityValue =
dynamic_cast<controls::compound::Diff_MotionMagicVoltage_Velocity *
>(ptr);
9353 if (Diff_MotionMagicVoltage_VelocityValue !=
nullptr)
9354 return SetControl(*Diff_MotionMagicVoltage_VelocityValue);
9355 auto *Diff_TorqueCurrentFOC_PositionValue =
dynamic_cast<controls::compound::Diff_TorqueCurrentFOC_Position *
>(ptr);
9356 if (Diff_TorqueCurrentFOC_PositionValue !=
nullptr)
9357 return SetControl(*Diff_TorqueCurrentFOC_PositionValue);
9358 auto *Diff_PositionTorqueCurrentFOC_PositionValue =
dynamic_cast<controls::compound::Diff_PositionTorqueCurrentFOC_Position *
>(ptr);
9359 if (Diff_PositionTorqueCurrentFOC_PositionValue !=
nullptr)
9360 return SetControl(*Diff_PositionTorqueCurrentFOC_PositionValue);
9361 auto *Diff_VelocityTorqueCurrentFOC_PositionValue =
dynamic_cast<controls::compound::Diff_VelocityTorqueCurrentFOC_Position *
>(ptr);
9362 if (Diff_VelocityTorqueCurrentFOC_PositionValue !=
nullptr)
9363 return SetControl(*Diff_VelocityTorqueCurrentFOC_PositionValue);
9364 auto *Diff_MotionMagicTorqueCurrentFOC_PositionValue =
dynamic_cast<controls::compound::Diff_MotionMagicTorqueCurrentFOC_Position *
>(ptr);
9365 if (Diff_MotionMagicTorqueCurrentFOC_PositionValue !=
nullptr)
9366 return SetControl(*Diff_MotionMagicTorqueCurrentFOC_PositionValue);
9367 auto *Diff_TorqueCurrentFOC_VelocityValue =
dynamic_cast<controls::compound::Diff_TorqueCurrentFOC_Velocity *
>(ptr);
9368 if (Diff_TorqueCurrentFOC_VelocityValue !=
nullptr)
9369 return SetControl(*Diff_TorqueCurrentFOC_VelocityValue);
9370 auto *Diff_PositionTorqueCurrentFOC_VelocityValue =
dynamic_cast<controls::compound::Diff_PositionTorqueCurrentFOC_Velocity *
>(ptr);
9371 if (Diff_PositionTorqueCurrentFOC_VelocityValue !=
nullptr)
9372 return SetControl(*Diff_PositionTorqueCurrentFOC_VelocityValue);
9373 auto *Diff_VelocityTorqueCurrentFOC_VelocityValue =
dynamic_cast<controls::compound::Diff_VelocityTorqueCurrentFOC_Velocity *
>(ptr);
9374 if (Diff_VelocityTorqueCurrentFOC_VelocityValue !=
nullptr)
9375 return SetControl(*Diff_VelocityTorqueCurrentFOC_VelocityValue);
9376 auto *Diff_MotionMagicTorqueCurrentFOC_VelocityValue =
dynamic_cast<controls::compound::Diff_MotionMagicTorqueCurrentFOC_Velocity *
>(ptr);
9377 if (Diff_MotionMagicTorqueCurrentFOC_VelocityValue !=
nullptr)
9378 return SetControl(*Diff_MotionMagicTorqueCurrentFOC_VelocityValue);
9404 ctre::phoenix::StatusCode
SetPosition(units::angle::turn_t newValue, units::time::second_t timeoutSeconds)
ii that the Software will be uninterrupted or error free
Definition: CTRE_LICENSE.txt:226
CTREXPORT int c_ctre_phoenix6_serialize_double(int spn, double value, char **str)
@ OK
No Error.
Definition: StatusCodes.h:1196
@ NotSupported
This is not supported.
Definition: StatusCodes.h:1809
Configs that affect audible components of the device.
Definition: Configs.hpp:2723
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
Configs that affect general behavior during closed-looping.
Definition: Configs.hpp:3345
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
std::string Serialize() const override
Definition: Configs.hpp:2199
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
std::string Serialize() const override
Definition: Configs.hpp:1000
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize) override
Definition: Configs.hpp:1013
std::string ToString() const override
Definition: Configs.hpp:985
Custom Params.
Definition: Configs.hpp:3242
std::string ToString() const override
Definition: Configs.hpp:3308
std::string Serialize() const override
Definition: Configs.hpp:3319
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
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize) override
Definition: Configs.hpp:1935
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
std::string Serialize() const override
Definition: Configs.hpp:1788
std::string ToString() const override
Definition: Configs.hpp:1776
Configs that affect the feedback of this motor controller.
Definition: Configs.hpp:1314
std::string ToString() const override
Definition: Configs.hpp:1593
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize) override
Definition: Configs.hpp:1619
std::string Serialize() const override
Definition: Configs.hpp:1607
Configs that change how the motor controller behaves under different limit switch states.
Definition: Configs.hpp:2230
std::string ToString() const override
Definition: Configs.hpp:2656
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize) override
Definition: Configs.hpp:2696
std::string Serialize() const override
Definition: Configs.hpp:2677
Configs for Motion Magic®.
Definition: Configs.hpp:3013
std::string Serialize() const override
Definition: Configs.hpp:3210
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize) override
Definition: Configs.hpp:3222
std::string ToString() const override
Definition: Configs.hpp:3196
Configs that directly affect motor output.
Definition: Configs.hpp:557
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize) override
Definition: Configs.hpp:719
std::string ToString() const override
Definition: Configs.hpp:693
std::string Serialize() const override
Definition: Configs.hpp:707
Configs that affect the open-loop control of this motor controller.
Definition: Configs.hpp:1954
std::string Serialize() const override
Definition: Configs.hpp:2062
std::string ToString() const override
Definition: Configs.hpp:2050
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize) override
Definition: Configs.hpp:2072
Definition: Configs.hpp:28
Definition: Configurator.hpp:22
ctre::phoenix::StatusCode SetConfigsPrivate(const std::string &serializedString, units::time::second_t timeoutSeconds, bool futureProofConfigs, bool overrideIfDuplicate)
Definition: Configurator.hpp:42
ctre::phoenix::StatusCode GetConfigsPrivate(std::string &serializedString, units::time::second_t timeoutSeconds) const
Definition: Configurator.hpp:65
units::time::second_t DefaultTimeoutSeconds
The default amount of time to wait for a config.
Definition: Configurator.hpp:27
Gains for the specified slot.
Definition: Configs.hpp:3399
std::string ToString() const override
Definition: Configs.hpp:3811
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize) override
Definition: Configs.hpp:3845
std::string Serialize() const override
Definition: Configs.hpp:3829
Gains for the specified slot.
Definition: Configs.hpp:3870
std::string Serialize() const override
Definition: Configs.hpp:4300
std::string ToString() const override
Definition: Configs.hpp:4282
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize) override
Definition: Configs.hpp:4316
Gains for the specified slot.
Definition: Configs.hpp:4341
std::string Serialize() const override
Definition: Configs.hpp:4771
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize) override
Definition: Configs.hpp:4787
std::string ToString() const override
Definition: Configs.hpp:4753
Gains for the specified slot.
Definition: Configs.hpp:4811
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize)
Definition: Configs.hpp:5318
std::string Serialize() const
Definition: Configs.hpp:5301
Configs that affect how software-limit switches behave.
Definition: Configs.hpp:2855
std::string ToString() const override
Definition: Configs.hpp:2969
std::string Serialize() const override
Definition: Configs.hpp:2982
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize) override
Definition: Configs.hpp:2993
Class description for the Talon FX integrated motor controller.
Definition: CoreTalonFX.hpp:99
TalonFXConfiguration & WithTorqueCurrent(TorqueCurrentConfigs newTorqueCurrent)
Modifies this configuration's TorqueCurrent parameter and returns itself for method-chaining and easi...
Definition: CoreTalonFX.hpp:330
TorqueCurrentConfigs TorqueCurrent
Configs that affect Torque Current control types.
Definition: CoreTalonFX.hpp:148
MotorOutputConfigs MotorOutput
Configs that directly affect motor output.
Definition: CoreTalonFX.hpp:123
TalonFXConfiguration & WithVoltage(VoltageConfigs newVoltage)
Modifies this configuration's Voltage parameter and returns itself for method-chaining and easier to ...
Definition: CoreTalonFX.hpp:311
TalonFXConfiguration & WithSlot1(Slot1Configs newSlot1)
Modifies this configuration's Slot1 parameter and returns itself for method-chaining and easier to us...
Definition: CoreTalonFX.hpp:564
bool FutureProofConfigs
True if we should factory default newer unsupported configs, false to leave newer unsupported configs...
Definition: CoreTalonFX.hpp:114
TalonFXConfiguration & WithAudio(AudioConfigs newAudio)
Modifies this configuration's Audio parameter and returns itself for method-chaining and easier to us...
Definition: CoreTalonFX.hpp:458
TalonFXConfiguration & WithMotorOutput(MotorOutputConfigs newMotorOutput)
Modifies this configuration's MotorOutput parameter and returns itself for method-chaining and easier...
Definition: CoreTalonFX.hpp:275
TalonFXConfiguration & WithFeedback(FeedbackConfigs newFeedback)
Modifies this configuration's Feedback parameter and returns itself for method-chaining and easier to...
Definition: CoreTalonFX.hpp:350
TalonFXConfiguration & WithSoftwareLimitSwitch(SoftwareLimitSwitchConfigs newSoftwareLimitSwitch)
Modifies this configuration's SoftwareLimitSwitch parameter and returns itself for method-chaining an...
Definition: CoreTalonFX.hpp:476
TalonFXConfiguration & WithDifferentialSensors(DifferentialSensorsConfigs newDifferentialSensors)
Modifies this configuration's DifferentialSensors parameter and returns itself for method-chaining an...
Definition: CoreTalonFX.hpp:368
TalonFXConfiguration & WithSlot2(Slot2Configs newSlot2)
Modifies this configuration's Slot2 parameter and returns itself for method-chaining and easier to us...
Definition: CoreTalonFX.hpp:582
TalonFXConfiguration & WithOpenLoopRamps(OpenLoopRampsConfigs newOpenLoopRamps)
Modifies this configuration's OpenLoopRamps parameter and returns itself for method-chaining and easi...
Definition: CoreTalonFX.hpp:403
TalonFXConfiguration & WithClosedLoopRamps(ClosedLoopRampsConfigs newClosedLoopRamps)
Modifies this configuration's ClosedLoopRamps parameter and returns itself for method-chaining and ea...
Definition: CoreTalonFX.hpp:421
TalonFXConfiguration & WithCurrentLimits(CurrentLimitsConfigs newCurrentLimits)
Modifies this configuration's CurrentLimits parameter and returns itself for method-chaining and easi...
Definition: CoreTalonFX.hpp:293
DifferentialConstantsConfigs DifferentialConstants
Configs related to constants used for differential control of a mechanism.
Definition: CoreTalonFX.hpp:174
VoltageConfigs Voltage
Configs that affect Voltage control types.
Definition: CoreTalonFX.hpp:139
HardwareLimitSwitchConfigs HardwareLimitSwitch
Configs that change how the motor controller behaves under different limit switch states.
Definition: CoreTalonFX.hpp:200
TalonFXConfiguration & WithSlot0(Slot0Configs newSlot0)
Modifies this configuration's Slot0 parameter and returns itself for method-chaining and easier to us...
Definition: CoreTalonFX.hpp:546
ClosedLoopRampsConfigs ClosedLoopRamps
Configs that affect the closed-loop control of this motor controller.
Definition: CoreTalonFX.hpp:190
Slot2Configs Slot2
Gains for the specified slot.
Definition: CoreTalonFX.hpp:261
OpenLoopRampsConfigs OpenLoopRamps
Configs that affect the open-loop control of this motor controller.
Definition: CoreTalonFX.hpp:182
TalonFXConfiguration & WithMotionMagic(MotionMagicConfigs newMotionMagic)
Modifies this configuration's MotionMagic parameter and returns itself for method-chaining and easier...
Definition: CoreTalonFX.hpp:494
SoftwareLimitSwitchConfigs SoftwareLimitSwitch
Configs that affect how software-limit switches behave.
Definition: CoreTalonFX.hpp:215
MotionMagicConfigs MotionMagic
Configs for Motion Magic®.
Definition: CoreTalonFX.hpp:223
std::string ToString() const
Get the string representation of this configuration.
Definition: CoreTalonFX.hpp:591
FeedbackConfigs Feedback
Configs that affect the feedback of this motor controller.
Definition: CoreTalonFX.hpp:158
Slot0Configs Slot0
Gains for the specified slot.
Definition: CoreTalonFX.hpp:245
TalonFXConfiguration & WithDifferentialConstants(DifferentialConstantsConfigs newDifferentialConstants)
Modifies this configuration's DifferentialConstants parameter and returns itself for method-chaining ...
Definition: CoreTalonFX.hpp:386
AudioConfigs Audio
Configs that affect audible components of the device.
Definition: CoreTalonFX.hpp:207
TalonFXConfiguration & WithHardwareLimitSwitch(HardwareLimitSwitchConfigs newHardwareLimitSwitch)
Modifies this configuration's HardwareLimitSwitch parameter and returns itself for method-chaining an...
Definition: CoreTalonFX.hpp:441
DifferentialSensorsConfigs DifferentialSensors
Configs related to sensors used for differential control of a mechanism.
Definition: CoreTalonFX.hpp:166
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize)
Take a string and deserialize it to this configuration.
Definition: CoreTalonFX.hpp:645
CurrentLimitsConfigs CurrentLimits
Configs that directly affect current limiting features.
Definition: CoreTalonFX.hpp:131
TalonFXConfiguration & WithCustomParams(CustomParamsConfigs newCustomParams)
Modifies this configuration's CustomParams parameter and returns itself for method-chaining and easie...
Definition: CoreTalonFX.hpp:511
CustomParamsConfigs CustomParams
Custom Params.
Definition: CoreTalonFX.hpp:230
ClosedLoopGeneralConfigs ClosedLoopGeneral
Configs that affect general behavior during closed-looping.
Definition: CoreTalonFX.hpp:237
std::string Serialize() const
Get the serialized form of this configuration.
Definition: CoreTalonFX.hpp:618
Slot1Configs Slot1
Gains for the specified slot.
Definition: CoreTalonFX.hpp:253
TalonFXConfiguration & WithClosedLoopGeneral(ClosedLoopGeneralConfigs newClosedLoopGeneral)
Modifies this configuration's ClosedLoopGeneral parameter and returns itself for method-chaining and ...
Definition: CoreTalonFX.hpp:528
Class description for the Talon FX integrated motor controller.
Definition: CoreTalonFX.hpp:676
ctre::phoenix::StatusCode ClearStickyFault_RemoteSensorDataInvalid()
Clear sticky fault: The remote sensor's data is no longer trusted.
Definition: CoreTalonFX.hpp:2577
ctre::phoenix::StatusCode Refresh(AudioConfigs &configs) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:1360
ctre::phoenix::StatusCode ClearStickyFault_RemoteSensorPosOverflow(units::time::second_t timeoutSeconds)
Clear sticky fault: The remote sensor position has overflowed.
Definition: CoreTalonFX.hpp:2318
ctre::phoenix::StatusCode ClearStickyFault_ForwardSoftLimit()
Clear sticky fault: Forward soft limit has been asserted.
Definition: CoreTalonFX.hpp:2535
ctre::phoenix::StatusCode Refresh(Slot1Configs &configs, units::time::second_t timeoutSeconds) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:1733
ctre::phoenix::StatusCode SetPosition(units::angle::turn_t newValue)
Sets the mechanism position of the device in mechanism rotations.
Definition: CoreTalonFX.hpp:1906
ctre::phoenix::StatusCode ClearStickyFault_RemoteSensorDataInvalid(units::time::second_t timeoutSeconds)
Clear sticky fault: The remote sensor's data is no longer trusted.
Definition: CoreTalonFX.hpp:2597
ctre::phoenix::StatusCode ClearStickyFaults()
Clear the sticky faults in the device.
Definition: CoreTalonFX.hpp:1949
ctre::phoenix::StatusCode Apply(const DifferentialConstantsConfigs &configs, units::time::second_t timeoutSeconds)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:1165
ctre::phoenix::StatusCode Refresh(OpenLoopRampsConfigs &configs) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:1180
ctre::phoenix::StatusCode Apply(const AudioConfigs &configs)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:1391
ctre::phoenix::StatusCode Refresh(FeedbackConfigs &configs) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:1000
ctre::phoenix::StatusCode Apply(const Slot0Configs &configs, units::time::second_t timeoutSeconds)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:1705
ctre::phoenix::StatusCode Refresh(Slot0Configs &configs) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:1660
ctre::phoenix::StatusCode Refresh(ClosedLoopGeneralConfigs &configs, units::time::second_t timeoutSeconds) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:1613
ctre::phoenix::StatusCode Refresh(SoftwareLimitSwitchConfigs &configs) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:1420
ctre::phoenix::StatusCode Apply(const TalonFXConfiguration &configs)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:730
ctre::phoenix::StatusCode Apply(const MotionMagicConfigs &configs)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:1511
ctre::phoenix::StatusCode ClearStickyFault_ProcTemp(units::time::second_t timeoutSeconds)
Clear sticky fault: Processor temperature exceeded limit.
Definition: CoreTalonFX.hpp:2043
ctre::phoenix::StatusCode Apply(const DifferentialSensorsConfigs &configs)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:1091
ctre::phoenix::StatusCode Refresh(Slot2Configs &configs, units::time::second_t timeoutSeconds) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:1793
ctre::phoenix::StatusCode ClearStickyFault_BridgeBrownout(units::time::second_t timeoutSeconds)
Clear sticky fault: Bridge was disabled most likely due to supply voltage dropping too low.
Definition: CoreTalonFX.hpp:2197
ctre::phoenix::StatusCode Refresh(ClosedLoopRampsConfigs &configs, units::time::second_t timeoutSeconds) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:1253
ctre::phoenix::StatusCode ClearStickyFault_Undervoltage()
Clear sticky fault: Device supply voltage dropped to near brownout levels.
Definition: CoreTalonFX.hpp:2102
ctre::phoenix::StatusCode Refresh(MotionMagicConfigs &configs) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:1480
ctre::phoenix::StatusCode Apply(const Slot2Configs &configs, units::time::second_t timeoutSeconds)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:1825
ctre::phoenix::StatusCode ClearStickyFault_OverSupplyV(units::time::second_t timeoutSeconds)
Clear sticky fault: Supply Voltage has exceeded the maximum voltage rating of device.
Definition: CoreTalonFX.hpp:2357
ctre::phoenix::StatusCode Apply(const DifferentialConstantsConfigs &configs)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:1151
ctre::phoenix::StatusCode Refresh(VoltageConfigs &configs, units::time::second_t timeoutSeconds) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:893
ctre::phoenix::StatusCode ClearStickyFault_ProcTemp()
Clear sticky fault: Processor temperature exceeded limit.
Definition: CoreTalonFX.hpp:2027
ctre::phoenix::StatusCode Refresh(SlotConfigs &configs) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:1840
ctre::phoenix::StatusCode Refresh(Slot1Configs &configs) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:1720
ctre::phoenix::StatusCode Refresh(CustomParamsConfigs &configs) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:1540
ctre::phoenix::StatusCode ClearStickyFault_DeviceTemp()
Clear sticky fault: Device temperature exceeded limit.
Definition: CoreTalonFX.hpp:2064
ctre::phoenix::StatusCode ClearStickyFault_ForwardSoftLimit(units::time::second_t timeoutSeconds)
Clear sticky fault: Forward soft limit has been asserted.
Definition: CoreTalonFX.hpp:2552
ctre::phoenix::StatusCode Apply(const CustomParamsConfigs &configs, units::time::second_t timeoutSeconds)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:1585
ctre::phoenix::StatusCode Refresh(ClosedLoopGeneralConfigs &configs) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:1600
ctre::phoenix::StatusCode Refresh(Slot2Configs &configs) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:1780
ctre::phoenix::StatusCode SetPosition(units::angle::turn_t newValue, units::time::second_t timeoutSeconds)
Sets the mechanism position of the device in mechanism rotations.
Definition: CoreTalonFX.hpp:1924
ctre::phoenix::StatusCode ClearStickyFault_Hardware()
Clear sticky fault: Hardware fault occurred.
Definition: CoreTalonFX.hpp:1990
ctre::phoenix::StatusCode Apply(const SlotConfigs &configs, units::time::second_t timeoutSeconds)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:1885
ctre::phoenix::StatusCode Apply(const OpenLoopRampsConfigs &configs)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:1211
ctre::phoenix::StatusCode Apply(const Slot1Configs &configs, units::time::second_t timeoutSeconds)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:1765
ctre::phoenix::StatusCode ClearStickyFault_ReverseSoftLimit(units::time::second_t timeoutSeconds)
Clear sticky fault: Reverse soft limit has been asserted.
Definition: CoreTalonFX.hpp:2513
ctre::phoenix::StatusCode ClearStickyFault_ReverseSoftLimit()
Clear sticky fault: Reverse soft limit has been asserted.
Definition: CoreTalonFX.hpp:2496
ctre::phoenix::StatusCode Refresh(VoltageConfigs &configs) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:880
ctre::phoenix::StatusCode Refresh(FeedbackConfigs &configs, units::time::second_t timeoutSeconds) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:1013
ctre::phoenix::StatusCode Apply(const ClosedLoopRampsConfigs &configs)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:1271
ctre::phoenix::StatusCode Apply(const TalonFXConfiguration &configs, units::time::second_t timeoutSeconds)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:744
ctre::phoenix::StatusCode Apply(const ClosedLoopRampsConfigs &configs, units::time::second_t timeoutSeconds)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:1285
ctre::phoenix::StatusCode Apply(const SoftwareLimitSwitchConfigs &configs, units::time::second_t timeoutSeconds)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:1465
ctre::phoenix::StatusCode Apply(const Slot0Configs &configs)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:1691
ctre::phoenix::StatusCode Apply(const CustomParamsConfigs &configs)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:1571
ctre::phoenix::StatusCode Apply(const TorqueCurrentConfigs &configs, units::time::second_t timeoutSeconds)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:985
ctre::phoenix::StatusCode ClearStickyFault_FusedSensorOutOfSync(units::time::second_t timeoutSeconds)
Clear sticky fault: The remote sensor used for fusion has fallen out of sync to the local sensor.
Definition: CoreTalonFX.hpp:2642
ctre::phoenix::StatusCode ClearStickyFault_RemoteSensorPosOverflow()
Clear sticky fault: The remote sensor position has overflowed.
Definition: CoreTalonFX.hpp:2298
ctre::phoenix::StatusCode ClearStickyFault_Hardware(units::time::second_t timeoutSeconds)
Clear sticky fault: Hardware fault occurred.
Definition: CoreTalonFX.hpp:2006
ctre::phoenix::StatusCode Apply(const ClosedLoopGeneralConfigs &configs)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:1631
ctre::phoenix::StatusCode ClearStickyFault_Undervoltage(units::time::second_t timeoutSeconds)
Clear sticky fault: Device supply voltage dropped to near brownout levels.
Definition: CoreTalonFX.hpp:2119
ctre::phoenix::StatusCode Apply(const ClosedLoopGeneralConfigs &configs, units::time::second_t timeoutSeconds)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:1645
ctre::phoenix::StatusCode Refresh(CustomParamsConfigs &configs, units::time::second_t timeoutSeconds) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:1553
ctre::phoenix::StatusCode Refresh(SoftwareLimitSwitchConfigs &configs, units::time::second_t timeoutSeconds) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:1433
ctre::phoenix::StatusCode Apply(const MotorOutputConfigs &configs)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:791
ctre::phoenix::StatusCode Apply(const Slot2Configs &configs)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:1811
ctre::phoenix::StatusCode Apply(const MotionMagicConfigs &configs, units::time::second_t timeoutSeconds)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:1525
ctre::phoenix::StatusCode ClearStickyFaults(units::time::second_t timeoutSeconds)
Clear the sticky faults in the device.
Definition: CoreTalonFX.hpp:1969
ctre::phoenix::StatusCode ClearStickyFault_UnstableSupplyV(units::time::second_t timeoutSeconds)
Clear sticky fault: Supply Voltage is unstable.
Definition: CoreTalonFX.hpp:2396
ctre::phoenix::StatusCode Refresh(AudioConfigs &configs, units::time::second_t timeoutSeconds) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:1373
ctre::phoenix::StatusCode Apply(const VoltageConfigs &configs, units::time::second_t timeoutSeconds)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:925
ctre::phoenix::StatusCode Refresh(MotorOutputConfigs &configs, units::time::second_t timeoutSeconds) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:773
ctre::phoenix::StatusCode Refresh(CurrentLimitsConfigs &configs) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:820
ctre::phoenix::StatusCode ClearStickyFault_BootDuringEnable()
Clear sticky fault: Device boot while detecting the enable signal.
Definition: CoreTalonFX.hpp:2141
ctre::phoenix::StatusCode ClearStickyFault_OverSupplyV()
Clear sticky fault: Supply Voltage has exceeded the maximum voltage rating of device.
Definition: CoreTalonFX.hpp:2340
ctre::phoenix::StatusCode Refresh(TalonFXConfiguration &configs, units::time::second_t timeoutSeconds) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:712
ctre::phoenix::StatusCode Refresh(DifferentialSensorsConfigs &configs) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:1060
ctre::phoenix::StatusCode Refresh(TorqueCurrentConfigs &configs) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:940
ctre::phoenix::StatusCode ClearStickyFault_BridgeBrownout()
Clear sticky fault: Bridge was disabled most likely due to supply voltage dropping too low.
Definition: CoreTalonFX.hpp:2180
ctre::phoenix::StatusCode Apply(const SlotConfigs &configs)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:1871
ctre::phoenix::StatusCode ClearStickyFault_RemoteSensorReset(units::time::second_t timeoutSeconds)
Clear sticky fault: The remote sensor has reset.
Definition: CoreTalonFX.hpp:2234
ctre::phoenix::StatusCode ClearStickyFault_SupplyCurrLimit()
Clear sticky fault: Supply current limit occured.
Definition: CoreTalonFX.hpp:2700
ctre::phoenix::StatusCode ClearStickyFault_UnstableSupplyV()
Clear sticky fault: Supply Voltage is unstable.
Definition: CoreTalonFX.hpp:2379
ctre::phoenix::StatusCode Refresh(OpenLoopRampsConfigs &configs, units::time::second_t timeoutSeconds) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:1193
ctre::phoenix::StatusCode Apply(const Slot1Configs &configs)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:1751
ctre::phoenix::StatusCode Apply(const SoftwareLimitSwitchConfigs &configs)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:1451
ctre::phoenix::StatusCode Refresh(DifferentialSensorsConfigs &configs, units::time::second_t timeoutSeconds) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:1073
ctre::phoenix::StatusCode ClearStickyFault_MissingDifferentialFX(units::time::second_t timeoutSeconds)
Clear sticky fault: The remote Talon FX used for differential control is not present on CAN Bus.
Definition: CoreTalonFX.hpp:2273
ctre::phoenix::StatusCode ClearStickyFault_ForwardHardLimit()
Clear sticky fault: Forward limit switch has been asserted.
Definition: CoreTalonFX.hpp:2457
ctre::phoenix::StatusCode ClearStickyFault_StatorCurrLimit(units::time::second_t timeoutSeconds)
Clear sticky fault: Stator current limit occured.
Definition: CoreTalonFX.hpp:2679
ctre::phoenix::StatusCode ClearStickyFault_StatorCurrLimit()
Clear sticky fault: Stator current limit occured.
Definition: CoreTalonFX.hpp:2663
ctre::phoenix::StatusCode Apply(const HardwareLimitSwitchConfigs &configs)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:1331
ctre::phoenix::StatusCode ClearStickyFault_FusedSensorOutOfSync()
Clear sticky fault: The remote sensor used for fusion has fallen out of sync to the local sensor.
Definition: CoreTalonFX.hpp:2622
ctre::phoenix::StatusCode ClearStickyFault_DeviceTemp(units::time::second_t timeoutSeconds)
Clear sticky fault: Device temperature exceeded limit.
Definition: CoreTalonFX.hpp:2080
ctre::phoenix::StatusCode Apply(const CurrentLimitsConfigs &configs, units::time::second_t timeoutSeconds)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:865
ctre::phoenix::StatusCode ClearStickyFault_ReverseHardLimit(units::time::second_t timeoutSeconds)
Clear sticky fault: Reverse limit switch has been asserted.
Definition: CoreTalonFX.hpp:2435
ctre::phoenix::StatusCode Refresh(DifferentialConstantsConfigs &configs, units::time::second_t timeoutSeconds) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:1133
ctre::phoenix::StatusCode ClearStickyFault_BootDuringEnable(units::time::second_t timeoutSeconds)
Clear sticky fault: Device boot while detecting the enable signal.
Definition: CoreTalonFX.hpp:2158
ctre::phoenix::StatusCode Apply(const HardwareLimitSwitchConfigs &configs, units::time::second_t timeoutSeconds)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:1345
ctre::phoenix::StatusCode Apply(const VoltageConfigs &configs)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:911
ctre::phoenix::StatusCode Apply(const FeedbackConfigs &configs)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:1031
ctre::phoenix::StatusCode ClearStickyFault_RemoteSensorReset()
Clear sticky fault: The remote sensor has reset.
Definition: CoreTalonFX.hpp:2218
ctre::phoenix::StatusCode Refresh(DifferentialConstantsConfigs &configs) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:1120
ctre::phoenix::StatusCode ClearStickyFault_MissingDifferentialFX()
Clear sticky fault: The remote Talon FX used for differential control is not present on CAN Bus.
Definition: CoreTalonFX.hpp:2256
ctre::phoenix::StatusCode Refresh(Slot0Configs &configs, units::time::second_t timeoutSeconds) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:1673
ctre::phoenix::StatusCode Refresh(TalonFXConfiguration &configs) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:698
ctre::phoenix::StatusCode Apply(const TorqueCurrentConfigs &configs)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:971
ctre::phoenix::StatusCode Apply(const DifferentialSensorsConfigs &configs, units::time::second_t timeoutSeconds)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:1105
ctre::phoenix::StatusCode Refresh(HardwareLimitSwitchConfigs &configs, units::time::second_t timeoutSeconds) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:1313
ctre::phoenix::StatusCode Apply(const MotorOutputConfigs &configs, units::time::second_t timeoutSeconds)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:805
ctre::phoenix::StatusCode ClearStickyFault_ReverseHardLimit()
Clear sticky fault: Reverse limit switch has been asserted.
Definition: CoreTalonFX.hpp:2418
ctre::phoenix::StatusCode Refresh(SlotConfigs &configs, units::time::second_t timeoutSeconds) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:1853
ctre::phoenix::StatusCode Refresh(ClosedLoopRampsConfigs &configs) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:1240
ctre::phoenix::StatusCode Refresh(MotorOutputConfigs &configs) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:760
ctre::phoenix::StatusCode Apply(const OpenLoopRampsConfigs &configs, units::time::second_t timeoutSeconds)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:1225
ctre::phoenix::StatusCode Refresh(MotionMagicConfigs &configs, units::time::second_t timeoutSeconds) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:1493
ctre::phoenix::StatusCode Apply(const FeedbackConfigs &configs, units::time::second_t timeoutSeconds)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:1045
ctre::phoenix::StatusCode Refresh(CurrentLimitsConfigs &configs, units::time::second_t timeoutSeconds) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:833
ctre::phoenix::StatusCode Apply(const AudioConfigs &configs, units::time::second_t timeoutSeconds)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:1405
ctre::phoenix::StatusCode ClearStickyFault_SupplyCurrLimit(units::time::second_t timeoutSeconds)
Clear sticky fault: Supply current limit occured.
Definition: CoreTalonFX.hpp:2716
ctre::phoenix::StatusCode Apply(const CurrentLimitsConfigs &configs)
Applies the contents of the specified config to the device.
Definition: CoreTalonFX.hpp:851
ctre::phoenix::StatusCode Refresh(TorqueCurrentConfigs &configs, units::time::second_t timeoutSeconds) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:953
ctre::phoenix::StatusCode Refresh(HardwareLimitSwitchConfigs &configs) const
Refreshes the values of the specified config group.
Definition: CoreTalonFX.hpp:1300
ctre::phoenix::StatusCode ClearStickyFault_ForwardHardLimit(units::time::second_t timeoutSeconds)
Clear sticky fault: Forward limit switch has been asserted.
Definition: CoreTalonFX.hpp:2474
Configs that affect Torque Current control types.
Definition: Configs.hpp:1177
std::string ToString() const override
Definition: Configs.hpp:1271
std::string Serialize() const override
Definition: Configs.hpp:1283
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize) override
Definition: Configs.hpp:1293
Configs that affect Voltage control types.
Definition: Configs.hpp:1035
ctre::phoenix::StatusCode Deserialize(const std::string &to_deserialize) override
Definition: Configs.hpp:1157
std::string Serialize() const override
Definition: Configs.hpp:1147
std::string ToString() const override
Definition: Configs.hpp:1135
Request coast neutral output of actuator.
Definition: CoastOut.hpp:27
Abstract Control Request class that other control requests extend for use.
Definition: ControlRequest.hpp:28
Request a specified motor duty cycle with a differential position closed-loop.
Definition: DifferentialDutyCycle.hpp:31
Follow the differential motor output of another Talon.
Definition: DifferentialFollower.hpp:30
Requests Motion Magic® to target a final position using a motion profile, and PID to a differential p...
Definition: DifferentialMotionMagicDutyCycle.hpp:33
Requests Motion Magic® to target a final position using a motion profile, and PID to a differential p...
Definition: DifferentialMotionMagicVoltage.hpp:33
Request PID to target position with a differential position setpoint.
Definition: DifferentialPositionDutyCycle.hpp:29
Request PID to target position with a differential position setpoint.
Definition: DifferentialPositionVoltage.hpp:29
Follow the differential motor output of another Talon while ignoring the master's invert setting.
Definition: DifferentialStrictFollower.hpp:32
Request PID to target velocity with a differential position setpoint.
Definition: DifferentialVelocityDutyCycle.hpp:30
Request PID to target velocity with a differential position setpoint.
Definition: DifferentialVelocityVoltage.hpp:30
Request a specified voltage with a differential position closed-loop.
Definition: DifferentialVoltage.hpp:31
Request a specified motor duty cycle.
Definition: DutyCycleOut.hpp:28
Requires Phoenix Pro and CANivore; Requests Motion Magic® to target a final position using a motion p...
Definition: DynamicMotionMagicDutyCycle.hpp:40
Requires Phoenix Pro and CANivore; Requests Motion Magic® to target a final position using a motion p...
Definition: DynamicMotionMagicTorqueCurrentFOC.hpp:39
Requires Phoenix Pro and CANivore; Requests Motion Magic® to target a final position using a motion p...
Definition: DynamicMotionMagicVoltage.hpp:39
Follow the motor output of another Talon.
Definition: Follower.hpp:30
Requests Motion Magic® to target a final position using a motion profile.
Definition: MotionMagicDutyCycle.hpp:34
Requests Motion Magic® to target a final position using an exponential motion profile.
Definition: MotionMagicExpoDutyCycle.hpp:35
Requires Phoenix Pro; Requests Motion Magic® to target a final position using an exponential motion p...
Definition: MotionMagicExpoTorqueCurrentFOC.hpp:36
Requests Motion Magic® to target a final position using an exponential motion profile.
Definition: MotionMagicExpoVoltage.hpp:35
Requires Phoenix Pro; Requests Motion Magic® to target a final position using a motion profile.
Definition: MotionMagicTorqueCurrentFOC.hpp:35
Requests Motion Magic® to target a final velocity using a motion profile.
Definition: MotionMagicVelocityDutyCycle.hpp:39
Requests Motion Magic® to target a final velocity using a motion profile.
Definition: MotionMagicVelocityTorqueCurrentFOC.hpp:39
Requests Motion Magic® to target a final velocity using a motion profile.
Definition: MotionMagicVelocityVoltage.hpp:39
Requests Motion Magic® to target a final position using a motion profile.
Definition: MotionMagicVoltage.hpp:34
Plays a single tone at the user specified frequency.
Definition: MusicTone.hpp:26
Request neutral output of actuator.
Definition: NeutralOut.hpp:27
Request PID to target position with duty cycle feedforward.
Definition: PositionDutyCycle.hpp:31
Requires Phoenix Pro; Request PID to target position with torque current feedforward.
Definition: PositionTorqueCurrentFOC.hpp:32
Request PID to target position with voltage feedforward.
Definition: PositionVoltage.hpp:31
Applies full neutral-brake by shorting motor leads together.
Definition: StaticBrake.hpp:26
Follow the motor output of another Talon while ignoring the master's invert setting.
Definition: StrictFollower.hpp:32
Requires Phoenix Pro; Request a specified motor current (field oriented control).
Definition: TorqueCurrentFOC.hpp:32
Request PID to target velocity with duty cycle feedforward.
Definition: VelocityDutyCycle.hpp:31
Requires Phoenix Pro; Request PID to target velocity with torque current feedforward.
Definition: VelocityTorqueCurrentFOC.hpp:32
Request PID to target velocity with voltage feedforward.
Definition: VelocityVoltage.hpp:31
Request a specified voltage.
Definition: VoltageOut.hpp:29
Definition: DeviceIdentifier.hpp:19
Parent class for all devices.
Definition: ParentDevice.hpp:29
Class description for the Talon FX integrated motor controller.
Definition: CoreTalonFX.hpp:2734
StatusSignal< units::angular_velocity::turns_per_second_t > & GetDifferentialAverageVelocity()
Average component of the differential velocity of device.
ctre::phoenix::StatusCode ClearStickyFault_RemoteSensorReset(units::time::second_t timeoutSeconds)
Clear sticky fault: The remote sensor has reset.
Definition: CoreTalonFX.hpp:9596
ctre::phoenix::StatusCode SetControl(controls::MotionMagicVoltage &&request)
Requests Motion Magic® to target a final position using a motion profile.
Definition: CoreTalonFX.hpp:6236
ctre::phoenix::StatusCode SetControl(controls::DifferentialDutyCycle &request)
Request a specified motor duty cycle with a differential position closed-loop.
ctre::phoenix::StatusCode ClearStickyFault_ForwardSoftLimit(units::time::second_t timeoutSeconds)
Clear sticky fault: Forward soft limit has been asserted.
Definition: CoreTalonFX.hpp:9793
CoreTalonFX(int deviceId, std::string canbus="")
Constructs a new Talon FX motor controller object.
StatusSignal< units::temperature::celsius_t > & GetDeviceTemp()
Temperature of device.
StatusSignal< bool > & GetStickyFault_Hardware()
Hardware fault occurred.
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_MotionMagicDutyCycle_Position &&request)
Differential control with Motion Magic® average target and position difference target using dutycycle...
Definition: CoreTalonFX.hpp:8590
ctre::phoenix::StatusCode SetControl(controls::MotionMagicExpoTorqueCurrentFOC &&request)
Requests Motion Magic® to target a final position using an exponential motion profile.
Definition: CoreTalonFX.hpp:8130
StatusSignal< bool > & GetStickyFault_RemoteSensorReset()
The remote sensor has reset.
ctre::phoenix::StatusCode ClearStickyFault_OverSupplyV()
Clear sticky fault: Supply Voltage has exceeded the maximum voltage rating of device.
Definition: CoreTalonFX.hpp:9685
StatusSignal< bool > & GetFault_ForwardHardLimit()
Forward limit switch has been asserted.
StatusSignal< double > & GetClosedLoopIntegratedOutput()
Closed loop integrated component.
StatusSignal< units::temperature::celsius_t > & GetAncillaryDeviceTemp()
Temperature of device from second sensor.
ctre::phoenix::StatusCode SetControl(controls::MotionMagicVelocityVoltage &request)
Requests Motion Magic® to target a final velocity using a motion profile.
StatusSignal< units::angular_velocity::turns_per_second_t > & GetRotorVelocity()
Velocity of the motor rotor.
ctre::phoenix::StatusCode SetControl(controls::MusicTone &request)
Plays a single tone at the user specified frequency.
StatusSignal< units::voltage::volt_t > & GetSupplyVoltage()
Measured supply voltage to the TalonFX.
ctre::phoenix::StatusCode SetControl(controls::StrictFollower &&request)
Follow the motor output of another Talon while ignoring the master's invert setting.
Definition: CoreTalonFX.hpp:7250
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_VelocityDutyCycle_Velocity &request)
Differential control with velocity average target and velocity difference target using dutycycle cont...
ctre::phoenix::StatusCode SetControl(controls::ControlRequest &&request)
Control motor with generic control request object.
Definition: CoreTalonFX.hpp:9390
StatusSignal< bool > & GetFault_StatorCurrLimit()
Stator current limit occured.
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_MotionMagicVoltage_Velocity &request)
Differential control with Motion Magic® average target and velocity difference target using voltage c...
ctre::phoenix::StatusCode SetControl(controls::DifferentialFollower &&request)
Follow the differential motor output of another Talon.
Definition: CoreTalonFX.hpp:7300
ctre::phoenix::StatusCode ClearStickyFaults(units::time::second_t timeoutSeconds)
Clear the sticky faults in the device.
Definition: CoreTalonFX.hpp:9432
ctre::phoenix::StatusCode SetControl(controls::DifferentialMotionMagicVoltage &request)
Requests Motion Magic® to target a final position using a motion profile, and PID to a differential p...
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_MotionMagicDutyCycle_Velocity &&request)
Differential control with Motion Magic® average target and velocity difference target using dutycycle...
Definition: CoreTalonFX.hpp:8710
ctre::phoenix::StatusCode ClearStickyFault_ForwardSoftLimit()
Clear sticky fault: Forward soft limit has been asserted.
Definition: CoreTalonFX.hpp:9805
ctre::phoenix::StatusCode SetControl(controls::CoastOut &&request)
Request coast neutral output of actuator.
Definition: CoreTalonFX.hpp:7388
StatusSignal< double > & GetClosedLoopOutput()
Closed loop total output.
ctre::phoenix::StatusCode SetControl(controls::DifferentialPositionVoltage &&request)
Request PID to target position with a differential position setpoint.
Definition: CoreTalonFX.hpp:6726
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_DutyCycleOut_Velocity &&request)
Differential control with duty cycle average target and velocity difference target.
Definition: CoreTalonFX.hpp:8620
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_MotionMagicDutyCycle_Position &request)
Differential control with Motion Magic® average target and position difference target using dutycycle...
ctre::phoenix::StatusCode SetControl(controls::DifferentialStrictFollower &request)
Follow the differential motor output of another Talon while ignoring the master's invert setting.
StatusSignal< double > & GetDifferentialClosedLoopProportionalOutput()
Differential closed loop proportional component.
ctre::phoenix::StatusCode ClearStickyFault_DeviceTemp()
Clear sticky fault: Device temperature exceeded limit.
Definition: CoreTalonFX.hpp:9513
StatusSignal< units::current::ampere_t > & GetTorqueCurrent()
Current corresponding to the torque output by the motor.
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_PositionTorqueCurrentFOC_Position &&request)
Differential control with position average target and position difference target using torque current...
Definition: CoreTalonFX.hpp:8994
ctre::phoenix::StatusCode SetControl(controls::Follower &request)
Follow the motor output of another Talon.
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_MotionMagicVoltage_Velocity &&request)
Differential control with Motion Magic® average target and velocity difference target using voltage c...
Definition: CoreTalonFX.hpp:8934
StatusSignal< double > & GetDifferentialClosedLoopIntegratedOutput()
Differential closed loop integrated component.
StatusSignal< bool > & GetFault_UnlicensedFeatureInUse()
An unlicensed feature is in use, device may not behave as expected.
ctre::phoenix::StatusCode ClearStickyFault_RemoteSensorPosOverflow(units::time::second_t timeoutSeconds)
Clear sticky fault: The remote sensor position has overflowed.
Definition: CoreTalonFX.hpp:9646
ctre::phoenix::StatusCode SetControl(controls::DutyCycleOut &&request)
Request a specified motor duty cycle.
Definition: CoreTalonFX.hpp:5310
StatusSignal< bool > & GetStickyFault_BootDuringEnable()
Device boot while detecting the enable signal.
StatusSignal< bool > & GetStickyFault_DeviceTemp()
Device temperature exceeded limit.
ctre::phoenix::StatusCode SetControl(controls::CoastOut &request)
Request coast neutral output of actuator.
ctre::phoenix::StatusCode SetControl(controls::MotionMagicVelocityDutyCycle &&request)
Requests Motion Magic® to target a final velocity using a motion profile.
Definition: CoreTalonFX.hpp:7568
StatusSignal< units::angle::turn_t > & GetRotorPosition()
Position of the motor rotor.
ctre::phoenix::StatusCode ClearStickyFault_ProcTemp(units::time::second_t timeoutSeconds)
Clear sticky fault: Processor temperature exceeded limit.
Definition: CoreTalonFX.hpp:9480
ctre::phoenix::StatusCode ClearStickyFault_SupplyCurrLimit()
Clear sticky fault: Supply current limit occured.
Definition: CoreTalonFX.hpp:9909
ctre::phoenix::StatusCode SetControl(controls::DifferentialMotionMagicDutyCycle &request)
Requests Motion Magic® to target a final position using a motion profile, and PID to a differential p...
ctre::phoenix::StatusCode SetControl(controls::Follower &&request)
Follow the motor output of another Talon.
Definition: CoreTalonFX.hpp:7210
ctre::phoenix::StatusCode SetControl(controls::DynamicMotionMagicVoltage &&request)
Requests Motion Magic® to target a final position using a motion profile.
Definition: CoreTalonFX.hpp:8372
ctre::phoenix::StatusCode SetControl(controls::DifferentialPositionVoltage &request)
Request PID to target position with a differential position setpoint.
ctre::phoenix::StatusCode ClearStickyFault_DeviceTemp(units::time::second_t timeoutSeconds)
Clear sticky fault: Device temperature exceeded limit.
Definition: CoreTalonFX.hpp:9502
StatusSignal< double > & GetClosedLoopError()
The difference between target reference and current measurement.
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_VelocityDutyCycle_Position &request)
Differential control with velocity average target and position difference target using dutycycle cont...
configs::TalonFXConfigurator const & GetConfigurator() const
Gets the configurator for this TalonFX.
Definition: CoreTalonFX.hpp:3558
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_VoltageOut_Position &&request)
Differential control with voltage average target and position difference target.
Definition: CoreTalonFX.hpp:8738
ctre::phoenix::StatusCode ClearStickyFault_OverSupplyV(units::time::second_t timeoutSeconds)
Clear sticky fault: Supply Voltage has exceeded the maximum voltage rating of device.
Definition: CoreTalonFX.hpp:9673
StatusSignal< double > & GetDifferentialOutput()
The calculated motor output for differential followers.
ctre::phoenix::StatusCode SetControl(controls::DynamicMotionMagicTorqueCurrentFOC &request)
Requests Motion Magic® to target a final position using a motion profile.
StatusSignal< bool > & GetFault_ReverseSoftLimit()
Reverse soft limit has been asserted.
ctre::phoenix::StatusCode SetControl(controls::VelocityDutyCycle &&request)
Request PID to target velocity with duty cycle feedforward.
Definition: CoreTalonFX.hpp:5850
StatusSignal< signals::AppliedRotorPolarityValue > & GetAppliedRotorPolarity()
The applied rotor polarity.
ctre::phoenix::StatusCode ClearStickyFault_StatorCurrLimit(units::time::second_t timeoutSeconds)
Clear sticky fault: Stator current limit occured.
Definition: CoreTalonFX.hpp:9876
ctre::phoenix::StatusCode ClearStickyFault_RemoteSensorReset()
Clear sticky fault: The remote sensor has reset.
Definition: CoreTalonFX.hpp:9607
ctre::phoenix::StatusCode SetControl(controls::MotionMagicExpoDutyCycle &&request)
Requests Motion Magic® to target a final position using an exponential motion profile.
Definition: CoreTalonFX.hpp:7936
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_DutyCycleOut_Position &&request)
Differential control with duty cycle average target and position difference target.
Definition: CoreTalonFX.hpp:8500
ctre::phoenix::StatusCode ClearStickyFault_ReverseSoftLimit()
Clear sticky fault: Reverse soft limit has been asserted.
Definition: CoreTalonFX.hpp:9781
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_PositionTorqueCurrentFOC_Position &request)
Differential control with position average target and position difference target using torque current...
ctre::phoenix::StatusCode ClearStickyFault_BridgeBrownout(units::time::second_t timeoutSeconds)
Clear sticky fault: Bridge was disabled most likely due to supply voltage dropping too low.
Definition: CoreTalonFX.hpp:9573
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_MotionMagicTorqueCurrentFOC_Position &&request)
Differential control with Motion Magic® average target and position difference target using torque cu...
Definition: CoreTalonFX.hpp:9056
StatusSignal< int > & GetDifferentialClosedLoopSlot()
Differential Closed loop slot in use.
StatusSignal< bool > & GetFault_Hardware()
Hardware fault occurred.
StatusSignal< bool > & GetFault_SupplyCurrLimit()
Supply current limit occured.
StatusSignal< int > & GetVersionBugfix()
App Bugfix Version number.
StatusSignal< double > & GetDifferentialClosedLoopReference()
Value that the differential closed loop is targeting.
ctre::phoenix::StatusCode SetControl(controls::DifferentialPositionDutyCycle &&request)
Request PID to target position with a differential position setpoint.
Definition: CoreTalonFX.hpp:6622
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_PositionVoltage_Velocity &&request)
Differential control with position average target and velocity difference target using voltage contro...
Definition: CoreTalonFX.hpp:8878
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_MotionMagicDutyCycle_Velocity &request)
Differential control with Motion Magic® average target and velocity difference target using dutycycle...
StatusSignal< units::current::ampere_t > & GetStatorCurrent()
Current corresponding to the stator windings.
ctre::phoenix::StatusCode ClearStickyFault_ProcTemp()
Clear sticky fault: Processor temperature exceeded limit.
Definition: CoreTalonFX.hpp:9491
StatusSignal< bool > & GetFault_StaticBrakeDisabled()
Static brake was momentarily disabled due to excessive braking current while disabled.
ctre::phoenix::StatusCode SetControl(controls::MotionMagicVelocityDutyCycle &request)
Requests Motion Magic® to target a final velocity using a motion profile.
StatusSignal< double > & GetDifferentialClosedLoopError()
The difference between target differential reference and current measurement.
ctre::phoenix::StatusCode SetControl(controls::VelocityTorqueCurrentFOC &&request)
Request PID to target velocity with torque current feedforward.
Definition: CoreTalonFX.hpp:6026
ctre::phoenix::StatusCode ClearStickyFault_RemoteSensorDataInvalid(units::time::second_t timeoutSeconds)
Clear sticky fault: The remote sensor's data is no longer trusted.
Definition: CoreTalonFX.hpp:9820
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_VelocityDutyCycle_Position &&request)
Differential control with velocity average target and position difference target using dutycycle cont...
Definition: CoreTalonFX.hpp:8560
ctre::phoenix::StatusCode SetControl(controls::MotionMagicExpoTorqueCurrentFOC &request)
Requests Motion Magic® to target a final position using an exponential motion profile.
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_TorqueCurrentFOC_Velocity &request)
Differential control with torque current average target and velocity difference target.
StatusSignal< bool > & GetStickyFault_UnstableSupplyV()
Supply Voltage is unstable.
StatusSignal< units::voltage::volt_t > & GetMotorVoltage()
The applied (output) motor voltage.
ctre::phoenix::StatusCode SetControl(controls::PositionTorqueCurrentFOC &&request)
Request PID to target position with torque current feedforward.
Definition: CoreTalonFX.hpp:5752
StatusSignal< bool > & GetFault_FusedSensorOutOfSync()
The remote sensor used for fusion has fallen out of sync to the local sensor.
ctre::phoenix::StatusCode SetControl(controls::StaticBrake &&request)
Applies full neutral-brake by shorting motor leads together.
Definition: CoreTalonFX.hpp:7410
ctre::phoenix::StatusCode ClearStickyFault_FusedSensorOutOfSync(units::time::second_t timeoutSeconds)
Clear sticky fault: The remote sensor used for fusion has fallen out of sync to the local sensor.
Definition: CoreTalonFX.hpp:9850
ctre::phoenix::StatusCode SetControl(controls::DifferentialVoltage &request)
Request a specified voltage with a differential position closed-loop.
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_PositionTorqueCurrentFOC_Velocity &request)
Differential control with position average target and velocity difference target using torque current...
ctre::phoenix::StatusCode SetControl(controls::MotionMagicExpoDutyCycle &request)
Requests Motion Magic® to target a final position using an exponential motion profile.
ctre::phoenix::StatusCode SetControl(controls::MotionMagicTorqueCurrentFOC &&request)
Requests Motion Magic® to target a final position using a motion profile.
Definition: CoreTalonFX.hpp:6320
StatusSignal< bool > & GetStickyFault_RemoteSensorDataInvalid()
The remote sensor's data is no longer trusted.
StatusSignal< bool > & GetStickyFault_ProcTemp()
Processor temperature exceeded limit.
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_VelocityVoltage_Velocity &request)
Differential control with velocity average target and velocity difference target using voltage contro...
ctre::phoenix::StatusCode SetControl(controls::PositionTorqueCurrentFOC &request)
Request PID to target position with torque current feedforward.
CoreTalonFX(CoreTalonFX &&)=default
StatusSignal< bool > & GetStickyFault_UnlicensedFeatureInUse()
An unlicensed feature is in use, device may not behave as expected.
StatusSignal< signals::MotionMagicIsRunningValue > & GetMotionMagicIsRunning()
Check if Motion Magic® is running.
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_VelocityVoltage_Velocity &&request)
Differential control with velocity average target and velocity difference target using voltage contro...
Definition: CoreTalonFX.hpp:8906
StatusSignal< bool > & GetFault_Undervoltage()
Device supply voltage dropped to near brownout levels.
ctre::phoenix::StatusCode ClearStickyFault_ReverseHardLimit(units::time::second_t timeoutSeconds)
Clear sticky fault: Reverse limit switch has been asserted.
Definition: CoreTalonFX.hpp:9721
StatusSignal< double > & GetDifferentialClosedLoopFeedForward()
Differential Feedforward passed by the user.
CoreTalonFX & operator=(CoreTalonFX &&)=default
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_VelocityTorqueCurrentFOC_Velocity &&request)
Differential control with velocity average target and velocity difference target using torque current...
Definition: CoreTalonFX.hpp:9146
ctre::phoenix::StatusCode SetControl(controls::NeutralOut &request)
Request neutral output of actuator.
StatusSignal< bool > & GetStickyFault_ReverseSoftLimit()
Reverse soft limit has been asserted.
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_PositionVoltage_Position &&request)
Differential control with position average target and position difference target using voltage contro...
Definition: CoreTalonFX.hpp:8766
ctre::phoenix::StatusCode SetControl(controls::DifferentialVoltage &&request)
Request a specified voltage with a differential position closed-loop.
Definition: CoreTalonFX.hpp:6518
ctre::phoenix::StatusCode ClearStickyFault_BootDuringEnable(units::time::second_t timeoutSeconds)
Clear sticky fault: Device boot while detecting the enable signal.
Definition: CoreTalonFX.hpp:9549
ctre::phoenix::StatusCode SetControl(controls::DifferentialFollower &request)
Follow the differential motor output of another Talon.
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_VelocityVoltage_Position &&request)
Differential control with velocity average target and position difference target using voltage contro...
Definition: CoreTalonFX.hpp:8794
ctre::phoenix::StatusCode SetControl(controls::StrictFollower &request)
Follow the motor output of another Talon while ignoring the master's invert setting.
ctre::phoenix::StatusCode SetControl(controls::MotionMagicVelocityVoltage &&request)
Requests Motion Magic® to target a final velocity using a motion profile.
Definition: CoreTalonFX.hpp:7826
StatusSignal< signals::ForwardLimitValue > & GetForwardLimit()
Forward Limit Pin.
StatusSignal< double > & GetClosedLoopFeedForward()
Feedforward passed by the user.
StatusSignal< signals::DifferentialControlModeValue > & GetDifferentialControlMode()
The active control mode of the differential controller.
StatusSignal< bool > & GetFault_ProcTemp()
Processor temperature exceeded limit.
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_PositionDutyCycle_Position &request)
Differential control with position average target and position difference target using dutycycle cont...
StatusSignal< signals::DeviceEnableValue > & GetDeviceEnable()
Indicates if device is actuator enabled.
ctre::phoenix::StatusCode SetControl(controls::PositionDutyCycle &request)
Request PID to target position with duty cycle feedforward.
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_PositionVoltage_Velocity &request)
Differential control with position average target and velocity difference target using voltage contro...
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_VelocityTorqueCurrentFOC_Position &&request)
Differential control with velocity average target and position difference target using torque current...
Definition: CoreTalonFX.hpp:9024
ctre::phoenix::StatusCode SetControl(controls::VoltageOut &request)
Request a specified voltage.
StatusSignal< units::angle::turn_t > & GetDifferentialDifferencePosition()
Difference component of the differential position of device.
ctre::phoenix::StatusCode SetControl(controls::MotionMagicVelocityTorqueCurrentFOC &&request)
Requests Motion Magic® to target a final velocity using a motion profile.
Definition: CoreTalonFX.hpp:7698
ctre::phoenix::StatusCode SetControl(controls::MotionMagicVoltage &request)
Requests Motion Magic® to target a final position using a motion profile.
ctre::phoenix::StatusCode ClearStickyFault_RemoteSensorPosOverflow()
Clear sticky fault: The remote sensor position has overflowed.
Definition: CoreTalonFX.hpp:9661
StatusSignal< bool > & GetStickyFault_SupplyCurrLimit()
Supply current limit occured.
StatusSignal< int > & GetVersionMinor()
App Minor Version number.
StatusSignal< units::current::ampere_t > & GetSupplyCurrent()
Measured supply side current.
StatusSignal< int > & GetVersion()
Full Version.
StatusSignal< bool > & GetStickyFault_RemoteSensorPosOverflow()
The remote sensor position has overflowed.
ctre::phoenix::StatusCode ClearStickyFault_FusedSensorOutOfSync()
Clear sticky fault: The remote sensor used for fusion has fallen out of sync to the local sensor.
Definition: CoreTalonFX.hpp:9865
StatusSignal< units::angular_velocity::turns_per_second_t > & GetDifferentialDifferenceVelocity()
Difference component of the differential velocity of device.
ctre::phoenix::StatusCode SetControl(controls::MotionMagicTorqueCurrentFOC &request)
Requests Motion Magic® to target a final position using a motion profile.
StatusSignal< bool > & GetFault_MissingDifferentialFX()
The remote Talon FX used for differential control is not present on CAN Bus.
ctre::phoenix::StatusCode SetControl(controls::DifferentialVelocityVoltage &request)
Request PID to target velocity with a differential position setpoint.
StatusSignal< double > & GetClosedLoopReference()
Value that the closed loop is targeting.
ctre::phoenix::StatusCode ClearStickyFault_ReverseSoftLimit(units::time::second_t timeoutSeconds)
Clear sticky fault: Reverse soft limit has been asserted.
Definition: CoreTalonFX.hpp:9769
StatusSignal< int > & GetVersionMajor()
App Major Version number.
ctre::phoenix::StatusCode SetControl(controls::DifferentialVelocityVoltage &&request)
Request PID to target velocity with a differential position setpoint.
Definition: CoreTalonFX.hpp:6934
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_VelocityTorqueCurrentFOC_Velocity &request)
Differential control with velocity average target and velocity difference target using torque current...
ctre::phoenix::StatusCode SetControl(controls::MusicTone &&request)
Plays a single tone at the user specified frequency.
Definition: CoreTalonFX.hpp:7440
StatusSignal< int > & GetVersionBuild()
App Build Version number.
StatusSignal< units::dimensionless::scalar_t > & GetDutyCycle()
The applied motor duty cycle.
StatusSignal< double > & GetClosedLoopDerivativeOutput()
Closed loop derivative component.
ctre::phoenix::StatusCode ClearStickyFault_UnstableSupplyV()
Clear sticky fault: Supply Voltage is unstable.
Definition: CoreTalonFX.hpp:9709
ctre::phoenix::StatusCode ClearStickyFault_StatorCurrLimit()
Clear sticky fault: Stator current limit occured.
Definition: CoreTalonFX.hpp:9887
configs::TalonFXConfigurator & GetConfigurator()
Gets the configurator for this TalonFX.
Definition: CoreTalonFX.hpp:3546
ctre::phoenix::StatusCode SetPosition(units::angle::turn_t newValue)
Sets the mechanism position of the device in mechanism rotations.
Definition: CoreTalonFX.hpp:9417
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_VoltageOut_Velocity &request)
Differential control with voltage average target and velocity difference target.
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_MotionMagicTorqueCurrentFOC_Velocity &request)
Differential control with Motion Magic® average target and velocity difference target using torque cu...
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_MotionMagicVoltage_Position &request)
Differential control with Motion Magic® average target and position difference target using voltage c...
ctre::phoenix::StatusCode SetControl(controls::VoltageOut &&request)
Request a specified voltage.
Definition: CoreTalonFX.hpp:5484
StatusSignal< bool > & GetFault_DeviceTemp()
Device temperature exceeded limit.
ctre::phoenix::StatusCode SetControl(controls::PositionVoltage &request)
Request PID to target position with voltage feedforward.
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_PositionDutyCycle_Position &&request)
Differential control with position average target and position difference target using dutycycle cont...
Definition: CoreTalonFX.hpp:8530
StatusSignal< bool > & GetFault_RemoteSensorReset()
The remote sensor has reset.
ctre::phoenix::StatusCode SetControl(controls::MotionMagicVelocityTorqueCurrentFOC &request)
Requests Motion Magic® to target a final velocity using a motion profile.
StatusSignal< bool > & GetStickyFault_UsingFusedCANcoderWhileUnlicensed()
Using Fused CANcoder feature while unlicensed.
StatusSignal< bool > & GetFault_RemoteSensorPosOverflow()
The remote sensor position has overflowed.
StatusSignal< bool > & GetFault_BootDuringEnable()
Device boot while detecting the enable signal.
StatusSignal< double > & GetDifferentialClosedLoopOutput()
Differential closed loop total output.
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_PositionTorqueCurrentFOC_Velocity &&request)
Differential control with position average target and velocity difference target using torque current...
Definition: CoreTalonFX.hpp:9116
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_TorqueCurrentFOC_Velocity &&request)
Differential control with torque current average target and velocity difference target.
Definition: CoreTalonFX.hpp:9086
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_VelocityVoltage_Position &request)
Differential control with velocity average target and position difference target using voltage contro...
StatusSignal< bool > & GetStickyFault_OverSupplyV()
Supply Voltage has exceeded the maximum voltage rating of device.
ctre::phoenix::StatusCode SetControl(controls::VelocityVoltage &&request)
Request PID to target velocity with voltage feedforward.
Definition: CoreTalonFX.hpp:5948
ctre::phoenix::StatusCode SetControl(controls::StaticBrake &request)
Applies full neutral-brake by shorting motor leads together.
ctre::phoenix::StatusCode SetControl(controls::DifferentialDutyCycle &&request)
Request a specified motor duty cycle with a differential position closed-loop.
Definition: CoreTalonFX.hpp:6418
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_VoltageOut_Position &request)
Differential control with voltage average target and position difference target.
ctre::phoenix::StatusCode ClearStickyFault_UnstableSupplyV(units::time::second_t timeoutSeconds)
Clear sticky fault: Supply Voltage is unstable.
Definition: CoreTalonFX.hpp:9697
ctre::phoenix::StatusCode ClearStickyFault_MissingDifferentialFX(units::time::second_t timeoutSeconds)
Clear sticky fault: The remote Talon FX used for differential control is not present on CAN Bus.
Definition: CoreTalonFX.hpp:9619
ctre::phoenix::StatusCode ClearStickyFault_ReverseHardLimit()
Clear sticky fault: Reverse limit switch has been asserted.
Definition: CoreTalonFX.hpp:9733
StatusSignal< double > & GetDifferentialClosedLoopReferenceSlope()
Derivative of the target that the differential closed loop is targeting.
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_TorqueCurrentFOC_Position &request)
Differential control with torque current average target and position difference target.
StatusSignal< signals::ReverseLimitValue > & GetReverseLimit()
Reverse Limit Pin.
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_MotionMagicVoltage_Position &&request)
Differential control with Motion Magic® average target and position difference target using voltage c...
Definition: CoreTalonFX.hpp:8822
ctre::phoenix::StatusCode SetControl(controls::MotionMagicExpoVoltage &&request)
Requests Motion Magic® to target a final position using an exponential motion profile.
Definition: CoreTalonFX.hpp:8044
ctre::phoenix::StatusCode SetControl(controls::MotionMagicExpoVoltage &request)
Requests Motion Magic® to target a final position using an exponential motion profile.
ctre::phoenix::StatusCode ClearStickyFault_ForwardHardLimit(units::time::second_t timeoutSeconds)
Clear sticky fault: Forward limit switch has been asserted.
Definition: CoreTalonFX.hpp:9745
StatusSignal< bool > & GetFault_ReverseHardLimit()
Reverse limit switch has been asserted.
ctre::phoenix::StatusCode ClearStickyFault_MissingDifferentialFX()
Clear sticky fault: The remote Talon FX used for differential control is not present on CAN Bus.
Definition: CoreTalonFX.hpp:9631
ctre::phoenix::StatusCode SetControl(controls::DynamicMotionMagicVoltage &request)
Requests Motion Magic® to target a final position using a motion profile.
ctre::phoenix::StatusCode SetControl(controls::DifferentialStrictFollower &&request)
Follow the differential motor output of another Talon while ignoring the master's invert setting.
Definition: CoreTalonFX.hpp:7340
ctre::phoenix::StatusCode ClearStickyFaults()
Clear the sticky faults in the device.
Definition: CoreTalonFX.hpp:9447
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_MotionMagicTorqueCurrentFOC_Velocity &&request)
Differential control with Motion Magic® average target and velocity difference target using torque cu...
Definition: CoreTalonFX.hpp:9178
ctre::phoenix::StatusCode ClearStickyFault_Undervoltage()
Clear sticky fault: Device supply voltage dropped to near brownout levels.
Definition: CoreTalonFX.hpp:9537
ctre::phoenix::StatusCode ClearStickyFault_SupplyCurrLimit(units::time::second_t timeoutSeconds)
Clear sticky fault: Supply current limit occured.
Definition: CoreTalonFX.hpp:9898
StatusSignal< bool > & GetStickyFault_BridgeBrownout()
Bridge was disabled most likely due to supply voltage dropping too low.
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_DutyCycleOut_Position &request)
Differential control with duty cycle average target and position difference target.
ctre::phoenix::StatusCode SetControl(controls::PositionDutyCycle &&request)
Request PID to target position with duty cycle feedforward.
Definition: CoreTalonFX.hpp:5580
ctre::phoenix::StatusCode SetControl(controls::NeutralOut &&request)
Request neutral output of actuator.
Definition: CoreTalonFX.hpp:7364
StatusSignal< units::angular_acceleration::turns_per_second_squared_t > & GetAcceleration()
Acceleration of the device in mechanism rotations per second².
StatusSignal< units::angle::turn_t > & GetPosition()
Position of the device in mechanism rotations.
ctre::phoenix::StatusCode ClearStickyFault_Hardware(units::time::second_t timeoutSeconds)
Clear sticky fault: Hardware fault occurred.
Definition: CoreTalonFX.hpp:9458
ctre::phoenix::StatusCode SetControl(controls::DifferentialVelocityDutyCycle &request)
Request PID to target velocity with a differential position setpoint.
ctre::phoenix::StatusCode SetControl(controls::DifferentialMotionMagicDutyCycle &&request)
Requests Motion Magic® to target a final position using a motion profile, and PID to a differential p...
Definition: CoreTalonFX.hpp:7048
StatusSignal< bool > & GetStickyFault_StatorCurrLimit()
Stator current limit occured.
StatusSignal< bool > & GetFault_UsingFusedCANcoderWhileUnlicensed()
Using Fused CANcoder feature while unlicensed.
ctre::phoenix::StatusCode SetControl(controls::VelocityVoltage &request)
Request PID to target velocity with voltage feedforward.
StatusSignal< double > & GetDifferentialClosedLoopDerivativeOutput()
Differential closed loop derivative component.
StatusSignal< bool > & GetStickyFault_ReverseHardLimit()
Reverse limit switch has been asserted.
ctre::phoenix::StatusCode SetControl(controls::VelocityDutyCycle &request)
Request PID to target velocity with duty cycle feedforward.
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_TorqueCurrentFOC_Position &&request)
Differential control with torque current average target and position difference target.
Definition: CoreTalonFX.hpp:8964
ctre::phoenix::StatusCode SetControl(controls::DynamicMotionMagicTorqueCurrentFOC &&request)
Requests Motion Magic® to target a final position using a motion profile.
Definition: CoreTalonFX.hpp:8470
ctre::phoenix::StatusCode ClearStickyFault_Hardware()
Clear sticky fault: Hardware fault occurred.
Definition: CoreTalonFX.hpp:9469
StatusSignal< bool > & GetFault_BridgeBrownout()
Bridge was disabled most likely due to supply voltage dropping too low.
StatusSignal< bool > & GetIsProLicensed()
Whether the device is Phoenix Pro licensed.
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_VelocityDutyCycle_Velocity &&request)
Differential control with velocity average target and velocity difference target using dutycycle cont...
Definition: CoreTalonFX.hpp:8680
StatusSignal< double > & GetClosedLoopReferenceSlope()
Derivative of the target that the closed loop is targeting.
StatusSignal< bool > & GetStickyFault_ForwardSoftLimit()
Forward soft limit has been asserted.
StatusSignal< bool > & GetFault_OverSupplyV()
Supply Voltage has exceeded the maximum voltage rating of device.
ctre::phoenix::StatusCode SetPosition(units::angle::turn_t newValue, units::time::second_t timeoutSeconds)
Sets the mechanism position of the device in mechanism rotations.
Definition: CoreTalonFX.hpp:9404
StatusSignal< units::angular_velocity::turns_per_second_t > & GetVelocity()
Velocity of the device in mechanism rotations per second.
ctre::phoenix::StatusCode SetControl(controls::DifferentialVelocityDutyCycle &&request)
Request PID to target velocity with a differential position setpoint.
Definition: CoreTalonFX.hpp:6830
StatusSignal< bool > & GetStickyFault_MissingDifferentialFX()
The remote Talon FX used for differential control is not present on CAN Bus.
ctre::phoenix::StatusCode SetControl(controls::DynamicMotionMagicDutyCycle &&request)
Requests Motion Magic® to target a final position using a motion profile.
Definition: CoreTalonFX.hpp:8252
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_PositionDutyCycle_Velocity &&request)
Differential control with position average target and velocity difference target using dutycycle cont...
Definition: CoreTalonFX.hpp:8650
StatusSignal< signals::MotorOutputStatusValue > & GetMotorOutputStatus()
Assess the status of the motor output with respect to load and supply.
ctre::phoenix::StatusCode SetControl(controls::MotionMagicDutyCycle &request)
Requests Motion Magic® to target a final position using a motion profile.
StatusSignal< int > & GetClosedLoopSlot()
Closed loop slot in use.
ctre::phoenix::StatusCode SetControl(controls::VelocityTorqueCurrentFOC &request)
Request PID to target velocity with torque current feedforward.
StatusSignal< signals::BridgeOutputValue > & GetBridgeOutput()
The applied output of the bridge.
StatusSignal< bool > & GetStickyFault_FusedSensorOutOfSync()
The remote sensor used for fusion has fallen out of sync to the local sensor.
StatusSignal< bool > & GetStickyFault_Undervoltage()
Device supply voltage dropped to near brownout levels.
StatusSignal< int > & GetFaultField()
Integer representing all faults.
StatusSignal< bool > & GetFault_UnstableSupplyV()
Supply Voltage is unstable.
StatusSignal< double > & GetClosedLoopProportionalOutput()
Closed loop proportional component.
StatusSignal< units::temperature::celsius_t > & GetProcessorTemp()
Temperature of the processor.
StatusSignal< bool > & GetStickyFault_ForwardHardLimit()
Forward limit switch has been asserted.
ctre::phoenix::StatusCode ClearStickyFault_ForwardHardLimit()
Clear sticky fault: Forward limit switch has been asserted.
Definition: CoreTalonFX.hpp:9757
ctre::phoenix::StatusCode SetControl(controls::MotionMagicDutyCycle &&request)
Requests Motion Magic® to target a final position using a motion profile.
Definition: CoreTalonFX.hpp:6132
StatusSignal< signals::ControlModeValue > & GetControlMode()
The active control mode of the motor controller.
StatusSignal< units::angle::turn_t > & GetDifferentialAveragePosition()
Average component of the differential position of device.
ctre::phoenix::StatusCode SetControl(controls::TorqueCurrentFOC &&request)
Request a specified motor current (field oriented control).
Definition: CoreTalonFX.hpp:5400
ctre::phoenix::StatusCode ClearStickyFault_BootDuringEnable()
Clear sticky fault: Device boot while detecting the enable signal.
Definition: CoreTalonFX.hpp:9561
ctre::phoenix::StatusCode SetControl(controls::TorqueCurrentFOC &request)
Request a specified motor current (field oriented control).
StatusSignal< bool > & GetFault_ForwardSoftLimit()
Forward soft limit has been asserted.
StatusSignal< int > & GetStickyFaultField()
Integer representing all sticky faults.
ctre::phoenix::StatusCode SetControl(controls::PositionVoltage &&request)
Request PID to target position with voltage feedforward.
Definition: CoreTalonFX.hpp:5676
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_PositionDutyCycle_Velocity &request)
Differential control with position average target and velocity difference target using dutycycle cont...
StatusSignal< bool > & GetStickyFault_StaticBrakeDisabled()
Static brake was momentarily disabled due to excessive braking current while disabled.
StatusSignal< bool > & GetFault_RemoteSensorDataInvalid()
The remote sensor's data is no longer trusted.
ctre::phoenix::StatusCode ClearStickyFault_Undervoltage(units::time::second_t timeoutSeconds)
Clear sticky fault: Device supply voltage dropped to near brownout levels.
Definition: CoreTalonFX.hpp:9525
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_VelocityTorqueCurrentFOC_Position &request)
Differential control with velocity average target and position difference target using torque current...
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_MotionMagicTorqueCurrentFOC_Position &request)
Differential control with Motion Magic® average target and position difference target using torque cu...
sim::TalonFXSimState & GetSimState()
Get the simulation state for this device.
Definition: CoreTalonFX.hpp:3576
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_VoltageOut_Velocity &&request)
Differential control with voltage average target and velocity difference target.
Definition: CoreTalonFX.hpp:8850
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_PositionVoltage_Position &request)
Differential control with position average target and position difference target using voltage contro...
ctre::phoenix::StatusCode ClearStickyFault_BridgeBrownout()
Clear sticky fault: Bridge was disabled most likely due to supply voltage dropping too low.
Definition: CoreTalonFX.hpp:9585
ctre::phoenix::StatusCode SetControl(controls::ControlRequest &request)
Control motor with generic control request object.
Definition: CoreTalonFX.hpp:9192
ctre::phoenix::StatusCode SetControl(controls::DifferentialPositionDutyCycle &request)
Request PID to target position with a differential position setpoint.
StatusSignal< signals::MotorTypeValue > & GetMotorType()
The type of motor attached to the Talon FX.
ctre::phoenix::StatusCode SetControl(controls::compound::Diff_DutyCycleOut_Velocity &request)
Differential control with duty cycle average target and velocity difference target.
ctre::phoenix::StatusCode ClearStickyFault_RemoteSensorDataInvalid()
Clear sticky fault: The remote sensor's data is no longer trusted.
Definition: CoreTalonFX.hpp:9835
ctre::phoenix::StatusCode SetControl(controls::DifferentialMotionMagicVoltage &&request)
Requests Motion Magic® to target a final position using a motion profile, and PID to a differential p...
Definition: CoreTalonFX.hpp:7160
ctre::phoenix::StatusCode SetControl(controls::DutyCycleOut &request)
Request a specified motor duty cycle.
ctre::phoenix::StatusCode SetControl(controls::DynamicMotionMagicDutyCycle &request)
Requests Motion Magic® to target a final position using a motion profile.
Class to control the state of a simulated hardware::TalonFX.
Definition: TalonFXSimState.hpp:33
Definition: string_util.hpp:15