|
CTRE Phoenix 6 C++ 26.0.0-beta-1
|
The relationship between two motors in a mechanism. More...
#include <ctre/phoenix6/signals/SpnEnums.hpp>
Public Member Functions | |
| constexpr | MotorAlignmentValue (int value) |
| constexpr | MotorAlignmentValue () |
| constexpr bool | operator== (MotorAlignmentValue other) const |
| constexpr auto | operator<=> (MotorAlignmentValue other) const |
| constexpr std::string_view | ToString () const |
| Gets the string representation of this enum. | |
| std::string | Serialize () const override |
Public Member Functions inherited from ctre::phoenix6::ISerializable | |
Public Attributes | |
| int | value |
Static Public Attributes | |
| static constexpr int | Aligned = 0 |
| The two motor directions are aligned. | |
| static constexpr int | Opposed = 1 |
| The two motor directions are opposed. | |
Friends | |
| CTREXPORT friend std::ostream & | operator<< (std::ostream &os, MotorAlignmentValue data) |
The relationship between two motors in a mechanism.
Depending on hardware setup, one motor may be inverted relative to the other motor.
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineoverridevirtual |
Implements ctre::phoenix6::ISerializable.
|
inlineconstexpr |
Gets the string representation of this enum.
|
friend |
|
staticconstexpr |
The two motor directions are aligned.
Positive output on both motors moves the mechanism forward/backward.
|
staticconstexpr |
The two motor directions are opposed.
To move forward/backward, one motor needs positive output, and the other needs negative output.
| int ctre::phoenix6::signals::MotorAlignmentValue::value |