CTRE Phoenix 6 C++ 24.50.0-alpha-2
|
Assess the status of the motor output with respect to load and supply. More...
#include <ctre/phoenix6/signals/SpnEnums.hpp>
Public Member Functions | |
constexpr | MotorOutputStatusValue (int value) |
constexpr | MotorOutputStatusValue () |
constexpr bool | operator== (MotorOutputStatusValue data) const |
constexpr bool | operator== (int data) const |
constexpr bool | operator!= (MotorOutputStatusValue data) const |
constexpr bool | operator!= (int data) const |
constexpr bool | operator< (MotorOutputStatusValue data) const |
constexpr bool | operator< (int data) const |
std::string | ToString () const |
Gets the string representation of this enum. More... | |
std::string | Serialize () const |
virtual std::string | Serialize () const =0 |
Public Attributes | |
int | value |
Static Public Attributes | |
static constexpr int | Unknown = 0 |
static constexpr int | Off = 1 |
static constexpr int | StaticBraking = 2 |
static constexpr int | Motoring = 3 |
static constexpr int | DiscordantMotoring = 4 |
static constexpr int | RegenBraking = 5 |
Friends | |
std::ostream & | operator<< (std::ostream &os, MotorOutputStatusValue data) |
Assess the status of the motor output with respect to load and supply.
This routine can be used to determine the general status of motor commutation. Off means that motor output is disabled. StaticBraking typically means the motor is in neutral-brake. Motoring means motor is loaded in a typical fashion, drawing current from the supply, and successfully turning the rotor in the direction of applied voltage. Discordant Motoring is the same as Motoring, expect the rotor is being backdriven as the motor output is not enough to defeat load forces. RegenBraking means the motor is braking in such a way where motor current is traveling back to the supply (typically a battery).
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlinevirtual |
Implements ctre::phoenix6::ISerializable.
|
inline |
Gets the string representation of this enum.
|
friend |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
int ctre::phoenix6::signals::MotorOutputStatusValue::value |