Package com.ctre.phoenixpro.configs
Class SoftwareLimitSwitchConfigs
java.lang.Object
com.ctre.phoenixpro.configs.SoftwareLimitSwitchConfigs
- All Implemented Interfaces:
ParentConfiguration,ISerializable
public class SoftwareLimitSwitchConfigs extends Object implements ParentConfiguration
Configs that directly affect motor-output.
Includes Motor Invert and various limit features.
-
Field Summary
Fields Modifier and Type Field Description booleanForwardSoftLimitEnableIf enabled, the motor output is set to neutral if position exceeds ForwardSoftLimitThreshold and forward output is requested.doubleForwardSoftLimitThresholdPosition threshold for forward soft limit features.booleanReverseSoftLimitEnableIf enabled, the motor output is set to neutral if position exceeds ReverseSoftLimitThreshold and reverse output is requested.doubleReverseSoftLimitThresholdPosition threshold for reverse soft limit features. -
Constructor Summary
Constructors Constructor Description SoftwareLimitSwitchConfigs() -
Method Summary
Modifier and Type Method Description StatusCodedeserialize(String string)Stringserialize()StringtoString()
-
Field Details
-
ForwardSoftLimitEnable
If enabled, the motor output is set to neutral if position exceeds ForwardSoftLimitThreshold and forward output is requested.- Default Value: False
-
ReverseSoftLimitEnable
If enabled, the motor output is set to neutral if position exceeds ReverseSoftLimitThreshold and reverse output is requested.- Default Value: False
-
ForwardSoftLimitThreshold
Position threshold for forward soft limit features. ForwardSoftLimitEnable must be enabled for this to take effect.- Minimum Value: -3.4e+38
- Maximum Value: 3.4e+38
- Default Value: 0
- Units: rotations
-
ReverseSoftLimitThreshold
Position threshold for reverse soft limit features. ReverseSoftLimitEnable must be enabled for this to take effect.- Minimum Value: -3.4e+38
- Maximum Value: 3.4e+38
- Default Value: 0
- Units: rotations
-
-
Constructor Details
-
Method Details
-
toString
-
deserialize
- Specified by:
deserializein interfaceParentConfiguration
-
serialize
- Specified by:
serializein interfaceISerializable
-