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 boolean
ForwardSoftLimitEnable
If enabled, the motor output is set to neutral if position exceeds ForwardSoftLimitThreshold and forward output is requested.double
ForwardSoftLimitThreshold
Position threshold for forward soft limit features.boolean
ReverseSoftLimitEnable
If enabled, the motor output is set to neutral if position exceeds ReverseSoftLimitThreshold and reverse output is requested.double
ReverseSoftLimitThreshold
Position threshold for reverse soft limit features. -
Constructor Summary
Constructors Constructor Description SoftwareLimitSwitchConfigs()
-
Method Summary
Modifier and Type Method Description StatusCode
deserialize(String string)
String
serialize()
String
toString()
-
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:
deserialize
in interfaceParentConfiguration
-
serialize
- Specified by:
serialize
in interfaceISerializable
-