CTRE Phoenix 6 C++ 25.4.0
|
The applied rotor polarity as seen from the front of the motor. More...
#include <ctre/phoenix6/signals/SpnEnums.hpp>
Public Member Functions | |
constexpr | AppliedRotorPolarityValue (int value) |
constexpr | AppliedRotorPolarityValue () |
constexpr bool | operator== (AppliedRotorPolarityValue data) const |
constexpr bool | operator== (int data) const |
constexpr bool | operator!= (AppliedRotorPolarityValue data) const |
constexpr bool | operator!= (int data) const |
constexpr bool | operator< (AppliedRotorPolarityValue 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 | PositiveIsCounterClockwise = 0 |
Positive motor output results in counter-clockwise motion. | |
static constexpr int | PositiveIsClockwise = 1 |
Positive motor output results in clockwise motion. | |
Friends | |
std::ostream & | operator<< (std::ostream &os, AppliedRotorPolarityValue data) |
The applied rotor polarity as seen from the front of the motor.
This typically is determined by the Inverted config, but can be overridden if using Follower features.
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlinevirtual |
Implements ctre::phoenix6::ISerializable.
|
inline |
Gets the string representation of this enum.
|
friend |
|
staticconstexpr |
Positive motor output results in clockwise motion.
|
staticconstexpr |
Positive motor output results in counter-clockwise motion.
int ctre::phoenix6::signals::AppliedRotorPolarityValue::value |