CTRE Phoenix 6 C++ 24.50.0-alpha-2
|
The type of motor attached to the Talon FX. More...
#include <ctre/phoenix6/signals/SpnEnums.hpp>
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) |
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.
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlinevirtual |
Implements ctre::phoenix6::ISerializable.
|
inline |
Gets the string representation of this enum.
|
friend |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
int ctre::phoenix6::signals::MotorTypeValue::value |