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

The active control mode of the differential controller. More...

#include <ctre/phoenix6/signals/SpnEnums.hpp>

Inheritance diagram for ctre::phoenix6::signals::DifferentialControlModeValue:
ctre::phoenix6::ISerializable

Public Member Functions

constexpr DifferentialControlModeValue (int value)
 
constexpr DifferentialControlModeValue ()
 
constexpr bool operator== (DifferentialControlModeValue data) const
 
constexpr bool operator== (int data) const
 
constexpr bool operator!= (DifferentialControlModeValue data) const
 
constexpr bool operator!= (int data) const
 
constexpr bool operator< (DifferentialControlModeValue data) const
 
constexpr bool operator< (int data) const
 
std::string ToString () const
 Gets the string representation of this enum.
 
std::string Serialize () const
 

Public Attributes

int value
 

Static Public Attributes

static constexpr int DisabledOutput = 0
 
static constexpr int NeutralOut = 1
 
static constexpr int StaticBrake = 2
 
static constexpr int DutyCycleOut = 3
 
static constexpr int PositionDutyCycle = 4
 
static constexpr int VelocityDutyCycle = 5
 
static constexpr int MotionMagicDutyCycle = 6
 
static constexpr int DutyCycleFOC = 7
 
static constexpr int PositionDutyCycleFOC = 8
 
static constexpr int VelocityDutyCycleFOC = 9
 
static constexpr int MotionMagicDutyCycleFOC = 10
 
static constexpr int VoltageOut = 11
 
static constexpr int PositionVoltage = 12
 
static constexpr int VelocityVoltage = 13
 
static constexpr int MotionMagicVoltage = 14
 
static constexpr int VoltageFOC = 15
 
static constexpr int PositionVoltageFOC = 16
 
static constexpr int VelocityVoltageFOC = 17
 
static constexpr int MotionMagicVoltageFOC = 18
 
static constexpr int TorqueCurrentFOC = 19
 
static constexpr int PositionTorqueCurrentFOC = 20
 
static constexpr int VelocityTorqueCurrentFOC = 21
 
static constexpr int MotionMagicTorqueCurrentFOC = 22
 
static constexpr int Follower = 23
 
static constexpr int Reserved = 24
 
static constexpr int CoastOut = 25
 

Friends

std::ostream & operator<< (std::ostream &os, DifferentialControlModeValue data)
 

Detailed Description

The active control mode of the differential controller.

Constructor & Destructor Documentation

◆ DifferentialControlModeValue() [1/2]

constexpr ctre::phoenix6::signals::DifferentialControlModeValue::DifferentialControlModeValue ( int value)
inlineconstexpr

◆ DifferentialControlModeValue() [2/2]

constexpr ctre::phoenix6::signals::DifferentialControlModeValue::DifferentialControlModeValue ( )
inlineconstexpr

Member Function Documentation

◆ operator!=() [1/2]

constexpr bool ctre::phoenix6::signals::DifferentialControlModeValue::operator!= ( DifferentialControlModeValue data) const
inlineconstexpr

◆ operator!=() [2/2]

constexpr bool ctre::phoenix6::signals::DifferentialControlModeValue::operator!= ( int data) const
inlineconstexpr

◆ operator<() [1/2]

constexpr bool ctre::phoenix6::signals::DifferentialControlModeValue::operator< ( DifferentialControlModeValue data) const
inlineconstexpr

◆ operator<() [2/2]

constexpr bool ctre::phoenix6::signals::DifferentialControlModeValue::operator< ( int data) const
inlineconstexpr

◆ operator==() [1/2]

constexpr bool ctre::phoenix6::signals::DifferentialControlModeValue::operator== ( DifferentialControlModeValue data) const
inlineconstexpr

◆ operator==() [2/2]

constexpr bool ctre::phoenix6::signals::DifferentialControlModeValue::operator== ( int data) const
inlineconstexpr

◆ Serialize()

std::string ctre::phoenix6::signals::DifferentialControlModeValue::Serialize ( ) const
inlinevirtual

◆ ToString()

std::string ctre::phoenix6::signals::DifferentialControlModeValue::ToString ( ) const
inline

Gets the string representation of this enum.

Returns
String representation of this enum

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
DifferentialControlModeValue data )
friend

Member Data Documentation

◆ CoastOut

constexpr int ctre::phoenix6::signals::DifferentialControlModeValue::CoastOut = 25
staticconstexpr

◆ DisabledOutput

constexpr int ctre::phoenix6::signals::DifferentialControlModeValue::DisabledOutput = 0
staticconstexpr

◆ DutyCycleFOC

constexpr int ctre::phoenix6::signals::DifferentialControlModeValue::DutyCycleFOC = 7
staticconstexpr

◆ DutyCycleOut

constexpr int ctre::phoenix6::signals::DifferentialControlModeValue::DutyCycleOut = 3
staticconstexpr

◆ Follower

constexpr int ctre::phoenix6::signals::DifferentialControlModeValue::Follower = 23
staticconstexpr

◆ MotionMagicDutyCycle

constexpr int ctre::phoenix6::signals::DifferentialControlModeValue::MotionMagicDutyCycle = 6
staticconstexpr

◆ MotionMagicDutyCycleFOC

constexpr int ctre::phoenix6::signals::DifferentialControlModeValue::MotionMagicDutyCycleFOC = 10
staticconstexpr

◆ MotionMagicTorqueCurrentFOC

constexpr int ctre::phoenix6::signals::DifferentialControlModeValue::MotionMagicTorqueCurrentFOC = 22
staticconstexpr

◆ MotionMagicVoltage

constexpr int ctre::phoenix6::signals::DifferentialControlModeValue::MotionMagicVoltage = 14
staticconstexpr

◆ MotionMagicVoltageFOC

constexpr int ctre::phoenix6::signals::DifferentialControlModeValue::MotionMagicVoltageFOC = 18
staticconstexpr

◆ NeutralOut

constexpr int ctre::phoenix6::signals::DifferentialControlModeValue::NeutralOut = 1
staticconstexpr

◆ PositionDutyCycle

constexpr int ctre::phoenix6::signals::DifferentialControlModeValue::PositionDutyCycle = 4
staticconstexpr

◆ PositionDutyCycleFOC

constexpr int ctre::phoenix6::signals::DifferentialControlModeValue::PositionDutyCycleFOC = 8
staticconstexpr

◆ PositionTorqueCurrentFOC

constexpr int ctre::phoenix6::signals::DifferentialControlModeValue::PositionTorqueCurrentFOC = 20
staticconstexpr

◆ PositionVoltage

constexpr int ctre::phoenix6::signals::DifferentialControlModeValue::PositionVoltage = 12
staticconstexpr

◆ PositionVoltageFOC

constexpr int ctre::phoenix6::signals::DifferentialControlModeValue::PositionVoltageFOC = 16
staticconstexpr

◆ Reserved

constexpr int ctre::phoenix6::signals::DifferentialControlModeValue::Reserved = 24
staticconstexpr

◆ StaticBrake

constexpr int ctre::phoenix6::signals::DifferentialControlModeValue::StaticBrake = 2
staticconstexpr

◆ TorqueCurrentFOC

constexpr int ctre::phoenix6::signals::DifferentialControlModeValue::TorqueCurrentFOC = 19
staticconstexpr

◆ value

int ctre::phoenix6::signals::DifferentialControlModeValue::value

◆ VelocityDutyCycle

constexpr int ctre::phoenix6::signals::DifferentialControlModeValue::VelocityDutyCycle = 5
staticconstexpr

◆ VelocityDutyCycleFOC

constexpr int ctre::phoenix6::signals::DifferentialControlModeValue::VelocityDutyCycleFOC = 9
staticconstexpr

◆ VelocityTorqueCurrentFOC

constexpr int ctre::phoenix6::signals::DifferentialControlModeValue::VelocityTorqueCurrentFOC = 21
staticconstexpr

◆ VelocityVoltage

constexpr int ctre::phoenix6::signals::DifferentialControlModeValue::VelocityVoltage = 13
staticconstexpr

◆ VelocityVoltageFOC

constexpr int ctre::phoenix6::signals::DifferentialControlModeValue::VelocityVoltageFOC = 17
staticconstexpr

◆ VoltageFOC

constexpr int ctre::phoenix6::signals::DifferentialControlModeValue::VoltageFOC = 15
staticconstexpr

◆ VoltageOut

constexpr int ctre::phoenix6::signals::DifferentialControlModeValue::VoltageOut = 11
staticconstexpr

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