CTRE Phoenix 6 C++ 24.3.0
|
Static Feedforward Sign during position closed loop. More...
#include <ctre/phoenix6/signals/SpnEnums.hpp>
Public Member Functions | |
StaticFeedforwardSignValue (int value) | |
StaticFeedforwardSignValue () | |
std::string | ToString () const |
Gets the string representation of this enum. More... | |
std::string | Serialize () const |
bool | operator== (const StaticFeedforwardSignValue &data) const |
bool | operator== (int data) const |
bool | operator< (const StaticFeedforwardSignValue &data) const |
bool | operator< (int data) const |
virtual std::string | Serialize () const =0 |
Public Attributes | |
int | value |
Static Public Attributes | |
static constexpr int | UseVelocitySign = 0 |
static constexpr int | UseClosedLoopSign = 1 |
Friends | |
std::ostream & | operator<< (std::ostream &os, const StaticFeedforwardSignValue &data) |
Static Feedforward Sign during position closed loop.
This determines the sign of the applied kS during position closed-loop modes. The default behavior uses the velocity reference sign. This works well with velocity closed loop, Motion MagicĀ® controls, and position closed loop when velocity reference is specified (motion profiling).
However, when using position closed loop with zero velocity reference (no motion profiling), the application may want to apply static feedforward based on the closed loop error sign instead. When doing so, we recommend the minimal amount of kS, otherwise the motor output may dither when closed loop error is near zero.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Implements ctre::phoenix6::ISerializable.
|
inline |
Gets the string representation of this enum.
|
friend |
|
staticconstexpr |
|
staticconstexpr |
int ctre::phoenix6::signals::StaticFeedforwardSignValue::value |