Loading [MathJax]/extensions/tex2jax.js
CTRE Phoenix 6 C++ 23.10.0-alpha-8
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ctre::phoenix6::configs::TorqueCurrentConfigs Class Reference

Configs to control the maximum and minimum applied torque when using Torque Current control types. More...

#include <ctre/phoenix6/configs/Configs.hpp>

Inheritance diagram for ctre::phoenix6::configs::TorqueCurrentConfigs:
ctre::phoenix6::configs::ParentConfiguration ctre::phoenix6::ISerializable

Public Member Functions

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...
 

Detailed Description

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.

Member Function Documentation

◆ Deserialize()

ctre::phoenix::StatusCode ctre::phoenix6::configs::TorqueCurrentConfigs::Deserialize ( const std::string &  to_deserialize)
inlineoverridevirtual

◆ Serialize()

std::string ctre::phoenix6::configs::TorqueCurrentConfigs::Serialize ( ) const
inlineoverridevirtual

◆ ToString()

std::string ctre::phoenix6::configs::TorqueCurrentConfigs::ToString ( ) const
inlineoverridevirtual

Member Data Documentation

◆ PeakForwardTorqueCurrent

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

◆ PeakReverseTorqueCurrent

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

◆ TorqueNeutralDeadband

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


The documentation for this class was generated from the following file: