CTRE Phoenix 6 C++ 24.50.0-alpha-2
|
Magnet health as measured by CANcoder. More...
#include <ctre/phoenix6/signals/SpnEnums.hpp>
Public Member Functions | |
constexpr | MagnetHealthValue (int value) |
constexpr | MagnetHealthValue () |
constexpr bool | operator== (MagnetHealthValue data) const |
constexpr bool | operator== (int data) const |
constexpr bool | operator!= (MagnetHealthValue data) const |
constexpr bool | operator!= (int data) const |
constexpr bool | operator< (MagnetHealthValue 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 | Magnet_Red = 1 |
static constexpr int | Magnet_Orange = 2 |
static constexpr int | Magnet_Green = 3 |
static constexpr int | Magnet_Invalid = 0 |
Friends | |
std::ostream & | operator<< (std::ostream &os, MagnetHealthValue data) |
Magnet health as measured by CANcoder.
Magnet health as measured by CANcoder. Red indicates too close or too far, Orange is adequate but with reduced accuracy, green is ideal. Invalid means the accuracy cannot be determined.
|
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 |
|
staticconstexpr |
int ctre::phoenix6::signals::MagnetHealthValue::value |