CTRE Phoenix 6 C++ 24.3.0
|
The type of motor attached to the Talon FX. More...
#include <ctre/phoenix6/signals/SpnEnums.hpp>
Public Member Functions | |
MotorTypeValue (int value) | |
MotorTypeValue () | |
std::string | ToString () const |
Gets the string representation of this enum. More... | |
std::string | Serialize () const |
bool | operator== (const MotorTypeValue &data) const |
bool | operator== (int data) const |
bool | operator< (const MotorTypeValue &data) const |
bool | operator< (int data) 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, const MotorTypeValue &data) |
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.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Implements ctre::phoenix6::ISerializable.
|
inline |
Gets the string representation of this enum.
|
friend |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
int ctre::phoenix6::signals::MotorTypeValue::value |