CTRE Phoenix 6 C++ 25.0.0-beta-4
|
Configs that affect general behavior during closed-looping. More...
#include <ctre/phoenix6/configs/Configs.hpp>
Public Member Functions | |
constexpr | ClosedLoopGeneralConfigs ()=default |
std::string | ToString () const override |
std::string | Serialize () const override |
ctre::phoenix::StatusCode | Deserialize (const std::string &to_deserialize) override |
Public Attributes | |
bool | ContinuousWrap = false |
Wrap position error within [-0.5,+0.5) mechanism rotations. | |
Configs that affect general behavior during closed-looping.
Includes Continuous Wrap features.
|
constexprdefault |
|
inlineoverridevirtual |
Implements ctre::phoenix6::configs::ParentConfiguration.
|
inlineoverridevirtual |
Implements ctre::phoenix6::ISerializable.
|
inlineoverridevirtual |
Implements ctre::phoenix6::configs::ParentConfiguration.
bool ctre::phoenix6::configs::ClosedLoopGeneralConfigs::ContinuousWrap = false |
Wrap position error within [-0.5,+0.5) mechanism rotations.
Typically used for continuous position closed-loops like swerve azimuth.
This uses the mechanism rotation value. If there is a gear ratio between the sensor and the mechanism, make sure to apply a SensorToMechanismRatio so the closed loop operates on the full rotation.