CTRE Phoenix 6 C++ 24.2.0
|
Configs to control the maximum and minimum applied torque when using Torque Current control types. More...
#include <ctre/phoenix6/configs/Configs.hpp>
Public Member Functions | |
TorqueCurrentConfigs & | WithPeakForwardTorqueCurrent (double newPeakForwardTorqueCurrent) |
Modifies this configuration's PeakForwardTorqueCurrent parameter and returns itself for method-chaining and easier to use config API. More... | |
TorqueCurrentConfigs & | WithPeakReverseTorqueCurrent (double newPeakReverseTorqueCurrent) |
Modifies this configuration's PeakReverseTorqueCurrent parameter and returns itself for method-chaining and easier to use config API. More... | |
TorqueCurrentConfigs & | WithTorqueNeutralDeadband (double newTorqueNeutralDeadband) |
Modifies this configuration's TorqueNeutralDeadband parameter and returns itself for method-chaining and easier to use config API. More... | |
std::string | ToString () const override |
std::string | Serialize () const override |
ctre::phoenix::StatusCode | Deserialize (const std::string &to_deserialize) override |
virtual std::string | ToString () const =0 |
virtual ctre::phoenix::StatusCode | Deserialize (const std::string &string)=0 |
virtual std::string | Serialize () const =0 |
Public Attributes | |
double | PeakForwardTorqueCurrent = 800 |
Maximum (forward) output during torque current based control modes. More... | |
double | PeakReverseTorqueCurrent = -800 |
Minimum (reverse) output during torque current based control modes. More... | |
double | TorqueNeutralDeadband = 0.0 |
Configures the output deadband during torque current based control modes. More... | |
Configs to control the maximum and minimum applied torque when using Torque Current control types.
Similar to peak output, but for the TorqueCurrentFOC control type requests.
|
inlineoverridevirtual |
Implements ctre::phoenix6::configs::ParentConfiguration.
|
inlineoverridevirtual |
Implements ctre::phoenix6::ISerializable.
|
inlineoverridevirtual |
Implements ctre::phoenix6::configs::ParentConfiguration.
|
inline |
Modifies this configuration's PeakForwardTorqueCurrent parameter and returns itself for method-chaining and easier to use config API.
newPeakForwardTorqueCurrent | Parameter to modify |
|
inline |
Modifies this configuration's PeakReverseTorqueCurrent parameter and returns itself for method-chaining and easier to use config API.
newPeakReverseTorqueCurrent | Parameter to modify |
|
inline |
Modifies this configuration's TorqueNeutralDeadband parameter and returns itself for method-chaining and easier to use config API.
newTorqueNeutralDeadband | Parameter to modify |
double ctre::phoenix6::configs::TorqueCurrentConfigs::PeakForwardTorqueCurrent = 800 |
Maximum (forward) output during torque current based control modes.
Minimum Value: -800 Maximum Value: 800 Default Value: 800 Units: A
double ctre::phoenix6::configs::TorqueCurrentConfigs::PeakReverseTorqueCurrent = -800 |
Minimum (reverse) output during torque current based control modes.
Minimum Value: -800 Maximum Value: 800 Default Value: -800 Units: A
double ctre::phoenix6::configs::TorqueCurrentConfigs::TorqueNeutralDeadband = 0.0 |
Configures the output deadband during torque current based control modes.
Minimum Value: 0 Maximum Value: 25 Default Value: 0.0 Units: A