CTRE Phoenix 6 C++ 24.3.0
|
Gravity Feedforward/Feedback Type. More...
#include <ctre/phoenix6/signals/SpnEnums.hpp>
Public Member Functions | |
GravityTypeValue (int value) | |
GravityTypeValue () | |
std::string | ToString () const |
Gets the string representation of this enum. More... | |
std::string | Serialize () const |
bool | operator== (const GravityTypeValue &data) const |
bool | operator== (int data) const |
bool | operator< (const GravityTypeValue &data) const |
bool | operator< (int data) const |
virtual std::string | Serialize () const =0 |
Public Attributes | |
int | value |
Static Public Attributes | |
static constexpr int | Elevator_Static = 0 |
static constexpr int | Arm_Cosine = 1 |
Friends | |
std::ostream & | operator<< (std::ostream &os, const GravityTypeValue &data) |
Gravity Feedforward/Feedback Type.
This determines the type of the gravity feedforward/feedback.
Choose Elevator_Static for systems where the gravity feedforward is constant, such as an elevator. The gravity feedforward output will always have the same sign. Choose Arm_Cosine for systems where the gravity feedback is dependent on the angular position of the mechanism, such as an arm. The gravity feedback output will vary depending on the mechanism angular position. Note that the sensor offset and ratios must be configured so that the sensor reports a position of 0 when the mechanism is horizonal (parallel to the ground), and the reported sensor position is 1:1 with the mechanism.
|
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::GravityTypeValue::value |