Package com.ctre.phoenixpro.configs
Class HardwareLimitSwitchConfigs
java.lang.Object
com.ctre.phoenixpro.configs.HardwareLimitSwitchConfigs
- All Implemented Interfaces:
ParentConfiguration
,ISerializable
public class HardwareLimitSwitchConfigs 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
ForwardLimitAutosetPositionEnable
If enabled, the position is auto-set to a specific value, specified by ForwardLimitAutosetPositionValue Default Value: Falsedouble
ForwardLimitAutosetPositionValue
The value to auto-set the position to.boolean
ForwardLimitEnable
If enabled, motor output is set to neutral when forward limit switch is asseted and positive output is requested.int
ForwardLimitRemoteSensorID
Device ID of the device if using remote limit switch features.ForwardLimitSourceValue
ForwardLimitSource
Determines where to poll the forward limit switch.ForwardLimitTypeValue
ForwardLimitType
Determines if limit is normally-open (default) or normally-closed.boolean
ReverseLimitAutosetPositionEnable
If enabled, the position is auto-set to a specific value, specified by ReverseLimitAutosetPositionValue Default Value: Falsedouble
ReverseLimitAutosetPositionValue
The value to auto-set the position to.boolean
ReverseLimitEnable
If enabled, motor output is set to neutral when reverse limit switch is asseted and positive output is requested.int
ReverseLimitRemoteSensorID
Device ID of the device if using remote limit switch features.ReverseLimitSourceValue
ReverseLimitSource
Determines where to poll the reverse limit switch.ReverseLimitTypeValue
ReverseLimitType
Determines if limit is normally-open (default) or normally-closed. -
Constructor Summary
Constructors Constructor Description HardwareLimitSwitchConfigs()
-
Method Summary
Modifier and Type Method Description StatusCode
deserialize(String string)
String
serialize()
String
toString()
-
Field Details
-
ForwardLimitType
Determines if limit is normally-open (default) or normally-closed. -
ForwardLimitAutosetPositionEnable
If enabled, the position is auto-set to a specific value, specified by ForwardLimitAutosetPositionValue- Default Value: False
-
ForwardLimitAutosetPositionValue
The value to auto-set the position to. This has no effect if ForwardLimitAutosetPositionEnable is false.- Minimum Value: -3.4e+38
- Maximum Value: 3.4e+38
- Default Value: 0
- Units: rotations
-
ForwardLimitEnable
If enabled, motor output is set to neutral when forward limit switch is asseted and positive output is requested.- Default Value: True
-
ForwardLimitSource
Determines where to poll the forward limit switch. This defaults to the limit switch pin on the limit switch connector. -
ForwardLimitRemoteSensorID
Device ID of the device if using remote limit switch features.- Minimum Value: 0
- Maximum Value: 62
- Default Value: 0
- Units:
-
ReverseLimitType
Determines if limit is normally-open (default) or normally-closed. -
ReverseLimitAutosetPositionEnable
If enabled, the position is auto-set to a specific value, specified by ReverseLimitAutosetPositionValue- Default Value: False
-
ReverseLimitAutosetPositionValue
The value to auto-set the position to. This has no effect if ReverseLimitAutosetPositionEnable is false.- Minimum Value: -3.4e+38
- Maximum Value: 3.4e+38
- Default Value: 0
- Units: rotations
-
ReverseLimitEnable
If enabled, motor output is set to neutral when reverse limit switch is asseted and positive output is requested.- Default Value: True
-
ReverseLimitSource
Determines where to poll the reverse limit switch. This defaults to the limit switch pin on the limit switch connector. -
ReverseLimitRemoteSensorID
Device ID of the device if using remote limit switch features.- Minimum Value: 0
- Maximum Value: 62
- Default Value: 0
- Units:
-
-
Constructor Details
-
Method Details
-
toString
-
deserialize
- Specified by:
deserialize
in interfaceParentConfiguration
-
serialize
- Specified by:
serialize
in interfaceISerializable
-