Package com.ctre.phoenix.motorcontrol
Class SupplyCurrentLimitConfiguration
java.lang.Object
com.ctre.phoenix.motorcontrol.SupplyCurrentLimitConfiguration
Supply-side current limiting. This is typically used to prevent breakers from tripping.
-
Field Summary
Modifier and TypeFieldDescriptiondouble
The "holding" current (amperes) to limit to when feature is activated.boolean
True/False to enable/disable limit feature.double
Current must exceed this threshold (amperes) before limiting occurs.double
How long current must exceed threshold (seconds) before limiting occurs. -
Constructor Summary
ConstructorDescriptionSupplyCurrentLimitConfiguration
(boolean enable, double currentLimit, double triggerThresholdCurrent, double triggerThresholdTime) SupplyCurrentLimitConfiguration
(double[] doubleArray) -
Method Summary
Modifier and TypeMethodDescriptionvoid
deserialize
(double[] doubles) boolean
double[]
toArray()
toString()
-
Field Details
-
enable
True/False to enable/disable limit feature. -
currentLimit
The "holding" current (amperes) to limit to when feature is activated. -
triggerThresholdCurrent
Current must exceed this threshold (amperes) before limiting occurs. If this value is less than currentLimit, then currentLimit is used as the threshold. -
triggerThresholdTime
How long current must exceed threshold (seconds) before limiting occurs.
-
-
Constructor Details
-
SupplyCurrentLimitConfiguration
public SupplyCurrentLimitConfiguration() -
SupplyCurrentLimitConfiguration
public SupplyCurrentLimitConfiguration(boolean enable, double currentLimit, double triggerThresholdCurrent, double triggerThresholdTime) -
SupplyCurrentLimitConfiguration
-
-
Method Details