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
FieldsModifier and TypeFieldDescriptiondoubleThe "holding" current (amperes) to limit to when feature is activated.booleanTrue/False to enable/disable limit feature.doubleCurrent must exceed this threshold (amperes) before limiting occurs.doubleHow long current must exceed threshold (seconds) before limiting occurs. -
Constructor Summary
ConstructorsConstructorDescriptionStatorCurrentLimitConfiguration(boolean enable, double currentLimit, double triggerThresholdCurrent, double triggerThresholdTime) StatorCurrentLimitConfiguration(double[] doubleArray) -
Method Summary
Modifier and TypeMethodDescriptionvoiddeserialize(double[] doubles) booleandouble[]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