Package com.ctre.phoenixpro.configs
Class ClosedLoopGeneralConfigs
java.lang.Object
com.ctre.phoenixpro.configs.ClosedLoopGeneralConfigs
- All Implemented Interfaces:
ParentConfiguration,ISerializable
public class ClosedLoopGeneralConfigs extends Object implements ParentConfiguration
Configs that affect general behavior during closed-looping.
Includes Continuous Wrap features.
-
Field Summary
Fields Modifier and Type Field Description booleanContinuousWrapWrap position error within [-0.5,+0.5) mechanism rotations. -
Constructor Summary
Constructors Constructor Description ClosedLoopGeneralConfigs() -
Method Summary
Modifier and Type Method Description StatusCodedeserialize(String string)Stringserialize()StringtoString()
-
Field Details
-
ContinuousWrap
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.
- Default Value: False
-
-
Constructor Details
-
Method Details
-
toString
-
deserialize
- Specified by:
deserializein interfaceParentConfiguration
-
serialize
- Specified by:
serializein interfaceISerializable
-