CTRE Phoenix 6 C++ 26.3.0
Loading...
Searching...
No Matches
ctre::phoenix6::signals::PIDOutput_PIDOutputModeValue Struct Reference

The output mode of the PID controller. More...

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

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

Public Member Functions

constexpr PIDOutput_PIDOutputModeValue (int value)
 
constexpr PIDOutput_PIDOutputModeValue ()
 
constexpr bool operator== (PIDOutput_PIDOutputModeValue other) const
 
constexpr auto operator<=> (PIDOutput_PIDOutputModeValue other) const
 
constexpr std::string_view ToString () const
 Gets the string representation of this enum.
 
std::string Serialize () const override
 
- Public Member Functions inherited from ctre::phoenix6::ISerializable

Public Attributes

int value
 

Static Public Attributes

static constexpr int DutyCycle = 0
 
static constexpr int Voltage = 1
 
static constexpr int TorqueCurrentFOC = 2
 

Friends

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

Detailed Description

The output mode of the PID controller.

Constructor & Destructor Documentation

◆ PIDOutput_PIDOutputModeValue() [1/2]

ctre::phoenix6::signals::PIDOutput_PIDOutputModeValue::PIDOutput_PIDOutputModeValue ( int value)
inlineconstexpr

◆ PIDOutput_PIDOutputModeValue() [2/2]

ctre::phoenix6::signals::PIDOutput_PIDOutputModeValue::PIDOutput_PIDOutputModeValue ( )
inlineconstexpr

Member Function Documentation

◆ operator<=>()

auto ctre::phoenix6::signals::PIDOutput_PIDOutputModeValue::operator<=> ( PIDOutput_PIDOutputModeValue other) const
inlineconstexpr

◆ operator==()

bool ctre::phoenix6::signals::PIDOutput_PIDOutputModeValue::operator== ( PIDOutput_PIDOutputModeValue other) const
inlineconstexpr

◆ Serialize()

std::string ctre::phoenix6::signals::PIDOutput_PIDOutputModeValue::Serialize ( ) const
inlineoverridevirtual

◆ ToString()

std::string_view ctre::phoenix6::signals::PIDOutput_PIDOutputModeValue::ToString ( ) const
inlineconstexpr

Gets the string representation of this enum.

Returns
String representation of this enum

Friends And Related Symbol Documentation

◆ operator<<

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

Member Data Documentation

◆ DutyCycle

int ctre::phoenix6::signals::PIDOutput_PIDOutputModeValue::DutyCycle = 0
staticconstexpr

◆ TorqueCurrentFOC

int ctre::phoenix6::signals::PIDOutput_PIDOutputModeValue::TorqueCurrentFOC = 2
staticconstexpr

◆ value

int ctre::phoenix6::signals::PIDOutput_PIDOutputModeValue::value

◆ Voltage

int ctre::phoenix6::signals::PIDOutput_PIDOutputModeValue::Voltage = 1
staticconstexpr

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