Configs that affect general behavior during closed-looping.
Includes Continuous Wrap features.
ClosedLoopGeneralConfigs & ctre::phoenix6::configs::ClosedLoopGeneralConfigs::WithContinuousWrap |
( |
bool | newContinuousWrap | ) |
|
|
inlineconstexpr |
Modifies this configuration's ContinuousWrap parameter and returns itself for method-chaining and easier to use config API.
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.
- Parameters
-
newContinuousWrap | Parameter to modify |
- Returns
- Itself
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.