SoftwareLimitSwitchConfigs Class

Configs that affect how software-limit switches behave.

Includes enabling software-limit switches and the threshold at which they're tripped.

Definition

Namespace: CTRE.Phoenix6.Configs
Assembly: Phoenix6 (in Phoenix6.dll) Version: 1.0.0
C#
public class SoftwareLimitSwitchConfigs
Inheritance
Object    SoftwareLimitSwitchConfigs

Constructors

SoftwareLimitSwitchConfigsInitializes a new instance of the SoftwareLimitSwitchConfigs class

Methods

Deserialize Deserialize string and put values into this object
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Serialize Serialize this object into a string
ToString Provides the string representation of this object
(Overrides ObjectToString)

Fields

ForwardSoftLimitEnable If enabled, the motor output is set to neutral if position exceeds ForwardSoftLimitThreshold and forward 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
ReverseSoftLimitEnable If enabled, the motor output is set to neutral if position exceeds ReverseSoftLimitThreshold and reverse output is requested.
  • Default Value – False
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

See Also