CTRE Phoenix 6 C++ 26.0.0-beta-1
Loading...
Searching...
No Matches
ctre::phoenix6::signals::ConnectedMotorValue Struct Reference

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

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

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

Public Member Functions

constexpr ConnectedMotorValue (int value)
 
constexpr ConnectedMotorValue ()
 
constexpr bool operator== (ConnectedMotorValue other) const
 
constexpr auto operator<=> (ConnectedMotorValue 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 Unknown = 0
 Talon could not determine the type of motor attached.
 
static constexpr int Falcon500_Integrated = 1
 Talon is attached to an integrated Falcon motor.
 
static constexpr int KrakenX60_Integrated = 2
 Talon is attached to an integrated Kraken X60 motor.
 
static constexpr int KrakenX44_Integrated = 3
 Talon is attached to an integrated Kraken X44 motor.
 
static constexpr int Minion_JST = 4
 Talon is connected to a CTR Electronics MinionĀ® brushless three phase motor.
 
static constexpr int Brushed_AB = 5
 Talon is connected to a third party brushed DC motor with leads A and B.
 
static constexpr int Brushed_AC = 6
 Talon is connected to a third party brushed DC motor with leads A and C.
 
static constexpr int Brushed_BC = 7
 Talon is connected to a third party brushed DC motor with leads B and C.
 
static constexpr int NEO_JST = 8
 Talon is connected to a third party NEO brushless three phase motor.
 
static constexpr int NEO550_JST = 9
 Talon is connected to a third party NEO550 brushless three phase motor.
 
static constexpr int VORTEX_JST = 10
 Talon is connected to a third party VORTEX brushless three phase motor.
 
static constexpr int CustomBrushless = 11
 Talon is connected to a custom brushless three phase motor.
 

Friends

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

Detailed Description

The type of motor attached to the Talon.

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

◆ ConnectedMotorValue() [1/2]

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

◆ ConnectedMotorValue() [2/2]

ctre::phoenix6::signals::ConnectedMotorValue::ConnectedMotorValue ( )
inlineconstexpr

Member Function Documentation

◆ operator<=>()

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

◆ operator==()

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

◆ Serialize()

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

◆ ToString()

std::string_view ctre::phoenix6::signals::ConnectedMotorValue::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,
ConnectedMotorValue data )
friend

Member Data Documentation

◆ Brushed_AB

int ctre::phoenix6::signals::ConnectedMotorValue::Brushed_AB = 5
staticconstexpr

Talon is connected to a third party brushed DC motor with leads A and B.

◆ Brushed_AC

int ctre::phoenix6::signals::ConnectedMotorValue::Brushed_AC = 6
staticconstexpr

Talon is connected to a third party brushed DC motor with leads A and C.

◆ Brushed_BC

int ctre::phoenix6::signals::ConnectedMotorValue::Brushed_BC = 7
staticconstexpr

Talon is connected to a third party brushed DC motor with leads B and C.

◆ CustomBrushless

int ctre::phoenix6::signals::ConnectedMotorValue::CustomBrushless = 11
staticconstexpr

Talon is connected to a custom brushless three phase motor.

This requires that the device is not FRC-Locked.

◆ Falcon500_Integrated

int ctre::phoenix6::signals::ConnectedMotorValue::Falcon500_Integrated = 1
staticconstexpr

Talon is attached to an integrated Falcon motor.

◆ KrakenX44_Integrated

int ctre::phoenix6::signals::ConnectedMotorValue::KrakenX44_Integrated = 3
staticconstexpr

Talon is attached to an integrated Kraken X44 motor.

◆ KrakenX60_Integrated

int ctre::phoenix6::signals::ConnectedMotorValue::KrakenX60_Integrated = 2
staticconstexpr

Talon is attached to an integrated Kraken X60 motor.

◆ Minion_JST

int ctre::phoenix6::signals::ConnectedMotorValue::Minion_JST = 4
staticconstexpr

Talon is connected to a CTR Electronics MinionĀ® brushless three phase motor.

◆ NEO550_JST

int ctre::phoenix6::signals::ConnectedMotorValue::NEO550_JST = 9
staticconstexpr

Talon is connected to a third party NEO550 brushless three phase motor.

◆ NEO_JST

int ctre::phoenix6::signals::ConnectedMotorValue::NEO_JST = 8
staticconstexpr

Talon is connected to a third party NEO brushless three phase motor.

◆ Unknown

int ctre::phoenix6::signals::ConnectedMotorValue::Unknown = 0
staticconstexpr

Talon could not determine the type of motor attached.

◆ value

int ctre::phoenix6::signals::ConnectedMotorValue::value

◆ VORTEX_JST

int ctre::phoenix6::signals::ConnectedMotorValue::VORTEX_JST = 10
staticconstexpr

Talon is connected to a third party VORTEX brushless three phase motor.


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