CurrentLimitsConfigs Class

Configs that directly affect current limiting features.

Contains the supply/stator current limit thresholds and whether to enable them or not.

Definition

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

Constructors

CurrentLimitsConfigsInitializes a new instance of the CurrentLimitsConfigs 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

StatorCurrentLimit The amount of current allowed in the motor (motoring and regen current). This is only applicable for non-torque current control modes. Note this requires the corresponding enable to be true.
  • Minimum Value – 0.0
  • Maximum Value – 800.0
  • Default Value – 0
  • Units – A
StatorCurrentLimitEnable Enable motor stator current limiting.
  • Default Value – False
SupplyCurrentLimit The amount of supply current allowed. This is only applicable for non-torque current control modes. Note this requires the corresponding enable to be true. Use SupplyCurrentThreshold and SupplyTimeThreshold to allow brief periods of high-current before limiting occurs.
  • Minimum Value – 0.0
  • Maximum Value – 800.0
  • Default Value – 0
  • Units – A
SupplyCurrentLimitEnable Enable motor supply current limiting.
  • Default Value – False
SupplyCurrentThreshold Delay supply current limiting until current exceeds this threshold for longer than SupplyTimeThreshold. This allows current draws above SupplyCurrentLimit for a fixed period of time. This has no effect if SupplyCurrentLimit is greater than this value.
  • Minimum Value – 0.0
  • Maximum Value – 511
  • Default Value – 0
  • Units – A
SupplyTimeThreshold Allows unlimited current for a period of time before current limiting occurs. Current threshold is the maximum of SupplyCurrentThreshold and SupplyCurrentLimit.
  • Minimum Value – 0.0
  • Maximum Value – 1.275
  • Default Value – 0
  • Units – sec

See Also