CTRE Phoenix 6 C++ 24.50.0-alpha-2
ctre::phoenix6::signals::MotorTypeValue Class Reference

The type of motor attached to the Talon FX. More...

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

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

Public Member Functions

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

Public Attributes

int value
 

Static Public Attributes

static constexpr int Unknown = 0
 
static constexpr int Falcon500 = 1
 
static constexpr int KrakenX60 = 2
 

Friends

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

Detailed Description

The type of motor attached to the Talon FX.

This can be used to determine what motor is attached to the Talon FX. Return will be "Unknown" if firmware is too old or device is not present.

Constructor & Destructor Documentation

◆ MotorTypeValue() [1/2]

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

◆ MotorTypeValue() [2/2]

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

Member Function Documentation

◆ operator!=() [1/2]

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

◆ operator!=() [2/2]

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

◆ operator<() [1/2]

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

◆ operator<() [2/2]

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

◆ operator==() [1/2]

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

◆ operator==() [2/2]

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

◆ Serialize()

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

◆ ToString()

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

Gets the string representation of this enum.

Returns
String representation of this enum

Friends And Related Function Documentation

◆ operator<<

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

Member Data Documentation

◆ Falcon500

constexpr int ctre::phoenix6::signals::MotorTypeValue::Falcon500 = 1
staticconstexpr

◆ KrakenX60

constexpr int ctre::phoenix6::signals::MotorTypeValue::KrakenX60 = 2
staticconstexpr

◆ Unknown

constexpr int ctre::phoenix6::signals::MotorTypeValue::Unknown = 0
staticconstexpr

◆ value

int ctre::phoenix6::signals::MotorTypeValue::value

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