CTRE Phoenix 6 C++ 25.0.0-beta-4
Loading...
Searching...
No Matches
ctre::phoenix6::configs::DifferentialConstantsConfigs Class Reference

Configs related to constants used for differential control of a mechanism. More...

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

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

Public Member Functions

constexpr DifferentialConstantsConfigs ()=default
 
constexpr DifferentialConstantsConfigsWithPeakDifferentialDutyCycle (units::dimensionless::scalar_t newPeakDifferentialDutyCycle)
 Modifies this configuration's PeakDifferentialDutyCycle parameter and returns itself for method-chaining and easier to use config API.
 
constexpr DifferentialConstantsConfigsWithPeakDifferentialVoltage (units::voltage::volt_t newPeakDifferentialVoltage)
 Modifies this configuration's PeakDifferentialVoltage parameter and returns itself for method-chaining and easier to use config API.
 
constexpr DifferentialConstantsConfigsWithPeakDifferentialTorqueCurrent (units::current::ampere_t newPeakDifferentialTorqueCurrent)
 Modifies this configuration's PeakDifferentialTorqueCurrent parameter and returns itself for method-chaining and easier to use config API.
 
std::string ToString () const override
 
std::string Serialize () const override
 
ctre::phoenix::StatusCode Deserialize (const std::string &to_deserialize) override
 

Public Attributes

units::dimensionless::scalar_t PeakDifferentialDutyCycle = 2
 Maximum differential output during duty cycle based differential control modes.
 
units::voltage::volt_t PeakDifferentialVoltage = 32_V
 Maximum differential output during voltage based differential control modes.
 
units::current::ampere_t PeakDifferentialTorqueCurrent = 1600_A
 Maximum differential output during torque current based differential control modes.
 

Detailed Description

Configs related to constants used for differential control of a mechanism.

Includes the differential peak outputs.

Constructor & Destructor Documentation

◆ DifferentialConstantsConfigs()

constexpr ctre::phoenix6::configs::DifferentialConstantsConfigs::DifferentialConstantsConfigs ( )
constexprdefault

Member Function Documentation

◆ Deserialize()

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

◆ Serialize()

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

◆ ToString()

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

◆ WithPeakDifferentialDutyCycle()

constexpr DifferentialConstantsConfigs & ctre::phoenix6::configs::DifferentialConstantsConfigs::WithPeakDifferentialDutyCycle ( units::dimensionless::scalar_t newPeakDifferentialDutyCycle)
inlineconstexpr

Modifies this configuration's PeakDifferentialDutyCycle parameter and returns itself for method-chaining and easier to use config API.

Maximum differential output during duty cycle based differential control modes.

  • Minimum Value: 0.0
  • Maximum Value: 2.0
  • Default Value: 2
  • Units: fractional
Parameters
newPeakDifferentialDutyCycleParameter to modify
Returns
Itself

◆ WithPeakDifferentialTorqueCurrent()

constexpr DifferentialConstantsConfigs & ctre::phoenix6::configs::DifferentialConstantsConfigs::WithPeakDifferentialTorqueCurrent ( units::current::ampere_t newPeakDifferentialTorqueCurrent)
inlineconstexpr

Modifies this configuration's PeakDifferentialTorqueCurrent parameter and returns itself for method-chaining and easier to use config API.

Maximum differential output during torque current based differential control modes.

  • Minimum Value: 0.0
  • Maximum Value: 1600
  • Default Value: 1600
  • Units: A
Parameters
newPeakDifferentialTorqueCurrentParameter to modify
Returns
Itself

◆ WithPeakDifferentialVoltage()

constexpr DifferentialConstantsConfigs & ctre::phoenix6::configs::DifferentialConstantsConfigs::WithPeakDifferentialVoltage ( units::voltage::volt_t newPeakDifferentialVoltage)
inlineconstexpr

Modifies this configuration's PeakDifferentialVoltage parameter and returns itself for method-chaining and easier to use config API.

Maximum differential output during voltage based differential control modes.

  • Minimum Value: 0.0
  • Maximum Value: 32
  • Default Value: 32
  • Units: V
Parameters
newPeakDifferentialVoltageParameter to modify
Returns
Itself

Member Data Documentation

◆ PeakDifferentialDutyCycle

units::dimensionless::scalar_t ctre::phoenix6::configs::DifferentialConstantsConfigs::PeakDifferentialDutyCycle = 2

Maximum differential output during duty cycle based differential control modes.

  • Minimum Value: 0.0
  • Maximum Value: 2.0
  • Default Value: 2
  • Units: fractional

◆ PeakDifferentialTorqueCurrent

units::current::ampere_t ctre::phoenix6::configs::DifferentialConstantsConfigs::PeakDifferentialTorqueCurrent = 1600_A

Maximum differential output during torque current based differential control modes.

  • Minimum Value: 0.0
  • Maximum Value: 1600
  • Default Value: 1600
  • Units: A

◆ PeakDifferentialVoltage

units::voltage::volt_t ctre::phoenix6::configs::DifferentialConstantsConfigs::PeakDifferentialVoltage = 32_V

Maximum differential output during voltage based differential control modes.

  • Minimum Value: 0.0
  • Maximum Value: 32
  • Default Value: 32
  • Units: V

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