Package com.ctre.phoenix.motorcontrol
Class StatorCurrentLimitConfiguration
java.lang.Object
com.ctre.phoenix.motorcontrol.StatorCurrentLimitConfiguration
Stator-side current limiting. This is typically used to limit acceleration/torque and heat generation.
-
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
ConstructorDescriptionStatorCurrentLimitConfiguration
(boolean enable, double currentLimit, double triggerThresholdCurrent, double triggerThresholdTime) StatorCurrentLimitConfiguration
(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
-
StatorCurrentLimitConfiguration
public StatorCurrentLimitConfiguration() -
StatorCurrentLimitConfiguration
public StatorCurrentLimitConfiguration(boolean enable, double currentLimit, double triggerThresholdCurrent, double triggerThresholdTime) -
StatorCurrentLimitConfiguration
-
-
Method Details