CTRE Phoenix 6 C++ 24.3.0
|
Assess the status of the motor output with respect to load and supply. More...
#include <ctre/phoenix6/signals/SpnEnums.hpp>
Public Member Functions | |
MotorOutputStatusValue (int value) | |
MotorOutputStatusValue () | |
std::string | ToString () const |
Gets the string representation of this enum. More... | |
std::string | Serialize () const |
bool | operator== (const MotorOutputStatusValue &data) const |
bool | operator== (int data) const |
bool | operator< (const MotorOutputStatusValue &data) const |
bool | operator< (int data) 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, const 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).
|
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 |
|
staticconstexpr |
int ctre::phoenix6::signals::MotorOutputStatusValue::value |