CTRE Phoenix 6 C++ 25.0.0-beta-4
|
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. | |
std::string | Serialize () const |
Public Attributes | |
int | value |
Static Public Attributes | |
static constexpr int | Magnet_Red = 1 |
The magnet is too close or too far from the CANcoder. | |
static constexpr int | Magnet_Orange = 2 |
Magnet health is adequate but with reduced accuracy. | |
static constexpr int | Magnet_Green = 3 |
Magnet health is ideal. | |
static constexpr int | Magnet_Invalid = 0 |
The accuracy cannot be determined. | |
Friends | |
std::ostream & | operator<< (std::ostream &os, MagnetHealthValue data) |
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 |
Magnet health is ideal.
|
staticconstexpr |
The accuracy cannot be determined.
|
staticconstexpr |
Magnet health is adequate but with reduced accuracy.
|
staticconstexpr |
The magnet is too close or too far from the CANcoder.
int ctre::phoenix6::signals::MagnetHealthValue::value |