CTRE Phoenix 6 C++ 24.3.0
|
Magnet health as measured by CANcoder. More...
#include <ctre/phoenix6/signals/SpnEnums.hpp>
Public Member Functions | |
MagnetHealthValue (int value) | |
MagnetHealthValue () | |
std::string | ToString () const |
Gets the string representation of this enum. More... | |
std::string | Serialize () const |
bool | operator== (const MagnetHealthValue &data) const |
bool | operator== (int data) const |
bool | operator< (const MagnetHealthValue &data) const |
bool | operator< (int data) 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, const 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.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Implements ctre::phoenix6::ISerializable.
|
inline |
Gets the string representation of this enum.
|
friend |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
int ctre::phoenix6::signals::MagnetHealthValue::value |