CTRE Phoenix 6 C++ 24.3.0
|
Determines where to poll the reverse limit switch. More...
#include <ctre/phoenix6/signals/SpnEnums.hpp>
Public Member Functions | |
ReverseLimitSourceValue (int value) | |
ReverseLimitSourceValue () | |
std::string | ToString () const |
Gets the string representation of this enum. More... | |
std::string | Serialize () const |
bool | operator== (const ReverseLimitSourceValue &data) const |
bool | operator== (int data) const |
bool | operator< (const ReverseLimitSourceValue &data) const |
bool | operator< (int data) const |
virtual std::string | Serialize () const =0 |
Public Attributes | |
int | value |
Static Public Attributes | |
static constexpr int | LimitSwitchPin = 0 |
static constexpr int | RemoteTalonFX = 1 |
static constexpr int | RemoteCANifier = 2 |
static constexpr int | RemoteCANcoder = 4 |
static constexpr int | Disabled = 3 |
Friends | |
std::ostream & | operator<< (std::ostream &os, const ReverseLimitSourceValue &data) |
Determines where to poll the reverse limit switch.
This defaults to the reverse limit switch pin on the limit switch connector.
Choose RemoteTalonFX to use the reverse limit switch attached to another Talon FX on the same CAN bus (this also requires setting ReverseLimitRemoteSensorID).
Choose RemoteCANifier to use the reverse limit switch attached to another CANifier on the same CAN bus (this also requires setting ReverseLimitRemoteSensorID).
Choose RemoteCANcoder to use another CANcoder on the same CAN bus (this also requires setting ReverseLimitRemoteSensorID). The reverse limit will assert when the CANcoder magnet strength changes from BAD (red) to ADEQUATE (orange) or GOOD (green).
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Implements ctre::phoenix6::ISerializable.
|
inline |
Gets the string representation of this enum.
|
friend |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
int ctre::phoenix6::signals::ReverseLimitSourceValue::value |